Menu

#1118 clipped x-labels due to font size

open
5
2009-03-11
2009-03-11
Vera
No

I use in my application a bigger font with "font configure TkDefaultFont -size 11 -weight bold" and PlotChart 1.6.1.
In xy-plots the x-label is clipped, since there is a fixed size for the labels and tics (pymax), not a font-dependent size.

Discussion

  • Arjen Markus

    Arjen Markus - 2009-03-12

    Yes, this needs fixing - for the moment you can set the left margin for
    the xy-plots via:

    plotconfig xyplot margin left $width_in_pixels

     
  • Nobody/Anonymous

    I mean the bottom margin.

     
  • Arjen Markus

    Arjen Markus - 2009-03-13

    Oops, try:

    plotconfig xyplot margin bottom $height_in_pixels

    The plotconfig command sets configuration options for the class of plots.
    So all subsequent XY-plots use that option.

     
  • Nobody/Anonymous

    Now the xlabel-text overlaps the xtic-labels-text

     
  • Arjen Markus

    Arjen Markus - 2009-03-23

    Hm, I will definitely have to solve this one by querying the font metrics instead of
    assuming some size.