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

Submitted by:  Muhali <muhali>
Submitted on:  Mon 27 Jan 2020 01:42:31 PM UTC  
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  5.1.0 Operating System:  Any

Add a New Comment (Rich Markup)

You are not logged in

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


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>
Project 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>
Project Member
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:

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)

    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.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    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.5