You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having an issue in 0.13.2 with y-axis formatting. The issue was not present in 0.12. Setting ytick.labelleft : False with ytick.labelright : True using seaborn.objects.Plot.theme in 0.12 would move the ylabels from left to right, but in 0.13 it creates a right label without removing the left.
from matplotlib import pyplot as plt
import seaborn as sns
import seaborn.objects as so
import pandas as pd
# create simple dataframe
df = pd.DataFrame(
{
"X": [1, 2, 3, 4],
"Y1": [1, 2, 3, 4],
"Y2": [0, 3, 9, 81],
}
)
(
so.Plot(df, x="X", y="Y1")
.add(so.Line(color="C0"))
.theme( {"ytick.labelleft": False,
"ytick.labelright": True}
)
)
I have not been able to find a workaround.
The text was updated successfully, but these errors were encountered:
cwberardi
changed the title
seaborn object theme unexpected behavior in 0.13
seaborn.objects.Plot.theme unexpected yaxis behavior in 0.13
Mar 21, 2024
I'm having an issue in 0.13.2 with y-axis formatting. The issue was not present in 0.12. Setting
ytick.labelleft : False
withytick.labelright : True
usingseaborn.objects.Plot.theme
in 0.12 would move the ylabels from left to right, but in 0.13 it creates a right label without removing the left.I have not been able to find a workaround.
The text was updated successfully, but these errors were encountered: