bugGNU Octave - Bugs: bug #58499, Axis Property xaxislocation has an...

 
 

bug #58499: Axis Property xaxislocation has an incorrect value in its description

Submitter:  Stanley Normile <meche>
Submitted:  Thu 04 Jun 2020 04:52:00 PM UTC
   
 
Category:  Documentation Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Documentation
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * other Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 04 Jun 2020 06:18:23 PM UTC, comment #1: 

Thanks for your report. I guess your search engine lead you to an obsolete documentation: you are referencing Octave 4.0.1 but the message you get says you are using a more recent version (BTW, why did you put "other" in the "release" field?).

Here is a link to the latest doc:

https://octave.org/doc/v5.2.0/Axes-Properties.html#Axes-Properties


From the GUI, if you are using it, you can access the correct doc using the command

doc "axes properties"


I'll close this report as invalid.

Pantxo Diribarne <pantxo>
Group Member
Thu 04 Jun 2020 04:52:00 PM UTC, original submission:  

The axis properties xaxislocation and yaxislocation documented here: https://octave.org/doc/v4.0.1/Axes-Properties.html list the possible options as:

xaxislocation: {"bottom"} | "top" | "zero"
yaxislocation: {"left"} | "right" | "zero"

The following code sets the xaxislocation to "zero"


figure
plot([0 1],[0 0])
axis([-1 1 -1 1])
grid on
ax = gca;
set(ax, "xaxislocation", "zero");


It produces the error:
error: invalid value = zero

Running the above code with the value "origin" used instead of "zero" produces the desired result. The correct options for xaxislocation should be:

xaxislocation: {"bottom"} | "top" | "origin"
yaxislocation: {"left"} | "right" | "origin"

Stanley Normile <meche>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by meche (Submitted the item)
  •  

    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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-06-04 pantxo StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code