Skip to content

Commit 6ea2e6c

Browse files
authored
07-visualization-ggplot-python.md: add a reminder about plotline installation (#461)
1 parent 3aa4ac6 commit 6ea2e6c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

_episodes/07-visualization-ggplot-python.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ and [The Grammar of Graphics][grammar-of-graphics]
3030
by Leland Wilkinson. The `plotnine`
3131
package is built on top of Matplotlib and interacts well with Pandas.
3232

33+
> ## Reminder
34+
> `plotnine` is not included in the standard Anaconda installation and needs
35+
> to be installed separately. If you haven't done so already, you can find installation
36+
> instructions on the [Setup page][setup-plotnine].
37+
{: .callout}
38+
3339
Just as with the other packages, `plotnine` needs to be imported. It is good
3440
practice to not just load an entire package such as `from plotnine import *`,
3541
but to use an abbreviation as we used `pd` for Pandas:
@@ -592,5 +598,6 @@ my_plot.save("scatterplot.png", width=10, height=10, dpi=300)
592598
[grammar-of-graphics]: http://link.springer.com/book/10.1007%2F0-387-28695-0
593599
[plotnine-api]: https://plotnine.readthedocs.io/en/stable/api.html#color-and-fill-scales
594600
[plotnine]: https://plotnine.readthedocs.io/en/stable
601+
[setup-plotnine]: https://datacarpentry.org/python-ecology-lesson/setup.html#download-plotting-package
595602
596603
{% include links.md %}

0 commit comments

Comments
 (0)