Python Forum
Coolprop plot problems - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Coolprop plot problems (/thread-9469.html)



Coolprop plot problems - Bandori - Apr-10-2018

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!