Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Drawing rectangle with border only in matplotlib

from matplotlib import pyplot as plt
from matplotlib.patches import Rectangle
someX, someY = 0.5, 0.5
plt.figure()
currentAxis = plt.gca()
currentAxis.add_patch(Rectangle((someX - .1, someY - .1), 0.2, 0.2,alpha=1))
plt.show()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Drawing #rectangle #border #matplotlib
ADD COMMENT
Topic
Name
7+4 =