On 01/30/2012 08:20 AM, Aleksander Schwarzenberg-Czerny wrote:
> 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.

Perhaps the problem is that gtk-fortran is changing the default cairo 
font size (or the cairo font matrix) for the cairo context that it is 
providing to PLplot? PLplot is never explicitly setting these, so it is 
possible that these values get combined with the string size that we 
specify in Pango to create the large(?) font size that you are seeing.

http://cairographics.org/manual/cairo-text.html

-Hazen

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
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-d2d
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to