octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #59370] Plotting produces wrong output or take


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #59370] Plotting produces wrong output or takes long time, depending on graphics toolkit
Date: Wed, 28 Oct 2020 11:41:11 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36 Edg/86.0.622.51

Follow-up Comment #5, bug #59370 (project octave):

In contrast to the other graphics toolkits, gnuplot is a separate program.
The link from Octave to gnuplot is a one-way pipe. So, Octave has no way of
knowing whether a gnuplot figure was closed (or resized or whatever...).
The graphics toolkit of an existing figure cannot be changed after it is
created.
When you change from gnuplot to a different graphics toolkit, you have to
close the gnuplot figure explicitly (either with `close (figure_handle)` or
with `close all`). Closing the figure alone does not help.

>From what you describe, I guess you are accidentally re-using the gnuplot
figure after you changed to a different graphics toolkit.

Since commands to gnuplot are sent using a pipe, this can be slow, especially
when drawing lots of objects. Also it might take some time for gnuplot to load
when you first use it.
Plotting the simple line from comment #0 should be fast though.

Is that consistent with what you observe?

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59370>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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