#16 hardcopy plots misuse CharSize attribute

closed-fixed
nobody
None
5
2001-03-01
2001-02-27
Anonymous
No

The following code illustrates the bug:

use PDL;
use PDL::Graphics::PGPLOT;

dev('/ps', 2, 2, { CharSize => 3 });

env( 0, 10, 0, 10, {Erase => 0 } );
label_axes( 'Row', 'Counts', "File" );

The labels are drawn with the default character size,
not with size=3 as requested, although the axis numbers
are drawn correctly.

Discussion

  • Doug Burke
    Doug Burke
    2001-02-28

    Logged In: YES
    user_id=7154

    Try including the HardCH option :

    dev('/ps', 2, 2, { CharSize => 3 , hardch => 3 });

    ugly, I know...

     
  • Logged In: YES
    user_id=2045

    This behaviour is fixed in the recent CVS release. The
    problem was that there is one set of options for window
    creation and one for use when a plot function plots in
    the window. For some reason I can't remember off the top
    of my head the CharSize option must be in both sets of
    options, and I had forgotten to update it in the one that
    creates plot boxes.

    Various other additions were made too, such as including
    a HardColour option that sets the default colour for hard
    copy devices (overriding Colour).

     
    • status: open --> closed-fixed