html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue https://github.com/pydata/xarray/issues/4414#issuecomment-690348123,https://api.github.com/repos/pydata/xarray/issues/4414,690348123,MDEyOklzc3VlQ29tbWVudDY5MDM0ODEyMw==,2448579,2020-09-10T14:59:25Z,2020-09-10T14:59:25Z,MEMBER,"The plotting routines use `da.attrs[""long_name""]` and `da.attrs[""units""]`. For publication figures, I set these manually when reading data: `da.attrs[""long_name""] = ""$J_q^t$""` and `da.attrs[""units""] = ""$W/m²$""`. Every plot after that is then nicely labeled.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,697814535 https://github.com/pydata/xarray/issues/4414#issuecomment-690295612,https://api.github.com/repos/pydata/xarray/issues/4414,690295612,MDEyOklzc3VlQ29tbWVudDY5MDI5NTYxMg==,14808389,2020-09-10T13:39:29Z,2020-09-10T13:39:29Z,MEMBER,"`pint` already supports printing units with latex, so you might be able to use `pint` and `pint-xarray` (and possibly `cf-xarray` for the definitions of `degrees_north`, etc.) in the future. See also xarray-contrib/pint-xarray#26.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,697814535 https://github.com/pydata/xarray/issues/4414#issuecomment-690268138,https://api.github.com/repos/pydata/xarray/issues/4414,690268138,MDEyOklzc3VlQ29tbWVudDY5MDI2ODEzOA==,10050469,2020-09-10T12:58:22Z,2020-09-10T12:58:22Z,MEMBER,"Thanks a lot for this suggestion! I'll let the others chime in as well, but there are a few things to consider here: - xarray's plotting capability is not meant to be ""publication ready"" but ""as close as possible to the data"". I.e. units like `degrees_north`, etc. have to stay like this because it unambiguously shows where the data came from and how users can access it from the file, etc. - in general, making the plots nicer with opinionated defaults like yours would be a nice addition to the xarray ecosystem. It could live in a separate package, and use the [accessor](http://xarray.pydata.org/en/stable/internals.html#extending-xarray) syntax to extend xarray. For example, my own little extension works this way and does opinionated stuff with the accessor: https://salem.readthedocs.io ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,697814535