help-octave
[Top][All Lists]
Advanced

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

Re: subplots


From: some_guy
Subject: Re: subplots
Date: Sun, 11 Jul 2010 11:56:21 -0700 (PDT)


andy buckle wrote:
> 
> On Sun, Jul 11, 2010 at 7:54 AM, some_guy <address@hidden> wrote:
>>
>>
>> Rob Mahurin wrote:
>>>
>>> On Jul 7, 2009, at 5:38 PM, Roque I wrote:
>>>> How to make asymmetrical arrangements of subplots?
>>>> i.e.
>>>> +----------+-----------+
>>>> I          I (fig.2)   I
>>>> I          I           I
>>>> I (fig.1)  +-----------+
>>>> I          I (fig.3)   I
>>>> I          I           I
>>>> +----------+-----------+
>>>
>>> Try
>>>
>>>       subplot(1,2,1); title("fig 1")
>>>       subplot(2,2,2); title("fig 2")
>>>       subplot(2,2,4); title("fig 3")
>>>
>>> Rob
>>>
>>> --
>>> Rob Mahurin
>>> University of Manitoba, Dept. of Physics & Astronomy
>>> at:   Oak Ridge National Laboratory   865 207 2594
>>>       Oak Ridge, Tennessee           address@hidden
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Help-octave mailing list
>>> address@hidden
>>> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>>>
>>>
>>
>> I'm wondering if it is possible to use subplot command when I want
>> asymmetrical arrangement of subplots but not on a grid like the original
>> example above. For example if I have a figure and do
>> subplot(4,1,1);
>> subplot(4,1,2);
>> subplot(4,1,3);
>> subplot(4,1,4);
>>
>> I get 4 subplots equally spaced vertically along the page. I would like
>> to
>> have the first three subplots take 60% (20% each) of the page, and the
>> fourth subplot take the bottom 40% of the page.  What is the best way to
>> do
>> this?  Or to have other arrangements with arbitrary lengths/widths of
>> each
>> subplot (4 plots each taking up 10%, 15%, 20%, 55% of the page)?
>>
>> Thanks.
>>
>>
>> --
>> View this message in context:
>> http://octave.1599824.n4.nabble.com/subplots-tp1636694p2284979.html
>> Sent from the Octave - General mailing list archive at Nabble.com.
>> _______________________________________________
>> Help-octave mailing list
>> address@hidden
>> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>>
> 
>  figure
>  subplot(10,1,[1 2]), plot([0 1],[0 1])
>  hold on
>  subplot(10,1,[3 4]), plot([0 1],[0 1])
>  subplot(10,1,[5 6]), plot([0 1],[0 1])
>  subplot(10,1,[7 8 9 10]), plot([0 1],[0 1])
> 
> After typing, I realised I could have done (5, 1, ...
> 
> -- 
> /* andy buckle */
> 
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
> 
> 

Andy, that is a really great feature. Is there someone who writes the
documentation on this list? If so it would be good to add your example above
to the documentation with the explaination that for 

subplot(rows, cols, index)

index does not need to be an integer and can be an array of indexes 

-- 
View this message in context: 
http://octave.1599824.n4.nabble.com/subplots-tp1636694p2285422.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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