Comments (5)
It is possible. If you manually call the ggplot.draw
method, it returns the matplotlib figure; you then get the list of axes
; then spine
or Axis
; and so on. e.g.
p = ggplot() + ...
fig = p.draw()
axs = fig.get_axes()
for ax in axes:
ax.spine['top'].set(...)
xaxis = ax.get_xaxis()
from plotnine.
Awesome, thank you. This is a very handy escape hatch.
from plotnine.
Out of curiosity, what adjustments can you not make with the theme system? Is it to style axis
s' on separate panels differently?
from plotnine.
One of my colleagues wanted to overlay plots with a secondary set of axes, and it seemed like that couldn't be done directly in plotnine.
from plotnine.
When Matplotlib ships the constraint layout manager, I'll look into adding secondary axes functionality.
from plotnine.
Related Issues (20)
- Does plotnine 0.12.3 work with mizani 0.10.0? HOT 3
- Additions to facets HOT 2
- ggtitle or labs(title=) align left instead of center after updating from 0.10.1 to 0.12.3 HOT 2
- geom_text: can't use nudge_y and position=dodge HOT 2
- plotnine figure of ipynb with vscode is displayed too much larger than jupyter HOT 1
- AttributeError: 'RangeDiscrete' object has no attribute 'range' when calling scale_y_discrete HOT 3
- Add specific gene labels to geom_point volcanoplot HOT 2
- Tutorial ValueError: Unrecognised timezone class HOT 1
- Conditional colors for element_text() HOT 1
- `stat_ecdf` add `pad` argument
- geom_text cannot change vertical or horizontal alignment HOT 4
- Colored segments with manual group assignment breaks geom_path line endings
- No upper outline in `geom_ribbon()`
- Error when pickling an object obtained by draw() HOT 3
- Using a ggplot figure as standard Matplotlib device HOT 1
- Can the plotnine module draw significance markers? HOT 2
- In-place string scalars in `aes` HOT 1
- facet_grid throws an error: ValueError: No objects to concatenate HOT 2
- Breaks and labels in scale_color_identity don't match.
- FIPS Compliant
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plotnine.