tikzplotlib icon indicating copy to clipboard operation
tikzplotlib copied to clipboard

Check for LogNorm with imshow and export correctly

Open OliverZobel opened this issue 2 years ago • 0 comments
trafficstars

Matplotlib figures created with imshow and a LogNorm normalization do not get exported correctly, i.e. the log scale is ignored. This pull request changes the code to check for a logarithmic normalization and, if found, applies np.log() to the data and clims in the plt.imsave() call in order to produce a correct .png image.

OliverZobel avatar Dec 19 '22 15:12 OliverZobel