bugGNU Octave - Bugs: bug #38152, 3d plot of sphere appears squashed...

 
 

bug #38152: 3d plot of sphere appears squashed with "axis square equal"

Submitter:  John W. Eaton <jwe>
Submitted:  Wed 23 Jan 2013 06:40:08 PM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 08 Jun 2016 06:55:54 PM UTC, comment #5: 

Yes, I've been working with Dan Sebald to improve the gnuplot backend.  I'm marking this bug as fixed and closing.

Rik <rik5>
Group administrator
Wed 08 Jun 2016 06:28:26 PM UTC, comment #4: 

Checking with dev branch, it seems that this bug was fixed,
though the sphere is a little bit small.

Avinoam Kalma <avinoam>
Group Member
Mon 29 Feb 2016 12:48:34 AM UTC, comment #3: 

I tried the patch from Avinoam in comment #1 and the sphere still appears squashed in gnuplot 5.0.1.

Rik <rik5>
Group administrator
Sun 28 Feb 2016 04:24:10 PM UTC, comment #2: 

jwe's flattened sphere is confirmed with a recent development tip (2/28/16).  This is with gnuplot 4.6.6 and gnuplot 5.0.1.

Rik <rik5>
Group administrator
Wed 28 Jan 2015 08:38:58 PM UTC, comment #1: 

First step towards the solution.

It gives a better plot, but it gives the same treatment for "axis square" & "axis equal"

todo:
1. differetiate between "axis square" & "axis equal"
2. adjust _actual_axis_position_ (h) for 3D plot

(file #32930)

Avinoam Kalma <avinoam>
Group Member
Wed 23 Jan 2013 06:40:08 PM UTC, original submission:  

I expect the following code to plot a sphere.  With the fltk+opengl graphics toolkit, it appears spherical, but with gnuplot, it appears squashed in the Z dimension.  I'm using gnuplot 4.6 patchlevel 0.


delta = pi/40;
theta = 0:delta:pi;
phi = 0:2*delta:2*pi;
[phi, theta] = meshgrid (phi, theta);

r = 5 .* sin (theta);
x = r .* cos (phi);
y = r .* sin (phi);
z = 5 .* cos (theta);

surf (x, y, z)
axis square equal


John W. Eaton <jwe>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #32930:  __go_draw_axes__.patch added by avinoam (602B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by avinoam (Updated the item)
  • -email is unavailable- added by jwe (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-06-08 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2016-02-28 rik5 StatusNone Confirmed
    2015-01-28 avinoam Attached File- Added _go_draw_axes_.patch, #32930

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code