Skip to content Skip to sidebar Skip to footer

Inner() Got Multiple Values For Argument 'ax'

In a Jupyter notebook with Python I am plotting a hexbin jointplot from two columns of a dataframe. The plot is correctly plotted but I cant manage to resize the picture. Here is t

Solution 1:

The issue is that jointplot creates its own figure and axes. It therefore does not have an ax argument available. Also the size of the figure is always squared. To change the size, use the size argument.

sns.jointplot(..., size=10)
plt.show()

Or, change the figure size afterwards,

g = sns.jointplot(...)
g.fig.set_size_inches(11,6)
plt.show()

Post a Comment for "Inner() Got Multiple Values For Argument 'ax'"