That's a big step.  Something goes wrong in the projection when
the numbers are outside the range 0-1:

'type dot;pensize 5'plot ;/ |: +: #: i. 8  NB. double-size cube

'type dot;pensize 5'plot ;/ |: <: +: #: i. 8  NB. cube with vertices at +-1

It looks like the transformation matrix Tfm doesn't match the viewing
box; any ideas?

Henry Rich

 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Zach Reiter
> Sent: Friday, March 16, 2007 9:30 PM
> To: Programming forum
> Subject: Re: [Jprogramming] Need 3D point plot
> 
> Does the following modification to the definition of 
> plot3d_dot_jzplot_
> work?
> 
> plot3d_dot_jzplot_ =: 3 : 0
> 
> 'x y z'=. y { Data
> 
> dat=. 1 |: (x ,: y),"2 1 citemize z
> dat=.fit3d"2 dat
> dat=. ,"2 dat
> 
> rws=. #dat
> cls=. {:$dat
> clr=. getitemcolor #dat
> 
> rws=. 1
> 
> while. #dat do.
>   NB. drawcircle iDATA;({.clr);4;({.clr);1,.~ _2[\{.dat
>   drawdot iDATA;({.clr);PENSIZE;_2[\{.dat
>   dat=. }.dat
>   clr=. 1|.clr
> end.
> )
> 
> Try:
> 
>    cube=:#:i.8
>    'type dot;pensize 5'plot ;/|:cube
> 
> Cheers,
> Zach
> 
> On Fri, 16 Mar 2007 17:05:49 -0400, "Henry Rich" 
> <[EMAIL PROTECTED]>
> said:
> > I have a 3D dataset that I need to plot as a field of
> > 3D points.  It doesn't look like I can do this with
> > Plot, which is a real shame, because I just want something
> > that will quickly draw a 3D viewbox and plot a marker at
> > each point.  The marker or the point style would be perfect.
> > 
> > Am I missing something - is there a way to do this?
> > 
> > If not: is there any reason this couldn't be added to plot?
> > Could anyone give me a hint about where the changes would
> > need to go?
> > 
> > Henry Rich
> > 
> > 
> ----------------------------------------------------------------------
> > For information about J forums see 
> http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see 
> http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to