Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/c/o/CoolProp-4.2.0/CoolProp/Plots/PsychScript.py   CoolProp(Download)
 
import numpy, matplotlib
from CoolProp.HumidAirProp import HAProps
from CoolProp.Plots.Plots import InlineLabel 
 
    yv = [HAProps('W','T',T,'P',p,'R',RH) for T in Tdb]
    y = HAProps('W','P',p,'H',65.000000,'R',RH)
    T_K,w,rot = InlineLabel(xv, yv, y=y, axis = ax)
    string = r'$\phi$='+str(RH*100)+'%'
    bbox_opts = dict(boxstyle='square,pad=0.0',fc='white',ec='None',alpha = 0.5)

src/c/o/CoolProp-4.2.0/CoolProp/Plots/PsychChart.py   CoolProp(Download)
 
from CoolProp.HumidAirProp import HAProps
from CoolProp.Plots.Plots import InlineLabel 
import matplotlib, numpy, textwrap
 
            yv = [HAProps('W','T',T,'P',p,'R',RH) for T in Tdb]
            y = HAProps('W','P',p,'H',self.h,'R',RH)
            T_K,w,rot = InlineLabel(xv, yv, y=y, axis = ax)
            string = r'$\phi$='+str(RH*100)+'%'
            #Make a temporary label to get its bounding box