Share

gnuplot development

Tracker: Bugs

5 Not enough space reserved for xtic labels with rotated text - ID: 1879907
Last Update: Comment added ( sf-robot )

I used gnuplot 4.2.0 to plot a timeseries

config:
set xdata time
set timefmt "%H:%M"
set format x "%H:%M"
set xtics +60 rotated by 90


the postscript output is fine. but when using png/gif
the size of the rotate labels is not take into account.
The too small gif will cut of chars from the label.
(see picture attached)
You see 2:00 instead of 12:00

hope that helps


grumpf_ ( grumpf_ ) - 2008-01-25 18:22

5

Closed

Fixed

Nobody/Anonymous

Drivers

None

Public


Comments ( 3 )




Date: 2008-02-10 15:12
Sender: sf-robotSourceForge.net Site Admin


This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).


Date: 2008-01-27 01:33
Sender: sfeamProject Admin


Fixed, sort of, in CVS. It now does a better job of estimating the
vertical space required for rotated labels on the x or x2 axes. But it's
still not perfect, and probably cannot be, because the core gnuplot code
does not really know about font sizes and character spacing. You may still
have to tweak the margins using "set bmargin ..." and friends.

This fix should probably go into the 4.2 branch also, but I'll wait to see
if any problems are found in the CVS version.


Date: 2008-01-25 21:09
Sender: sfeamProject Admin


I am re-naming this bug report.
It is nothing to do with the png/gif driver in particular.
The core code does not consider rotation angle when it reserves space for
the axis labels.


Log in to comment.

Attached File ( 1 )

Filename Description Download
2008-01-24.gif notice the time on x-axes Download

Changes ( 7 )

Field Old Value Date By
status_id Pending 2008-02-10 15:12 sf-robot
close_date 2008-01-27 01:33 2008-02-10 15:12 sf-robot
close_date - 2008-01-27 01:33 sfeam
resolution_id None 2008-01-27 01:33 sfeam
status_id Open 2008-01-27 01:33 sfeam
summary png/gif to small cuts text 2008-01-25 21:09 sfeam
File Added 263755: 2008-01-24.gif 2008-01-25 18:22 grumpf_