Excellent Paul, thank you. I can see the way forward now.
This works fine in terms of creating the jpeg files, but I did note that Checkmate x64 does not like this code.
program test
use clrwin
implicit none
integer plot_to_file_cb ; external plot_to_file_cb
integer n,i
integer(kind=3) plot1, plot2
common plot1, plot2
parameter(n=10)
real*8 x(n),y(n),z(n)
plot1 = 1
plot2 = 2
do i=1,n
x(i)=0.1d0*(i-1)
y(i)= -x(i)*x(i)
z(i)= -y(i)
enddo
i=winio@('%ca[plots]%pv&')
i=winio@('%`bg[white]&')
call winop@('%pl[title=graph]')
call winop@('%pl[width=2]')
call winop@('%pl[y_max=0.9]')
call winop@('%pl[x_array]')
call winop@('%pl[link=curves]')
call winop@('%pl[symbol=9]')
call winop@('%pl[colour=red]')
call winop@('%pl[pen_style=2]')
call winop@('%pl[framed]')
i = winio@('%`pl&',400,250,n,x,y,plot1)
i = winio@('%2nl&')
i = winio@('%ff%cn%ws&','A space between the graphics regions')
i = winio@('%ff&')
call winop@('%pl[title=graph]')
call winop@('%pl[width=2]')
call winop@('%pl[y_max=0.9]')
call winop@('%pl[x_array]')
call winop@('%pl[link=curves]')
call winop@('%pl[symbol=9]')
call winop@('%pl[colour=red]')
call winop@('%pl[pen_style=2]')
call winop@('%pl[framed]')
i=winio@('%`pl&',400,250,n,x,z,plot2)
i=winio@('%sf%ff%nl%cn%^tt[plot]&',plot_to_file_cb)
i= winio@('%tt[ok]')
end
integer function plot_to_file_cb()
use clrwin
implicit none
integer i
integer(kind=3) plot1, plot2
common plot1, plot2
i = select_graphics_object@(plot1)
write(6,*) i
i = export_image@('plot1.jpg')
write(6,*) i
i = select_graphics_object@(plot2)
write(6,*) i
i = export_image@('plot2.jpg')
write(6,*) i
plot_to_file_cb = 1
end function plot_to_file_cb