Re: [Matplotlib-users] boxplot behaviour in an extreme scenario

2015-08-27 Thread chtan
Great, thanks! Rgds marcus -- View this message in context: http://matplotlib.1069221.n5.nabble.com/boxplot-behaviour-in-an-extreme-scenario-tp46027p46034.html Sent from the matplotlib - users mailing list archive at Nabble.com.

Re: [Matplotlib-users] boxplot behaviour in an extreme scenario

2015-08-26 Thread Paul Hobson
Even though I'm familiar with the boxplot source code, I largely use IPython for quick investigations like this. In IPython, doing something like "matplotlib.Axes.boxplot??" shows the full source code for that functions\. Then I saw/remembered that boxplot now just calls matplotlib.cbook.boxplot_

Re: [Matplotlib-users] boxplot behaviour in an extreme scenario

2015-08-26 Thread chtan
Uh, now I understand why it's behaving this way. Tx Paul. >From the documentation, it seems natural to expect the behaviour to be uniform throughout the meaningful range for IQR. How may I go about searching for the responsible code on my own in situations like this? >From the perplexing behaviou

Re: [Matplotlib-users] boxplot behaviour in an extreme scenario

2015-08-26 Thread chtan
I'm on python 2. I get the same outputs after adding "from __future__ import division". -- View this message in context: http://matplotlib.1069221.n5.nabble.com/boxplot-behaviour-in-an-extreme-scenario-tp46027p46031.html Sent from the matplotlib - users mailing list archive at Nabble.com. ---

Re: [Matplotlib-users] boxplot behaviour in an extreme scenario

2015-08-26 Thread Paul Hobson
Your perturbed and unperturbed scenarios draw the same figure on my machine (mpl v1.4.1). The reason why you don't get any outliers is the following: Boxplot uses matplotlib.cbook.boxplot_stats under the hood to compute where everything will be drawn. If you look in there, you'll see this little n

Re: [Matplotlib-users] boxplot behaviour in an extreme scenario

2015-08-26 Thread Paul Hobson
Are you running python 2 or python 3? If you're on python 2, what happens if you add "from __future__ import division" to the top of your script? On Tue, Aug 25, 2015 at 10:31 PM, chtan wrote: > Hi, > > the outliers in the boxplot do not seem to be drawn in the following > extreme > scenario: >

Re: [Matplotlib-users] boxplot

2013-03-14 Thread Paul . Czodrowski
> You lost me. Are you trying to create box and whisker plots or do > you just want rectangles? N = 2 is awfully small dataset for box/ > whisker plots. If all you want are the rectangles -- use those directly: > > import numpy as np > import matplotlib.pyplot as plt > from matplotlib.patches imp

Re: [Matplotlib-users] boxplot

2013-03-14 Thread Paul Hobson
On Thu, Mar 14, 2013 at 12:40 AM, wrote: > Dear Matplotlibbers, > > I'm running matplotlib 1.1.0 and would like to plot pairs of values, > e.g. > [[0.27,0.43],[0.17,0.35]] > > When using boxplot, the values of the pairs correspond to the "outer > whiskers", but I would like that the interquartile

Re: [Matplotlib-users] boxplot -- how (more)

2012-08-22 Thread Jeffrey Blackburne
On Aug 22, 2012, at 10:04 AM, Virgil Stokes wrote: > On 21-Aug-2012 17:52, Jeffrey Blackburne wrote: >> >> On Aug 21, 2012, at 10:58 AM, Virgil Stokes wrote: >> >>> In reference to my previous email. >>> >>> How can I find the outliers (samples points beyond the whiskers) >>> in the data >>> us

Re: [Matplotlib-users] boxplot -- how (more)

2012-08-22 Thread Virgil Stokes
On 22-Aug-2012 11:23, Virgil Stokes wrote: > On 21-Aug-2012 17:59, Paul Hobson wrote: >> On Tue, Aug 21, 2012 at 8:56 AM, Virgil Stokes wrote: >>> On 21-Aug-2012 17:50, Paul Hobson wrote: On Tue, Aug 21, 2012 at 7:58 AM, Virgil Stokes wrote: > In reference to my previous email. > >>>

Re: [Matplotlib-users] boxplot -- how (more)

2012-08-22 Thread Virgil Stokes
On 21-Aug-2012 17:52, Jeffrey Blackburne wrote: > > On Aug 21, 2012, at 10:58 AM, Virgil Stokes wrote: > >> In reference to my previous email. >> >> How can I find the outliers (samples points beyond the whiskers) in the data >> used for the boxplot? >> >> Here is a code snippet that shows how it w

Re: [Matplotlib-users] boxplot -- how (more)

