octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #65641] 'view' misbehaves when given a vector


From: anonymous
Subject: [Octave-bug-tracker] [bug #65641] 'view' misbehaves when given a vector aligned with the X axis
Date: Thu, 25 Apr 2024 06:36:25 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?65641>

                 Summary: 'view' misbehaves when given a vector aligned with
the X axis
                   Group: GNU Octave
               Submitter: None
               Submitted: Thu 25 Apr 2024 10:36:25 AM UTC
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: Marco
        Originator Email: 
             Open/Closed: Open
                 Release: 9.1.0
         Discussion Lock: Any
        Operating System: GNU/Linux
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Thu 25 Apr 2024 10:36:25 AM UTC By: Anonymous
In a 3D plot, "view([1 0 0])" does the same thing as "view([0 -1 0])".
That is, it does not move the viewpoint on the X axis, but on the Y axis.

Passing "[-1 0 0]" does the expected thing. So it looks like it does not work
only for vectors aligned with X and directed in the positive direction.

To reproduce:

[x,y,z] = ellipsoid (0,0,0, 10, 5, 3);
figure; surf(x,y,z); axis equal;
view([0 -1 0])
view([1 0 0])     # does not change anything
view([1 0.001 0]) # to work around the bug


I made the ellipsoid's dimensions different on the X and Y axes to be able to
see when the viewpoint actually changes.

I can reproduce it with Octave 6.4.0 (on Ubuntu Linux) as well as the latest
9.1.0 (run from docker).







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65641>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]