Forum Discussion
mjo31
5 years agoFrequent Visitor
Python Visual :Increase the size of the visual
Hi, I am trying to generate a python visual from power BI. I was able to generate a line chart. But I am unable to increase the size of the visual in power BI.Its always fixed. Code: Output is a da...
- 5 years ago
Hi mjo31
See if these can help:
plt figsize Code Example (codegrepper.com)
How to Set the Size of a Figure in Matplotlib with Python (learningaboutelectronics.com)
Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
daloom
2 years agoNew Member
A simple solution could be to only set your plot tightness with plt.tight_layout()
import seaborn as sns
import matplotlib.pyplot as plt
with sns.plotting_context("paper", font_scale=1.5,):
sns.violinplot( data=dataset, x="season", y="registered", hue="weekday", orient="v")
# eliminate the default big margins across your plot
plt.tight_layout()
plt.show()
Tight layoutNormal layout