has2k1/plotnine: v0.12.1
Creators
- Hassan Kibirige
- Greg Lamp
- Jan Katins1
- gdowding
- austin
- Florian Finkernagel
- matthias-k
- Tyler Funnell2
- Jonas Arnfred
- Dan Blanchard3
- Paul Natsuo Kishimoto4
- Sergey Astanin
- Eric Chiang5
- Evan Sheehan
- stonebig
- Bernard Willers
- smutch6
- Yaroslav Halchenko7
- Pavel
- Josh Hartmann
- Brian King
- Emerentius
- Hugo van Kemenade8
- James Spencer
- Jonathan Soma9
- Min RK10
- Tim Gates11
- John Collins
- Anthony12
- Bevan Koopman13
- 1. @kreuzwerker
- 2. MSKCC
- 3. @coiled
- 4. International Institute for Applied Systems Analysis @iiasa
- 5. @Google
- 6. The University Of Melbourne
- 7. Dartmouth College, @Debian, @DataLad, @PyMVPA, @fail2ban
- 8. Nord Software
- 9. Brooklyn Brainery
- 10. Simula Research Laboratory
- 11. IRESS
- 12. Carnegie Mellon University
- 13. CSIRO
Description
(2023-05-09)
New FeaturesA layout manager. Now you do not have to adjust spacing parameters to prevent objects around the panels from overlapping. Specifically, you can:
- Set the legend position to "top", "left" or "bottom"
- Use a large or multiline plot title
- Use a large or multiline plot caption
- Use facet_wrap with
scales="free"
scales="free_x"
or `scales="free_y"
You can now also align the _plottitle, _axis_titlex, _axis_titley and _plotcaption with respect to the panels. Set these to "left", "right" & "center" for the horizontal flowing text. And "top", "right" & "center" for the vertical flowing text.
Also, the size of the figure is exactly determined by the theme setting. For example, this:
theme(figure_size=(8, 6), dpi=100)
will create an 800px x 600px image.
You can create a
subtitle
using labs and style it using theplot_subtitle
parameter to theme.theme(plot_subtitle=element_text(size=8))
- ggplot object gained a new method save_helper(). It gives you access to the matplotlib figure that will be saved to file.
When plotting with an ipython interactive backend (e.g. in a jupyter notebook). The default image output is retina. You do not need to run this command.
%config InlineBackend.figure_format = "retina"
Plotnine still respects any values set the user.
In an interactive setting, after drawing an image. The size of the figure (in pixels) is printed e.g.
<Figure Size: (640 x 480)>
. Previously, something like<ggplot: (336175301)>
was printed.
__add__()
and__iadd__()
now accept the same types of objects. In this change__iadd__()
has gained the ability to accept a list of objects.- draw() no longer accepts the argument
return_ggplot
and the return value is always a matplolib figure. - Themeables
strip_margin,
strip_margin_x
andstrip_margin_y
have been renamed to strip_align(), strip_align_x() strip_align_y() repectively. subplots_adjust
has been deprecated. You no longer need to usetheme(subplots_adjust={"right": 0.85})
and the like to make space for the legend or text around the panels. In the future, this will through an error.- Changed default font-family (san-serif) from DejaVu Sans to Helvetica.
- Fixed bug where a discrete position scale failed when mapping an empty variable. (#647)
- Fixed bug where facet_grid with a datetime column run into an exception. (#629)
- Fixed bug where geom_violin with facetting and "scales = free" did not work. (#655)
- Fixed bug in position_dodge2 to work with preserve="single" for geom_rect and any other geoms that accept a min-max range along the x-axis.
- Fixed legend for geom_point to accurately display transparent fill colors that have been manually set. (#665)
- Fix issue where infinite limits for the x or y scales lead to an exception. (#664)
- Fixed geom_text and geom_label when used with string formatting so that missing values are removed. (#651)
Files
has2k1/plotnine-v0.12.1.zip
Files
(6.1 MB)
Name | Size | Download all |
---|---|---|
md5:328e3e8ac0802b3a419801e63e02a559
|
6.1 MB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/has2k1/plotnine/tree/v0.12.1 (URL)