def Graph_annotations(): from CoolProp.Plots import PropsPlot, IsoLines PP = PropsPlot(fluid_ref, 'Ts') PP.draw_isolines('Q', [0.3, 0.5, 0.7, 0.8]) PP.draw_isolines('P', [100, 2000], num=5) PP.draw_isolines('D', [2, 600], num=7) plt.title('New Title') PP.xlabel('New x label') PP.ylabel('New y label') PP = IsoLines(fluid_ref, 'Ts', 'P') PP.draw_isolines([100, 2000], num=5) plt.close()
def Graph_annotations_tests(): from CoolProp.Plots import PropsPlot, IsoLines PP = PropsPlot(fluid_ref, 'Ts') PP.set_axis_limits([-0.5, 1.5, 300, 530]) PP.draw_isolines('Q', [0.3, 0.5, 0.7, 0.8]) PP.draw_isolines('P', [100e3, 2000e3], num=5) PP.draw_isolines('D', [2, 600], num=7) plt.title('New Title') PP.xlabel('New x label') PP.ylabel('New y label') PP = IsoLines(fluid_ref, 'Ts', 'P') PP.draw_isolines([100e3, 2000e3], num=5) PP._draw_graph()
def Isolines_plot_tests(): from CoolProp.Plots import PropsPlot PP = PropsPlot(fluid_ref, 'Ts') #plt.set_axis_limits([-0.5, 1.5, 300, 530]) PP.draw_isolines('Q', [0.3, 0.5, 0.7, 0.8]) PP.draw_isolines('P', [100, 2000], num=5) PP.draw_isolines('D', [2, 600], num=7) plt.close()
def Isolines_plot_tests(): from CoolProp.Plots import PropsPlot plt = PropsPlot(fluid_ref, 'Ts') plt.set_axis_limits([-0.5, 1.5, 300, 530]) plt.draw_isolines('Q', [0.3, 0.5, 0.7, 0.8]) plt.draw_isolines('P', [100, 2000], num=5) plt.draw_isolines('D', [2, 600], num=7) plt.show()
def Isolines_plot_tests(): from CoolProp.Plots import PropsPlot PP = PropsPlot(fluid_ref, 'Ts') PP.set_axis_limits([-0.5, 1.5, 300, 530]) PP.draw_isolines('Q', [0.3, 0.5, 0.7, 0.8]) PP.draw_isolines('P', [100e3, 2000e3], num=5) PP.draw_isolines('D', [2, 600], num=7) PP._draw_graph()