Plot Graphs on Gradio Partially Cut off on X- Axis
Hi,The boxplot on the output of my gradio interface cuts off just below the x-axis so you can’t see the titles.image1233×491 32.2 KBSee the code here -app.py · seyia92coding/Popular_Spotify_Albums at mainHas anyone had much luck with seaborn plot outputs with Gradio?Thanks
2022-01-10T15:26:00Z
Can you tryplt.tight_layout()and let me know if it fixes things?
2022-01-12T08:13:11Z
plt.tight_layout() was already applied in the code, so probably something else?
2022-01-14T15:57:41Z
Interesting. I noticed you passed in(rect=[1, 2.5, 1, 0.45])as custom coordinates intoplt.tight_layout. What happens if you adjust these values or remove them altogether?
2022-01-15T10:45:48Z
The custom coordinates has improved the visibility a lot actually but it’s limited, the bottom coordinate doesn’t seem to expand beyond 1.5 ish.I’m thinking a legend would be better for this use case but I had thought…Maybe an option to open output on a separate tab, next to the screenshot button?kanye west improved744×486 33.6 KB
2022-01-15T16:41:05Z
That’s a good suggestion, let us think about that