Tk Library Source Code

View Ticket
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.
Ticket UUID: 2683544
Title: clipped x-labels due to font size
Type: Bug Version: None
Submitter: vera_soft Created on: 2009-03-11 18:40:49
Subsystem: tklib :: plotchart Assigned To: arjenmarkus
Priority: 5 Medium Severity:
Status: Open Last Modified: 2009-03-23 14:41:40
Resolution: None Closed By:
    Closed on:
Description:
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.
User Comments: arjenmarkus added on 2009-03-23 14:41:40:
Hm, I will definitely have to solve this one by querying the font metrics instead of 
assuming some size.

[email protected] added on 2009-03-21 17:59:51:
Now the xlabel-text overlaps the xtic-labels-text

arjenmarkus added on 2009-03-13 14:54:04:
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.

[email protected] added on 2009-03-13 01:13:59:
I mean the bottom margin.

arjenmarkus added on 2009-03-12 14:47:01:
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