简体   繁体   中英

How can I change the dimension of the x axis ? (using relplot)

As you can see below, My x axis with the rounds is not confusing. I would like to change the dimensions of the axis (or the figure) but even with figplot, I can't change the scale.

plt.figure(figsize=(10,6))
sns.relpot(x=atp.Round, y =atp.WRank)
plt.show()

Have you any idea or solution ?

Thanks in advance and have a good day !

问题图片

@Alex The parameters are height and aspect. You must calculate the width that you want as a proportion of the height. So for a square plot height=6, aspect=1, for a plot twice as wide height=6, aspect=2, for a tall plot height=6, aspect=0.5. Does that make sense? – Alex 14 hours ago

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM