help-octave
[Top][All Lists]
Advanced

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

Re: 3 D plots


From: Ben Abbott
Subject: Re: 3 D plots
Date: Tue, 27 Mar 2012 08:44:31 -0400

On Mar 27, 2012, at 8:14 AM, Doug Stewart wrote:

> 
> 
> On Tue, Mar 27, 2012 at 2:20 AM, asha g <address@hidden> wrote:
> 
> 
> 
> No no no!!!!
> 
> Sombrero is a Spanish name for hat. This name is used for the M file because 
> the surface drawn by the math function used in the M file, looks like a hat.
> 
> The fact that you can rotate the hat by clicking and dragging it,  means that 
> you should be able to do the same thing with your plot, not the eps file. You 
> have to rotate your picture before you save it to an eps file.
> 
> You can rotate it 2 different ways.
> 1) 
>  See the function view
>  help view
>       see also the plotting 3 D section in the manual
>               (http://www.network-theory.co.uk/docs/octave3/octave_159.html)
>  If after you plot the data you then run:
>  view(30,45) it will rotate the picture to a view angle of 30 degrees rotated 
> and  45 degrees up.
> 
>  2)
>      Rotate it with the mouse.
> 
> With the sombrero picture it should rotate reasonably fast, but with your 
> plot it will be slow, because you are plotting a very large data set.
> 
> HTH 
>  
> 
> 3 D plot is working finally. Now I want it only in black instead of colors. 
> What do I do to get that ?
> Thanks
> Asha 
> 
> 
> 
> You can set the colormap.
> try help colormap
> 
>  Here are some options for colors   (maps):
>         autumn 
>         bone 
>         cool 
>         copper 
>         flag 
>         gray 
>         hot 
>         jet 
>         ocean 
>         pink 
>         prism 
>         rainbow 
>         spring 
>         summer 
>         winter 
> 
> 
> try:
> 
> colormap (gray)
> 
> -- 
> DAS

Or just

        colormap ([1 1 1])

Ben



reply via email to

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