backend switching broken

Elias Pipping elias at pipping.org
Sat Jul 25 10:25:07 CDT 2009


On Thu, 23 Jul 2009 17:43:01 -0400
"John W. Eaton" <jwe at octave.org> wrote:

> On 23-Jul-2009, Elias Pipping wrote:
> 
> | On Thu, 23 Jul 2009 14:35:43 -0400
> | "John W. Eaton" <jwe at octave.org> wrote:
> | 
> | > On 14-Jun-2009, Elias Pipping wrote:
> | > 
> | > | --------
> | > | Bug report for Octave 3.2.0 configured for x86_64-pc-linux-gnu
> | > | 
> | > | Description:
> | > | -----------
> | > | 
> | > |   * Starting octave, running `backend("fltk")` and invoking plot
> | > |     yields a plot in fltk. Switching to gnuplot using
> | > |     `backend("gnuplot")` works, too -- the next plot will be
> done by | > |     gnuplot -- but switching back does not, i.e.
> `backend("fltk")` | > has |     no effect once gnuplot has been used. 
> | > 
> | > If I start a new Octave session and execute the commands
> | > 
> | >   backend ("fltk")
> | >   sombrero
> | >   backend ("gnuplot")
> | >   peaks
> | > 
> | > both surfaces are drawn in the figure 1 window using the fltk
> | > backend.  If I then do
> | > 
> | >   figure
> | > 
> | > the second figure window uses gnuplot.
> | 
> | That's not the problem I described. The problem I was seeing is
> being | unable to switch back to fltk once i've switched to gnuplot
> and drawn | something with it. No matter if I close all the figures
> or not.
> 
> The following works for me with the current sources and with 3.2.2:
> 
>   sombrero            # sombrero in gnuplot window
>   backend ("fltk")    # backend for next new figure is fltk
>   figure              # new fltk window opens
>   sombrero            # sombrero in fltk window
>   figure (1)          # switch back to gnuplot window
>   peaks               # peaks in gnuplot window
>   close all           # all windows closed
>   peaks               # peaks in new fltk window
>   close all           # all windows closed
>   backend ("gnuplot") # backend for next new figure is gnuplot
>   peaks               # peaks in gnuplot window
>   backend ("fltk")    # backend for next new figure is fltk
>   close all           # all windows closed
>   sombrero            # sombrero in fltk window
> 
> If there is some other problem you are seeing, can you give a precise
> list of commands that demonstrates the problem?
> 
> jwe

Okay, I see now where the problem is. I was doing

  backend("gnuplot")
  peaks 
  [ close gnuplot window ]
  backend("fltk")
  peaks # this opens a new gnuplot window

when I should've been doing

  backend("gnuplot")
  peaks 
  close all  
  backend("fltk")
  peaks # properly opens a new fltk window

So this isn't a bug, sorry.


-- Elias


More information about the Bug-octave mailing list