CALL AXLBJS('*C','C')
call axsbtk('XC','I')
call axsbtk('YC','I')
CALL SCALES(0.0,100.0,1,min_y,max_y,1)
call thckmg('LINE', 2.0)
call axes7('time','Amplitude')
CALL AXLBJS('*C','C')
call thckmg('LINE', float(curve(1)%LineWidth))
call pen(curve(1)%linecolor)
CALL BRKNCV(x,w,N,curve(1)%LineTrace)
call thckmg('LINE', float(curve(2)%LineWidth))
call pen(curve(2)%linecolor)
CALL BRKNCV(x,y,N,curve(2)%LineTrace)
call thckmg('LINE', float(curve(3)%LineWidth))
call pen(curve(3)%linecolor)
CALL BRKNCV(x,z,N,curve(3)%LineTrace)
call thckmg('LINE', float(curve(4)%LineWidth))
call pen(curve(4)%linecolor)
CALL BRKNCV(x,u,N,curve(4)%LineTrace)
call thckmg('LINE', float(curve(5)%LineWidth))
call pen(curve(5)%linecolor)
CALL BRKNCV(x,v,N,curve(5)%LineTrace)
end subroutine plot_curves
integer function change_plot()
use spwin
if(nplot==0) then
call plot_curves
call updatewin
else
newlineWidth = curve(nplot)%LineWidth
newLineTrace = curve(nplot)%LineTrace
newLineColor = curve(nplot)%LineColor
call updatewin
endif
change_plot=1
end function change_plot
integer function reset_plot()
use spwin
nplot=0
b1=1
b2=0
ncurr=100
call plot_curves
call updatewin
reset_plot=1
end function reset_plot
integer function select_output()
call OWNNEW(.true.)
call devnam('')
call plot_curves
call endplt
select_output=1
end function select_output
end module funciones
program Resized_Simpleplot_plots
use mswin
use funciones
ans=winio@('%sy[3d_raised]%ca[Fine control of plots attributes with Simpleplot]%bg[grey]&')
ans=winio@('%il&', -12,26)
ans=winio@('%taCharset %dd%6^rd& ', 1, iCharacterSetNo, bitmap)
ans=winio@('%fl&', 0.0D0,10.0D0)
ans=winio@('%taText size %df%6^rf& ', 1d-2, TextSize, bitmap)
ans=winio@('%il&', 2,7)
ans=winio@(' Orientation %dd%6^rd& ', 1, iOrientation, bitmap)
ans=winio@(' L R B T margins %df%6^rf%df%6^rf%df%6^rf%df%6^rf%ff&', 5d-1,LeftMrgn, bitmap, &
5d-1,RightMrgn, bitmap, 5d-1,BottomMrgn, bitmap, 5d-1,TopMrgn, bitmap)
ans=winio@('%il&', 0,5)
ans=winio@('%2ga&',b1,b2)
ans=winio@('%nl%ta%`rb[]Plot%ta%dd%6^rd&',b1,1,nplot,change_plot)
ans=winio@('%ta Line width %dd%6^rd& ', 1, newLineWidth, bitmap)
ans=winio@('%il&', -6,6)
ans=winio@(' Line trace %dd%6^rd& ',1,newLineTrace,bitmap)
ans=winio@('%il&', 0,256)
ans=winio@('%taLine color %dd%6^rd& ',1,newLineColor,bitmap)
ans=winio@('%2nl%ta%^rb[All plots]&',b2,bitmap)
ans=winio@('%ta Array size %`bg[red]%dd%4^rd%ff&', 1, Ncurr, bitmap)
ans=winio@('%nl%cn%ww%pv%^dw[user_resize]&',800,600,bitmap) ! Pass bitmapDC to ClearWin
ans=winio@('%ff%nl%cn%6bt[Close]%2ta%6^bt[Print]%2ta%6^bt[Reset]',select_output,reset_plot)
end program resized_simpleplot_plots
By the way, I would suggest to start a new topic as what we have been discussing during the recent posts are not related anymore with Hershey fonts...maybe something like 'Simpleplot and %pl plots'? .....you can decide the name of the new topic...
Agustin