title: Plotly: How to add a text box under legend?
body: <p>I use this example code given in plotly website.</p>
  <pre><code>import plotly.express as px
  df = px.data.medals_long()
  
  fig = px.bar(df, x=&quot;medal&quot;, y=&quot;count&quot;, color=&quot;nation&quot;,
               pattern_shape=&quot;nation&quot;, pattern_shape_sequence=[&quot;.&quot;, &quot;x&quot;, &quot;+&quot;])
  fig.show()
  </code></pre>
  <p>This gives a plot like below.
  <a href="https://i.stack.imgur.com/Uojul.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Uojul.png" alt="enter image description here" /></a></p>
  <p><strong>How can I add a text box under the legend in the plot to get it like in the picture below?</strong>
  <a href="https://i.stack.imgur.com/oaF8Z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oaF8Z.png" alt="enter image description here" /></a></p>
  <p><strong>I see some examples using <a href="https://plotly.com/python/text-and-annotations/#:%7E:text=Canadian%20cities-,Positioning%20Text%20Annotations%20Absolutely,-By%20default%2C%20text" rel="nofollow noreferrer">Text and Annotations</a> but was wondering if there is any other approach to do it.</strong></p>