[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #34158] axis with x_min>x_max
From: |
Matthias Jüschke |
Subject: |
[Octave-bug-tracker] [bug #34158] axis with x_min>x_max |
Date: |
Sun, 28 Aug 2011 18:21:11 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20100101 Firefox/5.0 |
URL:
<http://savannah.gnu.org/bugs/?34158>
Summary: axis with x_min>x_max
Project: GNU Octave
Submitted by: maju
Submitted on: Sun 28 Aug 2011 06:21:10 PM GMT
Category: Plotting with gnuplot
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.4.2
Operating System: GNU/Linux
_______________________________________________________
Details:
Using axis with x_min>x_max the x-axis is set to [0,1].
Example:
plot(1:2)
axis([2 1 1 2])
This could be solved asking in axis.m in
function curr_axis = __axis__ (ca, ax, varargin)
...
% ask instead of
if (ax(i) == ax(i+1))
error ("axis: limits(%d) cannot equal limits(%d)", i, i+1);
endif
% for
if (ax(i) <= ax(i+1))
error ("axis: limits(%d) has to be less than limits(%d)", i, i+1);
endif
Alternativly, the values could be swapped (and the axis direction can be
changed).
The same problem occurs using xlim.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?34158>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #34158] axis with x_min>x_max,
Matthias Jüschke <=