forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

%pl [xaxis=<caption>,yaxis=<caption>]

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
Kenneth_Smith



Joined: 18 May 2012
Posts: 696
Location: Hamilton, Lanarkshire, Scotland.

PostPosted: Wed Feb 08, 2023 3:23 pm    Post subject: %pl [xaxis=<caption>,yaxis=<caption>] Reply with quote

There is a minor issue I have just spotted with the relatively new %pl [xaxis=<caption>] and [yaxis=<caption>] options where <caption> is a single letter (which is of course generally not the case).

The code below demonstrates this.

Code:
  use clrwin
  parameter (n=11)
  real*8 :: x(n) = [-5,  -4,-3,-2,-1,0,1,2,3,4, 5]
  real*8 :: y(n) = [-25,-16,-9,-4,-1,0,1,4,9,16,25]
  y = y - 100
  x = x + 100
  call winop@('%pl[frame,colour=blue,width=2,symbol=5]')
  call winop@('%pl[Title="X and Y axis captions incorrectly positioned"]')
  call winop@('%pl[xaxis="A",yaxis="F"]')
  i = winio@('%pl[x_array,independent,n_graphs=1]',500,400,n,x,y)

  call winop@('%pl[frame,colour=blue,width=2,symbol=5]')
  call winop@('%pl[Title="X and Y axis captions incorrectly positioned"]')
  call winop@('%pl[xaxis="A ",yaxis="F "]')
  i = winio@('%pl[x_array,independent,n_graphs=1]',500,400,n,x,y)

  call winop@('%pl[frame,colour=blue,width=2,symbol=5]')
  call winop@('%pl[Title="Correct position with leading space in caption string"]')
  call winop@('%pl[xaxis=" A",yaxis=" F"]')
  i = winio@('%pl[x_array,independent,n_graphs=1]',500,400,n,x,y)
 
  call winop@('%pl[frame,colour=blue,width=2,symbol=5]')
  call winop@('%pl[Title="Captions two or more characters long"]')
  call winop@('%pl[xaxis="A1",yaxis="F(A1)"]')
  i = winio@('%pl[x_array,independent,n_graphs=1]',500,400,n,x,y)
end
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


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

PostPosted: Wed Feb 08, 2023 4:50 pm    Post subject: Reply with quote

Ken

I think that this is probably deliberate and may reflect what appears with the original SimplePlot but I will make a note to look at it.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group