I'm using "gnuplot 4.3 patchlevel 0"
When using "postscript eps enhanced" driver
the bounding box is not calculated correctly
and part of the xlabel might be outside the plot
Attached please find a gnuplot script that will produce the problem
thanks,
marco
gnuplot script to reproduce the problem
Logged In: YES
user_id=235620
Originator: NO
It is true that the core gnuplot code does not do a very good job of estimating the vertical space requirements of text containing super- or sub-scripts. This is a general problem with enhanced text mode, and not specific to the postscript driver.
You can work around this in several ways.
In gnuplot:
You could add an explicit "\n" at the end of the xlabel, thus reserving space for a second line.
You could give an explicit size for the bottom margin, e.g. "set bmargin 3".
After the fact:
You could edit the BoundingBox in the output file.
But yes, we should work to make the initial estimate more accurate.
Logged In: YES
user_id=235620
Originator: NO
I take it back. There really is a bug in the current version. The code to allow room for subscripts in the x-axis label was disabled by the presence of a spurious #ifdef. Fixed in cvs.