Giter Club home page Giter Club logo

Comments (6)

dfm avatar dfm commented on June 29, 2024 1

Oh - I see what you're looking for now! No, there's no KDE option. These parameters smooth out sampling noise but you're always going to see a histogram with bin sizes set by the bins parameter. If you want something different, you'll need to plot it manually using matplotlib directly. To do that, you can use the method described here to access the axis objects directly and then plot whatever you want: https://corner.readthedocs.io/en/latest/pages/custom.html

Unfortunately I can't give you more concrete suggestions.

from corner.py.

dfm avatar dfm commented on June 29, 2024

You can smooth the 1D histograms using the smooth_1d parameter (I agree that the docstring is a little ambiguous): https://corner.readthedocs.io/en/latest/api.html#corner.corner

The shading is performing as expected. The size of the "pixels" are set by the bins parameter.

from corner.py.

shikharmittal04 avatar shikharmittal04 commented on June 29, 2024

Thanks for the reply. Increasing the number of bins solved the shading problem, but I still could not obtain smooth Gaussians. I set both the options, smooth=True and smooth_1d=True, but it's not working. In fact, there was no change on setting smooth_1d=True. Is it not possible to obtain a smooth plot like this?

from corner.py.

dfm avatar dfm commented on June 29, 2024

As described in the documentation linked above, these parameters are not booleans; the should be floats. Try adjusting those parameters to get what you want.

from corner.py.

shikharmittal04 avatar shikharmittal04 commented on June 29, 2024

Sorry, but this did not work either. I tried something like
smooth=10.0, smooth_1d=10.0
but the histogram is still step-like.

from corner.py.

shikharmittal04 avatar shikharmittal04 commented on June 29, 2024

Thanks.

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.