Sat 24 Apr 2010 03:57:44 PM UTC, comment #2:
I've submitted a trivial patch to the developers sources.
http://hg.savannah.gnu.org/hgweb/octave/rev/5f46cc552ce5
For those who wish to try the patch for one of the releases, the diff is below.
diff -r ea79ebe99051 -r 5f46cc552ce5 scripts/plot/__go_draw_axes__.m
--- a/scripts/plot/__go_draw_axes__.m Fri Apr 23 22:20:12 2010 -0700
+++ b/scripts/plot/__go_draw_axes__.m Sat Apr 24 11:49:58 2010 -0400
@@ -50,8 +50,8 @@
pos = _actual_axis_position_ (axis_obj);
else
pos = axis_obj.position;
- pos = pos - implicit_margin([1, 2, 1, 2]).*[1, 1, -0.5, -0.5];
endif
+ pos(1:2) = pos(1:2) - implicit_margin .* [0.75, 0.5];
if (_gnuplot_has_feature_ ("screen_coordinates_for_{lrtb}margin"))
if (nd == 2)
x = [1, 1];
(file #20311)
|
Sat 24 Apr 2010 02:14:08 PM UTC, original submission:
Hello,
I'm attaching a simple program that demonstrates the problem(s).
When I run this interactively under octave, I see (on the screen) exactly what want and expect. I define a file name on line 35, and there is a print command on the next line, to save the plot in a file.
The problem is that the saved plot file, for some backends, does not match what was on the screen. My goal was to eliminate white space between panels; on the screen it works, but with ".ps", ".pdf", it does not-- white space (enough for the x-tick mark labels) is introduced. With ".jpg", ".png", and ".eps" the plot file is correct, no white space introduced. However, for ".eps" everything, axes, labels, lines, text all look very thin and/or faint.
Side question: Is there a way to suppress the x-tick labels on the first (top) three subplots? (Maybe, if I could do that, then the .pdf and/or .ps backends would not introduce that white space. And the plots would look much better.)
Environment:
GNU Octave, version 3.2.3
Ubuntu 8.04
Thanks, Thanks, Thanks
|