bugGNU Octave - Bugs: bug #51140, Octave: expecting scalar N, or...

 
 

bug #51140: Octave: expecting scalar N, or 2-/4-element vector DOM-ezsurf Error

Submitted by:  None
Submitted on:  Mon 29 May 2017 08:47:27 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: NoneAssigned to: None
Originator Name: Zelda GreyOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 4.2.0
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.

 

Wed 31 May 2017 08:55:06 PM UTC, comment #1:

In order to change the graphic properties associated with a plot object you need to have a handle to that plot object. Just ask for that handle in your code--It is the first output argument of ezsurf. Thus, this should get you close.

You can use

to find a list of graphic properties to change.

The category of this bug was marked as "Plotting with gnuplot", but it is actually a misunderstanding of how ezsurf works. I changed the category to "Octave function".

Rik <rik5>
Project Administrator
Mon 29 May 2017 08:47:27 PM UTC, original submission:

I need some kind of help about ezsurf as I understand from my research matlab fplot is equal to ezplot in octave. And I write a script

fx = @(x,y) x.*sin(y);
fy = @(x,y) -x.*cos(y);
fz = @(x,y) y;
ezsurf(fx, fy, fz,[-5 5 -5 -2],'--','EdgeColor','g')
hold on
ezsurf(fx, fy, fz,[-5 5 -5 -2],'EdgeColor','none')
hold off
if I able to run the script I expect to see the uploaded image(ezsurf).
When I run the script without "'--','EdgeColor','g'" etc it works well, here is my code and image (ezsurf2)
fx = @(x,y) x.*sin(y);
fy = @(x,y) -x.*cos(y);
fz = @(x,y) y;
ezsurf(fx, fy, fz,[-5 5 -5 -2])
hold on
ezsurf(fx, fy, fz,[-5 5 -5 -2])
hold off

How can I personalize it's color and mini shapes on the graph.
Thank you so much in advance

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 31 May 2017 08:55:06 PM UTCrik5CategoryPlotting with gnuplot=>Octave Function
      Open/ClosedOpen=>Closed
    Mon 29 May 2017 08:47:27 PM UTCNoneAttached File-=>Added ezsurf.png, #40811
      Attached File-=>Added ezsurf2.png, #40812

    Back to the top


    Powered by Savane 3.1-cleanup1