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: Phtagen
Subject: Re: Problems with subplots/Overlapping title/axislabels
Date: Wed, 16 Mar 2016 12:14:59 -0700 (PDT)

bpabbott wrote
>> On Mar 16, 2016, at 12:27, Phtagen <

> phtagen@

> > wrote:
>> 
>> bpabbott wrote
>>>> On Mar 16, 2016, at 5:34 AM, Phtagen <
>> 
>>> phtagen@
>> 
>>> > wrote:
>>>> 
>>>> bpabbott wrote
>>>>>> On Mar 15, 2016, at 11:35 AM, Phtagen <
>>>> 
>>>>> phtagen@
>>>> 
>>>>> > 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
>>>>>> 
>>>>>> <http://octave.1599824.n4.nabble.com/file/n4675515/Test1.jpg>
>>>>> 
>>>>> 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

Hi Ben,

ok, I had semi success ;-)

The positions of the "subplots" are fine, so the x-labels and the titles are
not overlapping. But I still have trouble with the y-labels. When I have a
tiny scaling on the y-axis (like [0.02 0.04…]) the y-label overlaps with the
scaling. I tried to set the location of the y-axis to the right, but the
label moves with the axis. When I re-scale the x-axis and set the y-axis to
"zero" the y-label stays on the left side, but still overlaps with the
x-scale (see picture).

How can I handle this? And I still have the problem, that I can't switch off
the box, what would improve the appearance of my plot. 
And is it possible to set the locations of the y-axis and the y-label
independent from each other?

Thanks

Phtagen
<http://octave.1599824.n4.nabble.com/file/n4675570/Test2.jpg> 



--
View this message in context: 
http://octave.1599824.n4.nabble.com/Problems-with-subplots-Overlapping-title-axislabels-tp4675515p4675570.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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