[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #39393] plotyy log scale results in linear tic
From: |
Ronald |
Subject: |
[Octave-bug-tracker] [bug #39393] plotyy log scale results in linear ticks |
Date: |
Tue, 02 Jul 2013 07:02:42 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0 |
URL:
<http://savannah.gnu.org/bugs/?39393>
Summary: plotyy log scale results in linear ticks
Project: GNU Octave
Submitted by: revdmeer
Submitted on: Tue 02 Jul 2013 07:02:41 GMT
Category: Plotting
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.6.4
Operating System: Any
_______________________________________________________
Details:
By default a plotyy results in linear axes. This can be changed to logarithmic
e.g. with:
set(ax,'XScale','log');
In the fltk backend the ticks will remain linear instead of logarithmic. In
the gnuplot backend the visual result is correct. However when getting the
XTick values from the axis with e.g.:
get(ax(1),'XTick')
... still gives the linear values, instead of the logarithmic values.
To reproduce with the fltk backend:
graphics_toolkit fltk
figure
[ax, h1, h2]=plotyy(1:100,1:100,1:100,(1:100)/2)
set(ax(1),'XScale','log');
set(ax(2),'XScale','log');
The XTick position are now linear, but they should be logarithmic.
To reproduce with the gnuplot backend:
graphics_toolkit gnuplot
figure
[ax, h1, h2]=plotyy(1:100,1:100,1:100,(1:100)/2)
set(ax(1),'XScale','log');
set(ax(2),'XScale','log');
get(ax(1),'XTick')
ans =
0 20 40 60 80 100
get(ax(1),'XTickLabel')
ans =
{
[1,1] = 0
[1,2] = 20
[1,3] = 40
[1,4] = 60
[1,5] = 80
[1,6] = 100
}
Now the plot is visually correct, with XTick labels at 1, 10 and 100. However
answer from the above get commands still incorrect.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?39393>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #39393] plotyy log scale results in linear ticks,
Ronald <=