Re: Octave plotter for 3D shading plots ?
JH <[email protected]> Mon, 26 Sep 2005 14:29:47 +0200
| Newsgroups | gmane.comp.gnu.octave.graphics |
|---|---|
| Message-ID | <[email protected]> |
Petr Mikulik a écrit :
>> think the official plotter of octave is gnuplot. But in despites the
>> qualitys of gnuplot, it is not why I'm expecting, specially in 3D plots
>> and shading surfaces. I can't afford to obtain the same display-like
>> results of "mesh" that I had with matlab.
>
>
> Coloured filled surfaces work fine with the "with pm3d" mode. See
> screenshots (demo) on gnuplot web page.
>
> Further, surf(z) from octave-forge should work.
>
Yes, it works, but it's pretty awful, green and red faceted plot.
>> (you can't "rotate" with the mouse the mesh you made)
>
>
> You can, it works for many years already. Please upgrade to gnuplot 4.0
>
Sorry, I didn't know. But in fact, there must be a problem with my
octave-gnuplot installation
in octave, the commands :
> GNU Octave, version 2.9.3 (i686-pc-linux-gnu).
...
> octave:1> system('gnuplot --version')
> gnuplot 4.0 patchlevel 0
> ans = 0
> octave:2> x = [-pi:.1:pi]; y = x; z = cos(x).' * sin(y);
> octave:3> surf(z)
The versions I used :
> octave:7> OCTAVE_VERSION
> OCTAVE_VERSION = 2.9.3
> octave:8> OCTAVE_FORGE_VERSION
> ans = 20050613
produce a gnuplot 3d figure, witch I can't rotate (my mouse seems
doesn't make any effect to gnuplot). However, I try without octave,
directly under gnuplot, and it works (I can rotate a figure) !
Is someone could explain me why ? It seems I had a bad
install/configuration of octave.
Thanks
JH