Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2714d36

Browse files
Reformat colref variables to support Python2.7
1 parent b106d2d commit 2714d36

File tree

1 file changed

+34
-39
lines changed
  • packages/python/plotly/plotly/express

1 file changed

+34
-39
lines changed

‎packages/python/plotly/plotly/express/_doc.py‎

Lines changed: 34 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,10 @@
1010
# TODO document "or `None`, default `None`" in various places
1111
# TODO standardize positioning and casing of 'default'
1212

13-
colref = (
14-
"str or int or Series or array-like",
15-
"Either a name of a column in `data_frame`, or a pandas Series or array_like object.",
16-
)
17-
18-
colref_list = (
19-
"list of str or int, or Series or array-like",
20-
"Either names of columns in `data_frame`, or pandas Series, or array_like objects",
21-
)
13+
colref_type = "str or int or Series or array-like"
14+
colref_desc = "Either a name of a column in `data_frame`, or a pandas Series or array_like object."
15+
colref_list_type = "list of str or int, or Series or array-like"
16+
colref_list_desc = "Either names of columns in `data_frame`, or pandas Series, or array_like objects"
2217

2318
docs = dict(
2419
data_frame=[
@@ -27,121 +22,121 @@
2722
"Array-like and dict are tranformed internally to a pandas DataFrame.",
2823
],
2924
x=[
30-
*colref,
25+
colref_type, colref_desc,
3126
"Values from this column or array_like are used to position marks along the x axis in cartesian coordinates.",
3227
"For horizontal `histogram`s, these values are used as inputs to `histfunc`.",
3328
],
3429
y=[
35-
*colref,
30+
colref_type, colref_desc,
3631
"Values from this column or array_like are used to position marks along the y axis in cartesian coordinates.",
3732
"For vertical `histogram`s, these values are used as inputs to `histfunc`.",
3833
],
3934
z=[
40-
*colref,
35+
colref_type, colref_desc,
4136
"Values from this column or array_like are used to position marks along the z axis in cartesian coordinates.",
4237
"For `density_heatmap` and `density_contour` these values are used as the inputs to `histfunc`.",
4338
],
4439
a=[
45-
*colref,
40+
colref_type, colref_desc,
4641
"Values from this column or array_like are used to position marks along the a axis in ternary coordinates.",
4742
],
4843
b=[
49-
*colref,
44+
colref_type, colref_desc,
5045
"Values from this column or array_like are used to position marks along the b axis in ternary coordinates.",
5146
],
5247
c=[
53-
*colref,
48+
colref_type, colref_desc,
5449
"Values from this column or array_like are used to position marks along the c axis in ternary coordinates.",
5550
],
5651
r=[
57-
*colref,
52+
colref_type, colref_desc,
5853
"Values from this column or array_like are used to position marks along the radial axis in polar coordinates.",
5954
],
6055
theta=[
61-
*colref,
56+
colref_type, colref_desc,
6257
"Values from this column or array_like are used to position marks along the angular axis in polar coordinates.",
6358
],
6459
lat=[
65-
*colref,
60+
colref_type, colref_desc,
6661
"Values from this column or array_like are used to position marks according to latitude on a map.",
6762
],
6863
lon=[
69-
*colref,
64+
colref_type, colref_desc,
7065
"Values from this column or array_like are used to position marks according to longitude on a map.",
7166
],
7267
locations=[
73-
*colref,
68+
colref_type, colref_desc,
7469
"Values from this column or array_like are to be interpreted according to `locationmode` and mapped to longitude/latitude.",
7570
],
7671
dimensions=[
7772
"list of str",
7873
"Names of columns in `data_frame` to be used in multidimensional visualization.",
7974
],
8075
error_x=[
81-
*colref,
76+
colref_type, colref_desc,
8277
"Values from this column or array_like are used to size x-axis error bars.",
8378
"If `error_x_minus` is `None`, error bars will be symmetrical, otherwise `error_x` is used for the positive direction only.",
8479
],
8580
error_x_minus=[
86-
*colref,
81+
colref_type, colref_desc,
8782
"Values from this column or array_like are used to size x-axis error bars in the negative direction.",
8883
"Ignored if `error_x` is `None`.",
8984
],
9085
error_y=[
91-
*colref,
86+
colref_type, colref_desc,
9287
"Values from this column or array_like are used to size y-axis error bars.",
9388
"If `error_y_minus` is `None`, error bars will be symmetrical, otherwise `error_y` is used for the positive direction only.",
9489
],
9590
error_y_minus=[
96-
*colref,
91+
colref_type, colref_desc,
9792
"Values from this column or array_like are used to size y-axis error bars in the negative direction.",
9893
"Ignored if `error_y` is `None`.",
9994
],
10095
error_z=[
101-
*colref,
96+
colref_type, colref_desc,
10297
"Values from this column or array_like are used to size z-axis error bars.",
10398
"If `error_z_minus` is `None`, error bars will be symmetrical, otherwise `error_z` is used for the positive direction only.",
10499
],
105100
error_z_minus=[
106-
*colref,
101+
colref_type, colref_desc,
107102
"Values from this column or array_like are used to size z-axis error bars in the negative direction.",
108103
"Ignored if `error_z` is `None`.",
109104
],
110105
color=[
111-
*colref,
106+
colref_type, colref_desc,
112107
"Values from this column or array_like are used to assign color to marks.",
113108
],
114109
opacity=["float", "Value between 0 and 1. Sets the opacity for markers."],
115110
line_dash=[
116-
*colref,
111+
colref_type, colref_desc,
117112
"Values from this column or array_like are used to assign dash-patterns to lines.",
118113
],
119114
line_group=[
120-
*colref,
115+
colref_type, colref_desc,
121116
"Values from this column or array_like are used to group rows of `data_frame` into lines.",
122117
],
123118
symbol=[
124-
*colref,
119+
colref_type, colref_desc,
125120
"Values from this column or array_like are used to assign symbols to marks.",
126121
],
127122
size=[
128-
*colref,
123+
colref_type, colref_desc,
129124
"Values from this column or array_like are used to assign mark sizes.",
130125
],
131126
hover_name=[
132-
*colref,
127+
colref_type, colref_desc,
133128
"Values from this column or array_like appear in bold in the hover tooltip.",
134129
],
135130
hover_data=[
136-
*colref_list,
131+
colref_list_type, colref_list_desc,
137132
"Values from these columns appear as extra data in the hover tooltip.",
138133
],
139134
custom_data=[
140-
*colref_list,
135+
colref_list_type, colref_list_desc,
141136
"Values from these columns are extra data, to be used in widgets or Dash callbacks for example. This data is not user-visible but is included in events emitted by the figure (lasso selection etc.)",
142137
],
143138
text=[
144-
*colref,
139+
colref_type, colref_desc,
145140
"Values from this column or array_like appear in the figure as text labels.",
146141
],
147142
locationmode=[
@@ -150,19 +145,19 @@
150145
"Determines the set of locations used to match entries in `locations` to regions on the map.",
151146
],
152147
facet_row=[
153-
*colref,
148+
colref_type, colref_desc,
154149
"Values from this column or array_like are used to assign marks to facetted subplots in the vertical direction.",
155150
],
156151
facet_col=[
157-
*colref,
152+
colref_type, colref_desc,
158153
"Values from this column or array_like are used to assign marks to facetted subplots in the horizontal direction.",
159154
],
160155
animation_frame=[
161-
*colref,
156+
colref_type, colref_desc,
162157
"Values from this column or array_like are used to assign marks to animation frames.",
163158
],
164159
animation_group=[
165-
*colref,
160+
colref_type, colref_desc,
166161
"Values from this column or array_like are used to provide object-constancy across animation frames: rows with matching `animation_group`s will be treated as if they describe the same object in each frame.",
167162
],
168163
symbol_sequence=[

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /