Answers for "Drawing rectangle with border only in matplotlib"

0

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()
Posted by: Guest on October-16-2021

Code answers related to "Drawing rectangle with border only in matplotlib"

Python Answers by Framework

Browse Popular Code Answers by Language