plot_model (ops_vis)

ops_vis.plot_model(node_labels=1, element_labels=1, offset_nd_label=False, axis_off=0, az_el=(-60.0, 30.0), fig_wi_he=(16.0, 10.0), fig_lbrt=(0.04, 0.04, 0.96, 0.96))[source]

Plot defined model of the structure.

Parameters:
  • node_labels (int) – 1 - plot node labels, 0 - do not plot them; (default: 1)
  • element_labels (int) – 1 - plot element labels, 0 - do not plot them; (default: 1)
  • offset_nd_label (bool) – False - do not offset node labels from the actual node location. This option can enhance visibility.
  • axis_off (int) – 0 - turn off axes, 1 - display axes; (default: 0)
  • az_el (tuple) – contains azimuth and elevation for 3d plots. For 2d plots this parameter is neglected.
  • fig_wi_he (tuple) – contains width and height of the figure
  • fig_lbrt (tuple) – a tuple contating left, bottom, right and top offsets

Usage:

plot_model() - plot model with node and element labels.

plot_model(node_labels=0, element_labels=0) - plot model without node element labels

plot_model(fig_wi_he=(20., 14.)) - plot model in a window 20 cm long, and 14 cm high.