# Heatmap Interpolation

**URL:** <https://discourse.julialang.org/t/heatmap-interpolation/44472>\
**Category:** General Usage\
**Tags:** plotting\
**Created:** [August 7, 2020, 2:57am UTC](https://discourse.julialang.org/t/heatmap-interpolation/44472 "2020-08-07T02:57:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobmccrory](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bobmccrory/32/5137_2.png) [@bobmccrory](https://discourse.julialang.org/u/bobmccrory)\
**Post date:** [August 7, 2020, 2:57am UTC](https://discourse.julialang.org/t/heatmap-interpolation/44472/1 "2020-08-07T02:57:23Z")

</div>

I’m trying to get a smooth heatmap for showing fluid flow. When I use MatPlotLib in Python,  
using this code:  
im = plt.imshow(fluid.density, cmap=‘hot’, vmax=100, interpolation=‘bilinear’)  
I get a heatmap that interpolates the density from a rough 40 by 40 grid to a chart in which the pixels are smoothed across the grid.

When I use this code in Julia with Plots:  
heatmap(fluid.density, c=cgrad(:inferno), size=(500, 500), title=“Test Flow”,  
interpolation=“bilinear”)  
it shows the density values in the grid, but with no pixel interpolation.

So my question is: How can I get pixel-level interpolation across a fairly coarse grid in Julia/Plots?

Thanks for any help you can give.

Bob
