How can I change the tick placement in a seaborn jointplot or JointGrid?
I'm looking for something similar to matplotlib's plt.xticks.
How can I change the tick placement in a seaborn jointplot or JointGrid?
I'm looking for something similar to matplotlib's plt.xticks.
Copyright © 2021 Jogjafile Inc.
You can access the 'axes' of a
JointGridobject usingax_joint(for the main plot) andax_marg_xorax_marg_yfor the marginal distributions' plots. Then, you can use the full API for the matplotlib axes to manipulate the details of the plot, and in particular you can use theget_xticks/set_xticksto change the tick placement.Here's a basic example of how to use this to change the xticks/yticks positions:
This results in the following plot: