Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop pointcloud and heatmapgl from plotly.py API and update plotly.js bundle from master #4815

Merged
merged 5 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion doc/apidoc/plotly.graph_objects.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ Simple Traces
Bar
Pie
Heatmap
Heatmapgl
Image
Contour
Table
Expand Down
12 changes: 6 additions & 6 deletions doc/python/3d-bubble-charts.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ fig = go.Figure(data=go.Scatter3d(
))

fig.update_layout(width=800, height=800, title = 'Planets!',
scene = dict(xaxis=dict(title='Distance from Sun', titlefont_color='white'),
yaxis=dict(title='Density', titlefont_color='white'),
zaxis=dict(title='Gravity', titlefont_color='white'),
scene = dict(xaxis=dict(title='Distance from Sun', title_font_color='white'),
yaxis=dict(title='Density', title_font_color='white'),
zaxis=dict(title='Gravity', title_font_color='white'),
bgcolor = 'rgb(20, 24, 54)'
))

Expand Down Expand Up @@ -155,9 +155,9 @@ fig = go.Figure(go.Scatter3d(
))

fig.update_layout(width=800, height=800, title = 'Planets!',
scene = dict(xaxis=dict(title='Distance from Sun', titlefont_color='white'),
yaxis=dict(title='Density', titlefont_color='white'),
zaxis=dict(title='Gravity', titlefont_color='white'),
scene = dict(xaxis=dict(title='Distance from Sun', title_font_color='white'),
yaxis=dict(title='Density', title_font_color='white'),
zaxis=dict(title='Gravity', title_font_color='white'),
bgcolor = 'rgb(20, 24, 54)'
))

Expand Down
2 changes: 1 addition & 1 deletion doc/python/bar-charts.md
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ fig.update_layout(
xaxis_tickfont_size=14,
yaxis=dict(
title='USD (millions)',
titlefont_size=16,
title_font_size=16,
tickfont_size=14,
),
legend=dict(
Expand Down
2 changes: 1 addition & 1 deletion doc/python/contour-plots.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ fig = go.Figure(data=
colorbar=dict(
title='Color bar title', # title here
titleside='right',
titlefont=dict(
title_font=dict(
size=14,
family='Arial, sans-serif')
)))
Expand Down
8 changes: 4 additions & 4 deletions doc/python/multiple-axes.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ fig.update_layout(
),
yaxis=dict(
title="yaxis title",
titlefont=dict(
title_font=dict(
color="#1f77b4"
),
tickfont=dict(
Expand All @@ -202,7 +202,7 @@ fig.update_layout(
),
yaxis2=dict(
title="yaxis2 title",
titlefont=dict(
title_font=dict(
color="#ff7f0e"
),
tickfont=dict(
Expand All @@ -215,7 +215,7 @@ fig.update_layout(
),
yaxis3=dict(
title="yaxis3 title",
titlefont=dict(
title_font=dict(
color="#d62728"
),
tickfont=dict(
Expand All @@ -227,7 +227,7 @@ fig.update_layout(
),
yaxis4=dict(
title="yaxis4 title",
titlefont=dict(
title_font=dict(
color="#9467bd"
),
tickfont=dict(
Expand Down
2 changes: 1 addition & 1 deletion doc/python/network-graphs.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ node_trace.text = node_text
fig = go.Figure(data=[edge_trace, node_trace],
layout=go.Layout(
title='<br>Network graph made with Python',
titlefont_size=16,
title_font_size=16,
showlegend=False,
hovermode='closest',
margin=dict(b=20,l=5,r=5,t=40),
Expand Down
10 changes: 5 additions & 5 deletions doc/python/range-slider.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ fig.update_layout(
tickfont={"color": "#673ab7"},
tickmode="auto",
ticks="",
titlefont={"color": "#673ab7"},
title_font={"color": "#673ab7"},
type="linear",
zeroline=False
),
Expand All @@ -268,7 +268,7 @@ fig.update_layout(
tickfont={"color": "#E91E63"},
tickmode="auto",
ticks="",
titlefont={"color": "#E91E63"},
title_font={"color": "#E91E63"},
type="linear",
zeroline=False
),
Expand All @@ -285,7 +285,7 @@ fig.update_layout(
tickmode="auto",
ticks="",
title="mg/L",
titlefont={"color": "#795548"},
title_font={"color": "#795548"},
type="linear",
zeroline=False
),
Expand All @@ -302,7 +302,7 @@ fig.update_layout(
tickmode="auto",
ticks="",
title="mmol/L",
titlefont={"color": "#607d8b"},
title_font={"color": "#607d8b"},
type="linear",
zeroline=False
),
Expand All @@ -319,7 +319,7 @@ fig.update_layout(
tickmode="auto",
ticks="",
title="mg/Kg",
titlefont={"color": "#2196F3"},
title_font={"color": "#2196F3"},
type="linear",
zeroline=False
)
Expand Down
6 changes: 3 additions & 3 deletions doc/python/setting-graph-size.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ fig.update_layout(
ticktext=["Very long label", "long label", "3", "label"],
tickvals=[1, 2, 3, 4],
tickmode="array",
titlefont=dict(size=30),
title_font=dict(size=30),
)
)

Expand Down Expand Up @@ -157,7 +157,7 @@ fig.update_layout(
ticktext=["Very long label", "long label", "3", "label"],
tickvals=[1, 2, 3, 4],
tickmode="array",
titlefont=dict(size=30),
title_font=dict(size=30),
)
)

Expand Down Expand Up @@ -194,7 +194,7 @@ fig.update_layout(
ticktext=["Label", "Very long label", "Other label", "Very very long label"],
tickvals=[1, 2, 3, 4],
tickmode="array",
titlefont=dict(size=30),
title_font=dict(size=30),
)
)

Expand Down
2 changes: 1 addition & 1 deletion doc/python/static-image-export.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ and **EPS** (requires the poppler library)
fig.write_image("images/fig1.eps")
~~~

**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.
**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.


### Image Export in Dash
Expand Down
2 changes: 1 addition & 1 deletion doc/python/ternary-plots.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ rawData = [
def makeAxis(title, tickangle):
return {
'title': title,
'titlefont': { 'size': 20 },
'title_font': { 'size': 20 },
'tickangle': tickangle,
'tickfont': { 'size': 15 },
'tickcolor': 'rgba(0,0,0,0)',
Expand Down
4 changes: 2 additions & 2 deletions doc/python/webgl-vs-svg.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jupyter:

`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:

* Accelerated versions of SVG trace types: `scattergl`, `scatterpolargl`, `heatmapgl`
* Accelerated versions of SVG trace types: `scattergl`, `scatterpolargl`,
* High-performance multidimensional trace types: `splom`, or `parcoords`
* 3-d trace types `scatter3d`, `surface`, `mesh3d`, `cone`, `streamtube`
* Mapbox Gl JS-powered trace types: `scattermapbox`, `choroplethmapbox`, `densitymapbox`
Expand All @@ -52,7 +52,7 @@ WebGL is a powerful technology for accelerating computation but comes with some
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.**
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)

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
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
* Available symbols will differ
* Area fills are not yet supported in WebGL
* Range breaks on time-series axes are not yet supported
Expand Down
8 changes: 4 additions & 4 deletions doc/unconverted/python/cars-exploration.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,19 +109,19 @@ fig.layout.title = 'Torque and Fuel Efficience'
Check default font size

```python
fig.layout.titlefont.size
fig.layout.title_font.size
```

Increase the title font size

```python
fig.layout.titlefont.size = 22
fig.layout.title_font.size = 22
```

Set `fig.layout.titlefont.family` to `'Rockwell'`
Set `fig.layout.title_font.family` to `'Rockwell'`

```python
fig.layout.titlefont.family = 'Rockwell'
fig.layout.title_font.family = 'Rockwell'
```

### Create New View for Figure
Expand Down
105 changes: 0 additions & 105 deletions doc/unconverted/python/heatmap-webgl.md

This file was deleted.

Loading