Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f3e7fa4

Browse files
committed
python basic charts rm title nb cell 1
1 parent 151567a commit f3e7fa4

File tree

9 files changed

+472
-192
lines changed

9 files changed

+472
-192
lines changed

_posts/python/WebGL/2015-06-30-webgl.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</div>
2020
<div class="inner_cell">
2121
<div class="text_cell_render border-box-sizing rendered_html">
22-
<h4 id="API-authentication">API authentication<a class="anchor-link" href="#API-authentication">&#182;</a></h4><p>New to Plotly's python API? <br>
22+
<h4 id="API-Authentication">API Authentication<a class="anchor-link" href="#API-Authentication">&#182;</a></h4><p>New to Plotly's python API? <br>
2323
Learn about API authentication here: <a href="https://plot.ly/python/getting-started">https://plot.ly/python/getting-started</a> <br>
2424
Find your api_key here: <a href="https://plot.ly/settings/api">https://plot.ly/settings/api</a></p>
2525

@@ -165,7 +165,7 @@ <h4 id="WebGL-with-many-traces">WebGL with many traces<a class="anchor-link" hre
165165
</div>
166166
<div class="cell border-box-sizing code_cell rendered">
167167
<div class="input">
168-
<div class="prompt input_prompt">In&nbsp;[5]:</div>
168+
<div class="prompt input_prompt">In&nbsp;[3]:</div>
169169
<div class="inner_cell">
170170
<div class="input_area">
171171
<div class=" highlight hl-ipython2"><pre><span class="kn">import</span> <span class="nn">plotly.plotly</span> <span class="kn">as</span> <span class="nn">py</span>
@@ -195,7 +195,7 @@ <h4 id="WebGL-with-many-traces">WebGL with many traces<a class="anchor-link" hre
195195
<div class="output">
196196

197197

198-
<div class="output_area"><div class="prompt output_prompt">Out[5]:</div>
198+
<div class="output_area"><div class="prompt output_prompt">Out[3]:</div>
199199

200200
<div class="output_html rendered_html output_subarea output_execute_result">
201201
<iframe id="igraph" scrolling="no" style="border:none;" seamless="seamless" src="https://plot.ly/~chelsea_lyn/8850.embed" height="525px" width="100%"></iframe>
@@ -221,7 +221,7 @@ <h3 id="Reference">Reference<a class="anchor-link" href="#Reference">&#182;</a><
221221
</div>
222222
<div class="inner_cell">
223223
<div class="text_cell_render border-box-sizing rendered_html">
224-
<p>See <a href="https://plot.ly/python/reference/#scattergl">https://plot.ly/python/reference/#scattergl</a> for more information</p>
224+
<p>See <a href="https://plot.ly/python/reference/#scattergl">https://plot.ly/python/reference/#scattergl</a> for more information and chart attribute options!</p>
225225

226226
</div>
227227
</div>

