Giter Club home page Giter Club logo

Comments (5)

dfm avatar dfm commented on July 24, 2024

This is possible. You can use a combination of the color and fig kwargs.

fig = corner.corner(samps1, color="k")
corner.corner(samps2, color="g", fig=fig)

from corner.py.

davidwhogg avatar davidwhogg commented on July 24, 2024

You are absolutely right. Sorry to waste issue space.

(I'm closing but I should open a pull request to the tutorial...)

from corner.py.

davidwhogg avatar davidwhogg commented on July 24, 2024

I am reopening this. Here is my code (100000 data points, 16 centers) I want to plot the centers as red dots on top of blue data. This doesn't work (I get red one-d histograms but no red points on the blue plots), and if I do the other order I also don't see the red points. What am I doing wrong? Full code checked in at Platypus.

        figure = corner.corner(data, range=ranges, labels=labels, color="b",
                               bins=128, plot_datapoints=True, plot_density=True, plot_contours=True)
        corner.corner(centers, range=ranges, color="r", fig=figure,
                      plot_datapoints=True, plot_density=False, plot_contours=False)
        fn = "{}/centers.{}".format(dir, suffix)
        figure.savefig(fn)

from corner.py.

davidwhogg avatar davidwhogg commented on July 24, 2024

ps. python3.5
pps. a zorder keyword might be all I am missing...?

from corner.py.

dfm avatar dfm commented on July 24, 2024

Can you post a figure showing your issue? You might need to use something like data_kwargs=dict(ms=10) for the red plot.

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.