showing current value on boxplot

"Ravi A." <ravi.aranke@...287...> 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

Worked like a charm. Thank you very much!
I really appreciate the sample code and teaching by example.

Jouni K. Seppänen wrote:

···

"Ravi A." <ravi.aranke@...287...> 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

--
View this message in context: http://www.nabble.com/showing-current-value-on-boxplot-tp25115648p25130265.html
Sent from the matplotlib - users mailing list archive at Nabble.com.