Skip to content

Commit

Permalink
python/heatmap redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
cldougl committed Dec 4, 2017
1 parent 0c0e9cf commit dc8815b
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 83 deletions.
29 changes: 17 additions & 12 deletions _posts/python/scientific/heatmap/2015-06-30-heatmaps.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
name: Heatmaps
language: python
title: Python Heatmaps | plotly
redirect_from: python/heatmap/
display_as: scientific
has_thumbnail: true
page_type: example_index
order: 3
ipynb: ~notebook_demo/33
---
{% raw %}
<div class="cell border-box-sizing text_cell rendered">
<div class="prompt input_prompt">
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
</div>
<div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
Expand Down Expand Up @@ -46,10 +46,12 @@ <h4 id="Version-Check">Version Check<a class="anchor-link" href="#Version-Check"


<div class="output_area">

<div class="prompt output_prompt">Out[1]:</div>




<div class="output_text output_subarea output_execute_result">
<pre>&#39;2.0.6&#39;</pre>
</div>
Expand All @@ -60,8 +62,7 @@ <h4 id="Version-Check">Version Check<a class="anchor-link" href="#Version-Check"
</div>

</div>
<div class="cell border-box-sizing text_cell rendered">
<div class="prompt input_prompt">
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
</div>
<div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
Expand Down Expand Up @@ -93,9 +94,11 @@ <h3 id="Basic-Heatmap">Basic Heatmap<a class="anchor-link" href="#Basic-Heatmap"


<div class="output_area">

<div class="prompt output_prompt">Out[2]:</div>



<div class="output_html rendered_html output_subarea output_execute_result">
<iframe id="igraph" scrolling="no" style="border:none;" seamless="seamless" src="https://plot.ly/~PythonPlotBot/821.embed" height="525px" width="100%"></iframe>
</div>
Expand All @@ -106,8 +109,7 @@ <h3 id="Basic-Heatmap">Basic Heatmap<a class="anchor-link" href="#Basic-Heatmap"
</div>

</div>
<div class="cell border-box-sizing text_cell rendered">
<div class="prompt input_prompt">
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
</div>
<div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
Expand Down Expand Up @@ -139,9 +141,11 @@ <h3 id="Heatmap-with-Categorical-Axis-Labels">Heatmap with Categorical Axis Labe


<div class="output_area">

<div class="prompt output_prompt">Out[3]:</div>



<div class="output_html rendered_html output_subarea output_execute_result">
<iframe id="igraph" scrolling="no" style="border:none;" seamless="seamless" src="https://plot.ly/~PythonPlotBot/833.embed" height="525px" width="100%"></iframe>
</div>
Expand All @@ -152,8 +156,7 @@ <h3 id="Heatmap-with-Categorical-Axis-Labels">Heatmap with Categorical Axis Labe
</div>

</div>
<div class="cell border-box-sizing text_cell rendered">
<div class="prompt input_prompt">
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
</div>
<div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
Expand Down Expand Up @@ -230,9 +233,11 @@ <h3 id="Heatmap-with-Unequal-Block-Sizes">Heatmap with Unequal Block Sizes<a cla


<div class="output_area">

<div class="prompt output_prompt">Out[4]:</div>



<div class="output_html rendered_html output_subarea output_execute_result">
<iframe id="igraph" scrolling="no" style="border:none;" seamless="seamless" src="https://plot.ly/~PythonPlotBot/835.embed" height="700px" width="700px"></iframe>
</div>
Expand All @@ -243,8 +248,7 @@ <h3 id="Heatmap-with-Unequal-Block-Sizes">Heatmap with Unequal Block Sizes<a cla
</div>

</div>
<div class="cell border-box-sizing text_cell rendered">
<div class="prompt input_prompt">
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
</div>
<div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
Expand Down Expand Up @@ -303,9 +307,11 @@ <h3 id="Heatmap-with-Datetime-Axis">Heatmap with Datetime Axis<a class="anchor-l


<div class="output_area">

<div class="prompt output_prompt">Out[5]:</div>



<div class="output_html rendered_html output_subarea output_execute_result">
<iframe id="igraph" scrolling="no" style="border:none;" seamless="seamless" src="https://plot.ly/~PythonPlotBot/823.embed" height="525px" width="100%"></iframe>
</div>
Expand All @@ -316,8 +322,7 @@ <h3 id="Heatmap-with-Datetime-Axis">Heatmap with Datetime Axis<a class="anchor-l
</div>

