help-octave
[Top][All Lists]
Advanced

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

Re: Subplot and Legend


From: Juan Pablo Carbajal
Subject: Re: Subplot and Legend
Date: Thu, 19 Apr 2012 09:55:04 +0200

On Wed, Apr 18, 2012 at 7:35 PM, pantxo diribarne
<address@hidden> wrote:
> Hi,
>
> Does this do the job?
>
> ## styles to be used
> styles = {"-or", "-*k", ":^b", "-vg"};
>
> ## real subplot data
> for ii = 1:4
>   subplot (2, 2, ii);
>   plot(1:10, styles{ii})
> endfor
>
> ## dummy axes
> tmp = axes (); hold on;
> dumx = -1000;
> dumy = -1000;
>
> for ii = 1:4
>   plot(dumx, dumy, styles{ii})
> endfor
>
> legend (styles, "location", "northoutside", "orientation", "horizontal")
> axis ([1 2 1 2])
> axis ("off")  ## hides the axes lines only
>
> Pantxo
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave
>

Hi,

Thanks for all the answers. I will try the copy obj solution, looks
like the most "professional".

@Pantxo : Yeah! it does it. Thanks for the trick.

-- 
M. Sc. Juan Pablo Carbajal
-----
PhD Student
University of Zürich
http://ailab.ifi.uzh.ch/carbajal/


reply via email to

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