We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2ef761 commit edaf333Copy full SHA for edaf333
examples/showcase/anatomy.py
@@ -49,15 +49,10 @@ def minor_tick(x, pos):
49
50
51
def circle(x, y, radius=0.15):
52
- center = x, y
53
- circle = Circle(center, radius, clip_on=False, zorder=10,
54
- edgecolor='white', facecolor='none', linewidth=5.0)
55
- plt.axes().add_artist(circle)
56
- circle = Circle(center, radius, clip_on=False, zorder=20,
57
- edgecolor='none', facecolor='black', alpha=.025)
58
59
- circle = Circle(center, radius, clip_on=False, zorder=30,
60
- edgecolor='black', facecolor='none', linewidth=1.0)
+ from matplotlib.patheffects import withStroke
+ circle = Circle((x, y), radius, clip_on=False, zorder=10, linewidth=1,
+ edgecolor='black', facecolor=(0, 0, 0, .0125),
+ path_effects=[withStroke(linewidth=5, foreground='w')])
61
plt.axes().add_artist(circle)
62
63
0 commit comments