bugGNU Octave - Bugs: bug #57677, Finished scatter plot does not...

 
 

bug #57677: Finished scatter plot does not have correct xlim, ylim until figure size is changed

Submitter:  Muhali <muhali>
Submitted:  Mon 27 Jan 2020 01:42:31 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 10 May 2020 05:36:22 PM UTC, comment #4: 

I can confirm that this works correctly now.  Marking as fixed and closing report.

Rik <rik5>
Group administrator
Sat 09 May 2020 07:33:45 PM UTC, comment #3: 

This works correctly for me for a build with the patches for bug #58282. These patches replace the previous implementation (that uses patches in hg groups) with a dedicated scatter graphics object.

So the issue might also be with graphics objects in hg groups.

Markus Mützel <mmuetzel>
Group administrator
Mon 27 Jan 2020 07:20:10 PM UTC, comment #2: 

Confirmed as well on Linux.

This is likely related to a long-standing bug with updating graphic plots.  drawnow() is not sufficient to force the axes to update, and so slightly changing the figure window size with the mouse is one possibility.  Or one can algorithmically turn off/on updaters with something like


set (gca, "xlimmode", "manual", "ylimmode", "manual");
set (gca, "xlimmode", "auto", "ylimmode", "auto");


Someone could also dig in to scatter.m and _scatter_.m.  It is possible that updating of the axes is disabled while potentially hundreds of patch objects are added, and then only turned on again at the end.  And somehow this isn't working.

Rik <rik5>
Group administrator
Mon 27 Jan 2020 03:14:57 PM UTC, comment #1: 

I can confirm this bug with 5.1.0 and 5.1.90 on Windows.
The axes snap into the correct limits once I resize the figure by the tiniest amount.

Markus Mützel <mmuetzel>
Group administrator
Mon 27 Jan 2020 01:42:31 PM UTC, original submission:  

In this example


N = [10100 10300] ;
x = N(1):N(2) ;
y = ones(1, N(2)-N(1)+1) ;

scatter(x, y, 5) ;


the x axis is incorrectly placed; it should be centered near 10200 (as in Matlab).

Muhali <muhali>

 

(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 mmuetzel (Posted a comment)
  • -email is unavailable- added by muhali (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-05-10 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2020-05-09 mmuetzel Release5.1.0 dev
    2020-01-27 rik5 Summaryscatter puts wrong x-axis Finished scatter plot does not have correct xlim, ylim until figure size is changed
    2020-01-27 mmuetzel StatusNone Confirmed
        Operating SystemGNU/Linux Any

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code