2012-08-22 Thread Virgil Stokes
On 21-Aug-2012 17:59, Paul Hobson wrote: > On Tue, Aug 21, 2012 at 8:56 AM, Virgil Stokes wrote: >> On 21-Aug-2012 17:50, Paul Hobson wrote: >>> On Tue, Aug 21, 2012 at 7:58 AM, Virgil Stokes wrote: In reference to my previous email. How can I find the outliers (samples points beyo

Re: [Matplotlib-users] boxplot -- how (more)

2012-08-21 Thread Paul Hobson
On Tue, Aug 21, 2012 at 8:56 AM, Virgil Stokes wrote: > On 21-Aug-2012 17:50, Paul Hobson wrote: >> >> On Tue, Aug 21, 2012 at 7:58 AM, Virgil Stokes wrote: >>> >>> In reference to my previous email. >>> >>> How can I find the outliers (samples points beyond the whiskers) in the >>> data >>> used

Re: [Matplotlib-users] boxplot -- how (more)

2012-08-21 Thread Paul Hobson
On Tue, Aug 21, 2012 at 7:58 AM, Virgil Stokes wrote: > In reference to my previous email. > > How can I find the outliers (samples points beyond the whiskers) in the data > used for the boxplot? > > Here is a code snippet that shows how it was used for the timings data (a list > of 4 sublists (y1

Re: [Matplotlib-users] boxplot -- how (more)

2012-08-21 Thread Jeffrey Blackburne
On Aug 21, 2012, at 10:58 AM, Virgil Stokes wrote: > In reference to my previous email. > > How can I find the outliers (samples points beyond the whiskers) in > the data > used for the boxplot? > > Here is a code snippet that shows how it was used for the timings > data (a list > of 4 sublis

Re: [Matplotlib-users] boxplot bug

2010-02-24 Thread Gökhan Sever
Probably this change would upset John Tukey if he were alive. I still wonder how you ignore the data since boxplot is there to represent the data :) Tell me how to undiff the changes then I will test your idea. On Wed, Feb 24, 2010 at 12:03 AM, Ariel Rokem wrote: > No - not the 'widths' kwarg

Re: [Matplotlib-users] boxplot bug

2010-02-23 Thread Ariel Rokem
No - not the 'widths' kwarg. I want something that *looks* like the boxplot, but for which I will have control of setting the ranges delimited by the box and delimited by the whiskers (in the vertical dimension, not the horizontal dimension). I resorted to hacking something from the existing code (

Re: [Matplotlib-users] boxplot bug

2010-02-23 Thread Gökhan Sever
On Tue, Feb 23, 2010 at 5:04 PM, Ariel Rokem wrote: > Hi - > > yes - but I want something that looks like the generic boxplot, but in > which I can control where the edges of the boxes are placed what the sizes > of the whiskers are. A combination of errorbar and bar, with this > appearance, if y

Re: [Matplotlib-users] boxplot bug

2010-02-23 Thread Ariel Rokem
Hi - yes - but I want something that looks like the generic boxplot, but in which I can control where the edges of the boxes are placed what the sizes of the whiskers are. A combination of errorbar and bar, with this appearance, if you will. Cheers - Ariel On Tue, Feb 23, 2010 at 2:49 PM, Gökha

Re: [Matplotlib-users] boxplot bug

2010-02-23 Thread Gökhan Sever
On Tue, Feb 23, 2010 at 3:02 PM, Ariel Rokem wrote: > Hi - more generally, is there any way to control the location of the median > line, the vertical size of the box and the vertical location of the > whiskers? > > Thanks - Ariel > > Aren't those generically calculated from the data? -- Gökha

Re: [Matplotlib-users] boxplot bug

2010-02-23 Thread Ariel Rokem
Hi - more generally, is there any way to control the location of the median line, the vertical size of the box and the vertical location of the whiskers? Thanks - Ariel On Tue, Feb 23, 2010 at 11:32 AM, wrote: > > # ~~~ > From: Ben Axelrod [mailto:baxel...@coroware.com] > Sent:

Re: [Matplotlib-users] boxplot bug

2010-02-23 Thread PHobson
# ~~~ From: Ben Axelrod [mailto:baxel...@coroware.com] Sent: Tuesday, February 23, 2010 9:31 AM To: matplotlib-users@lists.sourceforge.net Subject: [Matplotlib-users] boxplot bug I found an inconsistency with how boxplots are rendered between version 0.99.1 and the svn head.  Se

Re: [Matplotlib-users] boxplot with different data length

2007-01-08 Thread Pierre GM
On Monday 08 January 2007 04:34, Gerhard Spitzlsperger wrote: > Dear All, > > I am quite new to matplotlib and facing some trouble using boxplots. > > I'd like to plot two boxes (different length of data) in one plot, from > the docs > Could you point me to what I do wrong? I need especially > the

Re: [Matplotlib-users] boxplot

2006-12-16 Thread Eric Firing
Simson L. Garfinkel's Treo 700p wrote: > Yep. I would like to pass in a list of lists, where each sublist (or array) > describes a boxplot to plot. This is now present in svn. > > Meanwhile, i've been having fun with histograms. The Y axis labels are a > pain. I think defaulting to scientific

Re: [Matplotlib-users] boxplot

2006-12-16 Thread Simson L. Garfinkel's Treo 700p
Yep. I would like to pass in a list of lists, where each sublist (or array) describes a boxplot to plot. Meanwhile, i've been having fun with histograms. The Y axis labels are a pain. I think defaulting to scientific notation, as matplotlib frequently does, is annoying... ___ Sent with SnapperM

Re: [Matplotlib-users] boxplot

2006-12-16 Thread Pierre GM
On Saturday 16 December 2006 16:02, Eric Firing wrote: > It sounds like the real problem is that the initial use of asarray in > boxplot is a bug--it should transparently support an object array, as > you suggest (but numpy only), or an ordinary array, *or* a list or tuple > of data vectors, and al

Re: [Matplotlib-users] boxplot

2006-12-16 Thread Eric Firing
Pierre GM wrote: >> And for the work I'm doing, I have a >> different number of observations and data points on different days, >> so it's a pain that the current boxplot infrastructure expects all of >> the boxes to be in a single array. Hence my questions. > > Ah OK, now I get it. Sorry for bein

Re: [Matplotlib-users] boxplot

2006-12-16 Thread Pierre GM
> I want multiple boxes on a single plot, with one box per day. Take a > look at how I've done it with just plot() and some error bars... I'm still not sure I understand where the problem is: You want several boxes in a plot ? Something along the lines of what I already sent you ? > boxplot([set1

Re: [Matplotlib-users] boxplot

2006-12-16 Thread Simson Garfinkel
I agree. It may be common in matlab, but it really doesn't belong in python. On Dec 16, 2006, at 12:50 PM, Eric Firing wrote: > >>> BTW, this whole subplot(ijk) instead of subplot(i,j,k) notation is >>> really, really confusing to me... >> Don't get overwhelmed. ijk is a shortcut for (i, j, k)

Re: [Matplotlib-users] boxplot

2006-12-16 Thread Eric Firing
>> BTW, this whole subplot(ijk) instead of subplot(i,j,k) notation is >> really, really confusing to me... > > Don't get overwhelmed. ijk is a shortcut for (i, j, k), that works well if > you're working with less than 10 plots in either direction. It is a holdover from the early days of Matlab

Re: [Matplotlib-users] boxplot

2006-12-16 Thread Pierre GM
> I'd love to speak python to it. But it's harder when all of the > examples are in matlab... :) Well, please have a look to pythonic_matplotlib.py in your examples folder. > > fig = figure() > > ax1 = fig.add_subplot(121) > > ax2=fig.add_subplot(122) > > Hm. I'll need to figure out why these t

Re: [Matplotlib-users] boxplot

2006-12-16 Thread Simson Garfinkel
> > >> Now, how do I get two boxplots on the same plot? > > Well, just draw two axes. > Simson, now that you're more experienced with matplotlib, you > should really > start speaking python to it. I'd love to speak python to it. But it's harder when all of the examples are in matlab... > > f

Re: [Matplotlib-users] boxplot

2006-12-16 Thread Pierre GM
On Friday 15 December 2006 21:07, Simson Garfinkel wrote: > Hm. thanks for the info. But it's not perfect... I get times in my > formats, but not the dates. Here is the sample code: Yeah, I agree, the situation is far from ideal. Besides, it turns out that there's no deep magic behind have_dates,

Re: [Matplotlib-users] boxplot

2006-12-15 Thread Simson Garfinkel
Hm. thanks for the info. But it's not perfect... I get times in my formats, but not the dates. Here is the sample code: #!/usr/bin/python # # Example boxplot code # from pylab import * from matplotlib.dates import MonthLocator, WeekdayLocator, DateFormatter from matplotlib.dates import MONDAY

Re: [Matplotlib-users] boxplot

2006-12-15 Thread Pierre GM
> 2. I need to have the X axis of the boxplot be dates. There doesn't > seem to be an easy way to do that. Use the "position" keyword, as a list of date ordinals (output of date2num). Then, use gca().xaxis_date(tz) where tz is your current timezone (you can use None, that's easier). Et voi