-
-
Notifications
You must be signed in to change notification settings - Fork 544
Pyramid chart #1062
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
Pyramid chart #1062
Conversation
"metadata": {}, | ||
"source": [ | ||
"#### Population Pyramid Chart Using go.Bar\n", | ||
"If your starting with binned data, use a `go.Bar` trace." |
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.
your => you're
"metadata": {}, | ||
"source": [ | ||
"#### Population Pyramid Using go.Histogram\n", | ||
"If you want to quickly create a Population Pyramid from raw data, try `go.Histogram`" |
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.
add a period at the end of this line.
], | ||
"source": [ | ||
"import plotly.plotly as py\n", | ||
"import plotly.graph_objs as go\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.
insert space between plotly and non-plotly packages to be consistent with style guide
], | ||
"source": [ | ||
"import plotly.plotly as py\n", | ||
"import plotly.graph_objs as go\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.
insert space between plotly and non-plotly packages to be consistent with style guide
], | ||
"source": [ | ||
"import plotly.plotly as py\n", | ||
"import plotly.graph_objs as go\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.
insert space between plotly and non-plotly packages to be consistent with style guide
"! pip install git+https://github.com/plotly/publisher.git --upgrade\n", | ||
"import publisher\n", | ||
"publisher.publish(\n", | ||
" 'pyramid-charts.ipynb', 'python/population-pyramid/', 'Python Population Pyramid Charts | plotly',\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.
plotly => Plotly
"publisher.publish(\n", | ||
" 'pyramid-charts.ipynb', 'python/population-pyramid/', 'Python Population Pyramid Charts | plotly',\n", | ||
" 'How to make Population Pyramid Charts in Python with Plotly.',\n", | ||
" title = 'Population Pyramid Charts | plotly',\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.
plotly => Plotly
Changes look good to me, just need to also add a space between plotly and non-plotly imports. That's all this needs for a 💃 from me. |
@@ -0,0 +1,292 @@ | |||
--- | |||
permalink: python/population-pyramid/ |
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.
population-pyramid
-> population-pyramid-charts
in the permalink
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"#### Population Pyramid Chart Using go.Bar\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.
I'd suggest making this title 'Basic Population Pyramid Chart', I don't think you need the go.Bar as you have the explanation line beneath of using go.Bar for binned data and it may look the side bar look a bit cleaner
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"#### Population Pyramid Using go.Histogram\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.
instead of Using go.Histogram
it may be more helpful for users to see a title such as: Population Pyramid Binning (ie use binning/bins in the title)
|
||
|
||
<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/~michaelbabyn/154.embed" height="525px" width="100%"></iframe> |
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.
@michaelbabyn can you run this notebook using the PythonPlotBot
user so these charts are saved to that account (credentials pinned in the #documentation slack channel)
@cldougl , After those last changes is this good to merge? |
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.
💃
create doc for pyramid charts solving this issue