|
CoolProp
|
The base class for all plots. It can be instantiated itself, but provides many general facilities to be used in the different plots.


Public Member Functions | |
| def | __init__ (self, fluid_ref, graph_type, unit_system='KSI', tp_limits='DEF', kwargs) |
| def | system (self) |
| def | system (self, value) |
| def | limits (self) |
| def | limits (self, value) |
| def | figure (self) |
| def | figure (self, value) |
| def | axis (self) |
| def | axis (self, value) |
| def | props (self) |
| def | props (self, value) |
| def | title (self, title) |
| def | xlabel (self, xlabel) |
| def | ylabel (self, ylabel) |
| def | grid (self, b=None, kwargs) |
| def | set_Tp_limits (self, limits) |
| def | get_Tp_limits (self) |
| def | set_axis_limits (self, limits) |
| def | get_axis_limits (self, x_index=None, y_index=None) |
| def | inline_label (self, xv, yv, x=None, y=None) |
| def | show (self) |
| def | savefig (self, args, kwargs) |
Public Member Functions inherited from CoolProp.Plots.Common.Base2DObject | |
| def | __init__ (self, x_type, y_type, state=None, small=None) |
| def | x_index (self) |
| def | y_index (self) |
| def | critical_state (self) |
| def | state (self) |
| def | state (self, value) |
Static Public Member Functions | |
| def | generate_ranges (itype, imin, imax, num) |
| def | get_x_y_dydx (xv, yv, x) |
Public Attributes | |
| system | |
| limits | |
| figure | |
| axis | |
| props | |
Public Attributes inherited from CoolProp.Plots.Common.Base2DObject | |
| state | |
Static Public Attributes | |
| dictionary | PROPERTIES |
| dictionary | UNIT_SYSTEMS |
| dictionary | LINE_PROPS |
| float | ID_FACTOR = 10.0 |
| float | HI_FACTOR = 2.25 |
| float | LO_FACTOR = 1.01 |
| dictionary | TP_LIMITS |
Static Public Attributes inherited from CoolProp.Plots.Common.Base2DObject | |
| int | TS = CoolProp.iT * 10 + CoolProp.iSmass |
| int | PH = CoolProp.iP * 10 + CoolProp.iHmass |
| int | HS = CoolProp.iHmass * 10 + CoolProp.iSmass |
| int | PS = CoolProp.iP * 10 + CoolProp.iSmass |
| int | PD = CoolProp.iP * 10 + CoolProp.iDmass |
| int | TD = CoolProp.iT * 10 + CoolProp.iDmass |
| int | PT = CoolProp.iP * 10 + CoolProp.iT |
| int | PU = CoolProp.iP * 10 + CoolProp.iUmass |
| dictionary | PLOTS |
| dictionary | PLOTS_INV = {v: k for k, v in PLOTS.items()} |
|
static |
Generate a range for a certain property
| def CoolProp.Plots.Common.BasePlot.get_axis_limits | ( | self, | |
x_index = None, |
|||
y_index = None |
|||
| ) |
Returns the previously set limits or generates them and converts the default values to the selected unit system. Returns a list containing [xmin, xmax, ymin, ymax]
| def CoolProp.Plots.Common.BasePlot.get_Tp_limits | ( | self | ) |
Get the limits for the graphs in temperature and pressure, based on the active units: [Tmin, Tmax, pmin, pmax]
|
static |
Get x and y coordinates and the linear interpolation derivative
| def CoolProp.Plots.Common.BasePlot.inline_label | ( | self, | |
| xv, | |||
| yv, | |||
x = None, |
|||
y = None |
|||
| ) |
This will give the coordinates and rotation required to align a label with a line on a plot in axis units.
| def CoolProp.Plots.Common.BasePlot.limits | ( | self | ) |
Returns [Tmin,Tmax,pmin,pmax] as value or factors
| def CoolProp.Plots.Common.BasePlot.set_axis_limits | ( | self, | |
| limits | |||
| ) |
Set the limits of the internal axis object based on the active units, takes [xmin, xmax, ymin, ymax]
| def CoolProp.Plots.Common.BasePlot.set_Tp_limits | ( | self, | |
| limits | |||
| ) |
Set the limits for the graphs in temperature and pressure, based on the active units: [Tmin, Tmax, pmin, pmax]
|
static |
|
static |
|
static |
|
static |
1.8.13