diff --git a/_posts/plotly_js/scientific/wind-rose/2015-04-09-wind-rose-chart.html b/_posts/plotly_js/scientific/wind-rose/2015-04-09-wind-rose-chart.html index 591061503520..9f36466767b0 100755 --- a/_posts/plotly_js/scientific/wind-rose/2015-04-09-wind-rose-chart.html +++ b/_posts/plotly_js/scientific/wind-rose/2015-04-09-wind-rose-chart.html @@ -12,7 +12,7 @@ t: ['North', 'N-E', 'East', 'S-E', 'South', 'S-W', 'West', 'N-W'], name: '11-14 m/s', marker: {color: 'rgb(106,81,163)'}, - type: 'area' + type: 'barpolar' }; var trace2 = { @@ -20,7 +20,7 @@ t: ['North', 'N-E', 'East', 'S-E', 'South', 'S-W', 'West', 'N-W'], name: '8-11 m/s', marker: {color: 'rgb(158,154,200)'}, - type: 'area' + type: 'barpolar' }; var trace3 = { @@ -28,7 +28,7 @@ t: ['North', 'N-E', 'East', 'S-E', 'South', 'S-W', 'West', 'N-W'], name: '5-8 m/s', marker: {color: 'rgb(203,201,226)'}, - type: 'area' + type: 'barpolar' }; var trace4 = { @@ -36,7 +36,7 @@ t: ['North', 'N-E', 'East', 'S-E', 'South', 'S-W', 'West', 'N-W'], name: '< 5 m/s', marker: {color: 'rgb(242,240,247)'}, - type: 'area' + type: 'barpolar' }; var data = [trace1, trace2, trace3, trace4]; diff --git a/_posts/python/scientific/wind-rose/2015-06-30-wind-rose.html b/_posts/python/scientific/wind-rose/2015-06-30-wind-rose.html index aff1c8f0a318..124a58230565 100644 --- a/_posts/python/scientific/wind-rose/2015-06-30-wind-rose.html +++ b/_posts/python/scientific/wind-rose/2015-06-30-wind-rose.html @@ -15,62 +15,60 @@ ipynb: ~notebook_demo/38 --- {% raw %} -
-
+
-

New to Plotly?

Plotly's Python library is free and open source! Get started by downloading the client and reading the primer. +

New to Plotly?¶

Plotly's Python library is free and open source! Get started by downloading the client and reading the primer.
You can set up Plotly to work in online or offline mode, or in jupyter notebooks.
We also have a quick-reference cheatsheet (new!) to help you get started!

-
-
+
-

Basic Wind Rose Chart

+

Basic Wind Rose Chart¶

-
In [1]:
+
In [2]:
import plotly.plotly as py
 import plotly.graph_objs as go
 
