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

Skip to content

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

Merged
merged 7 commits into from
Aug 30, 2018

Conversation

priyatharsan
Copy link
Contributor

@priyatharsan priyatharsan commented Aug 23, 2018

Update for bubble, bar, area, box, error bar & quiver-plots #802

@priyatharsan priyatharsan requested a review from bcdunbar August 23, 2018 15:56
@priyatharsan priyatharsan added the ReviewReady This PR is ready for review label Aug 23, 2018
@priyatharsan priyatharsan changed the title HTML to ipynb for bubble, bar, area, box, error bar HTML to ipynb for bubble, bar, area, box, error bar and quiver-plots Aug 23, 2018
@jdamiba
Copy link
Contributor

jdamiba commented Aug 23, 2018

LGTM

Copy link
Contributor

@bcdunbar bcdunbar left a 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
Copy link
Contributor

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.
Copy link
Contributor

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/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing URL

@jdamiba
Copy link
Contributor

jdamiba commented Aug 24, 2018

I made the edits requested by @bcdunbar.

@priyatharsan
Copy link
Contributor Author

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']
Copy link
Member

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

Copy link
Contributor Author

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",
Copy link
Member

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`)"
Copy link
Member

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",
Copy link
Member

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"
Copy link
Member

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.

@cldougl cldougl removed the ReviewReady This PR is ready for review label Aug 24, 2018
@priyatharsan
Copy link
Contributor Author

made all necessary changes @cldougl @bcdunbar

@bcdunbar
Copy link
Contributor

@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",
Copy link
Contributor

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.

@bcdunbar
Copy link
Contributor

bcdunbar commented Aug 29, 2018

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/

Copy link
Contributor

@bcdunbar bcdunbar left a 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 👍

@priyatharsan priyatharsan merged commit 8799c18 into source-design-merge Aug 30, 2018
@priyatharsan priyatharsan deleted the matplotlib-doc-update branch August 30, 2018 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants