Python Forum

Full Version: Coolprop plot problems
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey,
I have some problems with the library coolpack. I want to add them minor and major lines and to change the numbers from 10^x to real numbers .. does anybody know how to do that? I also want to change the scale and tickz and to add some lables for the isotherm and isobar lines, like in a standard ph-Diagramm.
That is my current code:

import CoolProp

from CoolProp.Plots import PropertyPlot
plot = PropertyPlot('R1234yf', 'ph', unit_system='EUR')
plot.title('R1234yf log p-h Diagramm')
plot.xlabel(r's $[{kJ}/{kg K}]$')
plot.ylabel(r'T $[K]$')
plot.calc_isolines(num=20)
plot.show()
Thanks!