help-octave
[Top][All Lists]
Advanced

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

Re: Controlling quality of 3d plot


From: Miroslaw Kwasniak
Subject: Re: Controlling quality of 3d plot
Date: Wed, 20 May 2009 23:41:19 +0200
User-agent: Mutt/1.5.9i

On Tue, May 19, 2009 at 04:26:35PM +0200, Oz Nahum wrote:
> Hi,
> Thanks for your answer,
> 
> You have two solutions:
> >- use dense sample or interpolated field
> I would be happy to know how.

Chage 
  [X,Y,Z]=meshgrid(-7:0.5:7,-7:0.5:7,-7:0.5:0);
to
  [X,Y,Z]=meshgrid(-7:0.1:7,-7:0.1:7,-7:0.1:0);

For interpolation see interp3 function.

> Also, I've learned that 'print -deps foo.eps' produces the
> same ugly looking graph, and it does not print the cube
> rotated if I rotate it.

I assume you have rotated the plot by mouse - octave doesn't
know about mouse-gnuplot interactions. If you choose view
angles by mouse you can replicate them using octave function
"view()" - then print produces expected image.

In my case gnuplot shows angles in bottom-left corner of
window, like this "view: 60.0000 30.000". Calling
view(60,90-30) in octave you get the same result.



reply via email to

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