0

I have read the documentation about making round text boxes here and seen this answer here. Is there a way to make sure that the box is rounded at the top but square at the bottom.

fig, ax0 = plt.subplots()
ax0.text(0.005, 1.007, s = 'Tag/Name', bbox=dict(facecolor=clrr, edgecolor = 'black', alpha=0.6, boxstyle='round'), color = 'black', horizontalalignment='left', verticalalignment='bottom',transform=ax0.transAxes, )

enter image description here

If the right edge of the box could be tapered so that it melts smoothly into the spine that would be a bonus.

R Walser
  • 330
  • 3
  • 16
  • The closest I can think of is to use a [path patch](https://matplotlib.org/3.1.1/gallery/shapes_and_collections/artist_reference.html#sphx-glr-gallery-shapes-and-collections-artist-reference-py). But it seems unnecessarily complicated. – R Walser Sep 30 '22 at 14:55

0 Answers0