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

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

[Octave-bug-tracker] [bug #59731] wrong colorbar length when aspect rati


From: Hg200
Subject: [Octave-bug-tracker] [bug #59731] wrong colorbar length when aspect ratio is manual
Date: Sat, 19 Dec 2020 11:05:34 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:82.0) Gecko/20100101 Firefox/82.0

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

                 Summary: wrong colorbar length when aspect ratio is manual
                 Project: GNU Octave
            Submitted by: hg200
            Submitted on: Sat 19 Dec 2020 04:05:33 PM UTC
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Hg200
        Originator Email: 
             Open/Closed: Open
                 Release: 6.1.0
         Discussion Lock: Any
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

Run following code and compare with Matlab. I have attached also a screenshot
for comparison.

++
hax = axes ();
[xx, yy] = meshgrid (-20:.1:20, -20:.1:20);
r = sqrt ((xx).^2 + (yy).^2);
zz =  sin (r) ./ r;
surf (xx, yy, zz, 'edgecolor', 'none');
daspect ([1, 1, 1]);
hcb = colorbar;
get (hcb, 'position')
--

The Matlab output for "hcb" is

++
0.8338    0.1100    0.0381    0.8150
--

I suspect the code in "calc_cbar_position" around line 600 but haven't had a
closer look at this.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 19 Dec 2020 04:05:33 PM UTC  Name: mat_vs_oct.jpg  Size: 33KiB   By:
hg200

<http://savannah.gnu.org/bugs/download.php?file_id=50521>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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