-trace1 = go.Area(
+trace1 = go.Barpolar(
     r=[77.5, 72.5, 70.0, 45.0, 22.5, 42.5, 40.0, 62.5],
-    t=['North', 'N-E', 'East', 'S-E', 'South', 'S-W', 'West', 'N-W'],
+    text=['North', 'N-E', 'East', 'S-E', 'South', 'S-W', 'West', 'N-W'],
     name='11-14 m/s',
     marker=dict(
         color='rgb(106,81,163)'
     )
 )
-trace2 = go.Area(
+trace2 = go.Barpolar(
     r=[57.49999999999999, 50.0, 45.0, 35.0, 20.0, 22.5, 37.5, 55.00000000000001],
-    t=['North', 'N-E', 'East', 'S-E', 'South', 'S-W', 'West', 'N-W'],
+    text=['North', 'N-E', 'East', 'S-E', 'South', 'S-W', 'West', 'N-W'],
     name='8-11 m/s',
     marker=dict(
         color='rgb(158,154,200)'
     )
 )
-trace3 = go.Area(
+trace3 = go.Barpolar(
     r=[40.0, 30.0, 30.0, 35.0, 7.5, 7.5, 32.5, 40.0],
-    t=['North', 'N-E', 'East', 'S-E', 'South', 'S-W', 'West', 'N-W'],
+    text=['North', 'N-E', 'East', 'S-E', 'South', 'S-W', 'West', 'N-W'],
     name='5-8 m/s',
     marker=dict(
         color='rgb(203,201,226)'
     )
 )
-trace4 = go.Area(
+trace4 = go.Barpolar(
     r=[20.0, 7.5, 15.0, 22.5, 2.5, 2.5, 12.5, 22.5],
-    t=['North', 'N-E', 'East', 'S-E', 'South', 'S-W', 'West', 'N-W'],
+    text=['North', 'N-E', 'East', 'S-E', 'South', 'S-W', 'West', 'N-W'],
     name='< 5 m/s',
     marker=dict(
         color='rgb(242,240,247)'
@@ -104,10 +102,14 @@ 

Basic Wind Rose Chart - -
-
+
-

Reference

See https://plot.ly/python/reference/#area for more information and chart attribute options!

+

Reference¶

See https://plot.ly/python/reference/#barpolar for more information and chart attribute options!

-
{% endraw %} \ No newline at end of file +
+ + +{% endraw %} \ No newline at end of file diff --git a/_posts/python/scientific/wind-rose/wind-rose.ipynb b/_posts/python/scientific/wind-rose/wind-rose.ipynb index 914eb5573919..f0a7cf45b273 100644 --- a/_posts/python/scientific/wind-rose/wind-rose.ipynb +++ b/_posts/python/scientific/wind-rose/wind-rose.ipynb @@ -19,21 +19,19 @@ }, { "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, + "execution_count": 2, + "metadata": {}, "outputs": [ { "data": { "text/html": [ - "" + "" ], "text/plain": [ "" ] }, - "execution_count": 1, + "execution_count": 2, "metadata": {}, "output_type": "execute_result" } @@ -42,33 +40,33 @@ "import plotly.plotly as py\n", "import plotly.graph_objs as go\n", "\n", - "trace1 = go.Area(\n", + "trace1 = go.Barpolar(\n", " r=[77.5, 72.5, 70.0, 45.0, 22.5, 42.5, 40.0, 62.5],\n", - " t=['North', 'N-E', 'East', 'S-E', 'South', 'S-W', 'West', 'N-W'],\n", + " text=['North', 'N-E', 'East', 'S-E', 'South', 'S-W', 'West', 'N-W'],\n", " name='11-14 m/s',\n", " marker=dict(\n", " color='rgb(106,81,163)'\n", " )\n", ")\n", - "trace2 = go.Area(\n", + "trace2 = go.Barpolar(\n", " r=[57.49999999999999, 50.0, 45.0, 35.0, 20.0, 22.5, 37.5, 55.00000000000001],\n", - " t=['North', 'N-E', 'East', 'S-E', 'South', 'S-W', 'West', 'N-W'],\n", + " text=['North', 'N-E', 'East', 'S-E', 'South', 'S-W', 'West', 'N-W'],\n", " name='8-11 m/s',\n", " marker=dict(\n", " color='rgb(158,154,200)'\n", " )\n", ")\n", - "trace3 = go.Area(\n", + "trace3 = go.Barpolar(\n", " r=[40.0, 30.0, 30.0, 35.0, 7.5, 7.5, 32.5, 40.0],\n", - " t=['North', 'N-E', 'East', 'S-E', 'South', 'S-W', 'West', 'N-W'],\n", + " text=['North', 'N-E', 'East', 'S-E', 'South', 'S-W', 'West', 'N-W'],\n", " name='5-8 m/s',\n", " marker=dict(\n", " color='rgb(203,201,226)'\n", " )\n", ")\n", - "trace4 = go.Area(\n", + "trace4 = go.Barpolar(\n", " r=[20.0, 7.5, 15.0, 22.5, 2.5, 2.5, 12.5, 22.5],\n", - " t=['North', 'N-E', 'East', 'S-E', 'South', 'S-W', 'West', 'N-W'],\n", + " text=['North', 'N-E', 'East', 'S-E', 'South', 'S-W', 'West', 'N-W'],\n", " name='< 5 m/s',\n", " marker=dict(\n", " color='rgb(242,240,247)'\n", @@ -100,15 +98,13 @@ "source": [ "#### Reference\n", "\n", - "See https://plot.ly/python/reference/#area for more information and chart attribute options!" + "See https://plot.ly/python/reference/#barpolar for more information and chart attribute options!" ] }, { "cell_type": "code", "execution_count": 1, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "data": { @@ -139,22 +135,25 @@ "output_type": "stream", "text": [ "Collecting git+https://github.com/plotly/publisher.git\n", - " Cloning https://github.com/plotly/publisher.git to /var/folders/ld/6cl3s_l50wd40tdjq2b03jxh0000gp/T/pip-xn0lkg19-build\n", + " Cloning https://github.com/plotly/publisher.git to /private/var/folders/tc/bs9g6vrd36q74m5t8h9cgphh0000gn/T/pip-req-build-FM7hk1\n", + "Building wheels for collected packages: publisher\n", + " Running setup.py bdist_wheel for publisher ... \u001b[?25ldone\n", + "\u001b[?25h Stored in directory: /private/var/folders/tc/bs9g6vrd36q74m5t8h9cgphh0000gn/T/pip-ephem-wheel-cache-p_NUGG/wheels/99/3e/a0/fbd22ba24cca72bdbaba53dbc23c1768755fb17b3af0f33966\n", + "Successfully built publisher\n", "Installing collected packages: publisher\n", - " Found existing installation: publisher 0.10\n", - " Uninstalling publisher-0.10:\n", - " Successfully uninstalled publisher-0.10\n", - " Running setup.py install for publisher ... \u001b[?25l-\b \b\\\b \b|\b \bdone\n", - "\u001b[?25hSuccessfully installed publisher-0.10\n" + " Found existing installation: publisher 0.11\n", + " Uninstalling publisher-0.11:\n", + " Successfully uninstalled publisher-0.11\n", + "Successfully installed publisher-0.11\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ - "/Users/brandendunbar/Desktop/test/venv/lib/python2.7/site-packages/IPython/nbconvert.py:13: ShimWarning: The `IPython.nbconvert` package has been deprecated. You should import from nbconvert instead.\n", + "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/nbconvert.py:13: ShimWarning: The `IPython.nbconvert` package has been deprecated since IPython 4.0. You should import from nbconvert instead.\n", " \"You should import from nbconvert instead.\", ShimWarning)\n", - "/Users/brandendunbar/Desktop/test/venv/lib/python2.7/site-packages/publisher/publisher.py:53: UserWarning: Did you \"Save\" this notebook before running this command? Remember to save, always save.\n", + "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/publisher/publisher.py:53: UserWarning: Did you \"Save\" this notebook before running this command? Remember to save, always save.\n", " warnings.warn('Did you \"Save\" this notebook before running this command? '\n" ] } @@ -175,7 +174,7 @@ " has_thumbnail='true', thumbnail='thumbnail/wind-rose.jpg', \n", " language='python', page_type='example_index', \n", " display_as='scientific', order=8,\n", - " ipynb= '~notebook_demo/38') " + " ipynb= '~notebook_demo/38')" ] }, { @@ -205,9 +204,9 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython2", - "version": "2.7.10" + "version": "2.7.12" } }, "nbformat": 4, - "nbformat_minor": 0 + "nbformat_minor": 1 }