Forum Discussion
Python padding
- 7 years ago
OK,
Solved it with the size and aspect parameters.
Barak
OK,
Solved it with the size and aspect parameters.
Barak
Hi Barak,
Can you explain better what you mean by "Solved it with the size and aspect parameters."? Where are those parameters? Did you change them in powerbi or in the code in python?
barakb32 wrote:OK,
Solved it with the size and aspect parameters.
Barak
- barakb327 years agoAdvocate I
Hi t-vicarm ,
These are parameters of the python command seaborn.lmplot.
The adjusted command looks like this:
lm=sns.lmplot(x='Probability01',y='Impact110',data=dataset,hue='Proj_Type',fit_reg=False,size=10,aspect=1.5,scatter_kws={'s': dataset['Booking']/2000})
Barak
- aechague6 years agoAdvocate II
Hi
Just to add more information, for matplotlib is possible to control the padding using the tight_layout() options.
matplotlib.pyplot.tight_layout() matplotlib.pyplot.show()
In my case, the axis labels where shown just partially, and aplying this option was possible to control the complete figure size and pad.
Alexis