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[frame,scale=linear_log]

 
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: 831
Location: Lanarkshire, Scotland.

PostPosted: Wed Aug 13, 2025 12:10 pm    Post subject: %pl[frame,scale=linear_log] Reply with quote

Paul,

Something that needs looking at when you have time. In the second %pl graph the options frame and scale=linear_log are used. The resulting plot is not correct. Please see my mark up here:

https://www.dropbox.com/scl/fi/whuaiw6wfwhy8zpu0r6ss/Screenshot-2025-08-13-120045.jpg?rlkey=pqjut46zi1uabeqk6netkmbtk&st=rl1kaxh5&dl=0

Code:
program p
use clrwin
implicit none
integer, parameter :: n = 100
integer :: i, iw
real*8 :: x(n), y(n)
real*8 :: xend = 10.d0**3, xstart = 10.d0**(-1), twopi = 8.d0*atan(1.d0)

  ! Log spaced x values
  x = [( 10.0d0**(log10(xstart) + (i-1)*(log10(xend)-log10(xstart))/(n-1)), i=1,n )]

  ! y(x) = sin(2pi * log10(x)) will produce a repeating sine pattern evenly
  ! spaced on the semilog x-axis so you can immediately tell if the x-axis
  ! is scaled correctly.
  y = sin(twopi*log10(x))
 
  iw = winio@('%fn[Tahoma]%bf%ts&',1.5d0)
 
  call winop@('%pl[n_graphs=1,native,width=3,gridlines]')
  call winop@('%pl[colour=red,x_array,scale=linear_log]')
  iw = winio@('%ta%pl&', 600, 600, size(y,kind=3), x, y)
 
  call winop@('%pl[n_graphs=1,native,width=3,gridlines]')
  call winop@('%pl[frame]')
  call winop@('%pl[colour=red,x_array,scale=linear_log]')
  iw = winio@('%ta%pl', 600, 600, size(y,kind=3), x, y)
end program p
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Wed Aug 13, 2025 2:02 pm    Post subject: Reply with quote

Thanks. I will take a look at this.
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