bugGNU Octave - Bugs: bug #46654, Quirks with closing Figures and...

 
 

bug #46654: Quirks with closing Figures and updating Figure sizes (gnuplot)

Submitted by:  Ceral Paquet <octavebugs>
Submitted on:  Thu 10 Dec 2015 02:21:45 PM UTC  
 
Category: Plotting with gnuplotSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: Wont FixAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 16 Dec 2015 01:49:58 AM UTC, comment #4:

I discussed the topic of providing size/position control of gnuplot's figures with the developers several years ago. The conclusion was that it may be possible to inquire about the position of the figures, but changing the position was essentially a show stopper.

I'm not expecting Octave's support of gnuplot to disappear anytime soon. It is very useful for latex related graphics.

Ben Abbott <bpabbott>
Project Member
Wed 16 Dec 2015 01:36:30 AM UTC, comment #3:

Has there been an attempt to get the Gnuplot folk to provide greater external control?

It is a shame to have too many competing open source projects for plotting, and I think that use by Octave has been a big driver for Gnuplot to be a good package.

$0.02

Lachlan Andrew <lachlan>
Project Member
Sun 13 Dec 2015 02:01:39 AM UTC, comment #2:

These are both features of using gnuplot. Octave has no direct control over gnuplot figure windows after they have been created. This lacking was a major motivation for introducing native OpenGL graphics toolkits.

For case 1, closing a gnuplot window by clicking [X] is not an event that Octave is able to detect. Thus, figure (1) still exists (as far as Octave knows. Thus,

Is equivalent to

In each case, Octave still has two figures open and the findobj() command will return

For case 2, there is no mechanism for Octave to resize a gnpuplot window after it has been created. It is also not possible for Octave to determine the size of gnuplot windows. Meaning that if the mouse is used to resize the gnuplot window, Octave will be unaware of the change.

It is possible to specify a window's position and size when it is created. This can be done by specifying the figure's "position" when it is created.

This behavior is OS independent and has been addressed by the introduction of the OpenGL toolkits. Thus, I'm marking this as "won't fix".

Ben Abbott <bpabbott>
Project Member
Thu 10 Dec 2015 04:30:06 PM UTC, comment #1:

Confirmed with gnuplot, these are both gnuplot-specific issues. Opening, closing, and resizing figures works correctly for me with fltk or qt.

Mike Miller <mtmiller>
Project Administrator
Thu 10 Dec 2015 02:21:45 PM UTC, original submission:

Case 1.

close all; figure;

This opens "Figure 1".
Now close the figure with [x] and type figure again.
The new figure is "Figure 2". Typing figure(1) does not bring the original figure back but close(1); figure(1) does.

Problem: [x] should behave the same as close;

Case 2.

close all
h=figure(1); set(h,'Position', [60, 600, 400, 330]);
plot(1:10)
h=figure(1); set(h,'Position', [60, 600, 1400, 330]);
plot(1:20)

The figure size is not updated to the larger width 1400.

Problem: once a figure is created, it can't be resized.

BTW my graphics backend is gnuplot. I know this is legacy but I can't use the newer graphics on this computer - the libraries seem to conflict with the GPU (way beyond my skill level).

octave:84> graphics_toolkit
ans = gnuplot

Ceral Paquet <octavebugs>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by lachlan (Posted a comment)
  • -unavailable- added by bpabbott (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by octavebugs (Submitted the item)
  •  

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 16 Dec 2015 01:49:58 AM UTCbpabbottOpen/ClosedOpen=>Closed
    Sun 13 Dec 2015 02:01:39 AM UTCbpabbottStatusConfirmed=>Wont Fix
      Operating SystemGNU/Linux=>Any
    Thu 10 Dec 2015 04:30:06 PM UTCmtmillerCategoryNone=>Plotting with gnuplot
      Item GroupNone=>Incorrect Result
      StatusNone=>Confirmed
      Release4.0.0=>dev

    Back to the top


    Powered by Savane 3.1-cleanup1