MCPcopy Create free account
hub / github.com/plotly/plotly.py / make_median

Function make_median

plotly/figure_factory/_violin.py:109–120  ·  view source on GitHub ↗

Formats the 'median' hovertext for a violin plot.

(q2)

Source from the content-addressed store, hash-verified

107
108
109def 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
123def make_XAxis(xaxis_title, xaxis_range):

Callers 1

violinplotFunction · 0.85

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected