Controlling quality of 3d plot

Miroslaw Kwasniak mirek at zind.ikem.pwr.wroc.pl
Wed May 20 16:41:19 CDT 2009


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.



More information about the Help-octave mailing list