We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87c3bc1 commit 2a73de1Copy full SHA for 2a73de1
packages/python/plotly/plotly/tests/test_core/test_px/test_px.py
@@ -0,0 +1,13 @@
1
+import plotly.express as px
2
+import numpy as np
3
+
4
+def test_scatter():
5
+ iris = px.data.iris()
6
+ fig = px.scatter(iris, x="sepal_width", y="sepal_length")
7
+ assert fig.data[0].type == 'scatter'
8
+ assert np.all(fig.data[0].x == iris.sepal_width)
9
+ assert np.all(fig.data[0].y == iris.sepal_length)
10
+ # test defaults
11
+ assert fig.data[0].mode == 'markers'
12
13
0 commit comments