Skip to content

Fix suplot typo #4446

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions packages/python/plotly/plotly/_subplots.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def make_subplots(
in fraction of cell height ('to_end': to cell top edge)

column_widths: list of numbers or None (default None)
list of length `cols` of the relative widths of each column of suplots.
list of length `cols` of the relative widths of each column of subplots.
Values are normalized internally and used to distribute overall width
of the figure (excluding padding) among the columns.

Expand Down Expand Up @@ -358,7 +358,7 @@ def make_subplots(
if not isinstance(rows, int) or rows <= 0:
raise ValueError(
"""
The 'rows' argument to make_suplots must be an int greater than 0.
The 'rows' argument to make_subplots must be an int greater than 0.
Received value of type {typ}: {val}""".format(
typ=type(rows), val=repr(rows)
)
Expand All @@ -368,7 +368,7 @@ def make_subplots(
if not isinstance(cols, int) or cols <= 0:
raise ValueError(
"""
The 'cols' argument to make_suplots must be an int greater than 0.
The 'cols' argument to make_subplots must be an int greater than 0.
Received value of type {typ}: {val}""".format(
typ=type(cols), val=repr(cols)
)
Expand Down Expand Up @@ -399,7 +399,7 @@ def _checks(item, defaults):
if not isinstance(item, dict):
raise ValueError(
"""
Elements of the '{name}' argument to make_suplots must be dictionaries \
Elements of the '{name}' argument to make_subplots must be dictionaries \
or None.
Received value of type {typ}: {val}""".format(
name=name, typ=type(item), val=repr(item)
Expand Down Expand Up @@ -484,7 +484,7 @@ def _checks(item, defaults):
):
raise ValueError(
"""
The 'insets' argument to make_suplots must be a list of dictionaries.
The 'insets' argument to make_subplots must be a list of dictionaries.
Received value of type {typ}: {val}""".format(
typ=type(insets), val=repr(insets)
)
Expand Down Expand Up @@ -587,7 +587,7 @@ def _check_hv_spacing(dimsize, spacing, name, dimvarname, dimname):
else:
raise ValueError(
"""
The 'column_widths' argument to make_suplots must be a list of numbers of \
The 'column_widths' argument to make_subplots must be a list of numbers of \
length {cols}.
Received value of type {typ}: {val}""".format(
cols=cols, typ=type(column_widths), val=repr(column_widths)
Expand All @@ -607,7 +607,7 @@ def _check_hv_spacing(dimsize, spacing, name, dimvarname, dimname):
else:
raise ValueError(
"""
The 'row_heights' argument to make_suplots must be a list of numbers of \
The 'row_heights' argument to make_subplots must be a list of numbers of \
length {rows}.
Received value of type {typ}: {val}""".format(
rows=rows, typ=type(row_heights), val=repr(row_heights)
Expand Down
2 changes: 1 addition & 1 deletion packages/python/plotly/plotly/basedatatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -5709,7 +5709,7 @@ class BaseLayoutType(BaseLayoutHierarchyType):
# These are used when a layout has multiple instances of subplot types
# (xaxis2, yaxis3, geo4, etc.)
#
# The base version of each suplot type is defined in the schema and code
# The base version of each subplot type is defined in the schema and code
# generated. So the Layout subclass has statically defined properties
# for xaxis, yaxis, geo, ternary, and scene. But, we need to dynamically
# generated properties/validators as needed for xaxis2, yaxis3, etc.
Expand Down
2 changes: 1 addition & 1 deletion packages/python/plotly/plotly/subplots.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def make_subplots(
in fraction of cell height ('to_end': to cell top edge)

column_widths: list of numbers or None (default None)
list of length `cols` of the relative widths of each column of suplots.
list of length `cols` of the relative widths of each column of subplots.
Values are normalized internally and used to distribute overall width
of the figure (excluding padding) among the columns.

Expand Down