Formats the 'median' hovertext for a violin plot.
(q2)
| 107 | |
| 108 | |
| 109 | def make_median(q2): |
| 110 | """ |
| 111 | Formats the 'median' hovertext for a violin plot. |
| 112 | """ |
| 113 | return graph_objs.Scatter( |
| 114 | x=[0], |
| 115 | y=[q2], |
| 116 | text=["median: " + "{:0.2f}".format(q2)], |
| 117 | mode="markers", |
| 118 | marker=dict(symbol="square", color="rgb(255,255,255)"), |
| 119 | hoverinfo="text", |
| 120 | ) |
| 121 | |
| 122 | |
| 123 | def make_XAxis(xaxis_title, xaxis_range): |