Hi,
I want to plot and autoscale T-s diagram of some fluids. But I couldn't understand how to use SETSCL. Should it be called before GRAF? And how to define XRAY variable of SETSCL? Thanks in advance.
Here is my plot for Water, R134a and R123:
And here is my code:
call swgwin(1000,20,460,460)
call wgdraw(ip,ip_Ts)
call setxid(ip_Ts,'WIDGET')
call page(3000,3000)
call sclmod('FULL')
call metafl('XWIN')
call disini()
call filopt('ON','SCALE')
call axslen(2500,2500)
call center()
call name('Entropy','X')
call name('Temperature','Y')
call axsbgd(255)
call color('BLACK')
call pagfll(255)
call graf(0.0,9000.0,0.0,400.0,0.0,800.0,0.0,50.0)
call curve(real(Sa),real(Ta),f_trim)
call endgrf()
call disfin
call wgfin