Giter Club home page Giter Club logo

Comments (4)

boivinalex avatar boivinalex commented on July 4, 2024 12

Hello,

I had the same problem with tick labels overlapping axis labels when I made the labels a larger size for a publication. matplolib's subplots_adjust worked for me:

figure = corner.corner(...)
figure.subplots_adjust(right=1.5,top=1.5)

with

for ax in figure.get_axes():
    ax.tick_params(axis='both', labelsize=16)

I'm sure the rcParams figure.subplot.right and figure.subplot.top would also do the trick.

To save the figure without cutting things off I did:

figure.savefig(filepath,dpi=300,pad_inches=0.3,bbox_inches='tight')

from corner.py.

dfm avatar dfm commented on July 4, 2024

This isn't really built into corner. Your best bet is probably to use matplotlib's rcParams.

from corner.py.

PetMetz avatar PetMetz commented on July 4, 2024

Hello,

Thank you for bringing emcee and corner to the world!

I want to submit a corner plot with a publication I'm drafting, and am troubled by the same problem. I need a column-width figure to have >2 mm font size when typeset.

I can control axis label size using the label_kwargs keyword discussed in another ticket, but corner seems to be ignoring matplotlib's rcParams when setting the tick label size.

Has there been any more thought on this issue?

from corner.py.

dfm avatar dfm commented on July 4, 2024

This code doesn't set the tick font size anywhere. Make sure that you're using the correct rc params and this will work. If it doesn't, then it's probably a bug with matplotlib :-)

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.