I also found there's a 'stick' plot:

pd 'reset'
pd 'type line'
pd (i.10); 5+*:i.10
pd 'type stick'
pd 'color red'
pd 90 (7}) 10$0
pd'show'


On 8 Mar 2016, at 21:12, Ben Gorte - CITG wrote:

Perhaps a bit clumsy ...

pd 'reset'
pd (i.10); 5+*:i.10
pd 5 5;0 100
pd 'show'

... but if you wrap it in a verb, nobody will notice

Ben

________________________________________
From: Programming [[email protected]] on behalf of Ryan Eckbo [[email protected]]
Sent: Tuesday, March 08, 2016 01:23
To: Programming forum
Subject: [Jprogramming] Add vertical line to plot

I have a plot of a histogram, i.e.

plot bins; counts

to which I'd like to add a vertical line denoting the mean.  I saw a
post on how to
create grid lines using complex numbers, but I don't know how to add a
vertical line
to an existing plot of data.  Does anyone know how?

Thanks!
Ryan

----------------------------------------------------------------------
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