Hi,
I suspect the issue is not plplot itself but how it & cairo interprete
info passed from gtk (the cc structure below). In my sample code, the 
plplot part, except for cc calls, does exactly what is 
contained in your simplest ext-cairo-test.c example. The extra
fortran code is needed to 
open window and generate the on-screen area handle passed to plplot via 
calls
     cc = hl_gtk_drawing_area_cairo_new(area)  <--*** this is gtk
....
     call pl_cmd(PLESC_DEVINIT, cc)            <--this is already plplot

I am not expert and do not know how to make it still simpler.
However, if Allan example did not contain these two lines
it would fail to test the whole problem. Removal of the 
of the gtk part of my fortran code would kill
any test of interaction with the user defined gui window.
I would like to stress that the issue is not cairo itself but how 
it communicates with the gtk on-screen gui interface. I am open to the 
prospect that the problem is on the gtk side and not plplot.
However, I belive the interaction of plplot with gui soft is 
worth investigation. Accepting of the area info
from gtk IS NOT TESTED in your ext-cairo-test.c example. That example 
generates an image file/onscreen plot, without any flexible gui 
interaction controlled by the user. In this regard cursor is 
a rigid-preprogrammed procedure and not true gui front.

Neither plplot nor cairo were intended to operate gui forms
logins etc hence gtk-fortran could be vital extension of plplot in that 
direction. To be specific I am thinking of an on-screen gui for operation 
of BRITE satellite ground station. The gtk part would accept commands,
report status etc. plplot would be called to fill several windows with 
science plots: satellite position on sky/in space and/or quick look plots 
of astronomical data.
Best regards,
Alex


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to