[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #46617] Wrong labeling of Yticks
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #46617] Wrong labeling of Yticks |
Date: |
Sun, 06 Dec 2015 16:28:52 +0000 |
User-agent: |
Opera/9.80 (X11; Linux x86_64; Edition Linux Mint) Presto/2.12.388 Version/12.16 |
URL:
<http://savannah.gnu.org/bugs/?46617>
Summary: Wrong labeling of Yticks
Project: GNU Octave
Submitted by: None
Submitted on: Sun 06 Dec 2015 04:28:51 PM UTC
Category: Plotting
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Edwin de Koning
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.0.0
Operating System: Any
_______________________________________________________
Details:
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
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?46617>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #46617] Wrong labeling of Yticks,
anonymous <=