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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,15 @@
2
2
All notable changes to this project will be documented in this file.
3
3
This project adheres to [Semantic Versioning](http://semver.org/).
4
4
5
+
### Removed
6
+
- Drop deprecated `pointcloud` and `heatmapgl` traces from the API
7
+
- Drop `tenacity` dependency [#4831](https://github.com/plotly/plotly.js/pull/4831)
8
+
9
+
### Updated
10
+
11
+
- Updated plotly.py to use base64 encoding of arrays in plotly JSON to improve performance.
12
+
- Add `subtitle` attribute to all Plotly Express traces
13
+
5
14
## [5.24.1] - 2024-09-12
6
15
7
16
### Updated
@@ -21,6 +30,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
21
30
22
31
- Fixed a bug in integer validation of arrays that threw an error when an array contained a mix of strings and integers.
23
32
33
+
- Fixed a bug in JupyterLab >= 4 and Jupyter Notebook >= 7 that caused latex to not render in plotly charts.
34
+
35
+
- Use modern [native ES6 import](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) to load plotly.js bundle instead of requirejs which is [no longer under active development](https://github.com/requirejs/r.js/compare/2.3.6...2.3.7)
to update to development versions of `plotly.js`. This will fetch the `plotly.js` in the CircleCI artifact of the branch `branchname` of the repo `reponame`. If `--devrepo` or `--devbranch` are omitted, `updateplotlyjsdev` defaults using `plotly/plotly.js` and `master` respectively.
See https://plotly.com/python/reference/scatter3d/ and https://plotly.com/python/reference/scatter/#scatter-marker-sizeref <br>for more information and chart attribute options!
221
+
See https://plotly.com/python/reference/scatter3d/ and https://plotly.com/python/reference/scatter/#scatter-marker-sizeref <br>for more information and chart attribute options!
Copy file name to clipboardExpand all lines: doc/python/bar-charts.md
+12-9Lines changed: 12 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ jupyter:
37
37
38
38
[Plotly Express](/python/plotly-express/) is the easy-to-use, high-level interface to Plotly, which [operates on a variety of types of data](/python/px-arguments/) and produces [easy-to-style figures](/python/styling-plotly-express/).
39
39
40
-
With `px.bar`, **each row of the DataFrame is represented as a rectangular mark**. To aggregate multiple data points into the same rectangular mark, please refer to the [histogram documentation](/python/histograms).
40
+
With `px.bar`, **each row of the DataFrame is represented as a rectangular mark**. To aggregate multiple data points into the same rectangular mark, please refer to the [histogram documentation](/python/histograms).
41
41
42
42
In the example below, there is only a single row of data per year, so a single bar is displayed per year.
43
43
@@ -152,7 +152,7 @@ fig.show()
152
152
153
153
### Aggregating into Single Colored Bars
154
154
155
-
As noted above `px.bar()` will result in **one rectangle drawn per row of input**. This can sometimes result in a striped look as in the examples above. To combine these rectangles into one per color per position, you can use `px.histogram()`, which has [its own detailed documentation page](/python/histogram).
155
+
As noted above `px.bar()` will result in **one rectangle drawn per row of input**. This can sometimes result in a striped look as in the examples above. To combine these rectangles into one per color per position, you can use `px.histogram()`, which has [its own detailed documentation page](/python/histogram).
156
156
157
157
> `px.bar` and `px.histogram` are designed to be nearly interchangeable in their call signatures, so as to be able to switch between aggregated and disaggregated bar representations.
### Stacked Bar Chart From Aggregating a DataFrame
307
+
### Stacked Bar Chart From Aggregating a DataFrame
308
308
309
309
Stacked bar charts are a powerful way to present results summarizing categories generated using the Pandas aggregate commands. `pandas.DataFrame.agg` produces a wide data set format incompatible with `px.bar`. Transposing and updating the indexes to achieve `px.bar` compatibility is a somewhat involved option. Here is one straightforward alternative, which presents the aggregated data as a stacked bar using plotly.graph_objects.
310
310
@@ -326,19 +326,19 @@ df_summarized["percent of world population"]=100*df_summarized["pop"]/df_summari
326
326
df_summarized["percent of world GDP"]=100*df_summarized["gdp"]/df_summarized["gdp"].sum()
327
327
328
328
329
-
df = df_summarized[["continent",
329
+
df = df_summarized[["continent",
330
330
"percent of world population",
331
331
"percent of world GDP",
332
332
]]
333
333
334
334
# We now have a wide data frame, but it's in the opposite orientation from the one that px is designed to deal with.
335
-
# Transposing it and rebuilding the indexes is an option, but iterating through the DF using graph objects is more succinct.
335
+
# Transposing it and rebuilding the indexes is an option, but iterating through the DF using graph objects is more succinct.
336
336
337
337
fig=go.Figure()
338
338
for category in df_summarized["continent"].values:
339
339
fig.add_trace(go.Bar(
340
340
x=df.columns[1:],
341
-
# We need to get a pandas series that contains just the values to graph;
341
+
# We need to get a pandas series that contains just the values to graph;
342
342
# We do so by selecting the right row, selecting the right columns
343
343
# and then transposing and using iloc to convert to a series
344
344
# Here, we assume that the bar element category variable is in column 0
Copy file name to clipboardExpand all lines: doc/python/configuration-options.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -207,7 +207,7 @@ fig.show(config=config)
207
207
To delete buttons from the modebar, pass an array of strings containing the names of the buttons you want to remove to the `modeBarButtonsToRemove` attribute in the figure's configuration dictionary. Note that different chart types have different default modebars. The following is a list of all the modebar buttons and the chart types they are associated with:
0 commit comments