Skip to content

Commit 224deca

Browse files
authored
Merge pull request matplotlib#8499 from tacaswell/doc_whitespace
STY: fix whitespace in svg_tooltip.py example
2 parents 41bd991 + 9511cd7 commit 224deca

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

examples/user_interfaces/svg_tooltip.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@
3939

4040
for i, (item, label) in enumerate(zip(shapes, labels)):
4141
patch = ax.add_patch(item)
42-
annotate = ax.annotate(labels[i], xy=item.get_xy(), xytext=(0, 0),
43-
textcoords='offset points', color='w', ha='center',
44-
fontsize=8, bbox=dict(boxstyle='round, pad=.5', fc=(.1, .1, .1, .92),
45-
ec=(1., 1., 1.), lw=1, zorder=1))
42+
annotate = ax.annotate(labels[i], xy=item.get_xy(), xytext=(0, 0),
43+
textcoords='offset points', color='w', ha='center',
44+
fontsize=8, bbox=dict(boxstyle='round, pad=.5',
45+
fc=(.1, .1, .1, .92),
46+
ec=(1., 1., 1.), lw=1,
47+
zorder=1))
4648

4749
ax.add_patch(patch)
4850
patch.set_gid('mypatch_{:03d}'.format(i))

0 commit comments

Comments
 (0)