On 2012-01-28 10:13+0100 Aleksander Schwarzenberg-Czerny wrote:
>
> Hi,
> As posted previously I get much ovesized default fonts
> (title/labels) for plplot+extcairo+(gtk-fortran)+gfortran
> combination. I am using pgplot 5.9.5 ie. default for Ubuntu 11.10
> and gtk-2-fortran. The enclosed code reproducing my problem
> is gtk/jerryd-gtk-fortran-5af09d1/graphics/plplot/hl_plplot1e.f90
> example stripped to bare bones as in plplot-5.9.9/examples/c/ext-cairo-test.c.
>
> The output I am getting is correct gtk gui window with correct gtk fonts and
> with an area set for plplot with
> axes drawn properly, yet all labelling is using factor several oversized
> fonts. Plplot knows size of this font as it leaves large margins for
> labelling.
> The margins may change by call plschr, with no effect to the font itself.
>
> Any advice? Thanks in advance,
Hi Aleksander:
It is always a good idea when debugging an issue to make the absolute
simplest test case to demonstrate the problem. So I tried that,
but I cannot demonstrate the issue so I think the problem may be
in your complicated example.
Here is what I did. I tried the following patch locally which shows
(contrary to the results you get with your more complicated Fortran
example) that at least at the C level, plschr works correctly with the
extcairo device.
Index: examples/c/ext-cairo-test.c
===================================================================
--- examples/c/ext-cairo-test.c (revision 12160)
+++ examples/c/ext-cairo-test.c (working copy)
@@ -18,6 +18,7 @@
plsdev( "extcairo" );
plinit();
pl_cmd( PLESC_DEVINIT, cairoContext );
+ plschr (0., 0.3);
plenv( 0.0, 1.0, 0.0, 1.0, 1, 0 );
pllab( "x", "y", "title" );
plend();
For a fresh PLplot build that used the cmake option -DBUILD_TEST=ON, I built
and ran that modified version using
make test_extcairo
and the resulting examples/ext-cairo-test.ps show tiny letters
indicating that that inserted plschr command is working properly.
Could you please follow those exact steps to confirm that plschr works
for you as well for this simple C example?
Assuming you do confirm that, then I would suggest changing that
simple example to Fortran 95 to see if our Fortran 95 bindings are an
issue. And if that works fine, then analyze the difference between
the way that ext-cairo-test.c or its Fortran 95 equivalent uses the
extcairo device and your much more complicated example to find the
problem in your example. Or alternatively keep simplifying your
example until plschr starts working, and from that experience figure
out why plschr is not working for your more complicated case.
Alan
__________________________
Alan W. Irwin
Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).
Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________
Linux-powered Science
__________________________
------------------------------------------------------------------------------
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