@@ -719,20 +719,22 @@ def extend_traces(self, update, indices=(0,), max_points=None):
719
719
720
720
Example 1 - Extend the first trace with x and y data
721
721
```
722
- graph.extend_traces({'x': [[1,2,3]], 'y': [[10,20,30]]}, [0])
722
+ graph.extend_traces({'x': [[1, 2, 3]], 'y': [[10, 20, 30]]},
723
+ indices=[0])
723
724
```
724
725
725
726
Example 2 - Extend the second trace with x and y data
726
727
```
727
- graph.extend_traces({'x': [[1,2,3]], 'y': [[10,20,30]]}, [1])
728
+ graph.extend_traces({'x': [[1, 2, 3]], 'y': [[10, 20, 30]]},
729
+ indices=[1])
728
730
```
729
731
730
732
Example 3 - Extend the first two traces with x and y data
731
733
```
732
734
graph.extend_traces({
733
- 'x': [[1,2, 3], [2,3, 4]],
734
- 'y': [[10,20,30], [3,4, 3]]
735
- }, [0, 1])
735
+ 'x': [[1, 2, 3], [2, 3, 4]],
736
+ 'y': [[10, 20, 30], [3, 4, 3]]
737
+ }, indices= [0, 1])
736
738
```
737
739
738
740
Example 4 - Extend the first trace with x and y data and
@@ -743,7 +745,7 @@ def extend_traces(self, update, indices=(0,), max_points=None):
743
745
graph.extend_traces({
744
746
'x': [range(100)],
745
747
'y': [range(100)]
746
- }, [0, 1], max_points=50)
748
+ }, indices= [0, 1], max_points=50)
747
749
```
748
750
749
751
Example 5 - Extend the first and second trace with x and y data
@@ -755,6 +757,7 @@ def extend_traces(self, update, indices=(0,), max_points=None):
755
757
'x': [new_points, new_points],
756
758
'y': [new_points, new_points]
757
759
},
760
+ indices=[0, 1],
758
761
[0, 1],
759
762
max_points={
760
763
'x': [25, 50],
0 commit comments