bugGNU Octave - Bugs: bug #54268, Plot: X Axis is shifted up out of...

 
 

bug #54268: Plot: X Axis is shifted up out of values range on the plot on Windows 10

Submitter:  None
Submitted:  Sun 08 Jul 2018 01:08:44 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Works For Me Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.4.0
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 16 Jul 2018 08:37:42 AM UTC, comment #4: 

Seems like I confused you: each data row has format which I showed you, but data value is different, not the same (not single point). I'll try to attach full data file here.

Anonymous
Sun 15 Jul 2018 05:35:40 AM UTC, comment #3: 

I can't reproduce this.  I made a file data.txt as you suggest that has 10 identical rows with the one line of data you suggested.  I've attached it for reference in case it helps.  I also took the code you posted and made an m-file out of it which is also attached.

When I run your code it plots just a single point, because everything has the same x,y value.

I can't reproduce this.  Closing report.



(file #44557, file #44558)

Rik <rik5>
Group administrator
Sat 14 Jul 2018 04:09:29 PM UTC, comment #2: 

The code is below. I checked again, issue is reproduced. Each row of data set looks like "34.62365962451796,78.0246928153426,0".

>> data = load('data.txt');
>> X = data(:, [1, 2]); y = data(:, 3);
>> pos = find(y == 1); neg = find(y == 0);
>> plot(X(pos, 1), X(pos, 2), "+k", X(neg, 1), X(neg, 2), "ok", "MarkerFaceColor", "y", "MarkerSize", 7, "LineWidth", 2);

Anonymous
Mon 09 Jul 2018 08:15:35 PM UTC, comment #1: 

Can you post the code that leads to the bad plot so we can attempt to replicate the issue.

Rik <rik5>
Group administrator
Sun 08 Jul 2018 01:08:44 PM UTC, original submission:  

Plotting on Windows 10 works unexpectedly: you can see in attachment that X axis is shifted up on some delta value upper than Y minimum.

Also you can see that I pointed mouse cursor on the real point (~30, ~31); mouse pointer is invisible on print screen; but the axis corner does not coincide with expected coordinates (~30, ~31).

Thank you!

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #44557:  data.txt added by rik5 (407B - text/plain)
file #44558:  bug54268.m added by rik5 (221B - text/x-matlab)
file #44521:  OctavePlotWin10Bug.png added by None (18KiB - image/png - Invalid axis on the plot)

 

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)
  •  

    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
    2018-07-15 rik5 Open/ClosedOpen Closed
    2018-07-15 rik5 Attached File- Added data.txt, #44557
        Attached File- Added bug54268.m, #44558
        StatusNeed Info Works For Me
    2018-07-09 rik5 StatusNone Need Info
    2018-07-08 None Attached File- Added OctavePlotWin10Bug.png, #44521

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code