You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: plotly_express/_doc.py
+17-9Lines changed: 17 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -16,14 +16,17 @@
16
16
x=[
17
17
colref,
18
18
"Values from this column are used to position marks along the x axis in cartesian coordinates.",
19
+
"For horizontal `histogram`s, these values are used as inputs to `histfunc`.",
19
20
],
20
21
y=[
21
22
colref,
22
23
"Values from this column are used to position marks along the y axis in cartesian coordinates.",
24
+
"For vertical `histogram`s, these values are used as inputs to `histfunc`.",
23
25
],
24
26
z=[
25
27
colref,
26
28
"Values from this column are used to position marks along the z axis in cartesian coordinates.",
29
+
"For `density_heatmap` and `density_contour` these values are used as the inputs to `histfunc`.",
27
30
],
28
31
a=[
29
32
colref,
@@ -255,12 +258,20 @@
255
258
"(integer, default is 90)",
256
259
"Sets start angle for the angular axis, with 0 being due east and 90 being due north.",
257
260
],
261
+
histfunc=[
262
+
"(string, one of `'count'`, `'sum'`, `'avg'`, `'min'`, `'max'`. Default is `'count'`)"
263
+
"Function used to aggregate values for summarization (note: can be normalized with `histnorm`).",
264
+
"The arguments to this function for `histogram` are the values of `y` if `orientation` is `'v'`,",
265
+
"otherwise the arguements are the values of `x`.",
266
+
"The arguments to this function for `density_heatmap` and `density_contour` are the values of `z`.",
267
+
],
258
268
histnorm=[
259
269
"(string, one of `'percent'`, `'probability'`, `'density'`, `'probability density'`, default `None`)",
260
-
"If `None`, the span of each bar corresponds to the number of occurrences (i.e. the number of data points lying inside the bins).",
261
-
"If `'percent'` or `'probability'`, the span of each bar corresponds to the percentage / fraction of occurrences with respect to the total number of sample points (here, the sum of all bin HEIGHTS equals 100% / 1).",
262
-
"If `'density'`, the span of each bar corresponds to the number of occurrences in a bin divided by the size of the bin interval (here, the sum of all bin AREAS equals the total number of sample points).",
263
-
"If `'probability density'`, the area of each bar corresponds to the probability that an event will fall into the corresponding bin (here, the sum of all bin AREAS equals 1).",
270
+
"If `None`, the output of `histfunc` is used as is.",
271
+
"If `'probability'`, the output of `histfunc` for a given bin is divided by the sum of the output of `histfunc` for all bins.",
272
+
"If `'percent'`, the output of `histfunc` for a given bin is divided by the sum of the output of `histfunc` for all bins and multiplied by 100.",
273
+
"If `'density'`, the output of `histfunc` for a given bin is divided by the size of the bin.",
274
+
"If `'probability density'`, the output of `histfunc` for a given bin is normalized such that it corresponds to the probability that a random event whose distribution is described by the output of `histfunc` will fall into that bin.",
264
275
],
265
276
barnorm=[
266
277
"(string, one of `'fraction'` or `'percent'`, default is `None`)",
@@ -298,11 +309,6 @@
298
309
"If `True`, an extra line segment is drawn between the first and last point.",
299
310
],
300
311
line_shape=["(string, one of `'linear'` or `'spline'`)", "Default is `'linear'`."],
301
-
histfunc=[
302
-
"(string, one of `'count'`, `'sum'`, `'avg'`, `'min'`, `'max'`. Default is `'count'`)"
303
-
"Function used to compute histogram bar lengths.",
304
-
"The arguments to this function are the values of `y` if `orientation` is `'v'`, otherwise the arguements are the values of `x`.",
305
-
],
306
312
scope=[
307
313
"(string, one of `'world'`, `'usa'`, `'europe'`, `'asia'`, `'africa'`, `'north america'`, `'south america'`)"
308
314
"Default is `'world'` unless `projection` is set to `'albers usa'`, which forces `'usa'`."
@@ -328,6 +334,8 @@
328
334
"If `True`, histogram values are cumulative.",
329
335
],
330
336
nbins=["(positive integer)", "Sets the number of bins."],
337
+
nbinsx=["(positive integer)", "Sets the number of bins along the x axis."],
338
+
nbinsy=["(positive integer)", "Sets the number of bins along the y axis."],
0 commit comments