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've been using matplotx.ylabel_top and just noticed an issue with the label placement after setting the y tick labels explicitly. A working example is below.
import numpy as np
from seaborn import scatterplot
import matplotx
rng = np.random.default_rng(42)
x = rng.random(100)
y = -2*x + rng.normal(0, 0.5, 100)
ax = scatterplot(
x=x,
y=y
)
ax.set_yticks([0, -1, -2])
matplotx.ylabel_top('Example\nLabel')
i'm using
numpy==1.23.4
seaborn==0.12.1
matplotx==0.3.10
The text was updated successfully, but these errors were encountered:
I've been using
matplotx.ylabel_top
and just noticed an issue with the label placement after setting the y tick labels explicitly. A working example is below.i'm using
The text was updated successfully, but these errors were encountered: