On Wed, Mar 6, 2013 at 2:00 PM, Clifford Lyon <clifford.l...@gmail.com>wrote:
> I wish to make a boxplot with data in this format:
>
> Value, Frequency
> 0, 128329
> 1, 20390
> 2, 230
> 3, 32
> 4, 3
>
> etc. Rather than expand this into a flat array, is there some way to pass
> in weights for values? Some of the frequencies I'm working with are very
> large, and so the resulting arrays would be huge. AFAIK, all the summary
> statistics I need for the plot can be computed from data in this form.
>
>
Boxplot, as it currently stands, wants the raw data. Some recently added
features allow you to manually specify the median and it's confidence
intervals, but nothing else.
I've been meaning to submit a PR for boxplot where it's split into the
public method and private drawing function that just takes a dictionary of
the values (R does this, IIRC). That wouldn't directly help you in this
situation, but you'd be one step closer.
-paul
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users