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
What I would expect here is four charts, each denoted with the day of the week on the right-hand side. Instead, I get the picture presented below, where there are clearly two labels on top of each other on the right-hand sides of the charts: one label as requrested, only the day of the week, the other following the default template {row_var} = {row_name} and thus containing the name of the variable as well as its value.
I believe the bug arises from calling set_titles() without any arguments in FacetGrid._finalize_grid. It does work correctly when margin_titles=False, because it relies on Ax.set_title, which seems to not render the text immediately. For the same reason, it works correctly for columns when margin_titles=True. However, the code responsible for annotating rows relies on Ax.annotate instead, which seems to perform rendering immediately.
As a temporary workaround it is possible to remove the call to set_titles() in FacetGrid._finalize_grid in seaborn/axisgrid.py, currently line 893, but I assume this call is there on purpose and permanently removing it would break other cases.
The text was updated successfully, but these errors were encountered:
Dear all,
consider the following code:
What I would expect here is four charts, each denoted with the day of the week on the right-hand side. Instead, I get the picture presented below, where there are clearly two labels on top of each other on the right-hand sides of the charts: one label as requrested, only the day of the week, the other following the default template
{row_var} = {row_name}
and thus containing the name of the variable as well as its value.I believe the bug arises from calling
set_titles()
without any arguments inFacetGrid._finalize_grid
. It does work correctly whenmargin_titles=False
, because it relies onAx.set_title
, which seems to not render the text immediately. For the same reason, it works correctly for columns whenmargin_titles=True
. However, the code responsible for annotating rows relies onAx.annotate
instead, which seems to perform rendering immediately.As a temporary workaround it is possible to remove the call to
set_titles()
inFacetGrid._finalize_grid
in seaborn/axisgrid.py, currently line 893, but I assume this call is there on purpose and permanently removing it would break other cases.The text was updated successfully, but these errors were encountered: