materials.plot_utils module¶
Material Property plotting utilities.
-
materials.plot_utils.
decorate_temperature_axis
(axes, temperature_range=(0, inf), comparison_set='space propulsion')[source]¶ Decorate temperature axis with comparison temperatures.
References
[1] Lozano, Paulo, “Monopropellant Thrusters”, 16.522 Notes, MIT.
[2] Sutton, George P and Oscar Biblarz, Rocket Propulsion Elements, 8th ed., 2010. [3] US Department of Defense, “Global Climatic Data for Developing Military Products”, MIL-HDBK-310, 1997.
-
materials.plot_utils.
plot_property_vs_state
(prop, state_model=None, state_name=None, state_range=None, value_for_other_state=None, axes=None, **pyplot_kwargs)[source]¶ Plot a state-dependent property.
Parameters: - prop (Property) – The property to plot.
- state_model (string) – The name of the state model to plot from (i.e. a key of variations_with_state)
- state_name (string) – Name of the state variable to plot the property value against.
- state_range (tuple of length 2) – Range of state variable values to plot over (low, high).
- value_for_other_state (scalar) – If the property depends on two states, fix the other state at this value.
- axes (matplotlib.axes.Axes) – Axes to plot on. Makes a new figure if axes is None.
Other keyword arguments are passed to pyplot.plot.
Returns: The axes on which the plot was drawn. Return type: matplotlib.axes.Axes