bugGNU Octave - Bugs: bug #44011, setting visible property on call...


bug #44011: setting visible property on call to plot function creates figure window

Submitted by:  CarnĂ« Draug <carandraug>
Submitted on:  Thu 15 Jan 2015 11:52:33 AM UTC  
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  3.8.2 Operating System:  Any

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Thu 15 Jan 2015 09:36:38 PM UTC, comment #1: 

This is the correct behavior.  When you call a graphics object routine and add PROPERTY/VALUE pairs those parameters are passed to the object being created.  The example code uses plot whose base graphics object is a line.  You can check this with the following code.

h = plot (1:10, "visible", "off");
get (h, {"type"; "visible"})
ans =
  [1,1] = line
  [1,2] = off

If you need an invisible figure you will have to start by creating the invisible figure object.

Rik <rik5>
Project Administrator
Thu 15 Jan 2015 11:52:33 AM UTC, original submission:  

The following works nicely to create plots without creating actual figure windows:

figure ("visible", "off");
plot (sin (1:0.1:50))

However, setting the visible property in the arguments to plot, will still create a window:

plot (sin (1:0.1:50), "visible", "off");

The problem of this is that creating a window (even if empty), with graphics_toolkit and no actual graphics server, it will set term to dumb with a empty window.

Carnë Draug <carandraug>
Project Member


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

Attach Files:

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 carandraug (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-01-15 rik5 Open/ClosedOpen => Closed

    Back to the top

    Powered by Savane 3.5