You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears the the Ts plot uses kJ/kg, but the isolines use J/kg. Commenting out shows that the isolines are drawn, just in different units. See modified example code below. Hope this is a relatively easy fix.
from matplotlib import pyplot
from CoolProp.Plots import Ts, drawIsoLines
Ref = 'n-Pentane'
ax = Ts(Ref)
It appears the the Ts plot uses kJ/kg, but the isolines use J/kg.
Commenting out shows that the isolines are drawn, just in different units.
See modified example code below. Hope this is a relatively easy fix.
I noticed this issue when trying the plotting example on http://www.coolprop.org/apidoc/CoolProp.Plots.Plots.html
It appears the the Ts plot uses kJ/kg, but the isolines use J/kg. Commenting out shows that the isolines are drawn, just in different units. See modified example code below. Hope this is a relatively easy fix.
from matplotlib import pyplot
from CoolProp.Plots import Ts, drawIsoLines
Ref = 'n-Pentane'
ax = Ts(Ref)
ax.set_xlim([-0.5, 1.5])
ax.set_ylim([300, 530])
quality = drawIsoLines(Ref, 'Ts', 'Q', [0.3, 0.5, 0.7, 0.8], axis=ax)
isobars = drawIsoLines(Ref, 'Ts', 'P', [100, 2000], num=5, axis=ax)
isochores = drawIsoLines(Ref, 'Ts', 'D', [2, 600], num=7, axis=ax)
pyplot.savefig('props_plot.png')
pyplot.show()
The text was updated successfully, but these errors were encountered: