Giter Club home page Giter Club logo

Comments (9)

dfm avatar dfm commented on July 24, 2024 4

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.

dfm avatar dfm commented on July 24, 2024

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.

drphilmarshall avatar drphilmarshall commented on July 24, 2024

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.

albin-n avatar albin-n commented on July 24, 2024

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.

drphilmarshall avatar drphilmarshall commented on July 24, 2024

from corner.py.

tousifislam avatar tousifislam commented on July 24, 2024

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.

divyajyoti09 avatar divyajyoti09 commented on July 24, 2024

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:
1167_1364_posterior_Mc_eta_M_dist_incl

from corner.py.

dfm avatar dfm commented on July 24, 2024

@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.

alchzh avatar alchzh commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.