"Ravi A." <rav...@gm...> writes:
> I am using boxplot and i wanted to mark current value or any special value
> on the box plot. How do i achieve this? Something like below.
Just "plot" the special value, with hold=True if you have set the hold
default to false. One small issue is that plot autoscales the view
tightly, which looks bad with the boxes, so you may want to nudge it a
bit:
from pylab import *
boxplot(random((10,10)))
plot(arange(1,11), random(10), 'rx', ms=5, mew=2, hold=True)
a,b = xlim()
xlim(a-.5,b+.5)
show()
--
Jouni K. Seppänen
http://www.iki.fi/jks
|