[SciPy-User] density map?

josef.pktd@gmai... josef.pktd@gmai...
Mon Aug 29 18:05:29 CDT 2011


On Mon, Aug 29, 2011 at 7:03 PM,  <josef.pktd@gmail.com> wrote:
> On Mon, Aug 29, 2011 at 6:58 PM, Sebastian Bassi <sbassi@gmail.com> wrote:
>> Hello,
>>
>> I have a 2-D Numpy array with intensity data.
>> I'd like to plot it like this
>> http://crocdoc.ifas.ufl.edu/images/posters/ecologyofgatorholes/9_figure6.gif
>> For each value in a position, it will be colored with a color, if the
>> value is higher the color will be more intense (maybe from blue to
>> red).
>> All examples I found on http://www.scipy.org/Cookbook/Matplotlib/ were
>> using functions instead of data from a matrix/array.
>> Any idea?
>
> scipy.stats.gaussian_kde
>
> https://picasaweb.google.com/106983885143680349926/Joepy#5611180522655961714
>
> or some other non-parametric density estimator

That's not the right answer, I guess if you have already intensities,
then you don't need to estimate the density anymore.

Is it interpolation to a meshgrid that you need?

Josef

>
> Josef
>
>
>> Best,
>> SB.
>> _______________________________________________
>> SciPy-User mailing list
>> SciPy-User@scipy.org
>> http://mail.scipy.org/mailman/listinfo/scipy-user
>>
>


More information about the SciPy-User mailing list