help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Axis labels in EPS figure are outside bounding box


From: Henry F. Mollet
Subject: Re: Axis labels in EPS figure are outside bounding box
Date: Sat, 17 Oct 2009 16:41:27 -0700
User-agent: Microsoft-Entourage/11.1.0.040913



on 10/17/09 2:08 PM, Ben Abbott at address@hidden wrote:

> 
> On Oct 17, 2009, at 4:33 PM, Matthias Brennwald wrote:
> 
>> Dear all
>> 
>> The below code example produces an eps file containing a simple
>> figure. The resulting eps file is attached. The problem is that the
>> axis labels are cut off, i.e. they are partially outside the
>> bounding box of the figure. What am I doing wrong? What can I do to
>> circumvent this problem?
>> 
>> (Octave 3.2.0 on Mac OS X 10.5, gnuplot 4.2 patchlevel 5)
>> 
>> ---------------
>> plot (sin ([0:100]/10)); axis ([0 100 -1.1 1.1]);
>> fs = 18;
>> set (gca,'fontsize',fs);
>> xlabel ('x label','fontsize',fs);
>> ylabel ('y label','fontsize',fs);
>> print ('testy.eps','-depsc','-S500,400');
>> ---------------
>> 
>> <testy.eps>
> 
> I'm able to run Octave 3.2.2 or the most recent developers sources on
> Mac OSX 10.6. I see no clipping.
> 
> Running your script produces the attached eps-file.
> 
> Upgrading your Octave to a more recent version should fix the problem
> for you. You can down load 3.2.3 at the link below.
> 
> http://sourceforge.net/projects/octave/files/Octave%20MacOSX%20Binary
> 
> Ben
> 

Octave 3.2.2 on Mac OS X 10.4.11, gnuplot 4.2.5, using Aquaterm.

octave-3.2.2:1> plot (sin ([0:100]/10)); axis ([0 100 -1.1 1.1]);
octave-3.2.2:2> fs = 18;
octave-3.2.2:3> set (gca,'fontsize',fs);
octave-3.2.2:4> xlabel ('x label','fontsize',fs);
octave-3.2.2:5> ylabel ('y label','fontsize',fs);

Y-label OK but no X-label. Saved as PDF, see attached.
Henry

Attachment: testHFM.pdf
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]