bugGNU Octave - Bugs: bug #35271, plot3 for x,y,z from meshgrid is...

 
 

bug #35271: plot3 for x,y,z from meshgrid is incorrect

Submitted by:  None
Submitted on:  Mon 09 Jan 2012 10:29:50 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: Ben Abbott <bpabbott>
Originator Name: Originator Email: -unavailable-
Open/Closed: ClosedRelease: 3.4.3
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 10 Jan 2012 01:34:10 AM UTC, comment #5:

Done.

http://hg.savannah.gnu.org/hgweb/octave/rev/b33589ef9213

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Tue 10 Jan 2012 01:25:48 AM UTC, comment #4:

You have a typo, "more the two", but otherwise seems fine to me.

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Tue 10 Jan 2012 12:44:01 AM UTC, comment #3:

I've attached a changeset (first attempt)

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Mon 09 Jan 2012 11:39:08 PM UTC, comment #2:

I checked Matlab R2011b

I don't have a particular preference. Should we be error compatible with ML, or might Octave convert ND arrays to 2D in this case?

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Mon 09 Jan 2012 10:51:28 PM UTC, comment #1:

I don't understand. What was the output you expected? plot3 isn't suppsed to work with higher-dimensional arrays.

I suppose the problem here is that plot3 didn't error out as it should have?

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Mon 09 Jan 2012 10:29:50 PM UTC, original submission:

x=[1,2,3,4,5,6,7,8,1,2];
y=[2,4,1,2,7,8,6,4,2,1];
z=[7,6,1,8,4,2,8,9,2,0];

dxx=linspace(min(x),max(x),50);
dyy=linspace(min(y),max(y),50);
dzz=linspace(min(z),max(z),50);

[xi,yi,zi]=meshgrid(dxx,dyy,dzz);

plot3(xi,yi,zi)

% PLOTS ALL "z" as 0!!

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #24792:  changeset.patch added by bpabbott (1KiB - application/octet-stream - first attempt)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bpabbott (Posted a comment)
  • -unavailable- added by jordigh (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 10 Jan 2012 01:34:10 AM UTCbpabbottStatusConfirmed=>Fixed
      Assigned toNone=>bpabbott
      Open/ClosedOpen=>Closed
    Tue 10 Jan 2012 12:44:26 AM UTCbpabbottAttached File-=>Added changeset.patch, #24792
    Mon 09 Jan 2012 11:39:08 PM UTCbpabbottStatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1