I understand that this is first pancake which is always not as perfect. I just afraid bad initial development decisions which may stay forever
Quoted from PaulLaidler
Dan
As you will have realised, the data does not lend itself to being joined by lines or curves. Best just to plot the points. y_max should be 30 (say).
I sometimes can not use it even with the simplest LINEAR x_array plotting. Here is what I get with the data above and this code (just linear plotting even without any y_max)
USE clrwin
integer, parameter :: n_dim = 1153
real*8 xstart, X(n_dim), Y(n_dim)
OPEN (UNIT=275,FILE='A.dat',STATUS='old',err=990)
do i=1,10000
if(i.gt.n_dim) goto 100
read(275,*,err=995,end=100) X(i), Y(i)
enddo
100 close(275)
n_points=i-1
xstart=0 ! X(1)
i=winio@('%ww[no_border]%es%ca[Default Plot]%pv&')
i=winio@('%fn[Tahoma]&')
i=winio@('%ts&', 3.1d0)
i=winio@('%tc&',rgb@(0,0,0))
i=winio@('%bf&')
i=winio@('%`bg&',rgb@(250,255,255))
! CALL winop@('%pl[SCALE=log_log]')
CALL winop@('%pl[x_array]')
CALL winop@('%pl[n_graphs=1]')
CALL winop@('%pl[title='Sample plot']')
CALL winop@('%pl[x_axis=Wavelength A]')
CALL winop@('%pl[y_axis=Intensity@(-4.0)]')
CALL winop@('%pl[width=3]')
! CALL winop@('%pl[Y_max=30.]')
CALL winop@('%pl[smoothing=4]') ! anti-aliasing
CALL winop@('%pl[colour=black]')
CALL winop@('%pl[style=0,pen_style=0]')
i=winio@('%pl',1502,880,n_points,x,y)
goto 10000
!................. errors ......................
990 Print*, 'Error opening file A.dat for read'
goto 10000
995 Print*, 'Error reading file A.dat'
goto 10000
10000 continue
end
- Do you see the same problem with the numbering for X axis tick marks?
- Do you see the same crazy curve (why I suspected that Bezier was used for smoothing)? With this is it possible just to offer linear approximation while connecting points?

Even if include rounded limit on X-min=12 the choice for tic numbers is not perfect

though this I think is fixable later. But the Log and Linear_Log is more important to fix first