Skip to content
Advertisement

Add datashader image to matplotlib subplots

Is it possible to add a datashader image to a set of matplotlib subplots?

As a concrete example,

JavaScript

Where I have a two by two array of matplotlib subplots and would like to replace the [0,0] plot ax_r[0] in the above example with the datashader image a. Is this possible, and if so, how?

Thanks!

Advertisement

Answer

Update [January 2021] Datashader 0.12 now includes native Matplotlib support as per comment from James A. Bednar below.

As of right now [May 2017] the best way to accomplish adding a datashader image to a matplotlib subplot is to use the pull request linked to above. It defines a DSArtist class. Assuming the DSArtist class exists, the code would be as follows:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement