Comments (9)
Yeah - that is annoying behavior. The way that I generally deal with it is to use the weights
argument. Something like the following:
samples1 = np.array(...
samples2 = np.array(...
fig = corner.corner(samples1)
corner.corner(samples2, fig=fig, weights=np.ones(len(samples2))*len(samples1)/len(samples2))
Hope that helps!
from corner.py.
Yep. You can use the fig
keyword argument to corner
.
fig = corner.corner(samples1)
corner.corner(samples2, fig=fig)
It's useful to combine this with the range
argument to keep reasonable ranges on the plots.
from corner.py.
Example here:
https://github.com/tommasotreu/AARV/blob/master/figures/DdtDa.ipynb
I forget how to change the filled contours alpha values to make them
translucent, though.
On Thu, May 26, 2016 at 12:17 PM, Dan Foreman-Mackey <
[email protected]> wrote:
Yep. You can use the fig keyword argument to corner.
fig = corner.corner(samples1)
corner.corner(samples2, fig=fig)It's useful to combine this with the range argument to keep reasonable
ranges on the plots.—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#82 (comment)
from corner.py.
I'm trying to do the same at the moment, I would like to plot two corner plots on top of each other, but I can't access the example here https://github.com/tommasotreu/AARV/blob/master/figures/DdtDa.ipynb
Can I access it from somewhere else?
Thanks!
from corner.py.
from corner.py.
I tried following the links https://github.com/tommasotreu/AARV/blob/master/attic/spare-or-old-figures/DdtDa.ipynb and it worked. However, the 1d histograms (for two different samples) are not being plotted properly. One of the 1d hist overshoots the range. It seems they are not getting normalised. Any suggestion?
Thanks for reading!
from corner.py.
For two contours, how does one put the show_titles
such that values from both the contours get put in the title side by side.. something like this:
from corner.py.
@divyajyoti09 - there is no built in support for this, but you can manually set the titles using the Custom plotting tutorial to access the axes directly.
from corner.py.
For two contours, how does one put the
show_titles
such that values from both the contours get put in the title side by side.. something like this:
I ran into this problem recently and figured out a way to monkey-patch Axes.set_title() to still let corner.py handle the actual content in the titles.
https://gist.github.com/alchzh/7f5fb3d01e53b2ad737db486d065d1a0
It's compatible with multiple text colors for each dataset properly displaying in the title.
from corner.py.
Related Issues (20)
- Problems with installation HOT 3
- [BUG] Docs for the custom plot are broken HOT 1
- Misplaced **hist_kwargs? HOT 4
- Documentation errantly suggests labels are inferred from pandas.DataFrame columns HOT 4
- axes_scale argument does not work? HOT 2
- range doesn't work, or am I making a mistake? HOT 4
- ValueError: Axis limits cannot be NaN or Inf HOT 3
- Feature add request: interactive plotting using bokeh
- title_quantiles not working? HOT 2
- Matplotlib version [Urgent, maybe] HOT 13
- Having title_quantiles=None when quantiles is passed without having exactly 3 elements raises a ValueError HOT 4
- change colormap HOT 3
- Missing label on first marginalisation HOT 2
- Add option for rotated view of last marginalisation
- Do not mute mutable arguments HOT 1
- reverse=True incompatible with truths HOT 1
- linestyle argument in overlpot_points
- Reference problem
- Stripy hist2d when saved to pdf
- labelpad pushes the labels out of the figure entirely HOT 2
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 corner.py.