Thanks for finding my bugs in these demos and discussion which may shed the light on limiting amount of plots %pl can do
Then here is my last question: does %pl have 9 graphs limit on standard way of plotting or it was lifted lately (we discussed to take off this limit couple years ago)?
May be somebody here will look at that and find something else i missed.
Conclusion is pretty strange so far:
Looks like with Stacked it complains and swearing but plots 12 graphs ( 6 of which upside down ? May be still some other mistake is still here)
But surprisingly without staked it somehow manages to plot 12 ...which indicates that my original program of this post made with the standard %pl method exactly like in the last demo (and which refused to plot more than 9 ) has some error (??).
I use latest compiler 8.95
Here is the final modified Paul's demo code which supposed not to work for more than 9 graphs (and it indeed does not for more than 9 in my larger code why i started this thread and i do there exactly like is shown here) but it somehow unexplainable works in this demo
WINAPP
USE clrwin
INTEGER M,N,i
PARAMETER(N=11,M=12)
REAL*8 xm,x(N,M),y(N,M) !<-- changed X
INTEGER :: Np(M) ! <-- added Np
CHARACTER(len=24) str
! Replace this DO loop with data for each plot...
DO j=0,M-1 <-- changed a bit
xm = 0.1d0 * (j+1)
DO i=1,N
xx = 0.1d0*(i-1)
x(i,j+1) = xx
y(i,j+1) = xm*xx
xm = xm + 0.1d0
ENDDO
ENDDO
Np(:)=N ! <-- added
i=winio@('%ca[Multi-graph]&')
CALL winop@('%pl[n_graphs=12]')
! CALL winop@('%pl[stacked]')
CALL winop@('%pl[x_array]')
CALL winop@('%pl[x_max=1.0]')
CALL winop@('%pl[dx=0.1]')
CALL winop@('%pl[smoothing=4]')
CALL winop@('%pl[independent]') ! <-- added
!Various line colours going from blue to red...
DO j=1,M
i = 255*j/M
write(str,'(a,z6.6,a)') '%pl[colour=#', RGB@(255-i,0,i), ']'
CALL winop@(trim(str))
ENDDO
i=winio@('%pl&',400,250,Np, x(:,1),y(:,1), x(:,2),y(:,2), x(:,3),y(:,3), x(:,4),y(:,4),&
& x(:,5),y(:,5), x(:,6),y(:,6), x(:,7),y(:,7), x(:,8),y(:,8), x(:,9),y(:,9), x(:,10),y(:,10),&
& x(:,11),y(:,11), x(:,12),y(:,12) )
i=winio@('%ff%nl%cn%tt[OK]')
END