Items 1-4 given below have been fixed.  (Item 5 might
be fixed too, but I am working only on the function plotter).

1. Functions are now executed in the locale that plot
 is called from 

2. The error in the 3-number form of the interval has
  been fixed

3. SINGTOLER and cFUNCRES are now used properly (SUBDTOLER
  of 1 will give you a blank display, but you can look
  at the results from higher numbers)

4. 3-D function plot now properly defaults to surface plot.

These fixes will be in an upcoming beta.

Henry Rich

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Markus 
> Schmidt-Groettrup
> Sent: Tuesday, August 01, 2006 3:17 PM
> To: [email protected]
> Subject: [Jgeneral] Graphics with J
> 
> Reading the graphics Chapter of Henry Rich, J for C
> I tried some functions and got different problems:
> 
> 1.
>       plot _4 4 ; 'sin'  NB. works fine
>       P1 =: (%@ (3 0 _1 & p.))   NB. defines reciprocal of a 
> polynomial
>       plot _4 4 ; 'P1'
> |value error: P1
> |   {.''`(    13 :('(',(>y),') y')f.)
> 
> problem seems to be that P1 must be defined in the z-locale:
> 
>     P2_z_ =: (%@ (3 0 _1 & p.))
>     plot _4 4 ; 'P2'  NB. works fine
> 
> or
>    P3 =: '(%@ (3 0 _1 & p.))'
>    plot _4 4 ;  P3   NB. works as well
> 
> any ideas to do it better ?
> 
> 2.
>    plot (2 2$0 1 2 3);'sin'  NB. works
>    plot 0 1 10 ;'sin'  NB. 10 points between 0 and 1
> |index error: plotsubd
> |   intvl=.0 _,."1-~/\"1(>2    {"1 d){"0 1(0,.{:@$@>1{"1 
> d),"0(mtone1,.mtonen)<.&.(1 _1&*"1)quintiles
> text says that 3 parameters describe intervall and number of points
> 
> 3.
> With    p1 =: '(%@ (3 0 _1 & p.))'
> tried to use singularity tolerance
> 
> 'singtoler 1' plot _4 4 ; p1
> 
> no effect can be seen when choosing 1 or 10 or other number
> 
> 4. sombrero Funktion
> instead of:
>    x =. y =. steps _4 4 100
>    f =. 4 : '(cos r) % 1 + r =. x +&:*: y'
>    plot x ; y ; x f"0/ y
> use:
>    plot _4 4 100 ; _4 4 100 ; 'f'
> |value error: f
> |   {.''`(    13 :('(',(>y),') y')f.)
>     f =.  '(cos r) % 1 + r =. x +&:*: y'
>    plot _4 4 100 ; _4 4 100 ; f
> Plot is shown along the diagonal of the x-y definition region and 
> different from the above
> 
> 5.
> pd 'isi 1000 1000'
> same as
> ps 'isi 100 100'
> namely the size the plot-window had before
> 
> 
> Using
>    9!:14 ''
> j601/beta/2006-04-24/18:35
>    9!:12 '' NB. Windows32 XP
> 6
> 
> Thanks for your help, Markus
> 
> ----------------------------------------------------------------------
> 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