octave-maintainers
[Top][All Lists]
Advanced

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

Re: changes to graphics.cc and subplot.m


From: Stefan Mahr
Subject: Re: changes to graphics.cc and subplot.m
Date: Sat, 20 Jul 2013 15:16:56 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130623 Thunderbird/17.0.7

>> The behaviour of subplot with fltk frontend looks strange. Also, the
>> first fltk plot differs from the second.
>>
>> 1) gnuplot
>> graphics_toolkit gnuplot
>> subplot(2,1,1); plot(rand(10,1)); subplot(2,1,2); plot(rand(10,1))
>>
>> 2) fltk
>> graphics_toolkit fltk
>> subplot(2,1,1); plot(rand(10,1)); subplot(2,1,2); plot(rand(10,1))
>>
>> 3) fltk
>> graphics_toolkit fltk
>> subplot(2,1,1); plot(rand(10,1)); subplot(2,1,2); plot(rand(10,1))
>> subplot(2,1,1); plot(rand(10,1)); subplot(2,1,2); plot(rand(10,1))
>>
>> See attached the screenshot of gnuplot, fltk and fltk second plot. (from
>> left to right)
>>
>> If I use additional figure command before subplot, everything looks ok.
>> graphics_toolkit fltk
>> figure(1)
>> subplot(2,1,1); plot(rand(10,1)); subplot(2,1,2); plot(rand(10,1))
>> subplot(2,1,1); plot(rand(10,1)); subplot(2,1,2); plot(rand(10,1))
> 
> I'm not seeing a problem.
> 
> graphics_toolkit fltk
> close all
> subplot(2,1,1); plot(rand(10,1)); subplot(2,1,2); plot(rand(10,1))
> 
> 
> Then if I repeat the plot ...
> 
> subplot(2,1,1); plot(rand(10,1)); subplot(2,1,2); plot(rand(10,1))
> 
> Can you reproduce the problem when you begin with "close all"?
> 
> Ben
>

Did you restart octave first? Seems that subplot needs to be the first
plot-related command, otherwise the error doesn't occur. That's why it
works if figure(1) is executed before subplot.

Stefan


reply via email to

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