Matplotlib ValueError on LogNorm plots

Set vmin=1 or some small positive value to avoid the error:

ValueError: Data has no positive values, and therefore can not be log-scaled.

which can be caused by vmin=0 in a log-norm pcolormesh() plot.

Leave a Comment