bugGNU Octave - Bugs: bug #66243, graphics_toolkit...

 
 

bug #66243: graphics_toolkit ("gnuplot") may have no effect

Submitter:  None
Submitted:  Sun 22 Sep 2024 03:56:00 PM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  3 - Low Item Group:  Regression
Status:  Confirmed Assigned to:  None
Originator Name:  Carlos Silva Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * 9.2.0
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 18 Oct 2024 08:27:25 PM UTC, comment #4: 

Regression happened between versions 5 and 6.  This is low priority, but I agree that it is also annoying.

Rik <rik5>
Group administrator
Mon 23 Sep 2024 02:52:32 PM UTC, comment #3: 

I would suggest a slightly higher priority, if only for the reason that while we no longer actively support the individual functions and nuances of using the gnuplot toolkit, we still generally expect it to turn on.  And since we have a method of running octave without qt, it would make sense to figure out why in that mode it doesn't do so. Then, of course, whether the specific output of gnuplot (and apparently fltk) commands are correct falls within bounds of the warning.

Nicholas Jankowski <nrjank>
Group Member
Mon 23 Sep 2024 09:24:17 AM UTC, comment #2: 

To complement Dmitri's comment, octave-cli is called when one wants to use Octave without Qt, i.e. using the "octave --no-gui-libs" option. With this option I can confirm the bug, i.e., calling "graphics_toolkit gnuplot" does not work until a first FLTK figure has been open and closed:


octave:1> available_graphics_toolkits ()
ans =
{
  [1,1] = fltk
  [1,2] = gnuplot
}

octave:2> graphics_toolkit("gnuplot");
warning: using the gnuplot graphics toolkit is discouraged

The gnuplot graphics toolkit is not actively maintained and has a number
of limitations that are unlikely to be fixed.  Communication with gnuplot
uses a one-directional pipe and limited information is passed back to the
Octave interpreter so most changes made interactively in the plot window
will not be reflected in the graphics properties managed by Octave.  For
example, if the plot window is closed with a mouse click, Octave will not
be notified and will not update its internal list of open figure windows.
The qt toolkit is recommended instead.
octave:3> plot (1:10)
warning: using the fltk graphics toolkit is discouraged

The FLTK graphics toolkit is not actively maintained and has a number
of limitations that are unlikely to be fixed.
The qt toolkit is recommended instead.
octave:4> close all
octave:5> graphics_toolkit("gnuplot");
octave:6> plot (1:10)  ## Finally shows a Gnuplot figure window


Marking as "low" priority since using the Gnuplot toolkit has been discouraged for a while, and changing the title to better reflect the actual bug.

Pantxo Diribarne <pantxo>
Group Member
Sun 22 Sep 2024 07:58:46 PM UTC, comment #1: 

"octave-cli" is not meant to be used by end-users.
"octave" should starts thee cli version.
"octave --gui" should start gui version.

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Sun 22 Sep 2024 03:56:00 PM UTC, original submission:  

Hi all,

I have the following line in my ~/.octaverc

graphics_toolkit("gnuplot");

However, when I start octave-cli, it uses the FLTK backend and not gnuplot.

If, after starting octave-cli, I set graphics_toolkit("gnuplot") in the command line, it works as it should.

Moreover, if I change the ~/.octaverc to the following lines:

warning("off","Octave:fltk-graphics");
figure; close;
graphics_toolkit("gnuplot");

It works as it should, i.e., it selects gnuplot from the start.

Finally, it is worth to point out that 'octave --no-gui' selects the correct backend without the 'figure; close;' trick.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by nrjank (Posted a comment)
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by dasergatskov (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-09-23 pantxo Priority5 - Normal 3 - Low
        StatusNone Confirmed
        Summarygraphics_toolkit + gnuplot graphics_toolkit ("gnuplot") may have no effect
    2024-09-23 pantxo CategoryPlotting Plotting with gnuplot

    Back to the top

    Powered by Savane 3.14-f13d.
    Corresponding source code