Open kuchaale opened 5 years ago
Good spot. Do you want to put these changes into a pull request? You probably want to be calling the label_from_attrs
function too.
@TomNicholas Is it really necessary to use the label_from_attrs
function? It would label row and column titles with standard or long name in addition to units. It seems redundant to me. Nonetheless, there may be also an option how to switch on/off such a functionality.
@kuchaale maybe not? But if you plot against a coordinate rather than a dimension you would want to label according to the coordinate's name surely? I just wanted to make sure you were aware of it at least. If you make a pull request we can discuss in detail :relaxed:
According to this plotting example, xlabels and ylabels are labeled with units. However, row labels and column labels omit the units.
MCVE Code Sample
Expected Output
Should
xr.FacetGrid
include the functionality for plotting row labels and column labels when provided?Problem Description
It could be solved with the following included in plot/facetgrid.py#L486:
and with the following included in plot/facetgrid.py#L499:
and with the modification of
_nicetitle
:Output of
xr.show_versions()