bugGNU Octave - Bugs: bug #44307, Qt plotting: "Autoscale"...


bug #44307: Qt plotting: "Autoscale" option

Submitter:  Philip Nienhuis <philipnienhuis>
Submitted:  Thu 19 Feb 2015 10:57:00 AM UTC
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Feature Request
Status:  Fixed Assigned to:  None
Originator Name:  Philip Nienhuis Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
* Mandatory Fields

Add a New Comment (Rich Markup)

Comment Type & Canned Response:


Tue 03 Mar 2015 07:49:15 PM UTC, comment #5: 

Works fine, thanks.

Closing this report.

Philip Nienhuis <philipnienhuis>
Project Member
Fri 27 Feb 2015 04:24:40 PM UTC, comment #4: 

I checked in the following changeset to add an autoscale button to the Qt figure window.


John W. Eaton <jwe>
Project Administrator
Fri 20 Feb 2015 12:43:43 PM UTC, comment #3: 

I filed a separate bug report for the 3D zooming (bug #44323)

Apologies for reporting about zooming/mouse actions in the wrong bug report; should have been bug #44304

Philip Nienhuis <philipnienhuis>
Project Member
Thu 19 Feb 2015 11:31:33 PM UTC, comment #2: 

For 2D-plots, it works fine now both in qt and fltk; both middle-click and the "A" button (fltk).

I found that for fairly complicated 3D plots, it doesn't do the actual autoscaling (I didn't note before, only now that I too a closer look I saw this): after zooming out, the plot isn't zoomed back in to "full data extent" (xlim/ylim matching X/Y data ranges), neither with middle click nor "A" in fltk.
With simple plots ("plot3 ([0 1], [2 3], [4 5])") it seems to work better.

Moreover, it turns out that in 3D-plots zooming only works on the XY-axes; the Z-axis isn't affected. The net effect is that 3D-plotted structures are stretched/compressed in the Z-direction when zooming.

Matlab (r2015a prerelease) zooms in continuously "isotropically" on 3D-plots by holding down the left button and moving the mouse upward or to the right, or left-click (stepwise); zooming out continuously by moving the mouse cursor left or down, or shift-left-click for stepwise zooming.
It has a right-click menu with a few choices:
- Zoom out (Shift-click)
- Reset to original view (which does what is says, for 3D too)
- Zoom options =>  - unconstrained, - horizontal zoom, - vertical zoom; the latter two only for 2D plots.

Philip Nienhuis <philipnienhuis>
Project Member
Thu 19 Feb 2015 05:32:52 PM UTC, comment #1: 

I agree an autoscale menu option would be useful.

Currently the middle mouse button is supposed to clear the zoom stack and resume autoscaling.  Does that do what you expect?  If so, then it should be easy enough to do the same for a menu item or toolbar button.

John W. Eaton <jwe>
Project Administrator
Thu 19 Feb 2015 10:57:00 AM UTC, original submission:  

In the fltk plot windows there's an "A" (Autoscale) option that resets plots to their initial zoom/pan state; it would be nice if Qt could have a similar option.

I use it quite often; it's very handy after clobbering up plots by a lot of zooming and panning (esp. 3D-plots).

Philip Nienhuis <philipnienhuis>
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 (Updated the item)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by philipnienhuis (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 project members can vote.





    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-03-03 philipnienhuis StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2015-02-28 rik5 StatusNone Ready For Test

    Back to the top

    Powered by Savane 3.9