"Ravi A." <ravi.ara...@gmail.com> 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


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to