MCPcopy Create free account
hub / github.com/datapane/datapane / _gen_plotly

Function _gen_plotly

python-client/src/datapane/builtins.py:112–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110 return p
111
112 def _gen_plotly():
113 fig = go.Figure()
114 fig.add_trace(go.Scatter(x=[0, 1, 2, 3, 4, 5], y=[1.5, 1, 1.3, 0.7, 0.8, 0.9]))
115 fig.add_trace(go.Bar(x=[0, 1, 2, 3, 4, 5], y=[1, 0.5, 0.7, -1.2, 0.3, 0.4]))
116 return fig
117
118 def _gen_matplotlib():
119 # pd.set_option("plotting.backend", "matplotlib")

Callers 1

demoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected