logo       

Re: subplot/semilogy error: msg#00039

gnu.octave.bugs

Subject: Re: subplot/semilogy error

On 24-Apr-2005, Stefan van der Walt <stefan@xxxxxxxxx> wrote:

| It works here after I set
|
| automatic_replot = 0
|
| Regards
| Stefan
|
| On Fri, Apr 22, 2005 at 06:49:57AM -0500, Karsten Trulsen wrote:
| >
| > Bug report for Octave 2.1.69 configured for i686-pc-linux-gnu
| >
| > Description:
| > -----------
| >
| > The sequence of commands below produces two plots.
| > The lower plot contains the graph of the upper plot,
| > which it should not.
| >
| > Repeat-By:
| > ---------
| >
| > subplot(2,1,1)
| > axis ([0 2 0 3])
| > plot ([0 1], [1 1], 'b')
| >
| > subplot(2,1,2)
| > axis([0 2 0.1 3])
| > semilogy ([0 2], [1 2], 'r')

I think the way to fix this problem is to modify the internal plotting
routines to count the lines in each subplot area. Then we can know to
avoid issuing a replot command before any lines have been drawn in a
subplot area. There should probably also be one of these count
variables for each plot window. Currently, we only keep an overall
line count for all plots in all windows.

jwe



-------------------------------------------------------------
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
-------------------------------------------------------------




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise