HybridMotor Plots Class#
- class rocketpy.plots.hybrid_motor_plots._HybridMotorPlots[source]#
Class that holds plot methods for HybridMotor class.
- Variables:
_HybridMotorPlots.hybrid_motor (
HybridMotor) – HybridMotor object that will be used for the plots.
- grain_inner_radius(lower_limit=None, upper_limit=None, *, filename=None)[source]#
Plots grain_inner_radius of the hybrid_motor as a function of time.
- Parameters:
lower_limit (
float) – Lower limit of the plot. Default is none, which means that the plot limits will be automatically calculated.upper_limit (
float) – Upper limit of the plot. Default is none, which means that the plot limits will be automatically calculated.filename (
str | None, optional) – The path the plot should be saved to. By default None, in which case the plot will be shown instead of saved. Supported file endings are: eps, jpg, jpeg, pdf, pgf, png, ps, raw, rgba, svg, svgz, tif, tiff and webp (these are the formats supported by matplotlib).
- Return type:
None
- grain_height(lower_limit=None, upper_limit=None, *, filename=None)[source]#
Plots grain_height of the hybrid_motor as a function of time.
- Parameters:
lower_limit (
float) – Lower limit of the plot. Default is none, which means that the plot limits will be automatically calculated.upper_limit (
float) – Upper limit of the plot. Default is none, which means that the plot limits will be automatically calculated.filename (
str | None, optional) – The path the plot should be saved to. By default None, in which case the plot will be shown instead of saved. Supported file endings are: eps, jpg, jpeg, pdf, pgf, png, ps, raw, rgba, svg, svgz, tif, tiff and webp (these are the formats supported by matplotlib).
- Return type:
None
- burn_rate(lower_limit=None, upper_limit=None, *, filename=None)[source]#
Plots burn_rate of the hybrid_motor as a function of time.
- Parameters:
lower_limit (
float) – Lower limit of the plot. Default is none, which means that the plot limits will be automatically calculated.upper_limit (
float) – Upper limit of the plot. Default is none, which means that the plot limits will be automatically calculated.filename (
str | None, optional) – The path the plot should be saved to. By default None, in which case the plot will be shown instead of saved. Supported file endings are: eps, jpg, jpeg, pdf, pgf, png, ps, raw, rgba, svg, svgz, tif, tiff and webp (these are the formats supported by matplotlib).
- Return type:
None
- burn_area(lower_limit=None, upper_limit=None, *, filename=None)[source]#
Plots burn_area of the hybrid_motor as a function of time.
- Parameters:
lower_limit (
float) – Lower limit of the plot. Default is none, which means that the plot limits will be automatically calculated.upper_limit (
float) – Upper limit of the plot. Default is none, which means that the plot limits will be automatically calculated.filename (
str | None, optional) – The path the plot should be saved to. By default None, in which case the plot will be shown instead of saved. Supported file endings are: eps, jpg, jpeg, pdf, pgf, png, ps, raw, rgba, svg, svgz, tif, tiff and webp (these are the formats supported by matplotlib).
- Return type:
None
- Kn(lower_limit=None, upper_limit=None, *, filename=None)[source]#
Plots Kn of the hybrid_motor as a function of time.
- Parameters:
lower_limit (
float) – Lower limit of the plot. Default is none, which means that the plot limits will be automatically calculated.upper_limit (
float) – Upper limit of the plot. Default is none, which means that the plot limits will be automatically calculated.filename (
str | None, optional) – The path the plot should be saved to. By default None, in which case the plot will be shown instead of saved. Supported file endings are: eps, jpg, jpeg, pdf, pgf, png, ps, raw, rgba, svg, svgz, tif, tiff and webp (these are the formats supported by matplotlib).
- Return type:
None
- draw(*, filename=None)[source]#
Draw a representation of the HybridMotor.
- Parameters:
filename (
str | None, optional) – The path the plot should be saved to. By default None, in which case the plot will be shown instead of saved. Supported file endings are: eps, jpg, jpeg, pdf, pgf, png, ps, raw, rgba, svg, svgz, tif, tiff and webp (these are the formats supported by matplotlib).- Return type:
None