[SciPy-Dev] 2D histogram: request for plotting variable bin size

Frank Breitling fbreitling@aip...
Thu Jan 31 09:32:21 CST 2013


Hi Sturla,

My experience with pcolor was that is was very slow.
Pcolormesh was significantly faster but compared to imshow is still very 
slow.
However, while imshow produces smooth interpolations between the 
discrete frequencies I didn't find a similar option with pcolormesh and 
so the results were not useful.
You can see it in the imshow and pcolormesh images attached.

Frank


On 31.01.2013 15:55, Sturla Molden wrote:
> On 31.01.2013 15:49, Sturla Molden wrote:
>
>>> imshow(historgram2d, xedges=xedges, yedges=yedges)
>> This is question about matplotlib, not SciPy.
>>
>> However, matplotlib.pyplot.pcolor will do what you want.
> And if the 2D histogram is very large, matplotlib.pyplot.pcolormesh will
> be faster.
>
> The purpose of imshow is to display images.
>
>
> Sturla
>
>
>
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev
>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20120619T140000.00-imshow.jpg
Type: image/jpeg
Size: 62067 bytes
Desc: not available
Url : http://mail.scipy.org/pipermail/scipy-dev/attachments/20130131/c88c7deb/attachment-0002.jpg 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20120619T140000.00-pcolormesh.jpg
Type: image/jpeg
Size: 68068 bytes
Desc: not available
Url : http://mail.scipy.org/pipermail/scipy-dev/attachments/20130131/c88c7deb/attachment-0003.jpg 


More information about the SciPy-Dev mailing list