</div>
<div class="cell border-box-sizing text_cell rendered">
<div class="prompt input_prompt">
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
</div>
<div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
Expand Down
119 changes: 48 additions & 71 deletions _posts/python/scientific/heatmap/heatmaps.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"metadata": {
"deletable": true,
"editable": true
},
"metadata": {},
"source": [
"#### New to Plotly?\n",
"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/).\n",
Expand All @@ -18,14 +15,12 @@
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'2.0.6'"
"'2.2.2'"
]
},
"execution_count": 1,
Expand All @@ -40,27 +35,20 @@
},
{
"cell_type": "markdown",
"metadata": {
"deletable": true,
"editable": true
},
"metadata": {},
"source": [
"### Basic Heatmap"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": false,
"deletable": true,
"editable": true
},
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<iframe id=\"igraph\" scrolling=\"no\" style=\"border:none;\" seamless=\"seamless\" src=\"https://plot.ly/~PythonPlotBot/821.embed\" height=\"525px\" width=\"100%\"></iframe>"
"<iframe id=\"igraph\" scrolling=\"no\" style=\"border:none;\" seamless=\"seamless\" src=\"https://plot.ly/~chelsea_lyn/9184.embed\" height=\"525px\" width=\"100%\"></iframe>"
],
"text/plain": [
"<plotly.tools.PlotlyDisplay object>"
Expand All @@ -84,27 +72,20 @@
},
{
"cell_type": "markdown",
"metadata": {
"deletable": true,
"editable": true
},
"metadata": {},
"source": [
"### Heatmap with Categorical Axis Labels"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"collapsed": false,
"deletable": true,
"editable": true
},
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<iframe id=\"igraph\" scrolling=\"no\" style=\"border:none;\" seamless=\"seamless\" src=\"https://plot.ly/~PythonPlotBot/833.embed\" height=\"525px\" width=\"100%\"></iframe>"
"<iframe id=\"igraph\" scrolling=\"no\" style=\"border:none;\" seamless=\"seamless\" src=\"https://plot.ly/~chelsea_lyn/7766.embed\" height=\"525px\" width=\"100%\"></iframe>"
],
"text/plain": [
"<plotly.tools.PlotlyDisplay object>"
Expand All @@ -128,27 +109,20 @@
},
{
"cell_type": "markdown",
"metadata": {
"deletable": true,
"editable": true
},
"metadata": {},
"source": [
"### Heatmap with Unequal Block Sizes\n"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"collapsed": false,
"deletable": true,
"editable": true
},
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<iframe id=\"igraph\" scrolling=\"no\" style=\"border:none;\" seamless=\"seamless\" src=\"https://plot.ly/~PythonPlotBot/835.embed\" height=\"700px\" width=\"700px\"></iframe>"
"<iframe id=\"igraph\" scrolling=\"no\" style=\"border:none;\" seamless=\"seamless\" src=\"https://plot.ly/~chelsea_lyn/9117.embed\" height=\"700px\" width=\"700px\"></iframe>"
],
"text/plain": [
"<plotly.tools.PlotlyDisplay object>"
Expand Down Expand Up @@ -217,27 +191,20 @@
},
{
"cell_type": "markdown",
"metadata": {
"deletable": true,
"editable": true
},
"metadata": {},
"source": [
"### Heatmap with Datetime Axis"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"collapsed": false,
"deletable": true,
"editable": true
},
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<iframe id=\"igraph\" scrolling=\"no\" style=\"border:none;\" seamless=\"seamless\" src=\"https://plot.ly/~PythonPlotBot/823.embed\" height=\"525px\" width=\"100%\"></iframe>"
"<iframe id=\"igraph\" scrolling=\"no\" style=\"border:none;\" seamless=\"seamless\" src=\"https://plot.ly/~chelsea_lyn/16145.embed\" height=\"525px\" width=\"100%\"></iframe>"
],
"text/plain": [
"<plotly.tools.PlotlyDisplay object>"
Expand Down Expand Up @@ -289,10 +256,7 @@
},
{
"cell_type": "markdown",
"metadata": {
"deletable": true,
"editable": true
},
"metadata": {},
"source": [
"#### Reference\n",
"See https://plot.ly/python/reference/#heatmap for more information and chart attribute options!\n"
Expand All @@ -301,11 +265,7 @@
{
"cell_type": "code",
"execution_count": 7,
"metadata": {
"collapsed": false,
"deletable": true,
"editable": true
},
"metadata": {},
"outputs": [
{
"data": {
Expand All @@ -330,6 +290,34 @@
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Collecting git+https://github.com/plotly/publisher.git\n",
" Cloning https://github.com/plotly/publisher.git to /private/var/folders/k_/zf24qrfn2kg710j9pdrxzrz40000gn/T/pip-dwCYOk-build\n",
"Installing collected packages: publisher\n",
" Found existing installation: publisher 0.11\n",
" Uninstalling publisher-0.11:\n",
" Successfully uninstalled publisher-0.11\n",
" Running setup.py install for publisher ... \u001b[?25ldone\n",
"\u001b[?25hSuccessfully installed publisher-0.11\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/Users/chelsea/venv/venv2.7/lib/python2.7/site-packages/IPython/nbconvert.py:13: ShimWarning:\n",
"\n",
"The `IPython.nbconvert` package has been deprecated since IPython 4.0. You should import from nbconvert instead.\n",
"\n",
"/Users/chelsea/venv/venv2.7/lib/python2.7/site-packages/publisher/publisher.py:53: UserWarning:\n",
"\n",
"Did you \"Save\" this notebook before running this command? Remember to save, always save.\n",
"\n"
]
}
],
"source": [
Expand All @@ -349,19 +337,8 @@
" has_thumbnail='true', thumbnail='thumbnail/heatmap.jpg', \n",
" language='python', page_type='example_index',\n",
" display_as='scientific',order=3,\n",
" ipynb= '~notebook_demo/33') "
" ipynb= '~notebook_demo/33', redirect_from='python/heatmap/') "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true,
"deletable": true,
"editable": true
},
"outputs": [],
"source": []
}
],
"metadata": {
Expand All @@ -381,9 +358,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.12"
"version": "2.7.10"
}
},
"nbformat": 4,
"nbformat_minor": 0
"nbformat_minor": 1
}

0 comments on commit dc8815b

Please sign in to comment.