# -*- coding: utf-8 -*- import matplotlib.pyplot as plt from pylab import * fig = plt.figure() ax1 = fig.add_subplot(111) rect1 = Rectangle((0,0),10,10, color = 'yellow', edgecolor = 'blue', hatch = '/') ax1.add_patch(rect1) show()
При выполнении кода в консоли выводится предупреждение:
C:\Python27\lib\site-packages\matplotlib\patches.py:87: UserWarning: Setting the 'color' property will overridethe edgecolor or facecolor properties. warnings.warn("Setting the 'color' property will override"