Skip to content

Commit 0be6c5d

Browse files
committed
Moved title to bottom of plots
1 parent d79f0ca commit 0be6c5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/shapes_and_collections/hatch_style_reference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
def hatches_plot(ax, h):
1818
ax.add_patch(Rectangle((0, 0), 2, 2, fill=False, hatch=h))
19-
ax.set_title(f"' {h} '")
19+
ax.text(1, -0.5, f"' {h} '", size=15, ha="center")
2020
ax.axis('equal')
2121
ax.axis('off')
2222

0 commit comments

Comments
 (0)