10000 Updated graph_references, which now includes asymmetric error bars. · appscluster/python-api@4fb55fb · GitHub
[go: up one dir, main page]

Skip to content

Commit 4fb55fb

Browse files
committed
Updated graph_references, which now includes asymmetric error bars.
Added tests for instantiation of these objects.
1 parent bcca6bb commit 4fb55fb

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-3
lines changed

plotly/graph_reference

Submodule graph_reference updated from 785da19 to e3b2a62

plotly/tests/test_graph_objs/test_error_bars.py

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,38 @@
1010
from ...exceptions import (PlotlyDictKeyError, PlotlyDictValueError,
1111
PlotlyDataTypeError, PlotlyListEntryError)
1212

13+
1314
def test_instantiate_error_x():
1415
ErrorX()
15-
ErrorX(value=0.1, type='percent', color='red')
16+
ErrorX(array=[1, 2, 3],
17+
arrayminus=[2, 1, 2],
18+
color='red',
19+
copy_ystyle=False,
20+
opacity=.4,
21+
symmetric=False,
22+
thickness=2,
23+
traceref=0, # TODO, what's this do again?
24+
type='percent',
25+
value=1,
26+
valueminus=4,
27+
visible=True,
28+
width=5)
1629

1730

1831
def test_instantiate_error_y():
1932
ErrorY()
20-
ErrorY(value=0.1, type='percent', color='red')
33+
ErrorY(array=[1, 2, 3],
34+
arrayminus=[2, 1, 2],
35+
color='red',
36+
opacity=.4,
37+
symmetric=False,
38+
thickness=2,
39+
traceref=0, # TODO, what's this do again?
40+
type='percent',
41+
value=1,
42+
valueminus=4,
43+
visible=True,
44+
width=5)
2145

2246

2347
@raises(PlotlyDictKeyError)

0 commit comments

Comments
 (0)
0