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
Since I hide tick labels in matplotlib rc, x_visible variable is evaluated as False and the xlabel is hidden. However this is not what I want. I want a super clean plot with no ticks but still a label.
Temporary solution: manually overwrite visible when setting the xlabel and ylabel.
Agreed that this is an edge case. The visibility logic is needed to avoid ending up with interior axis labels on a facetgrid (or other shared-axes plot). The current solution is more or less a hack, so maybe it's not the best approach, but the problem itself still needs solving.
BTW you can also call ax.set(xticks=[], yticks=[]) after plotting and that won't un-set the axis labels, though of course you need to do it every time unlike with the rcparams.
Hello, I found a bug (or at least a very strange behavior) in
sns.scatterplot
.Code:
The plot hides xlabel and ylabel, even though it should be visible according to matplotlib rc settings.
The problem is here:
Module:
seaborn._base
, lines: 1199-1200Code:
Since I hide tick labels in matplotlib rc,
x_visible
variable is evaluated as False and the xlabel is hidden. However this is not what I want. I want a super clean plot with no ticks but still a label.Temporary solution: manually overwrite visible when setting the xlabel and ylabel.
Is the "visibility logic" still needed? Or can we remove it and just use matplotlib rc settings for this?
Versions:
seaborn==0.13.0
matplotlib==3.8.0
The text was updated successfully, but these errors were encountered: