Skip to content

Commit 8e5d02d

Browse files
author
Joseph Damiba
committed
merging master
2 parents 0a623f0 + e5bafb7 commit 8e5d02d

File tree

196 files changed

+542
-690
lines changed

Some content is hidden

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

196 files changed

+542
-690
lines changed

apidoc/_static/favicon.ico

4.19 KB
Binary file not shown.

apidoc/_static/logo.png

-1.54 KB
Loading

apidoc/_static/plotly-style.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.navbar-default {
2+
background-color: #00004f;
3+
}
4+
.navbar {
5+
min-height: 75px;
6+
}
7+
.navbar-brand {
8+
font-family: "Open Sans", sans-serif;
9+
padding: 10px 10px;
10+
}
11+
.body {
12+
font-family: "Open Sans", sans-serif;
13+
}

apidoc/_templates/layout.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{# Import the theme's layout. #}
2+
{% extends "!layout.html" %}
3+
4+
{%- block footer %}
5+
<script type="text/javascript">
6+
7+
var _gaq = _gaq || [];
8+
_gaq.push(['_setAccount', 'UA-39373211-1']);
9+
_gaq.push(['_setDomainName', 'none']);
10+
_gaq.push(['_setAllowLinker', true]);
11+
_gaq.push(['_trackPageview']);
12+
13+
(function() {
14+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
15+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
16+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
17+
})();
18+
19+
</script>
20+
{%- endblock %}
21+

apidoc/_templates/trace.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
{{ underline }}
1616

1717
.. autosummary::
18-
:toctree: generated/
1918

2019
plotly.graph_objects.{{ objname.lower() }}
2120

apidoc/conf.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
#
1515
import os
1616
import sys
17-
17+
import sphinx_bootstrap_theme
1818
# sys.path.insert(0, os.path.abspath("../packages/python/plotly"))
1919

2020

2121
# -- Project information -----------------------------------------------------
2222

23-
project = "plotly"
23+
project = ""
2424
copyright = "2019, plotly team"
2525
author = "plotly team"
2626

@@ -87,18 +87,18 @@
8787
# The theme to use for HTML and HTML Help pages. See the documentation for
8888
# a list of builtin themes.
8989
#
90-
html_theme = "alabaster"
90+
html_theme = "bootstrap"
91+
html_theme_path = sphinx_bootstrap_theme.get_html_theme_path()
9192

93+
html_logo='_static/logo.png'
9294
# Theme options are theme-specific and customize the look and feel of a theme
9395
# further. For a list of options available for each theme, see the
9496
# documentation.
9597
#
9698
html_theme_options = {
97-
#'nosidebar': True,
98-
'analytics_id':'UA-39373211-1',
99-
'logo':'logo.png',
100-
'page_width': '70%',
101-
'sidebar_width':'20%'
99+
'analytics_id':'UA-39373211-1', # not supported by this theme
100+
'bootswatch_theme': "flatly",
101+
'source_link_position': "no"
102102
}
103103

104104
# Add any paths that contain custom static files (such as style sheets) here,
@@ -116,6 +116,7 @@
116116
#
117117
# html_sidebars = {}
118118

119+
html_favicon = "_static/favicon.ico"
119120

120121
# -- Options for HTMLHelp output ---------------------------------------------
121122

@@ -202,3 +203,6 @@
202203

203204
# If true, `todo` and `todoList` produce output, else they produce nothing.
204205
todo_include_todos = True
206+
207+
def setup(app):
208+
app.add_stylesheet("plotly-style.css") # also can be a full URL

apidoc/graph_objects.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Distributions
5555
Violin
5656
Histogram
5757
Histogram2d
58-
Histogram2dcontour
58+
Histogram2dContour
5959

6060
Finance
6161
-------

apidoc/io.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ I/O
2323
show
2424

2525
.. automodule:: plotly.io
26-
:members:
26+
:no-members:
2727

python/2D-Histogram.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ jupyter:
2424
plotly:
2525
description: How to make 2D Histograms in Python with Plotly.
2626
display_as: statistical
27-
has_thumbnail: true
28-
ipynb: ~notebook_demo/24
2927
language: python
3028
layout: base
3129
name: 2D Histograms

python/2d-histogram-contour.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ jupyter:
2424
plotly:
2525
description: How to make 2D Histogram Contour plots in Python with Plotly.
2626
display_as: statistical
27-
has_thumbnail: true
28-
ipynb: ~notebook_demo/199
2927
language: python
3028
layout: base
3129
name: 2D Histogram Contour

python/3d-axes.md

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,17 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.6.7
23+
version: 3.7.3
2424
plotly:
2525
description: How to format axes of 3d plots in Python with Plotly.
2626
display_as: 3d_charts
27-
has_thumbnail: true
28-
ipynb: ~notebook_demo/96
2927
language: python
3028
layout: base
3129
name: 3D Axes
3230
order: 1
3331
page_type: example_index
3432
permalink: python/3d-axes/
3533
thumbnail: thumbnail/3d-axes.png
36-
v4upgrade: true
3734
---
3835

3936
### Range of axes
@@ -210,3 +207,25 @@ fig.update_layout(scene = dict(
210207
)
211208
fig.show()
212209
```
210+
211+
### Disabling tooltip spikes
212+
213+
By default, guidelines originating from the tooltip point are drawn. It is possible to disable this behaviour with the `showspikes` parameter. In this example we only keep the `z` spikes (projection of the tooltip on the `x-y` plane). Hover on the data to show this behaviour.
214+
215+
```python
216+
import plotly.graph_objects as go
217+
import numpy as np
218+
219+
N = 50
220+
fig = go.Figure(data=[go.Mesh3d(x=(30*np.random.randn(N)),
221+
y=(25*np.random.randn(N)),
222+
z=(30*np.random.randn(N)),
223+
opacity=0.5,)])
224+
fig.update_layout(scene=dict(xaxis_showspikes=False,
225+
yaxis_showspikes=False))
226+
fig.show()
227+
```
228+
229+
```python
230+
231+
```

python/3d-bubble-charts.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ jupyter:
2525
description: How to make 3D Bubble Charts in Python with Plotly. Three examples
2626
of 3D Bubble Charts.
2727
display_as: 3d_charts
28-
has_thumbnail: true
29-
ipynb: ~notebook_demo/62
3028
language: python
3129
layout: base
3230
name: 3D Bubble Charts

python/3d-camera-controls.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ jupyter:
2424
plotly:
2525
description: How to Control the Camera in your 3D Charts in Python with Plotly.
2626
display_as: 3d_charts
27-
has_thumbnail: true
28-
ipynb: ~notebook_demo/78
2927
language: python
3028
layout: base
3129
name: 3D Camera Controls

python/3d-isosurface-plots.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ jupyter:
2424
plotly:
2525
description: How to make 3D Isosurface Plots in Python with Plotly.
2626
display_as: 3d_charts
27-
has_thumbnail: true
28-
ipynb: ~notebook_demo/272
2927
language: python
3028
layout: base
3129
name: 3D Isosurface Plots

python/3d-line-plots.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ jupyter:
2424
plotly:
2525
description: How to make 3D Line Plots
2626
display_as: 3d_charts
27-
has_thumbnail: true
28-
ipynb: ~notebook_demo/63
2927
language: python
3028
layout: base
3129
name: 3D Line Plots

python/3d-mesh.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,13 @@ jupyter:
2424
plotly:
2525
description: How to make 3D Mesh Plots
2626
display_as: 3d_charts
27-
has_thumbnail: true
28-
ipynb: ~notebook_demo/67
2927
language: python
3028
layout: base
3129
name: 3D Mesh Plots
3230
order: 10
3331
page_type: u-guide
3432
permalink: python/3d-mesh/
3533
thumbnail: thumbnail/3d-mesh.jpg
36-
v4upgrade: true
3734
---
3835

3936
### Simple 3D Mesh example ###

python/3d-scatter-plots.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,13 @@ jupyter:
2424
plotly:
2525
description: How to make 3D scatter plots in Python with Plotly.
2626
display_as: 3d_charts
27-
has_thumbnail: true
28-
ipynb: ~notebook_demo/61
2927
language: python
3028
layout: base
3129
name: 3D Scatter Plots
3230
order: 2
3331
page_type: example_index
3432
permalink: python/3d-scatter-plots/
3533
thumbnail: thumbnail/3d-scatter.jpg
36-
v4upgrade: true
3734
---
3835

3936
## 3D scatter plot with Plotly Express

python/3d-subplots.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,13 @@ jupyter:
2424
plotly:
2525
description: 3D Subplots in Plotly
2626
display_as: 3d_charts
27-
has_thumbnail: true
28-
ipynb: ~notebook_demo/75
2927
language: python
3028
layout: base
3129
name: 3D Subplots
3230
order: 4
3331
page_type: u-guide
3432
permalink: python/3d-subplots/
3533
thumbnail: thumbnail/3d-subplots.jpg
36-
v4upgrade: true
3734
---
3835

3936
#### 3D Surface Subplots

python/3d-surface-coloring.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ jupyter:
2424
plotly:
2525
description: How to Color 3D Surface Plots in Python with Plotly.
2626
display_as: 3d_charts
27-
has_thumbnail: true
28-
ipynb: ~notebook_demo/76
2927
language: python
3028
layout: base
3129
name: 3D Surface Coloring

python/3d-surface-plots.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,13 @@ jupyter:
2424
plotly:
2525
description: How to make 3D-surface plots in Python
2626
display_as: 3d_charts
27-
has_thumbnail: true
28-
ipynb: ~notebook_demo/66
2927
language: python
3028
layout: base
3129
name: 3D Surface Plots
3230
order: 3
3331
page_type: example_index
3432
permalink: python/3d-surface-plots/
3533
thumbnail: thumbnail/3d-surface.jpg
36-
v4upgrade: true
3734
---
3835

3936
#### Topographical 3D Surface Plot

python/3d-volume.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ jupyter:
2424
plotly:
2525
description: How to make 3D Volume Plots in Python with Plotly.
2626
display_as: 3d_charts
27-
has_thumbnail: true
2827
language: python
2928
layout: base
3029
name: 3D Volume Plots

python/aggregations.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,13 @@ jupyter:
2424
plotly:
2525
description: How to use aggregates in Python with Plotly.
2626
display_as: transforms
27-
has_thumbnail: true
28-
ipynb: ~notebook_demo/192
2927
language: python
3028
layout: base
3129
name: Aggregations
3230
order: 3
3331
page_type: example_index
3432
permalink: python/aggregations/
3533
thumbnail: thumbnail/aggregations.jpg
36-
v4upgrade: true
3734
---
3835

3936
#### Introduction

python/animations.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@ jupyter:
1414
plotly:
1515
description: An introduction to creating animations with Plotly in Python.
1616
display_as: animations
17-
has_thumbnail: true
18-
ipynb: ~notebook_demo/131
1917
language: python
2018
layout: base
2119
name: Intro to Animations
2220
order: 1
2321
page_type: example_index
2422
permalink: python/animations/
2523
thumbnail: thumbnail/animations.gif
26-
v4upgrade: true
2724
---
2825

2926
#### Animated figures with Plotly Express

python/annotated_heatmap.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,13 @@ jupyter:
2424
plotly:
2525
description: How to make Annotated Heatmaps in Python with Plotly.
2626
display_as: scientific
27-
has_thumbnail: true
28-
ipynb: ~notebook_demo/35
2927
language: python
3028
layout: base
3129
name: Annotated Heatmaps
3230
order: 8
3331
page_type: u-guide
3432
permalink: python/annotated_heatmap/
3533
thumbnail: thumbnail/ann_heat.jpg
36-
v4upgrade: true
3734
---
3835

3936
#### Simple Annotated Heatmap

python/axes.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,12 @@ jupyter:
2626
and logarithmic axes, axes titles, styling and coloring axes and grid lines, and
2727
more.
2828
display_as: file_settings
29-
has_thumbnail: true
30-
ipynb: ~notebook_demo/95
3129
language: python
3230
layout: base
3331
name: Axes
3432
order: 13
3533
permalink: python/axes/
3634
thumbnail: thumbnail/axes.png
37-
v4upgrade: true
3835
---
3936

4037
#### Toggling Axes Lines, Ticks, Labels, and Autorange

python/bar-charts.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,13 @@ jupyter:
2424
plotly:
2525
description: How to make Bar Charts in Python with Plotly.
2626
display_as: basic
27-
has_thumbnail: true
28-
ipynb: ~notebook_demo/186
2927
language: python
3028
layout: base
3129
name: Bar Charts
3230
order: 3
3331
page_type: example_index
3432
permalink: python/bar-charts/
3533
thumbnail: thumbnail/bar.jpg
36-
v4upgrade: true
3734
---
3835

3936
### Bar chart with Plotly Express

0 commit comments

Comments
 (0)