help-octave
[Top][All Lists]
Advanced

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

Re: Problems with subplots/Overlapping title/axislabels


From: Ben Abbott
Subject: Re: Problems with subplots/Overlapping title/axislabels
Date: Wed, 16 Mar 2016 14:28:36 -0400

> On Mar 16, 2016, at 12:27, Phtagen <address@hidden> wrote:
> 
> bpabbott wrote
>>> On Mar 16, 2016, at 5:34 AM, Phtagen &lt;
> 
>> phtagen@
> 
>> &gt; wrote:
>>> 
>>> bpabbott wrote
>>>>> On Mar 15, 2016, at 11:35 AM, Phtagen &lt;
>>> 
>>>> phtagen@
>>> 
>>>> &gt; wrote:
>>>>> 
>>>>> Hi everybody,
>>>>> 
>>>>> I have some trouble with my octave 3.8.2 on mac (build with macports)
>>>>> and
>>>>> gnuplot. When I'm plotting some subplots, the title of e.g. the second
>>>>> subplot overlaps with the xlabel of the first subplot. Same is with the
>>>>> ylabel; when it is too long it overlaps with the yticks.
>>>>> 
>>>>> Can I change the position of the title/axislabels or can I change the
>>>>> distance between the subplots?
>>>>> 
>>>>> Thanks for helping
>>>>> 
>>>>> &lt;http://octave.1599824.n4.nabble.com/file/n4675515/Test1.jpg&gt;
>>>> 
>>>> This is a *feature* of using Gnuplot and maintaining compatibility with
>>>> Matlab’s axes positions.
>>>> 
>>>> You can attempt to correct the overlapping by manually changing the axes
>>>> positions.
>>>> 
>>>> Ben
>>> 
>>> Hi Ben,
>>> 
>>> thanks for your reply. 
>>> 
>>> I tried to do so with "title('name', 'position', [X, Y])" and with
>>> "ylabel('name', 'position', [X, Y])" but nothing changes.
>>> 
>>> What am I doing wrong?
>>> 
>>> Thanks
>>> 
>>> Phtagen
>> 
>> Gnuplot controls the text object positions. However, you can modify the
>> positions of the axes. Meaning in you move the top axes up and the bottom
>> axes down you can avoid the overlap.
>> 
>> Ben
> 
> Hi Ben,
> 
> thanks for your advice. You mean I have to change the scale of the axis and
> then move them to zero for instance; by set(gca,'xaxislocation', 'zero').
> 
> This works fine for me, but how can I switch the box off? The command
> set(gca,'box', 'off') doesn't work, nothing changes.

You'll want to change the axes "position" property.

Ben




reply via email to

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