How to use SETSCL?

46 views
Skip to first unread message

Berk

unread,
Dec 3, 2022, 3:43:02 PM12/3/22
to dislin-users
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:
Ekran görüntüsü 2022-12-03 233915.pngEkran görüntüsü 2022-12-03 234007.pngEkran görüntüsü 2022-12-03 234056.png
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

Helmut Michels

unread,
Dec 4, 2022, 6:40:11 AM12/4/22
to dislin-users
Hi,

yes, SETSCL should be called before the GRAF routine. The automatich scaling is done in
GRAF. For example, you can use the statements

           call setscl (real (Sa), f_trim, 'x')
           call setscl (real (Ta), f_trim, 'y')
           call graf (...)

for an automatich scaling of the x- and y-axes.

With best regards,

Helmut

Berk

unread,
Dec 4, 2022, 1:49:33 PM12/4/22
to dislin-users
Thanks Helmut, It works fine now.

Sincerely,

Berk


4 Aralık 2022 Pazar tarihinde saat 14:40:11 UTC+3 itibarıyla mic...@dislin.de şunları yazdı:
Reply all
Reply to author
Forward
0 new messages