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

Skip to content

Commit 5358e98

Browse files
committed
Updates on static-image-export and
pandas/colorlover documents
1 parent 334d8a4 commit 5358e98

File tree

3 files changed

+30
-25
lines changed

3 files changed

+30
-25
lines changed

_posts/pandas/colorlover/2015-06-30-colorlover-with-pandas.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
permalink: pandas/colorlover
2+
permalink: pandas/colorlover/
33
description: How to easily add colorscales to pandas dataframe using Colorlover and Plotly.
44
title: Pandas Adding Colorscales with Colorlover | plotly
55
has_thumbnail: true
@@ -265,4 +265,4 @@ <h3 id="Adding-Colorscales-using-Colorlover:">Adding Colorscales using Colorlove
265265

266266
</div>
267267
</div>
268-
</div>{% endraw %}
268+
</div>{% endraw %}

_posts/python/static-image/2015-06-30-static-image-export.html

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<div class="inner_cell">
2020
<div class="text_cell_render border-box-sizing rendered_html">
2121
<h1 id="Static-Image-Export">Static Image Export<a class="anchor-link" href="#Static-Image-Export">&#182;</a></h1><p>Plotly allows you to save static images of your plots. You can either save the image onto your local computer, or embed it inside your Jupyter/IPython notebooks as a static image.</p>
22-
<h2 id="Save-the-image:">Save the image:<a class="anchor-link" href="#Save-the-image:">&#182;</a></h2><p>To save the image, you need to login to plotly using your credentials (username and API Key). More information regarding the same is available <a href="https://plot.ly/python/getting-started/">here</a></p>
22+
<h2 id="Save-the-image:">Save the image:<a class="anchor-link" href="#Save-the-image:">&#182;</a></h2><p>To save the image, you need to login to plotly using <a href="https://plot.ly/settings/api">your credentials</a> (username and API Key).</p>
2323

2424
</div>
2525
</div>
@@ -3106,15 +3106,25 @@ <h2 id="Retrieving-an-Image-from-an-existing-chart">Retrieving an Image from an
31063106
</div>
31073107
<div class="inner_cell">
31083108
<div class="text_cell_render border-box-sizing rendered_html">
3109-
<h1 id="Supported-Formats:">Supported Formats:<a class="anchor-link" href="#Supported-Formats:">&#182;</a></h1><p>The common image formats: 'PNG', 'JPG/JPEG' are supported.In addition, formats like 'EPS', 'SVG' and 'PDF' are also supported.</p>
3110-
<p><strong>Note</strong>: The SVG,EPS and PDF Formats are <em>only</em> available for Plotly Professional users. You can get more details on our <a href="https://plot.ly/products/cloud/">pricing page</a></p>
3109+
<h1 id="Supported-Formats:">Supported Formats:<a class="anchor-link" href="#Supported-Formats:">&#182;</a></h1><p>The common image formats: 'PNG', 'JPG/JPEG' are supported. In addition, formats like 'EPS', 'SVG' and 'PDF' are also supported.</p>
3110+
<p><strong>Note</strong>: The SVG, EPS and PDF Formats are <em>only</em> available for Plotly Professional users. You can get more details on our <a href="https://plot.ly/products/cloud/">pricing page</a></p>
31113111
<p>To access the image in a particular format, you can either:</p>
31123112
<ul>
3113-
<li>append the format extension to the plot url. i.e. the JPEG version of the plot: <a href="https://plot.ly/~chris/1638">https://plot.ly/~chris/1638</a> is available at : <a href="https://plot.ly/~chris/1638.jpg">https://plot.ly/~chris/1638.jpg</a></li>
3113+
<li>append the format extension to the plot url. i.e. the JPG version of the plot: <a href="https://plot.ly/~chris/1638">https://plot.ly/~chris/1638</a> is available at : <a href="https://plot.ly/~chris/1638.jpg">https://plot.ly/~chris/1638.jpg</a></li>
31143114
<li>Add the appropriate extension to the <code>save_as</code> method:
31153115
<code> py.image.save_as(fig, 'chris-plot.jpg')</code></li>
31163116
</ul>
31173117

