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
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,12 @@
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
+
## [UNRELEASED]
6
+
7
+
### Fixed
8
+
- Fixed another compatibility issue with Pandas 2.0, just affecting `px.*(line_close=True)`[[#4190](https://github.com/plotly/plotly.py/pull/4190)]
9
+
- Added some rounding to the `make_subplots` function to handle situations where the user-input specs cause the domain to exceed 1 by small amounts https://github.com/plotly/plotly.py/pull/4153
Copy file name to clipboardExpand all lines: doc/python/static-image-export.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,42 +109,42 @@ If you are running this notebook live, click to [open the output directory](./im
109
109
110
110
plotly.py can output figures to several raster image formats including **PNG**, ...
111
111
112
-
```python
112
+
~~~python
113
113
fig.write_image("images/fig1.png")
114
-
```
114
+
~~~
115
115
116
116
**JPEG**, ...
117
117
118
-
```python
118
+
~~~python
119
119
fig.write_image("images/fig1.jpeg")
120
-
```
120
+
~~~
121
121
122
122
and **WebP**
123
123
124
-
```python
124
+
~~~python
125
125
fig.write_image("images/fig1.webp")
126
-
```
126
+
~~~
127
127
128
128
#### Vector Formats: SVG and PDF...
129
129
130
130
131
131
plotly.py can also output figures in several vector formats including **SVG**, ...
132
132
133
-
```python
133
+
~~~python
134
134
fig.write_image("images/fig1.svg")
135
-
```
135
+
~~~
136
136
137
137
**PDF**, ...
138
138
139
-
```python
139
+
~~~python
140
140
fig.write_image("images/fig1.pdf")
141
-
```
141
+
~~~
142
142
143
143
and **EPS** (requires the poppler library)
144
144
145
-
```python
145
+
~~~python
146
146
fig.write_image("images/fig1.eps")
147
-
```
147
+
~~~
148
148
149
149
**Note:** It is important to note that any figures containing WebGL traces (i.e. of type `scattergl`, `heatmapgl`, `contourgl`, `scatter3d`, `surface`, `mesh3d`, `scatterpolargl`, `cone`, `streamtube`, `splom`, or `parcoords`) that are exported in a vector format will include encapsulated rasters, instead of vectors, for some parts of the image.
150
150
@@ -199,14 +199,14 @@ Image(img_bytes)
199
199
If `kaleido` is installed, it will automatically be used to perform image export. If it is not installed, plotly.py will attempt to use `orca` instead. The `engine` argument to the `to_image` and `write_image` functions can be used to override this default behavior.
200
200
201
201
Here is an example of specifying that orca should be used:
202
-
```python
202
+
~~~python
203
203
fig.to_image(format="png", engine="orca")
204
-
```
204
+
~~~
205
205
206
206
And, here is an example of specifying that Kaleido should be used:
0 commit comments