Category : matplotlib

I am trying to draw multiple rectangle patches on my plots but I can’t specify the color despite the documentation saying that it should exists in the keywords. Here’s a MVCE of the issue. import matplotlib.pyplot as plt from matplotlib.patches import Rectangle from matplotlib.collections import PatchCollection patches = [] fig, ax = plt.subplots(nrows=1) plt.xlim([-0.5, 1.5]) ..

Read more

I have recently performed a conda update –all, when importing some standard libraries I have come across the following issue import collections import datetime import matplotlib.pyplot as plt which raised the following error import matplotlib.pyplot as plt File "/opt/anaconda3/lib/python3.7/site-packages/matplotlib/pyplot.py", line 36, in <module> import matplotlib.colorbar File "/opt/anaconda3/lib/python3.7/site-packages/matplotlib/colorbar.py", line 44, in <module> import matplotlib.contour as contour ..

Read more