3118+
</div>
3119+
</div>
3120+
</div>
3121+
<div class="cell border-box-sizing text_cell rendered">
3122+
<div class="prompt input_prompt">
3123+
</div>
3124+
<div class="inner_cell">
3125+
<div class="text_cell_render border-box-sizing rendered_html">
3126+
<h2 id="Saving-Image-data-in-Memory:">Saving Image data in Memory:<a class="anchor-link" href="#Saving-Image-data-in-Memory:">&#182;</a></h2><p>The data from the charts can also be stored in the memory. This reduces the overhead of saving the image in the hard disk. It is particularly useful when the image needs to be embedded (for example in email reports).</p>
3127+
31183128
</div>
31193129
</div>
31203130
</div>

_posts/python/static-image/static-image-export.ipynb

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"\n",
1111
"\n",
1212
"## Save the image:\n",
13-
"To save the image, you need to login to plotly using your credentials (username and API Key). More information regarding the same is available [here](https://plot.ly/python/getting-started/)"
13+
"To save the image, you need to login to plotly using [your credentials](https://plot.ly/settings/api) (username and API Key)."
1414
]
1515
},
1616
{
@@ -154,17 +154,26 @@
154154
"source": [
155155
"# Supported Formats:\n",
156156
"\n",
157-
"The common image formats: 'PNG', 'JPG/JPEG' are supported.In addition, formats like 'EPS', 'SVG' and 'PDF' are also supported.\n",
157+
"The common image formats: 'PNG', 'JPG/JPEG' are supported. In addition, formats like 'EPS', 'SVG' and 'PDF' are also supported.\n",
158158
"\n",
159-
"**Note**: The SVG,EPS and PDF Formats are *only* available for Plotly Professional users. You can get more details on our [pricing page](https://plot.ly/products/cloud/)\n",
159+
"**Note**: The SVG, EPS and PDF Formats are *only* available for Plotly Professional users. You can get more details on our [pricing page](https://plot.ly/products/cloud/)\n",
160160
"\n",
161161
"\n",
162162
"To access the image in a particular format, you can either:\n",
163-
" - append the format extension to the plot url. i.e. the JPEG version of the plot: https://plot.ly/~chris/1638 is available at : https://plot.ly/~chris/1638.jpg\n",
163+
" - append the format extension to the plot url. i.e. the JPG version of the plot: https://plot.ly/~chris/1638 is available at : https://plot.ly/~chris/1638.jpg\n",
164164
" - Add the appropriate extension to the `save_as` method:\n",
165165
" <code> py.image.save_as(fig, 'chris-plot.jpg')</code>"
166166
]
167167
},
168+
{
169+
"cell_type": "markdown",
170+
"metadata": {},
171+
"source": [
172+
"## Saving Image data in Memory:\n",
173+
"\n",
174+
"The data from the charts can also be stored in the memory. This reduces the overhead of saving the image in the hard disk. It is particularly useful when the image needs to be embedded (for example in email reports)."
175+
]
176+
},
168177
{
169178
"cell_type": "code",
170179
"execution_count": 7,
@@ -179,7 +188,7 @@
179188
},
180189
{
181190
"cell_type": "code",
182-
"execution_count": 8,
191+
"execution_count": 2,
183192
"metadata": {
184193
"collapsed": false
185194
},
@@ -207,20 +216,6 @@
207216
},
208217
"metadata": {},
209218
"output_type": "display_data"
210-
},
211-
{
212-
"name": "stderr",
213-
"output_type": "stream",
214-
"text": [
215-
"//anaconda/lib/python2.7/site-packages/IPython/nbconvert.py:13: ShimWarning:\n",
216-
"\n",
217-
"The `IPython.nbconvert` package has been deprecated. You should import from nbconvert instead.\n",
218-
"\n",
219-
"//anaconda/lib/python2.7/site-packages/publisher/publisher.py:53: UserWarning:\n",
220-
"\n",
221-
"Did you \"Save\" this notebook before running this command? Remember to save, always save.\n",
222-
"\n"
223-
]
224219
}
225220
],
226221
"source": [

0 commit comments

Comments
 (0)