Skip to content

Commit a6da40b

Browse files
authored
Merge pull request #4815 from plotly/drop-pointcloud-heatmapgl
Drop `pointcloud` and `heatmapgl` from plotly.py API and update plotly.js bundle from master
2 parents 31b042d + 9f7ce4e commit a6da40b

File tree

691 files changed

+9877
-41909
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

691 files changed

+9877
-41909
lines changed

Diff for: CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
### Removed
6+
- Drop deprecated `pointcloud` and `heatmapgl` traces from the API
7+
58
### Updated
69

710
- Updated plotly.py to use base64 encoding of arrays in plotly JSON to improve performance.

Diff for: doc/apidoc/plotly.graph_objects.rst

-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ Simple Traces
4343
Bar
4444
Pie
4545
Heatmap
46-
Heatmapgl
4746
Image
4847
Contour
4948
Table

Diff for: doc/python/3d-bubble-charts.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ fig = go.Figure(data=go.Scatter3d(
114114
))
115115

116116
fig.update_layout(width=800, height=800, title = 'Planets!',
117-
scene = dict(xaxis=dict(title='Distance from Sun', titlefont_color='white'),
118-
yaxis=dict(title='Density', titlefont_color='white'),
119-
zaxis=dict(title='Gravity', titlefont_color='white'),
117+
scene = dict(xaxis=dict(title='Distance from Sun', title_font_color='white'),
118+
yaxis=dict(title='Density', title_font_color='white'),
119+
zaxis=dict(title='Gravity', title_font_color='white'),
120120
bgcolor = 'rgb(20, 24, 54)'
121121
))
122122

@@ -155,9 +155,9 @@ fig = go.Figure(go.Scatter3d(
155155
))
156156

157157
fig.update_layout(width=800, height=800, title = 'Planets!',
158-
scene = dict(xaxis=dict(title='Distance from Sun', titlefont_color='white'),
159-
yaxis=dict(title='Density', titlefont_color='white'),
160-
zaxis=dict(title='Gravity', titlefont_color='white'),
158+
scene = dict(xaxis=dict(title='Distance from Sun', title_font_color='white'),
159+
yaxis=dict(title='Density', title_font_color='white'),
160+
zaxis=dict(title='Gravity', title_font_color='white'),
161161
bgcolor = 'rgb(20, 24, 54)'
162162
))
163163

Diff for: doc/python/bar-charts.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ fig.update_layout(
620620
xaxis_tickfont_size=14,
621621
yaxis=dict(
622622
title='USD (millions)',
623-
titlefont_size=16,
623+
title_font_size=16,
624624
tickfont_size=14,
625625
),
626626
legend=dict(

Diff for: doc/python/contour-plots.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ fig = go.Figure(data=
283283
colorbar=dict(
284284
title='Color bar title', # title here
285285
titleside='right',
286-
titlefont=dict(
286+
title_font=dict(
287287
size=14,
288288
family='Arial, sans-serif')
289289
)))

Diff for: doc/python/multiple-axes.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ fig.update_layout(
193193
),
194194
yaxis=dict(
195195
title="yaxis title",
196-
titlefont=dict(
196+
title_font=dict(
197197
color="#1f77b4"
198198
),
199199
tickfont=dict(
@@ -202,7 +202,7 @@ fig.update_layout(
202202
),
203203
yaxis2=dict(
204204
title="yaxis2 title",
205-
titlefont=dict(
205+
title_font=dict(
206206
color="#ff7f0e"
207207
),
208208
tickfont=dict(
@@ -215,7 +215,7 @@ fig.update_layout(
215215
),
216216
yaxis3=dict(
217217
title="yaxis3 title",
218-
titlefont=dict(
218+
title_font=dict(
219219
color="#d62728"
220220
),
221221
tickfont=dict(
@@ -227,7 +227,7 @@ fig.update_layout(
227227
),
228228
yaxis4=dict(
229229
title="yaxis4 title",
230-
titlefont=dict(
230+
title_font=dict(
231231
color="#9467bd"
232232
),
233233
tickfont=dict(

Diff for: doc/python/network-graphs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ node_trace.text = node_text
129129
fig = go.Figure(data=[edge_trace, node_trace],
130130
layout=go.Layout(
131131
title='<br>Network graph made with Python',
132-
titlefont_size=16,
132+
title_font_size=16,
133133
showlegend=False,
134134
hovermode='closest',
135135
margin=dict(b=20,l=5,r=5,t=40),

Diff for: doc/python/range-slider.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ fig.update_layout(
252252
tickfont={"color": "#673ab7"},
253253
tickmode="auto",
254254
ticks="",
255-
titlefont={"color": "#673ab7"},
255+
title_font={"color": "#673ab7"},
256256
type="linear",
257257
zeroline=False
258258
),
@@ -268,7 +268,7 @@ fig.update_layout(
268268
tickfont={"color": "#E91E63"},
269269
tickmode="auto",
270270
ticks="",
271-
titlefont={"color": "#E91E63"},
271+
title_font={"color": "#E91E63"},
272272
type="linear",
273273
zeroline=False
274274
),
@@ -285,7 +285,7 @@ fig.update_layout(
285285
tickmode="auto",
286286
ticks="",
287287
title="mg/L",
288-
titlefont={"color": "#795548"},
288+
title_font={"color": "#795548"},
289289
type="linear",
290290
zeroline=False
291291
),
@@ -302,7 +302,7 @@ fig.update_layout(
302302
tickmode="auto",
303303
ticks="",
304304
title="mmol/L",
305-
titlefont={"color": "#607d8b"},
305+
title_font={"color": "#607d8b"},
306306
type="linear",
307307
zeroline=False
308308
),
@@ -319,7 +319,7 @@ fig.update_layout(
319319
tickmode="auto",
320320
ticks="",
321321
title="mg/Kg",
322-
titlefont={"color": "#2196F3"},
322+
title_font={"color": "#2196F3"},
323323
type="linear",
324324
zeroline=False
325325
)

Diff for: doc/python/setting-graph-size.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ fig.update_layout(
122122
ticktext=["Very long label", "long label", "3", "label"],
123123
tickvals=[1, 2, 3, 4],
124124
tickmode="array",
125-
titlefont=dict(size=30),
125+
title_font=dict(size=30),
126126
)
127127
)
128128

@@ -157,7 +157,7 @@ fig.update_layout(
157157
ticktext=["Very long label", "long label", "3", "label"],
158158
tickvals=[1, 2, 3, 4],
159159
tickmode="array",
160-
titlefont=dict(size=30),
160+
title_font=dict(size=30),
161161
)
162162
)
163163

@@ -194,7 +194,7 @@ fig.update_layout(
194194
ticktext=["Label", "Very long label", "Other label", "Very very long label"],
195195
tickvals=[1, 2, 3, 4],
196196
tickmode="array",
197-
titlefont=dict(size=30),
197+
title_font=dict(size=30),
198198
)
199199
)
200200

Diff for: doc/python/static-image-export.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ and **EPS** (requires the poppler library)
146146
fig.write_image("images/fig1.eps")
147147
~~~
148148

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.
149+
**Note:** It is important to note that any figures containing WebGL traces (i.e. of type `scattergl`, `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.
150150

151151

152152
### Image Export in Dash

Diff for: doc/python/ternary-plots.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ rawData = [
8383
def makeAxis(title, tickangle):
8484
return {
8585
'title': title,
86-
'titlefont': { 'size': 20 },
86+
'title_font': { 'size': 20 },
8787
'tickangle': tickangle,
8888
'tickfont': { 'size': 15 },
8989
'tickcolor': 'rgba(0,0,0,0)',

Diff for: doc/python/webgl-vs-svg.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jupyter:
3838

3939
`plotly` figures are rendered by web browsers, which broadly speaking have two families of capabilities for rendering graphics: the SVG API which supports vector rendering, and the Canvas API which supports raster rendering, and can exploit GPU hardware acceleration via a browser technology known as WebGL. Each `plotly` trace type is primarily rendered with either SVG or WebGL, although WebGL-powered traces also use some SVG. The following trace types use WebGL for part or all of the rendering:
4040

41-
* Accelerated versions of SVG trace types: `scattergl`, `scatterpolargl`, `heatmapgl`
41+
* Accelerated versions of SVG trace types: `scattergl`, `scatterpolargl`,
4242
* High-performance multidimensional trace types: `splom`, or `parcoords`
4343
* 3-d trace types `scatter3d`, `surface`, `mesh3d`, `cone`, `streamtube`
4444
* Mapbox Gl JS-powered trace types: `scattermapbox`, `choroplethmapbox`, `densitymapbox`
@@ -52,7 +52,7 @@ WebGL is a powerful technology for accelerating computation but comes with some
5252
3. Context limits: browsers impose a strict limit on the number of WebGL "contexts" that any given web document can access. WebGL-powered traces in `plotly` can use multiple contexts in some cases but as a general rule, **it may not be possible to render more than 8 WebGL-involving figures on the same page at the same time.**
5353
4. Size limits: browsers impose hardware-dependent limits on the height and width of figures using WebGL which users may encounter with extremely large plots (e.g. tens of thousands of pixels of height)
5454

55-
In addition to the above limitations, the WebGL-powered version of certain SVG-powered trace types (`scattergl`, `scatterpolargl`, `heatmapgl`) are not complete drop-in replacements for their SVG counterparts yet
55+
In addition to the above limitations, the WebGL-powered version of certain SVG-powered trace types (`scattergl`, `scatterpolargl`) are not complete drop-in replacements for their SVG counterparts yet
5656
* Available symbols will differ
5757
* Area fills are not yet supported in WebGL
5858
* Range breaks on time-series axes are not yet supported

Diff for: doc/unconverted/python/cars-exploration.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -109,19 +109,19 @@ fig.layout.title = 'Torque and Fuel Efficience'
109109
Check default font size
110110

111111
```python
112-
fig.layout.titlefont.size
112+
fig.layout.title_font.size
113113
```
114114

115115
Increase the title font size
116116

117117
```python
118-
fig.layout.titlefont.size = 22
118+
fig.layout.title_font.size = 22
119119
```
120120

121-
Set `fig.layout.titlefont.family` to `'Rockwell'`
121+
Set `fig.layout.title_font.family` to `'Rockwell'`
122122

123123
```python
124-
fig.layout.titlefont.family = 'Rockwell'
124+
fig.layout.title_font.family = 'Rockwell'
125125
```
126126

127127
### Create New View for Figure

Diff for: doc/unconverted/python/heatmap-webgl.md

-105
This file was deleted.

0 commit comments

Comments
 (0)