@@ -500,43 +500,44 @@ def make_subplots(rows=1, cols=1,
500
500
501
501
Example 1:
502
502
# stack two subplots vertically
503
- fig = tools.make_subplots(rows=2, print_grid=True )
503
+ fig = tools.make_subplots(rows=2)
504
504
505
- This is the format of your plot grid!
505
+ This is the format of your plot grid:
506
506
[ (1,1) x1,y1 ]
507
507
[ (2,1) x2,y2 ]
508
508
509
- fig['data'] += [Scatter(x=[1,2,3], y=[2,1,2], xaxis='x1', yaxis='y1' )]
509
+ fig['data'] += [Scatter(x=[1,2,3], y=[2,1,2])]
510
510
fig['data'] += [Scatter(x=[1,2,3], y=[2,1,2], xaxis='x2', yaxis='y2')]
511
511
512
512
Example 2:
513
513
# subplots with shared x axes
514
- fig = tools.make_subplots(rows=2, shared_xaxes=True, print_grid=True)
514
+ fig = tools.make_subplots(rows=2, shared_xaxes=True)
515
+
516
+ This is the format of your plot grid:
517
+ [ (1,1) x1,y1 ]
518
+ [ (2,1) x1,y2 ]
515
519
516
- TODO What's the default behavior here??
517
520
518
- fig['data'] += [Scatter(x=[1,2,3], y=[2,1,2], yaxis='y1' )]
521
+ fig['data'] += [Scatter(x=[1,2,3], y=[2,1,2])]
519
522
fig['data'] += [Scatter(x=[1,2,3], y=[2,1,2], yaxis='y2')]
520
523
521
524
Example 3:
522
525
# irregular subplot layout (more examples below under 'specs')
523
526
fig = tools.make_subplots(rows=2, cols=2,
524
527
specs=[[{}, {}],
525
- [{'colspan': 2}, None]],
526
- print_grid=True)
528
+ [{'colspan': 2}, None]])
527
529
528
530
This is the format of your plot grid!
529
531
[ (1,1) x1,y1 ] [ (1,2) x2,y2 ]
530
532
[ (2,1) x3,y3 - ]
531
533
532
- fig['data'] += [Scatter(x=[1,2,3], y=[2,1,2], xaxis='x1', yaxis='y1' )]
534
+ fig['data'] += [Scatter(x=[1,2,3], y=[2,1,2])]
533
535
fig['data'] += [Scatter(x=[1,2,3], y=[2,1,2], xaxis='x2', yaxis='y2')]
534
536
fig['data'] += [Scatter(x=[1,2,3], y=[2,1,2], xaxis='x3', yaxis='y3')]
535
537
536
538
Example 4:
537
539
# insets
538
- fig = tools.make_subplots(insets=[{'cell': (1,1), 'l': 0.7, 'b': 0.3}],
539
- print_grid=True)
540
+ fig = tools.make_subplots(insets=[{'cell': (1,1), 'l': 0.7, 'b': 0.3}])
540
541
541
542
This is the format of your plot grid!
542
543
[ (1,1) x1,y1 ]
0 commit comments