You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just github'd matplotlib's (1.3.x) version using git clone git://github.com/matplotlib/matplotlib.git
and I noted an issue with the backend_pdf.py script
In particular the following code
else:
##facecolors = np.array(facecolors); ##CRUDE WORKAROUND, NOT IN GITHUB SOURCE
if np.all(facecolors[:, 3] == facecolors[0, 3]):
filled = facecolors[0, 3] != 0.0
else:
can_do_optimization = False
will error since facecolors is a LIST but is treated like an NUMPY.ARRAY
The commented out code
##facecolors = np.array(facecolors);
is a crude workaround, that will fix this issue if it is uncommented at least in the code below.
The exact same problem occurs later in the script using the LIST edgecolors
in order to reproduce the bug, one can use the following script, which would throw an error about indexing lists like numpy arrays:
Hi
I just github'd matplotlib's (1.3.x) version using git clone git://github.com/matplotlib/matplotlib.git
and I noted an issue with the backend_pdf.py script
In particular the following code
else:
##facecolors = np.array(facecolors); ##CRUDE WORKAROUND, NOT IN GITHUB SOURCE
if np.all(facecolors[:, 3] == facecolors[0, 3]):
filled = facecolors[0, 3] != 0.0
else:
can_do_optimization = False
will error since facecolors is a LIST but is treated like an NUMPY.ARRAY
The commented out code
##facecolors = np.array(facecolors);
is a crude workaround, that will fix this issue if it is uncommented at least in the code below.
The exact same problem occurs later in the script using the LIST edgecolors
in order to reproduce the bug, one can use the following script, which would throw an error about indexing lists like numpy arrays:
if name == 'main':
from pylab import *
The text was updated successfully, but these errors were encountered: