id,node_id,number,state,locked,title,user,body,created_at,updated_at,closed_at,merged_at,merge_commit_sha,assignee,milestone,draft,head,base,author_association,auto_merge,repo,url,merged_by 705898071,MDExOlB1bGxSZXF1ZXN0NzA1ODk4MDcx,5682,closed,0,Improves rendering of complex LaTeX expressions as `long_name`s when plotting,13205162,"This PR changes the function `label_from_attrs()` to wrap text differently if we think it's a LaTeX sequence. This prevents long LaTeX names from not being rendered properly. I tried to identify if it's a latex code if the string starts with `$` and if it has an even number of `$` in it. But I'm open to suggestions. I also increased the number of allowed columns for latex code since it generally renders to fewer characters. - [x] Closes #5681 - [x] Tests added - [x] Passes `pre-commit run --all-files` - [x] User visible changes (including notable bug fixes) are documented in `whats-new.rst` - [x] New functions/methods are listed in `api.rst` CC: @dcherian @Illviljan ",2021-08-07T14:18:16Z,2021-11-28T17:06:49Z,2021-08-17T02:29:54Z,2021-08-17T02:29:54Z,41099669c63c7dbb51b112fdec09dfae07379fe7,,,0,46dbf208c0d02767a9250c818f3b7db7f4ade28d,2705c63e0c03a21d2bbce3a337fac60dd6f6da59,CONTRIBUTOR,,13221727,https://github.com/pydata/xarray/pull/5682,