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

Function test_object_array

tests/test_io/test_to_from_plotly_json.py:224–227  ·  view source on GitHub ↗
(engine, pretty)

Source from the content-addressed store, hash-verified

222
223
224def test_object_array(engine, pretty):
225 fig = px.scatter(px.data.tips(), x="total_bill", y="tip", custom_data=["sex"])
226 result = fig.to_plotly_json()
227 check_roundtrip(result, engine=engine, pretty=pretty)
228
229
230def test_nonstring_key(engine, pretty):

Callers

nothing calls this directly

Calls 3

check_roundtripFunction · 0.85
scatterMethod · 0.80
to_plotly_jsonMethod · 0.45

Tested by

no test coverage detected