how can i use despine in seaborn 0.13 #3526
Unanswered
z626093820
asked this question in
Q&A
Replies: 1 comment
-
You can use the so.Plot.config.theme.update({**sns.axes_style("ticks"), "axes.spines.top": False, "axes.spines.right": False})
so.Plot() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to use the Despine function In the seaborn 0.13 version, I want to remove the line of the upper right coordinate axis, how should I change,THANK YOU!
import seaborn.objects as so
import seaborn as sns
from seaborn import axes_style,plotting_context
from seaborn import despine
so.Plot.config.theme.update(axes_style("ticks")|plotting_context('paper'))
data = sns.load_dataset('penguins')
sns.despine()
((so.Plot(data, x="bill_length_mm", y="bill_depth_mm").layout(size=(3, 3))
.add(so.Dot(), color="species").label(x="a", y="b",title="c")
.add(so.Line(color="black"),so.PolyFit(), y="bill_depth_mm", label="depth"))
.save(r'E:\下载\1.svg'))
Beta Was this translation helpful? Give feedback.
All reactions