Skip to content

Commit 7bb6ba2

Browse files
committed
rm '>>>' in docstring
1 parent af67e90 commit 7bb6ba2

File tree

1 file changed

+24
-21
lines changed

1 file changed

+24
-21
lines changed

plotly/tools.py

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -391,13 +391,13 @@ def get_subplots(rows=1, columns=1, print_grid=False, **kwargs):
391391
392392
Example 1:
393393
# stack two subplots vertically
394-
>>> fig = tools.get_subplots(rows=2)
395-
>>> fig['data'] += [Scatter(x=[1,2,3], y=[2,1,2], xaxis='x1', yaxis='y1')]
396-
>>> fig['data'] += [Scatter(x=[1,2,3], y=[2,1,2], xaxis='x2', yaxis='y2')]
394+
fig = tools.get_subplots(rows=2)
395+
fig['data'] += [Scatter(x=[1,2,3], y=[2,1,2], xaxis='x1', yaxis='y1')]
396+
fig['data'] += [Scatter(x=[1,2,3], y=[2,1,2], xaxis='x2', yaxis='y2')]
397397
398398
Example 2:
399399
# print out string showing the subplot grid you've put in the layout
400-
>>> fig = tools.get_subplots(rows=3, columns=2, print_grid=True)
400+
fig = tools.get_subplots(rows=3, columns=2, print_grid=True)
401401
402402
Keywords arguments with constant defaults:
403403
@@ -500,49 +500,52 @@ def make_subplots(rows=1, cols=1,
500500
501501
Example 1:
502502
# stack two subplots vertically
503-
>>> fig = tools.make_subplots(rows=2, print_grid=True)
503+
fig = tools.make_subplots(rows=2, print_grid=True)
504+
504505
This is the format of your plot grid!
505506
[ (1,1) x1,y1 ]
506507
[ (2,1) x2,y2 ]
507508
508-
>>> 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], xaxis='x2', yaxis='y2')]
509+
fig['data'] += [Scatter(x=[1,2,3], y=[2,1,2], xaxis='x1', yaxis='y1')]
510+
fig['data'] += [Scatter(x=[1,2,3], y=[2,1,2], xaxis='x2', yaxis='y2')]
510511
511512
Example 2:
512513
# subplots with shared x axes
513-
>>> fig = tools.make_subplots(rows=2, shared_xaxes=True, print_grid=True)
514+
fig = tools.make_subplots(rows=2, shared_xaxes=True, print_grid=True)
514515
515516
TODO What's the default behavior here??
516517
517-
>>> fig['data'] += [Scatter(x=[1,2,3], y=[2,1,2], yaxis='y1')]
518-
>>> fig['data'] += [Scatter(x=[1,2,3], y=[2,1,2], yaxis='y2')]
518+
fig['data'] += [Scatter(x=[1,2,3], y=[2,1,2], yaxis='y1')]
519+
fig['data'] += [Scatter(x=[1,2,3], y=[2,1,2], yaxis='y2')]
519520
520521
Example 3:
521522
# irregular subplot layout (more examples below under 'specs')
522-
>>> fig = tools.make_subplots(rows=2, cols=2,
523-
specs=[[{}, {}],
524-
[{'colspan': 2}, None]],
525-
print_grid=True)
523+
fig = tools.make_subplots(rows=2, cols=2,
524+
specs=[[{}, {}],
525+
[{'colspan': 2}, None]],
526+
print_grid=True)
527+
526528
This is the format of your plot grid!
527529
[ (1,1) x1,y1 ] [ (1,2) x2,y2 ]
528530
[ (2,1) x3,y3 - ]
529531
530-
>>> fig['data'] += [Scatter(x=[1,2,3], y=[2,1,2], xaxis='x1', yaxis='y1')]
531-
>>> fig['data'] += [Scatter(x=[1,2,3], y=[2,1,2], xaxis='x2', yaxis='y2')]
532-
>>> fig['data'] += [Scatter(x=[1,2,3], y=[2,1,2], xaxis='x3', yaxis='y3')]
532+
fig['data'] += [Scatter(x=[1,2,3], y=[2,1,2], xaxis='x1', yaxis='y1')]
533+
fig['data'] += [Scatter(x=[1,2,3], y=[2,1,2], xaxis='x2', yaxis='y2')]
534+
fig['data'] += [Scatter(x=[1,2,3], y=[2,1,2], xaxis='x3', yaxis='y3')]
533535
534536
Example 4:
535537
# insets
536-
>>> fig = tools.make_subplots(insets=[{'cell': (1,1), 'l': 0.7, 'b': 0.3}],
537-
print_grid=True)
538+
fig = tools.make_subplots(insets=[{'cell': (1,1), 'l': 0.7, 'b': 0.3}],
539+
print_grid=True)
540+
538541
This is the format of your plot grid!
539542
[ (1,1) x1,y1 ]
540543
541544
With insets:
542545
[ x2,y2 ] over [ (1,1) x1,y1 ]
543546
544-
>>> fig['data'] += [Scatter(x=[1,2,3], y=[2,1,2])]
545-
>>> fig['data'] += [Scatter(x=[1,2,3], y=[2,1,2], xaxis='x2', yaxis='y2')]
547+
fig['data'] += [Scatter(x=[1,2,3], y=[2,1,2])]
548+
fig['data'] += [Scatter(x=[1,2,3], y=[2,1,2], xaxis='x2', yaxis='y2')]
546549
547550
Keywords arguments with constant defaults:
548551

0 commit comments

Comments
 (0)