dim, 03 Jan 2010, Sherlock Ric skribis:
> > From: Devon McCormick
> > 
> > Has anyone succeeded in getting a 3D plot in 7.01?
> 
> Sure. For example this wiki example works fine.
> 
> http://www.jsoftware.com/jwiki/Studio/Plot#A3DFunctionPlot
> 
> The only changes required are in the last line. The reason they are required 
> is that the jengine doesn't include wd & gl2 functionality, so you need to 
> specify to output to pdf (note that jconsole in j602 has the same issue). The 
> jpdf command that ships with jhs is just a cover for the plot command that 
> forces the output to be pdf rather than gl2 or gtk for Linux.
> 
> 
>    gamma=: !@<:
>    real=: {...@+.
>    x=: steps _3.5 4.5 40
>    y=: steps _1 1 40
>    z=: real gamma x j./ y
>    dat=: _3 >. 12 <. Z
>    'type surface;noaxes;viewpoint _1 _2.5 1' jpdf dat

IMO it would be more convenient to view inside the browser frontent by
first converting pdf output to jpeg or png.
eg.
convert foo.pdf bar.jpg

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to