SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Sebastian <se...@gm...> - 2016年01月29日 22:16:02
Is there a simple way to hexbin using "pyplot.hexbin" and to return the ids
of the set of
points in each hexbin? That is to output an array of n elements
(one for each hexbin), and each element itself an array with the point ids?
The sum
of the number of inner elements would be equal the sum of all points (x,y).
Is hexbin missing this simple feature?
Or perhaps specifying C=N.arange(len(x)) then some specific
"reduced_C_function"
to return those elements. But I don't know if there is a
"reduced_C_function" available,
or perhaps one could be added?
many thanks in advance...
link:
http://stackoverflow
.com/questions/18886461/how-can-i-print-a-list-of-the-outputs-from-the-
hexbin-reduce-c-function/35088073#35088073
From: Benjamin R. <ben...@gm...> - 2016年01月29日 22:27:13
Hmm, you are right, there is no way to get back the information that hexbin
computed. The hexbin function is massive (in lib/matplotlib/axes/_axes.py)
and is a bit tangled up with the artist-handling code, too. I think it
would make sense to factor out the hexbinning component into its own
hexbin.py that others might be able to use separately.
Ben Root
On Fri, Jan 29, 2016 at 5:15 PM, Sebastian <se...@gm...> wrote:
> Is there a simple way to hexbin using "pyplot.hexbin" and to return the
> ids of the set of
> points in each hexbin? That is to output an array of n elements
> (one for each hexbin), and each element itself an array with the point
> ids? The sum
> of the number of inner elements would be equal the sum of all points (x,y).
>
> Is hexbin missing this simple feature?
>
> Or perhaps specifying C=N.arange(len(x)) then some specific
> "reduced_C_function"
> to return those elements. But I don't know if there is a
> "reduced_C_function" available,
> or perhaps one could be added?
>
> many thanks in advance...
>
> link:
> http://stackoverflow
> .com/questions/18886461/how-can-i-print-a-list-of-the-outputs-from-the-
> hexbin-reduce-c-function/35088073#35088073
>
>
>
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just 35ドル/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
From: Thomas C. <tca...@gm...> - 2016年01月29日 22:31:06
Factor it out and give it to numpy!
On Fri, Jan 29, 2016, 17:27 Benjamin Root <ben...@gm...> wrote:
> Hmm, you are right, there is no way to get back the information that
> hexbin computed. The hexbin function is massive (in
> lib/matplotlib/axes/_axes.py) and is a bit tangled up with the
> artist-handling code, too. I think it would make sense to factor out the
> hexbinning component into its own hexbin.py that others might be able to
> use separately.
>
> Ben Root
>
>
> On Fri, Jan 29, 2016 at 5:15 PM, Sebastian <se...@gm...> wrote:
>
>> Is there a simple way to hexbin using "pyplot.hexbin" and to return the
>> ids of the set of
>> points in each hexbin? That is to output an array of n elements
>> (one for each hexbin), and each element itself an array with the point
>> ids? The sum
>> of the number of inner elements would be equal the sum of all points
>> (x,y).
>>
>> Is hexbin missing this simple feature?
>>
>> Or perhaps specifying C=N.arange(len(x)) then some specific
>> "reduced_C_function"
>> to return those elements. But I don't know if there is a
>> "reduced_C_function" available,
>> or perhaps one could be added?
>>
>> many thanks in advance...
>>
>> link:
>> http://stackoverflow
>> .com/questions/18886461/how-can-i-print-a-list-of-the-outputs-from-the-
>> hexbin-reduce-c-function/35088073#35088073
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>> APM + Mobile APM + RUM: Monitor 3 App instances at just 35ドル/Month
>> Monitor end-to-end web transactions and take corrective actions now
>> Troubleshoot faster and improve end-user experience. Signup Now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just 35ドル/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Sebastian <se...@gm...> - 2016年01月31日 01:46:05
Ahhhh thats too bad (that we can't recover the original ids.)
What could one (as user) do to officially request it be fixed/factored out
to numpy?
On Fri, Jan 29, 2016 at 7:30 PM, Thomas Caswell <tca...@gm...> wrote:
> Factor it out and give it to numpy!
>
> On Fri, Jan 29, 2016, 17:27 Benjamin Root <ben...@gm...> wrote:
>
>> Hmm, you are right, there is no way to get back the information that
>> hexbin computed. The hexbin function is massive (in
>> lib/matplotlib/axes/_axes.py) and is a bit tangled up with the
>> artist-handling code, too. I think it would make sense to factor out the
>> hexbinning component into its own hexbin.py that others might be able to
>> use separately.
>>
>> Ben Root
>>
>>
>> On Fri, Jan 29, 2016 at 5:15 PM, Sebastian <se...@gm...> wrote:
>>
>>> Is there a simple way to hexbin using "pyplot.hexbin" and to return the
>>> ids of the set of
>>> points in each hexbin? That is to output an array of n elements
>>> (one for each hexbin), and each element itself an array with the point
>>> ids? The sum
>>> of the number of inner elements would be equal the sum of all points
>>> (x,y).
>>>
>>> Is hexbin missing this simple feature?
>>>
>>> Or perhaps specifying C=N.arange(len(x)) then some specific
>>> "reduced_C_function"
>>> to return those elements. But I don't know if there is a
>>> "reduced_C_function" available,
>>> or perhaps one could be added?
>>>
>>> many thanks in advance...
>>>
>>> link:
>>> http://stackoverflow
>>> .com/questions/18886461/how-can-i-print-a-list-of-the-outputs-from-the-
>>> hexbin-reduce-c-function/35088073#35088073
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>>> APM + Mobile APM + RUM: Monitor 3 App instances at just 35ドル/Month
>>> Monitor end-to-end web transactions and take corrective actions now
>>> Troubleshoot faster and improve end-user experience. Signup Now!
>>> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
>>> _______________________________________________
>>> Matplotlib-users mailing list
>>> Mat...@li...
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>
>>>
>>
>> ------------------------------------------------------------------------------
>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>> APM + Mobile APM + RUM: Monitor 3 App instances at just 35ドル/Month
>> Monitor end-to-end web transactions and take corrective actions now
>> Troubleshoot faster and improve end-user experience. Signup Now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>
From: Benjamin R. <ben...@gm...> - 2016年01月31日 02:04:09
You've already done it. But we encourage you to take a crack at it. I would
suggest just first factoring it out into a new file
lib/matplotlib/hexbin.py and have the current function utilize it. When
that is done, we can look to getting it into numpy as well. We will need a
copy of it ourselves for compatibility with older releases of numpy.
Let us know if you have questions!
Ben Root
On Jan 30, 2016 8:45 PM, "Sebastian" <se...@gm...> wrote:
> Ahhhh thats too bad (that we can't recover the original ids.)
> What could one (as user) do to officially request it be fixed/factored out
> to numpy?
>
>
>
> On Fri, Jan 29, 2016 at 7:30 PM, Thomas Caswell <tca...@gm...>
> wrote:
>
>> Factor it out and give it to numpy!
>>
>> On Fri, Jan 29, 2016, 17:27 Benjamin Root <ben...@gm...> wrote:
>>
>>> Hmm, you are right, there is no way to get back the information that
>>> hexbin computed. The hexbin function is massive (in
>>> lib/matplotlib/axes/_axes.py) and is a bit tangled up with the
>>> artist-handling code, too. I think it would make sense to factor out the
>>> hexbinning component into its own hexbin.py that others might be able to
>>> use separately.
>>>
>>> Ben Root
>>>
>>>
>>> On Fri, Jan 29, 2016 at 5:15 PM, Sebastian <se...@gm...> wrote:
>>>
>>>> Is there a simple way to hexbin using "pyplot.hexbin" and to return
>>>> the ids of the set of
>>>> points in each hexbin? That is to output an array of n elements
>>>> (one for each hexbin), and each element itself an array with the point
>>>> ids? The sum
>>>> of the number of inner elements would be equal the sum of all points
>>>> (x,y).
>>>>
>>>> Is hexbin missing this simple feature?
>>>>
>>>> Or perhaps specifying C=N.arange(len(x)) then some specific
>>>> "reduced_C_function"
>>>> to return those elements. But I don't know if there is a
>>>> "reduced_C_function" available,
>>>> or perhaps one could be added?
>>>>
>>>> many thanks in advance...
>>>>
>>>> link:
>>>> http://stackoverflow
>>>> .com/questions/18886461/how-can-i-print-a-list-of-the-outputs-from-the-
>>>> hexbin-reduce-c-function/35088073#35088073
>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>>>> APM + Mobile APM + RUM: Monitor 3 App instances at just 35ドル/Month
>>>> Monitor end-to-end web transactions and take corrective actions now
>>>> Troubleshoot faster and improve end-user experience. Signup Now!
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
>>>> _______________________________________________
>>>> Matplotlib-users mailing list
>>>> Mat...@li...
>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>>> APM + Mobile APM + RUM: Monitor 3 App instances at just 35ドル/Month
>>> Monitor end-to-end web transactions and take corrective actions now
>>> Troubleshoot faster and improve end-user experience. Signup Now!
>>> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
>>> _______________________________________________
>>> Matplotlib-users mailing list
>>> Mat...@li...
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>
>>
>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /