proplot-dev / proplot

🎨 A succinct matplotlib wrapper for making beautiful, publication-quality graphics
https://proplot.readthedocs.io
MIT License
1.11k stars 102 forks source link

wrong edgecolor and facecolor with pcolormesh #371

Open zxdawn opened 2 years ago

zxdawn commented 2 years ago

Description

The results of using edgecolor and facecolor with pcolormesh are different from the matplotlib.

Steps to reproduce

# your code here
import numpy as np
import prolpot as pplt

fig, axs = pplt.subplots()

z = np.arange(12).reshape((3, 4))

axs.pcolormesh(z, facecolor='none', edgecolors=None)

Expected behavior:

image

Actual behavior:

image

Equivalent steps in matplotlib

import matplotlib.pyplot as plt
import numpy as np

z = np.arange(12).reshape((3, 4))

plt.pcolormesh(z, facecolor='none', edgecolors=None)

Proplot version

3.5.1
0.9.5.post202