MCPcopy Index your code
hub / github.com/plotly/plotly.py / make_subplots

Function make_subplots

plotly/_subplots.py:42–894  ·  view source on GitHub ↗

Return an instance of plotly.graph_objs.Figure with predefined subplots configured in 'layout'. Parameters ---------- rows: int (default 1) Number of rows in the subplot grid. Must be greater than zero. cols: int (default 1) Number of columns in the subplot

(
    rows=1,
    cols=1,
    shared_xaxes=False,
    shared_yaxes=False,
    start_cell="top-left",
    print_grid=False,
    horizontal_spacing=None,
    vertical_spacing=None,
    subplot_titles=None,
    column_widths=None,
    row_heights=None,
    specs=None,
    insets=None,
    column_titles=None,
    row_titles=None,
    x_title=None,
    y_title=None,
    figure=None,
    font=None,
    **kwargs,
)

Source from the content-addressed store, hash-verified

40
41
42def make_subplots(
43 rows=1,
44 cols=1,
45 shared_xaxes=False,
46 shared_yaxes=False,
47 start_cell="top-left",
48 print_grid=False,
49 horizontal_spacing=None,
50 vertical_spacing=None,
51 subplot_titles=None,
52 column_widths=None,
53 row_heights=None,
54 specs=None,
55 insets=None,
56 column_titles=None,
57 row_titles=None,
58 x_title=None,
59 y_title=None,
60 figure=None,
61 font=None,
62 **kwargs,
63):
64 """
65 Return an instance of plotly.graph_objs.Figure with predefined subplots
66 configured in 'layout'.
67
68 Parameters
69 ----------
70 rows: int (default 1)
71 Number of rows in the subplot grid. Must be greater than zero.
72
73 cols: int (default 1)
74 Number of columns in the subplot grid. Must be greater than zero.
75
76 shared_xaxes: boolean or str (default False)
77 Assign shared (linked) x-axes for 2D cartesian subplots
78
79 - True or 'columns': Share axes among subplots in the same column
80 - 'rows': Share axes among subplots in the same row
81 - 'all': Share axes across all subplots in the grid.
82
83 shared_yaxes: boolean or str (default False)
84 Assign shared (linked) y-axes for 2D cartesian subplots
85
86 - 'columns': Share axes among subplots in the same column
87 - True or 'rows': Share axes among subplots in the same row
88 - 'all': Share axes across all subplots in the grid.
89
90 start_cell: 'bottom-left' or 'top-left' (default 'top-left')
91 Choose the starting cell in the subplot grid used to set the
92 domains_grid of the subplots.
93
94 - 'top-left': Subplots are numbered with (1, 1) in the top
95 left corner
96 - 'bottom-left': Subplots are numbered with (1, 1) in the bottom
97 left corner
98
99 print_grid: boolean (default True):

Callers 1

init_figureFunction · 0.90

Calls 11

update_layoutMethod · 0.95
_check_keys_and_fillFunction · 0.85
_check_hv_spacingFunction · 0.85
_init_subplotFunction · 0.85
_configure_shared_axesFunction · 0.85
_build_grid_strFunction · 0.85
popMethod · 0.45
formatMethod · 0.45
extendMethod · 0.45

Tested by

no test coverage detected