[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Multiplot Clearing Problem
From: |
Ciotti, Louis A |
Subject: |
RE: Multiplot Clearing Problem |
Date: |
Tue, 13 Jul 2004 15:20:53 -0400 |
Have you tried to issue the clear plot command after you switch to the
6th subplot??
i.e.
subplot(2,3,6);
clearplot;
Lou
-----Original Message-----
From: Henry F. Mollet [mailto:address@hidden
Sent: Tuesday, July 13, 2004 2:44 PM
To: Dmitri A. Sergatskov
Cc: Octave_post
Subject: Re: Multiplot Clearing Problem
on 7/13/04 10:35 AM, Dmitri A. Sergatskov at address@hidden wrote:
> Henry F. Mollet wrote:
>> As each subplot requires "hold on" to produce the triangle
>> (blue) and one contour (grey), I have to "clear" between
>> each subplot or the "hold on" will apply to subsequent subplots.
>> I do this by plotting to a "dummy" subplot:
>> subplot (2,3,6) % clearing patch using different cols of Results
matrix
>> plot (Results(1:1,3),Results(1:1,6),"x").
>>
>
> May be I do not quite understand what you are trying to do, but in my
> (limited) experience with multiplot you really need to use a single
> line plot command, e.g.:
>
> plot(x1,y1,"x;Label1;",x2,y2,"o;Label2;",x3,y3,"-b;;", x4,y4,"-r;;")
>
>
>> Henry
>>
>
> Regards,
>
> Dmitri.
Sorry if I was not clear but I had hoped the pdf would help. What you
suggest is not what I want.
octave:8> plot
(Results(1:29,8),Results(1:29,9),"x",Results(30:56,8),Results(30:56,9),"
@33x
")
will produce one "subplot" as per attached pdf. However, the red and
blue
data need to be in different subplots as per original pdf subplots 1 and
2,
respectively (with same color as in different subplots). If I use
subplots,
then the first subplot would have all the red data. Ok so far. The next
subplot *should* have only the blue data but it will also replot the red
data because I need to use hold on to create each subplot. My trick was
to
clear from gnuplot memory the data used in the first/previous plot(s) by
plotting something entirely different to a dummy subplot. This worked
fine
for the first five subplots but at the end I'm stuck with an unwanted
dummy
subplot.
Henry
Henry
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- RE: Multiplot Clearing Problem,
Ciotti, Louis A <=