-
-
Notifications
You must be signed in to change notification settings - Fork 544
HTML to ipynb for bubble, bar, area, box, error bar and quiver-plots #1048
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've left a few comments on the html files (as it is easier to read) but the publisher cells for those files will need updated.
layout: user-guide | ||
language: matplotlib | ||
title: Bubble Charts | Plotly | ||
display_as: chart_type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
basic
@@ -0,0 +1,267 @@ | |||
--- | |||
permalink: matplotlib/bubble-charts/ | |||
description: How to make your-tutorial-chart plots in Python with Plotly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Somthing like: "How to make bubble charts in matplotlib."
@@ -0,0 +1,218 @@ | |||
--- | |||
permalink: python/your-tutorial-chart/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing URL
…nk url to quiver plot
I made the edits requested by @bcdunbar. |
thanks! 👍 |
_config_dev.yml
Outdated
# all of the posts: ['*.Rmd','_posts/2015-09-09-matlab-reference.html','_posts/2015-09-06-r-reference.html','_posts/2015-09-06-python-reference.html','_posts/2015-08-19-plotly_js-reference.html','_posts/2015-04-05-ggplot2-index.html','_posts/2015-04-05-julia-index.html','_posts/2015-04-05-matlab-index.html','_posts/2015-04-05-matplotlib-index.html','_posts/2015-04-05-node_js-index.html','_posts/2015-04-05-plotly_js-index.html','_posts/2015-04-05-plotlyjs-function-reference.md','_posts/2015-04-05-python-index.html','_posts/2015-05-25-ipython-notebooks_gallery.html','_posts/2015-05-25-ipython-notebooks_index.html','_posts/2015-07-13-eula_index.html','_posts/2015-07-19-pandas.html','_posts/2015-07-26-index.html','_posts/2015-07-30-r-index.Rmd','_posts/2015-07-30-r-index.md','_posts/2015-08-20-research-box-index.html','_posts/ggplot2','_posts/julia','_posts/matlab','_posts/matplotlib','_posts/nodejs','_posts/pandas','_posts/plotly_js','_posts/python','_posts/r','_posts/tutorials','_posts/user_guide_matlab','_posts/user_guide_python'] | ||
exclude: ['*.Rmd','_posts/matlab','_posts/dashboards','_posts/julia','_posts/matplotlib','_posts/misc','_posts/nodejs','_posts/numpy','_posts/scala','_posts/scikit','_posts/tutorials','_posts/user_guide_matlab','_posts/user_guide_python'] | ||
exclude: ['*.Rmd','_posts/2015-09-09-matlab-reference.html','_posts/2015-09-06-r-reference.html','_posts/2015-08-19-plotly_js-reference.html','_posts/2015-04-05-ggplot2-index.html','_posts/2015-04-05-julia-index.html','_posts/2015-04-05-matlab-index.html','_posts/2015-04-05-matplotlib-index.html','_posts/2015-04-05-node_js-index.html','_posts/2015-04-05-plotly_js-index.html','_posts/2015-04-05-plotlyjs-function-reference.md','_posts/2015-04-05-python-index.html','_posts/2015-05-25-ipython-notebooks_gallery.html','_posts/2015-05-25-ipython-notebooks_index.html','_posts/2015-07-13-eula_index.html','_posts/2015-07-19-pandas.html','_posts/2015-07-26-index.html','_posts/2015-07-30-r-index.Rmd','_posts/2015-07-30-r-index.md','_posts/2015-08-20-research-box-index.html','_posts/ggplot2','_posts/julia','_posts/matlab','_posts/nodejs','_posts/pandas','_posts/plotly_js','_posts/r','_posts/tutorials','_posts/user_guide_matlab','_posts/user_guide_python'] | ||
# exclude: ['*.Rmd','_posts/matlab','_posts/dashboards','_posts/julia','_posts/misc','_posts/nodejs','_posts/numpy','_posts/scala','_posts/scikit','_posts/tutorials','_posts/user_guide_matlab','_posts/user_guide_python'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd recommend not committing this change
we definitely want to keep the # all of the posts:
line there so we have a reference of all options. Editing the excluded list doesn't matter so much for the dev config, but the all posts line should not be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it could be from @jdamiba's last commit. I will revert the commit and make all necessary changes
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"#### Bubble chart with scatter marker size\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐐 please capitalize titles
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"#### Matplotlib Bubble Chart using Colormap (`cmap`)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐐 consistent capitalization (**** code words do not need to be capitalized but using should be)
} | ||
], | ||
"source": [ | ||
"import matplotlib.pyplot as plt\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
best practice is to keep import order consistent and import plotly packages first then a space then additional packages like:
import plotly.plotly as py
import plotly.tools as tls
import matplotlib.pyplot as plt
import numpy as np
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"#### Matplotlib Area Plot" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typically we want the examples to be in order from most basic -> most advanced on the page. This seems like the most basic example so I suggest moving this first.
… permalink url to quiver plot" This reverts commit e7d739d.
@priyatharsan You'll want to do #1048 (comment) in all the notebooks. Also, ensure that it is the same way @cldougl had it i.e. "plotly packages first then a space then additional packages " |
"import plotly.tools as tls\n", | ||
"\n", | ||
"# Learn about API authentication here: https://plot.ly/python/getting-started\n", | ||
"# Find your api_key here: https://plot.ly/settings/api\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Learn about API authentication here: https://plot.ly/python/getting-started
# Find your api_key here: https://plot.ly/settings/api
Looking at it again, I don't think that we require these commented lines anymore. They seem redundant given that this information is contained in the New to Plotly? section.
import order and other changes look good 👍 One last suggestion: update the reference section to point to the reference page https://plot.ly/python/reference/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm 💃
Thanks for making all the changes 👍
Update for bubble, bar, area, box, error bar & quiver-plots #802