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

Function _gen_matplotlib

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

Source from the content-addressed store, hash-verified

116 return fig
117
118 def _gen_matplotlib():
119 # pd.set_option("plotting.backend", "matplotlib")
120 fig, ax = plt.subplots()
121 df = gen_df()
122 ax.plot(df["x"], df["y"])
123 # gen_df().plot.scatter("x", "y", ax=ax)
124 return fig
125
126 def _gen_html(w: int = 30, h: int = 30):
127 return b.HTML(

Callers 1

demoFunction · 0.85

Calls 1

gen_dfFunction · 0.85

Tested by

no test coverage detected