Top and bottom of the corner plot seem clipped
See original GitHub issueHello,
I apologize if this seem to be an easy fix. My corner plot (attached) somehow is not displaying normally. The top and the bottom seemed to be clipped. Because of that, some of the percentiles above the histograms at the top can’t be seen and at the bottom, the axis labels are fighting with the axis tick marks. I tried to adjust the figure size but doesn’t seem to work. Could someone please share some ideas of what’s going on here? Thanks.
Here’s my code used to create this plot.
mpl.rcParams['axes.labelsize'] = 7
title_dict = {}
title_dict['fontsize'] = 7
labels = [r'$P_1$',r'$P_2$',r'$m_1$',r'$m_2$',r'$\lambda_1$',r'$\lambda_2$',\ r'$e_1$sin$\omega_1$',r'$e_2$sin$\omega_2$',r'$e_1$cos$\omega_1$',\ r'$e_2$cos$\omega_2$',r'$\sigma_{HARPS1}$',r'$\sigma_{HARPS2}$',\ r'$\sigma_{HIRES}$']
figf = corner.corner(samplesf,show_titles=True,quantiles=[0.16,0.5,0.84],\
labels=labels,title_kwargs=title_dict,smooth=True)
for ax in figf.get_axes():
ax.tick_params(axis='both', labelsize=5)
#fig1.tight_layout()
figf.savefig(path+'cornerall.pdf',dpi=500)`
Issue Analytics
- State:
- Created a year ago
- Comments:13 (6 by maintainers)
Ok thanks. I’m not sure what changed the default rcparams settings. I’ll see if I can change them back to default.
and I believe this could explain some of other questions people raised about labels overlapping in the plot.
Glad it finally worked and happy my solution could be helpful to the community 😃