bugGNU Octave - Bugs: bug #46617, Wrong labeling of Yticks

 
 

bug #46617: Wrong labeling of Yticks

Submitter:  None
Submitted:  Sun 06 Dec 2015 04:28:51 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Edwin de Koning Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.0.0
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 10 Dec 2015 04:43:25 PM UTC, comment #3: 

The gnuplot ytick issue is a duplicate of bug #39549, already reported so closing this bug.

Mike Miller <mtmiller>
Group Member
Tue 08 Dec 2015 05:36:27 AM UTC, comment #2: 

The second bug (with gnuplot) wasn't fixed yet, only the first one.

Avinoam Kalma <avinoam>
Group Member
Mon 07 Dec 2015 04:24:21 AM UTC, comment #1: 

Confirmed on the current stable version 4.0.0.

The good news is this has been fixed on the development branch.  If you need this fix immediately you can compile your own version of Octave direct from the sources, or wait until release 4.2.0 which will have this fix.

Rik <rik5>
Group administrator
Sun 06 Dec 2015 04:28:51 PM UTC, original submission:  

I have a program where the data is plotted and an algorithm determines the settings of the Y-axis. I also want to know what the Y-axis labels are. But I noticed that the "get(gca, 'YTick')" command responds a wrong answer.

Like this:


plot(1:10)
get(gca, 'YTick') % this one is correct
% ans =
%    0    2    4    6    8   10

v=axis; v(4)=11; axis(v)
get(gca, 'YTick') % this one is wrong
% ans =
%    0    2    4    6    8   10   12
%    Wrong: the number 12 is not displayed on the Y-axis.


Another fault is only generated with gnuplot:


graphics_toolkit("gnuplot")
plot(1:201, 6*ones(1,201));
hold on
get(gca, 'YTick')
% ans =
%   5.4000   5.6000   5.8000   6.0000   6.2000   6.4000   6.6000
%   Ok, this is good.

v = axis; v(3) = 0; v(4) = ceil(v(4)) + 1; axis(v)
grid on
get(gca, 'YTick')
% ans =
%   0   2   4   6   8
%   Wrong: the Y-axis shows: 0   1   2   3   4   5   6   7   8






Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by avinoam (Posted a comment)
  • -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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-12-10 mtmiller Open/ClosedOpen Closed
        Dependencies- Depends on bugs #39549
    2015-12-07 rik5 StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code