Did I find the right examples for you? yes no

All Samples(7)  |  Call(5)  |  Derive(0)  |  Import(2)

src/c/o/CoolProp-4.2.0/CoolProp/Plots/SimpleCycles.py   CoolProp(Download)
 
if __name__=='__main__':
    from CoolProp.Plots import Ph,Ts
 
    Ref='R290'
    fig=matplotlib.pyplot.figure(figsize=(4,3))
    ax=fig.add_axes((0.15,0.15,0.8,0.8))
    Ph(Ref,Tmin=273.15-30,hbounds=[0,600],axis=ax)
    fig=matplotlib.pyplot.figure(figsize=(4,3))
    ax=fig.add_axes((0.15,0.15,0.8,0.8))
    Ph(Ref,Tmin=273.15-30,hbounds=[0,600],axis=ax)
    COP=SimpleCycle(Ref,273.15-5,273.15+45,5,7,0.7,Ts_Ph='Ph')
    matplotlib.pyplot.show()

src/c/o/CoolProp-4.2.0/CoolProp/tests/test_plots.py   CoolProp(Download)
    def Ph_plot_tests():
        from CoolProp.Plots import Ph
        Ph(fluid_ref, show=False)
 
        from matplotlib import pyplot
        fig = pyplot.figure(2)
        ax = fig.gca()
        Ph(fluid_ref, show=False, axis=ax)
        plt.close()
        Ph(fluid_ref, show=False, Tmin=200, Tmax=300)