forums.silverfrost.com
Welcome to the Silverfrost forums

 Native %pl Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8
Author Message
Kenneth_Smith

Joined: 18 May 2012
Posts: 193
Location: Glasgow, Scotland.

 Posted: Tue Apr 18, 2017 7:20 am    Post subject: John, You are correct I've not tried the log scales - must try harder! However I have not had to go back one set of dlls. Ken
Kenneth_Smith

Joined: 18 May 2012
Posts: 193
Location: Glasgow, Scotland.

Posted: Wed Apr 19, 2017 10:19 am    Post subject:

Paul,
Can you point me in the right direction and confirm the syntax for using the independent option. I am struggling to make the third %pl call in the code below work, where the two graphs with different x axis values are plotted together. Code below fails to draw anything in the third %pl region. I re-read the help file many times and tried various combinations with no success.

Thanks

Ken

 Code: program test implicit none include real(kind=2) x_array_1(10), x_array_2(10), y_array_1(10), y_array_2(10) integer i do i = 1, 10   x_array_1(i) = i   x_array_2(i) = i + 5   y_array_1(i) = x_array_1(i)**0.75d0   y_array_2(i) = x_array_2(i)**0.5d0 end do i = winio@('%ww&') i = winio@('%pl[native,x_array,n_graphs=1]&',300,300,10,x_array_1,y_array_1) i = winio@('%pl[native,x_array,n_graphs=1]&',300,300,10,x_array_2,y_array_2) i = winio@('%pl[native,x_array,n_graphs=2,independent]&',300,300,10,x_array_1,y_array_1,x_array_2,y_array_2) i = winio@('%ff') end program test
PaulLaidler

Joined: 21 Feb 2005
Posts: 5635
Location: Salford, UK

 Posted: Wed Apr 19, 2017 12:02 pm    Post subject: Ken For two independent graphs together the number of points must be passed as an array. So in the third %pl, 10 becomes np with integer np(2) np = 10
Kenneth_Smith

Joined: 18 May 2012
Posts: 193
Location: Glasgow, Scotland.

 Posted: Wed Apr 19, 2017 12:25 pm    Post subject: Thanks Paul. Might be worthwhile changing the text in the help file from: In this case the number of data points and the optional x-start and x-increment data must be presented as variables (for one graph) or as arrays (for one or more graphs) where the array index corresponds to the order in which the graphs are coded. to:- In this case the number of data points and the optional x-start and x-increment data must be presented as variables (for one graph) or as an array (for one or more graphs) where the array index corresponds to the order in which the graphs are coded. It was the plural "arrays" which confused me. Thanks Ken
PaulLaidler

Joined: 21 Feb 2005
Posts: 5635
Location: Salford, UK

 Posted: Thu Apr 20, 2017 4:02 pm    Post subject: Thanks Ken. I have changed the text.
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First
 All times are GMT + 1 HourGoto page Previous  1, 2, 3, 4, 5, 6, 7, 8 Page 8 of 8