MCPcopy Index your code
hub / github.com/plotly/plotly.py / make_violin_rugplot

Function make_violin_rugplot

plotly/figure_factory/_violin.py:64–76  ·  view source on GitHub ↗

Returns a rugplot fig for a violin plot.

(vals, pdf_max, distance, color="#1f77b4")

Source from the content-addressed store, hash-verified

62
63
64def make_violin_rugplot(vals, pdf_max, distance, color="#1f77b4"):
65 """
66 Returns a rugplot fig for a violin plot.
67 """
68 return graph_objs.Scatter(
69 y=vals,
70 x=[-pdf_max - distance] * len(vals),
71 marker=graph_objs.scatter.Marker(color=color, symbol="line-ew-open"),
72 mode="markers",
73 name="",
74 showlegend=False,
75 hoverinfo="y",
76 )
77
78
79def make_non_outlier_interval(d1, d2):

Callers 1

violinplotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected