A while back I reported that the markersize option wasn't working with
plot.
http://www.jsoftware.com/pipermail/general/2007-August/030707.html

I can now add that when using pd rather than plot it does work but its
display is delayed until the subsequent plot. Copy the following to a
script file, load it and then follow the instructions in the Note to
reproduce.

==== markersize.ijs ====

require 'stats plot'

mkgraph=: 3 : 0
   'pnsz mksz'=. 8!:0 y
   xs=. /:~ >:[EMAIL PROTECTED]
   ys=. xs+ 7* [EMAIL PROTECTED]
   ysPredict=. (1 lsfit xs,:ys)  +/ .*  |: xs^"0 1 i.2
   pd 'new'
   pd 'type marker;markersize ',mksz,';color red'
   pd xs;ys
   pd 'type line;color purple;pensize ',pnsz
   pd xs;ysPredict
   pd 'show'
)

Note 'Instructions'
To see the delayed markersize change 
run (ctrl+r) each of the following lines in 
sequence and note the changes.
   mkgraph 2 2 NB. line size 2 marker size 1 (default)
   mkgraph 2 2 NB. line size 2 marker size 2
   mkgraph 1 1 NB. line size 1 marker size still 2
   mkgraph 1 1 NB. line size 1 marker size now 1
   mkgraph 1 2 NB. line size 1 marker size still 1
   mkgraph 1 2 NB. line size 1 marker size now 2
   mkgraph 1 3 NB. line size 1 marker size still 2
   mkgraph 1 1 NB. line size 1 marker size now 3
)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to