[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #62451] xlim([]) gives irritating error messag
From: |
Hartmut |
Subject: |
[Octave-bug-tracker] [bug #62451] xlim([]) gives irritating error message |
Date: |
Fri, 13 May 2022 05:51:54 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?62451>
Summary: xlim([]) gives irritating error message
Project: GNU Octave
Submitted by: hardy
Submitted on: Fri 13 May 2022 09:51:52 AM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Unexpected Error or Warning
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: 7.1.0
Discussion Lock: Any
Operating System: Any
_______________________________________________________
Details:
The following code
plot(1:10)
xlim([])
gives an irritating error message under Octave (7.1):
error: arg(1): out of bound 0 (dimensions are 0x0) (note: variable 'arg'
shadows function)
error: called from
__axis_limits__ at line 54 column 22
xlim at line 60 column 7
In Matlab this code also throws an error message, but it's much easier to
understand:
Error using xlim (line 31)
Limits must be a 2-element vector of increasing numeric values.
Could we improve our error message in xlim, in order to not confuse users in
this case?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62451>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #62451] xlim([]) gives irritating error message,
Hartmut <=