Need help with python-plotting coolprop

425 views
Skip to first unread message

Rene Dworschak

unread,
Mar 28, 2018, 10:44:46 AM3/28/18
to coolprop-users
Hello,

the examples on "http://www.coolprop.org/coolprop/python-plotting.html" give me a little headache.

I am using python3.6 with jupyterlab and Coolprop 6.0.0


with  
import CoolProp
from CoolProp.Plots import PropertyPlot
ts_plot = PropertyPlot('Methane', 'TS')
ts_plot.calc_isolines(CoolProp.iQ, num=21)
ts_plot.title(r'$T,s$ Graph for Water')
ts_plot.xlabel(r'$s$ [kJ/kg K]')
ts_plot.ylabel(r'$T$ [K]')
ts_plot.grid()
ts_plot.show()

I getting...
 
C:\ProgramData\Anaconda3\lib\site-packages\CoolProp\Plots\Common.py:492: UserWarning: Please use "calc_sat_range" to calculate saturation and isoquality lines. Input ranges are discarded.
  UserWarning)
C:\ProgramData\Anaconda3\lib\site-packages\CoolProp\Plots\Plots.py:221: UserWarning: Detected an incomplete phase envelope, fixing it numerically.
  warnings.warn("Detected an incomplete phase envelope, fixing it numerically.")
C:\ProgramData\Anaconda3\lib\site-packages\matplotlib\figure.py:1742: UserWarning: This figure includes Axes that are not compatible with tight_layout, so its results might be incorrect.
  warnings.warn("This figure includes Axes that are not "


 
Are there any examples for the calculation of the isolines for the Coolprop version 6.0.0 in python - the examples on the webpage seem a bit outdated.
For me it would be interesting to only mark selected isolines in the diagrams

thx,
René

Ian Bell

unread,
Mar 31, 2018, 9:03:55 PM3/31/18
to coolpro...@googlegroups.com
Very sadly, the plotting code is mostly broken, and we need some manpower injection to get it working properly. So far nobody has stepped up to fix the plotting code, which is a pity.

--
You received this message because you are subscribed to the Google Groups "coolprop-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coolprop-users+unsubscribe@googlegroups.com.
To post to this group, send email to coolprop-users@googlegroups.com.
Visit this group at https://groups.google.com/group/coolprop-users.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages