diff --git a/doc/python/configuration-options.md b/doc/python/configuration-options.md index 7ca1df051a1..62fe7d51664 100644 --- a/doc/python/configuration-options.md +++ b/doc/python/configuration-options.md @@ -230,7 +230,7 @@ fig.show(config=config) 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: - **2D**: `zoom2d`, `pan2d`, `select2d`, `lasso2d`, `zoomIn2d`, `zoomOut2d`, `autoScale2d`, `resetScale2d` - - **3D**: `zoom3d`, `pan3d`, `rbitRotation`, `tableRotation`, `handleDrag3d`, `resetCameraDefault3d`, `resetCameraLastSave3d`, `hoverClosest3d` + - **3D**: `zoom3d`, `pan3d`, `orbitRotation`, `tableRotation`, `handleDrag3d`, `resetCameraDefault3d`, `resetCameraLastSave3d`, `hoverClosest3d` - **Cartesian**: `hoverClosestCartesian`, `hoverCompareCartesian` - **Geo**: `zoomInGeo`, `zoomOutGeo`, `resetGeo`, `hoverClosestGeo` - **Other**: `hoverClosestGl2d`, `hoverClosestPie`, `toggleHover`, `resetViews`, `toImage: sendDataToCloud`, `toggleSpikelines`, `resetViewMapbox` diff --git a/doc/python/creating-and-updating-figures.md b/doc/python/creating-and-updating-figures.md index 43d5c4a9cef..571aabf8e42 100644 --- a/doc/python/creating-and-updating-figures.md +++ b/doc/python/creating-and-updating-figures.md @@ -321,7 +321,7 @@ import plotly.graph_objects as go fig = go.Figure( data=[go.Scatter(y=[1, 3, 2], line=dict(color="crimson"))], - layout=dict(title=dict(text="A Graph Object Figure With Magic Underscore Notation")) + layout=dict(title=dict(text="A Graph Objects Figure Without Magic Underscore Notation")) ) fig.show() @@ -334,7 +334,7 @@ import plotly.graph_objects as go fig = go.Figure( data=[go.Scatter(y=[1, 3, 2], line_color="crimson")], - layout_title_text="Another Graph Object Figure With Magic Underscore Notation" + layout_title_text="A Graph Objects Figure With Magic Underscore Notation" ) fig.show() diff --git a/doc/python/figure-structure.md b/doc/python/figure-structure.md index 7c4a6b5cfc5..f09600e7d43 100644 --- a/doc/python/figure-structure.md +++ b/doc/python/figure-structure.md @@ -197,7 +197,7 @@ The following trace types are their own subplots and support a domain attribute: * [`parcoords`](/python/parallel-coordinates-plot/) and [`parcats`](/python/parallel-categories-diagram/): continuous and categorical multidimensional figures with [parallel coordinates](/python/parallel-coordinates-plot/) and [parallel sets](/python/parallel-categories-diagram/) * [`sankey`](/python/sankey-diagram/): [flow diagrams](/python/sankey-diagram/) * [`table`](/python/table/): [text-based tables](/python/table/) -* [`indicator`](http://indicators/): big numbers, [gauges](/python/gauge-charts/), and [bullet charts](/python/bullet-charts/) +* [`indicator`](/python/indicator/): big numbers, [gauges](/python/gauge-charts/), and [bullet charts](/python/bullet-charts/) ### Carpet Trace Types and Subplots diff --git a/doc/python/tick-formatting.md b/doc/python/tick-formatting.md index 408bf36e1f0..80129009dfe 100644 --- a/doc/python/tick-formatting.md +++ b/doc/python/tick-formatting.md @@ -64,7 +64,7 @@ If `"array"`, the placement of the ticks is set via `tickvals` and the tick text ```python import plotly.graph_objects as go -go.Figure(go.Scatter( +fig = go.Figure(go.Scatter( x = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], y = [28.8, 28.5, 37, 56.8, 69.7, 79.7, 78.5, 77.8, 74.1, 62.6, 45.3, 39.9] )) @@ -101,7 +101,7 @@ For more formatting types, see: https://github.com/d3/d3-format/blob/master/READ ```python import plotly.graph_objects as go -go.Figure(go.Scatter( +fig = go.Figure(go.Scatter( x = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], y = [28.8, 28.5, 37, 56.8, 69.7, 79.7, 78.5, 77.8, 74.1, 62.6, 45.3, 39.9] )) diff --git a/doc/unconverted/python/LaTeX.md b/doc/unconverted/python/LaTeX.md deleted file mode 100644 index bd3f2b9747a..00000000000 --- a/doc/unconverted/python/LaTeX.md +++ /dev/null @@ -1,88 +0,0 @@ ---- -jupyter: - jupytext: - notebook_metadata_filter: all - text_representation: - extension: .md - format_name: markdown - format_version: '1.1' - jupytext_version: 1.1.1 - kernelspec: - display_name: Python 3 - language: python - name: python3 - plotly: - description: How to add LaTeX to python graphs. - display_as: advanced_opt - language: python - layout: base - name: LaTeX - order: 3 - page_type: u-guide - permalink: python/LaTeX/ - thumbnail: thumbnail/latex.jpg ---- - -#### New to Plotly? -Plotly's Python library is free and open source! [Get started](https://plot.ly/python/getting-started/) by downloading the client and [reading the primer](https://plot.ly/python/getting-started/). -
You can set up Plotly to work in [online](https://plot.ly/python/getting-started/#initialization-for-online-plotting) or [offline](https://plot.ly/python/getting-started/#initialization-for-offline-plotting) mode, or in [jupyter notebooks](https://plot.ly/python/getting-started/#start-plotting-online). -
We also have a quick-reference [cheatsheet](https://images.plot.ly/plotly-documentation/images/python_cheat_sheet.pdf) (new!) to help you get started! - - -#### Version Check -Plotly's python package is updated frequently. Run `pip install plotly --upgrade` to use the latest version. - -```python -import plotly -plotly.__version__ -``` - -#### LaTeX Typesetting - -```python -import plotly.plotly as py -import plotly.graph_objs as go - -trace1 = go.Scatter( - x=[1, 2, 3, 4], - y=[1, 4, 9, 16], - name=r'$\alpha_{1c} = 352 \pm 11 \text{ km s}^{-1}$' -) -trace2 = go.Scatter( - x=[1, 2, 3, 4], - y=[0.5, 2, 4.5, 8], - name=r'$\beta_{1c} = 25 \pm 11 \text{ km s}^{-1}$' -) -data = [trace1, trace2] -layout = go.Layout( - xaxis=dict( - title=r'$\sqrt{(n_\text{c}(t|{T_\text{early}}))}$' - ), - yaxis=dict( - title=r'$d, r \text{ (solar radius)}$' - ) -) -fig = go.Figure(data=data, layout=layout) -py.iplot(fig, filename='latex') -``` - -```python -from IPython.display import display, HTML - -display(HTML('')) -display(HTML('')) - -! pip install git+https://github.com/plotly/publisher.git --upgrade -import publisher -publisher.publish( - 'latex-typesetting.ipynb', 'python/LaTeX/', 'LaTeX', - 'How to add LaTeX to python graphs.', - title = 'Python LaTeX | Examples | Plotly', - has_thumbnail='true', thumbnail='thumbnail/latex.jpg', - language='python', - display_as='style_opt', order=3, ipynb='~notebook_demo/268') -``` - -```python - -```