Setting unique titles for xarray facetgrid #5823
-
Hi, from future import print_function import netCDF4 from netCDF4 import num2date from netCDF4 import Dataset dataset=xr.open_mfdataset("Python files for plotting wrfoutput\era5_1990-2000_output*.nc",concat_dim='Time', combine='nested', compat='no_conflicts', preprocess=None, engine=None, data_vars='all', coords='all', parallel=False, join='outer', attrs_file=None,) DS = dataset.rename({'XTIME':'Time'}) #Convert to datetime. #convert to celsius and drop na B=C.groupby('Time.month').mean() #define levels for the colourbar |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
If you'd like to have control over the axes directly, you can access them using the for ax, title in zip(g.axes.flat, list("abcd")):
ax.set_title(title) This part of the documentation covers this and a few other useful features of the |
Beta Was this translation helpful? Give feedback.
If you'd like to have control over the axes directly, you can access them using the
axes
attribute of the returnedFacetGrid
object. For example:This part of the documentation covers this and a few other useful features of the
FacetGrid
object.