_posts/python/WebGL/webgl.ipynb

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"#### API authentication\n",
7+
"#### API Authentication\n",
88
"New to Plotly's python API? <br> \n",
99
"Learn about API authentication here: https://plot.ly/python/getting-started <br>\n",
1010
"Find your api_key here: https://plot.ly/settings/api"
@@ -132,7 +132,7 @@
132132
},
133133
{
134134
"cell_type": "code",
135-
"execution_count": 5,
135+
"execution_count": 3,
136136
"metadata": {
137137
"collapsed": false
138138
},
@@ -146,7 +146,7 @@
146146
"<plotly.tools.PlotlyDisplay object>"
147147
]
148148
},
149-
"execution_count": 5,
149+
"execution_count": 3,
150150
"metadata": {},
151151
"output_type": "execute_result"
152152
}
@@ -182,12 +182,12 @@
182182
"cell_type": "markdown",
183183
"metadata": {},
184184
"source": [
185-
"See https://plot.ly/python/reference/#scattergl for more information"
185+
"See https://plot.ly/python/reference/#scattergl for more information and chart attribute options!"
186186
]
187187
},
188188
{
189189
"cell_type": "code",
190-
"execution_count": 6,
190+
"execution_count": 4,
191191
"metadata": {
192192
"collapsed": false
193193
},
@@ -221,7 +221,7 @@
221221
"output_type": "stream",
222222
"text": [
223223
"Collecting git+https://github.com/plotly/publisher.git\n",
224-
" Cloning https://github.com/plotly/publisher.git to /var/folders/72/g6h98xwx0h1gp4kc8rzhsdh80000gn/T/pip-zYQFwJ-build\n",
224+
" Cloning https://github.com/plotly/publisher.git to /var/folders/72/g6h98xwx0h1gp4kc8rzhsdh80000gn/T/pip-bHr903-build\n",
225225
"Installing collected packages: publisher\n",
226226
" Found existing installation: publisher 0.10\n",
227227
" Uninstalling publisher-0.10:\n",
@@ -231,6 +231,20 @@
231231
"\u001b[33mYou are using pip version 8.0.3, however version 8.1.1 is available.\n",
232232
"You should consider upgrading via the 'pip install --upgrade pip' command.\u001b[0m\n"
233233
]
234+
},
235+
{
236+
"name": "stderr",
237+
"output_type": "stream",
238+
"text": [
239+
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/nbconvert.py:13: ShimWarning:\n",
240+
"\n",
241+
"The `IPython.nbconvert` package has been deprecated. You should import from nbconvert instead.\n",
242+
"\n",
243+
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/publisher/publisher.py:53: UserWarning:\n",
244+
"\n",
245+
"Did you \"Save\" this notebook before running this command? Remember to save, always save.\n",
246+
"\n"
247+
]
234248
}
235249
],
236250
"source": [

_posts/python/line-plots/2015-06-30-lines.html

Lines changed: 33 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,27 @@
11
---
2-
permalink: python/line-charts/
2+
permalink: python/line-charts
33
description: How to make line charts in Python with Plotly. Examples on creating and styling line charts in Python with Plotly.
4-
title: Python Line Charts | plotly
4+
name: Python Line Charts | plotly
55
has_thumbnail: true
66
thumbnail: thumbnail/line-plot.jpg
77
layout: user-guide
88
name: Line Charts
99
language: python
10+
title: Python Line Charts | plotly
1011
display_as: basic
1112
has_thumbnail: true
1213
page_type: example_index
13-
order: 2
14+
order: 3
1415
---
1516
{% raw %}
1617
<div class="cell border-box-sizing text_cell rendered">
1718
<div class="prompt input_prompt">
1819
</div>
1920
<div class="inner_cell">
2021
<div class="text_cell_render border-box-sizing rendered_html">
21-
<h1 id="Line-Charts-in-Python">Line Charts in Python<a class="anchor-link" href="#Line-Charts-in-Python">&#182;</a></h1>
22-
</div>
23-
</div>
24-
</div>
25-
<div class="cell border-box-sizing text_cell rendered">
26-
<div class="prompt input_prompt">
27-
</div>
28-
<div class="inner_cell">
29-
<div class="text_cell_render border-box-sizing rendered_html">
30-
<p>Learn about API authentication here: <a href="https://plot.ly/python/getting-started">https://plot.ly/python/getting-started</a>
31-
<br> Find your api_key here: <a href="https://plot.ly/settings/api">https://plot.ly/settings/api</a></p>
22+
<h4 id="API-Authentication">API Authentication<a class="anchor-link" href="#API-Authentication">&#182;</a></h4><p>New to Plotly's python API? <br>
23+
Learn about API authentication here: <a href="https://plot.ly/python/getting-started">https://plot.ly/python/getting-started</a> <br>
24+
Find your api_key here: <a href="https://plot.ly/settings/api">https://plot.ly/settings/api</a></p>
3225

3326
</div>
3427
</div>
@@ -44,7 +37,7 @@ <h5 id="Simple-Line-Plot">Simple Line Plot<a class="anchor-link" href="#Simple-L
4437
</div>
4538
<div class="cell border-box-sizing code_cell rendered">
4639
<div class="input">
47-
<div class="prompt input_prompt">In&nbsp;[7]:</div>
40+
<div class="prompt input_prompt">In&nbsp;[2]:</div>
4841
<div class="inner_cell">
4942
<div class="input_area">
5043
<div class=" highlight hl-ipython2"><pre><span class="kn">import</span> <span class="nn">plotly.plotly</span> <span class="kn">as</span> <span class="nn">py</span>
@@ -79,10 +72,10 @@ <h5 id="Simple-Line-Plot">Simple Line Plot<a class="anchor-link" href="#Simple-L
7972
<div class="output">
8073

8174

82-
<div class="output_area"><div class="prompt output_prompt">Out[7]:</div>
75+
<div class="output_area"><div class="prompt output_prompt">Out[2]:</div>
8376

8477
<div class="output_html rendered_html output_subarea output_execute_result">
85-
<iframe id="igraph" scrolling="no" style="border:none;"seamless="seamless" src="https://plot.ly/~chelsea_lyn/8758.embed" height="525px" width="100%"></iframe>
78+
<iframe id="igraph" scrolling="no" style="border:none;" seamless="seamless" src="https://plot.ly/~chelsea_lyn/8758.embed" height="525px" width="100%"></iframe>
8679
</div>
8780

8881
</div>
@@ -102,7 +95,7 @@ <h5 id="Line-Plot-Modes">Line Plot Modes<a class="anchor-link" href="#Line-Plot-
10295
</div>
10396
<div class="cell border-box-sizing code_cell rendered">
10497
<div class="input">
105-
<div class="prompt input_prompt">In&nbsp;[8]:</div>
98+
<div class="prompt input_prompt">In&nbsp;[3]:</div>
10699
<div class="inner_cell">
107100
<div class="input_area">
108101
<div class=" highlight hl-ipython2"><pre><span class="kn">import</span> <span class="nn">plotly.plotly</span> <span class="kn">as</span> <span class="nn">py</span>
@@ -150,10 +143,10 @@ <h5 id="Line-Plot-Modes">Line Plot Modes<a class="anchor-link" href="#Line-Plot-
150143
<div class="output">
151144

152145

153-
<div class="output_area"><div class="prompt output_prompt">Out[8]:</div>
146+
<div class="output_area"><div class="prompt output_prompt">Out[3]:</div>
154147

155148
<div class="output_html rendered_html output_subarea output_execute_result">
156-
<iframe id="igraph" scrolling="no" style="border:none;"seamless="seamless" src="https://plot.ly/~chelsea_lyn/8776.embed" height="525px" width="100%"></iframe>
149+
<iframe id="igraph" scrolling="no" style="border:none;" seamless="seamless" src="https://plot.ly/~chelsea_lyn/8776.embed" height="525px" width="100%"></iframe>
157150
</div>
158151

159152
</div>
@@ -167,24 +160,15 @@ <h5 id="Line-Plot-Modes">Line Plot Modes<a class="anchor-link" href="#Line-Plot-
167160
</div>
168161
<div class="inner_cell">
169162
<div class="text_cell_render border-box-sizing rendered_html">
170-
<h5 id="Style-Line-Plots">Style Line Plots<a class="anchor-link" href="#Style-Line-Plots">&#182;</a></h5>
171-
</div>
172-
</div>
173-
</div>
174-
<div class="cell border-box-sizing text_cell rendered">
175-
<div class="prompt input_prompt">
176-
</div>
177-
<div class="inner_cell">
178-
<div class="text_cell_render border-box-sizing rendered_html">
179-
<p>This example styles the color and dash of the traces, adds trace names,
163+
<h5 id="Style-Line-Plots">Style Line Plots<a class="anchor-link" href="#Style-Line-Plots">&#182;</a></h5><p>This example styles the color and dash of the traces, adds trace names,
180164
modifiys line width, and adds plot and axes titles.</p>
181165

182166
</div>
183167
</div>
184168
</div>
185169
<div class="cell border-box-sizing code_cell rendered">
186170
<div class="input">
187-
<div class="prompt input_prompt">In&nbsp;[9]:</div>
171+
<div class="prompt input_prompt">In&nbsp;[4]:</div>
188172
<div class="inner_cell">
189173
<div class="input_area">
190174
<div class=" highlight hl-ipython2"><pre><span class="kn">import</span> <span class="nn">plotly.plotly</span> <span class="kn">as</span> <span class="nn">py</span>
@@ -274,10 +258,10 @@ <h5 id="Style-Line-Plots">Style Line Plots<a class="anchor-link" href="#Style-Li
274258
<div class="output">
275259

276260

277-
<div class="output_area"><div class="prompt output_prompt">Out[9]:</div>
261+
<div class="output_area"><div class="prompt output_prompt">Out[4]:</div>
278262

279263
<div class="output_html rendered_html output_subarea output_execute_result">
280-
<iframe id="igraph" scrolling="no" style="border:none;"seamless="seamless" src="https://plot.ly/~chelsea_lyn/8761.embed" height="525px" width="100%"></iframe>
264+
<iframe id="igraph" scrolling="no" style="border:none;" seamless="seamless" src="https://plot.ly/~chelsea_lyn/8761.embed" height="525px" width="100%"></iframe>
281265
</div>
282266

283267
</div>
@@ -297,14 +281,14 @@ <h5 id="Connect-Data-Gaps">Connect Data Gaps<a class="anchor-link" href="#Connec
297281
</div>
298282
<div class="cell border-box-sizing code_cell rendered">
299283
<div class="input">
300-
<div class="prompt input_prompt">In&nbsp;[10]:</div>
284+
<div class="prompt input_prompt">In&nbsp;[5]:</div>
301285
<div class="inner_cell">
302286
<div class="input_area">
303287
<div class=" highlight hl-ipython2"><pre><span class="kn">import</span> <span class="nn">plotly.plotly</span> <span class="kn">as</span> <span class="nn">py</span>
304288
<span class="kn">import</span> <span class="nn">plotly.graph_objs</span> <span class="kn">as</span> <span class="nn">go</span>
305289

306290
<span class="n">trace1</span> <span class="o">=</span> <span class="n">go</span><span class="o">.</span><span class="n">Scatter</span><span class="p">(</span>
307-
<span class="n">x</span><span class="o">=</span><span class="p">[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">,</span> <span class="mi">4</span><span class="p">,</span> <span class="mi">5</span><span class="p">,</span>
291+
<span class="n">x</span><span class="o">=</span><span class="p">[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">,</span> <span class="mi">4</span><span class="p">,</span> <span class="mi">5</span><span class="p">,</span>
308292
<span class="mi">6</span><span class="p">,</span> <span class="mi">7</span><span class="p">,</span> <span class="mi">8</span><span class="p">,</span> <span class="mi">9</span><span class="p">,</span> <span class="mi">10</span><span class="p">,</span>
309293
<span class="mi">11</span><span class="p">,</span> <span class="mi">12</span><span class="p">,</span> <span class="mi">13</span><span class="p">,</span> <span class="mi">14</span><span class="p">,</span> <span class="mi">15</span><span class="p">],</span>
310294
<span class="n">y</span><span class="o">=</span><span class="p">[</span><span class="mi">10</span><span class="p">,</span> <span class="mi">20</span><span class="p">,</span> <span class="bp">None</span><span class="p">,</span> <span class="mi">15</span><span class="p">,</span> <span class="mi">10</span><span class="p">,</span>
@@ -337,10 +321,10 @@ <h5 id="Connect-Data-Gaps">Connect Data Gaps<a class="anchor-link" href="#Connec
337321
<div class="output">
338322

339323

340-
<div class="output_area"><div class="prompt output_prompt">Out[10]:</div>
324+
<div class="output_area"><div class="prompt output_prompt">Out[5]:</div>
341325

342326
<div class="output_html rendered_html output_subarea output_execute_result">
343-
<iframe id="igraph" scrolling="no" style="border:none;"seamless="seamless" src="https://plot.ly/~chelsea_lyn/8770.embed" height="525px" width="100%"></iframe>
327+
<iframe id="igraph" scrolling="no" style="border:none;" seamless="seamless" src="https://plot.ly/~chelsea_lyn/8770.embed" height="525px" width="100%"></iframe>
344328
</div>
345329

346330
</div>
@@ -360,7 +344,7 @@ <h5 id="Interpolation-with-Line-Plots">Interpolation with Line Plots<a class="an
360344
</div>
361345
<div class="cell border-box-sizing code_cell rendered">
362346
<div class="input">
363-
<div class="prompt input_prompt">In&nbsp;[11]:</div>
347+
<div class="prompt input_prompt">In&nbsp;[6]:</div>
364348
<div class="inner_cell">
365349
<div class="input_area">
366350
<div class=" highlight hl-ipython2"><pre><span class="kn">import</span> <span class="nn">plotly.plotly</span> <span class="kn">as</span> <span class="nn">py</span>
@@ -449,10 +433,10 @@ <h5 id="Interpolation-with-Line-Plots">Interpolation with Line Plots<a class="an
449433
<div class="output">
450434

451435

452-
<div class="output_area"><div class="prompt output_prompt">Out[11]:</div>
436+
<div class="output_area"><div class="prompt output_prompt">Out[6]:</div>
453437

454438
<div class="output_html rendered_html output_subarea output_execute_result">
455-
<iframe id="igraph" scrolling="no" style="border:none;"seamless="seamless" src="https://plot.ly/~chelsea_lyn/8766.embed" height="525px" width="100%"></iframe>
439+
<iframe id="igraph" scrolling="no" style="border:none;" seamless="seamless" src="https://plot.ly/~chelsea_lyn/8766.embed" height="525px" width="100%"></iframe>
456440
</div>
457441

458442
</div>
@@ -472,7 +456,7 @@ <h5 id="Label-Lines-with-Annotations">Label Lines with Annotations<a class="anch
472456
</div>
473457
<div class="cell border-box-sizing code_cell rendered">
474458
<div class="input">
475-
<div class="prompt input_prompt">In&nbsp;[12]:</div>
459+
<div class="prompt input_prompt">In&nbsp;[7]:</div>
476460
<div class="inner_cell">
477461
<div class="input_area">
478462
<div class=" highlight hl-ipython2"><pre><span class="kn">import</span> <span class="nn">plotly.plotly</span> <span class="kn">as</span> <span class="nn">py</span>
@@ -609,10 +593,10 @@ <h5 id="Label-Lines-with-Annotations">Label Lines with Annotations<a class="anch
609593
<div class="output">
610594

611595

612-
<div class="output_area"><div class="prompt output_prompt">Out[12]:</div>
596+
<div class="output_area"><div class="prompt output_prompt">Out[7]:</div>
613597

614598
<div class="output_html rendered_html output_subarea output_execute_result">
615-
<iframe id="igraph" scrolling="no" style="border:none;"seamless="seamless" src="https://plot.ly/~chelsea_lyn/8773.embed" height="600px" width="600px"></iframe>
599+
<iframe id="igraph" scrolling="no" style="border:none;" seamless="seamless" src="https://plot.ly/~chelsea_lyn/8773.embed" height="600px" width="600px"></iframe>
616600
</div>
617601

618602
</div>
@@ -626,13 +610,13 @@ <h5 id="Label-Lines-with-Annotations">Label Lines with Annotations<a class="anch
626610
</div>
627611
<div class="inner_cell">
628612
<div class="text_cell_render border-box-sizing rendered_html">
629-
<h5 id="Filled-Lines">Filled Lines<a class="anchor-link" href="#Filled-Lines">&#182;</a></h5>
613+
<h4 id="Filled-Lines">Filled Lines<a class="anchor-link" href="#Filled-Lines">&#182;</a></h4>
630614
</div>
631615
</div>
632616
</div>
633617
<div class="cell border-box-sizing code_cell rendered">
634618
<div class="input">
635-
<div class="prompt input_prompt">In&nbsp;[1]:</div>
619+
<div class="prompt input_prompt">In&nbsp;[8]:</div>
636620
<div class="inner_cell">
637621
<div class="input_area">
638622
<div class=" highlight hl-ipython2"><pre><span class="kn">import</span> <span class="nn">plotly.plotly</span> <span class="kn">as</span> <span class="nn">py</span>
@@ -745,10 +729,10 @@ <h5 id="Filled-Lines">Filled Lines<a class="anchor-link" href="#Filled-Lines">&#
745729
<div class="output">
746730

747731

748-
<div class="output_area"><div class="prompt output_prompt">Out[1]:</div>
732+
<div class="output_area"><div class="prompt output_prompt">Out[8]:</div>
749733

750734
<div class="output_html rendered_html output_subarea output_execute_result">
751-
<iframe id="igraph" scrolling="no" style="border:none;"seamless="seamless" src="https://plot.ly/~chelsea_lyn/10921.embed" height="525px" width="100%"></iframe>
735+
<iframe id="igraph" scrolling="no" style="border:none;" seamless="seamless" src="https://plot.ly/~chelsea_lyn/10921.embed" height="525px" width="100%"></iframe>
752736
</div>
753737

754738
</div>
@@ -771,8 +755,8 @@ <h3 id="References">References<a class="anchor-link" href="#References">&#182;</
771755
</div>
772756
<div class="inner_cell">
773757
<div class="text_cell_render border-box-sizing rendered_html">
774-
<p>See <a href="https://plot.ly/python/reference/#scatter">https://plot.ly/python/reference/#scatter</a> for more information</p>
758+
<p>See <a href="https://plot.ly/python/reference/#scatter">https://plot.ly/python/reference/#scatter</a> for more information and chart attribute options!</p>
775759

776760
</div>
777761
</div>
778-
</div>{% endraw %}
762+
</div>{% endraw %}

0 commit comments

Comments
 (0)