sajou.plot.plot_elements_mpl module

Defines the functions used to plot each element type in the matplotlib backend

sajou.plot.plot_elements_mpl.plot_beam2d(element, ax, elem_options)

Plots the given Beam2D element

element: Beam2D instance
the element to be plotted
Returns:TODO
sajou.plot.plot_elements_mpl.plot_deformed_beam2d(element, results, ax, elem_options, scale=1)

Plot the deformed shape of the Beam2D element

Parameters:
  • element (Beam2D instance) – element to be plotted
  • results (Results instance) – result obtained after solving the system
  • ax (matplotlib Axis) – axis where to plot the element to
  • elem_options (dict) – options to pass to the ‘plot’ function
  • scale (float) – scale applied to the displacements
Returns:

axis where the element was plotted

Return type:

matplotlib Axis

sajou.plot.plot_elements_mpl.plot_element(element, ax, elem_options)

Plot the given element

This is a general function that calls the specific plotting function for the element passed.

Parameters:element (Element) – the element that will be plotted
Returns:axis containing the plotted element
Return type:matplotlib Axis
sajou.plot.plot_elements_mpl.plot_spring2d(element, ax, elem_options)

Plots the given Beam2D element

element: Beam2D instance
the element to be plotted
Returns:TODO