Commit 4109966
Improves rendering of complex LaTeX expressions as
* try to wrap texts differently if they're latex code
* added space around modulo operator
* prevents breaking up of long words
* added test for label_from_attrs() function with a long latex string
* Update xarray/plot/utils.py
Co-authored-by: Illviljan <[email protected]>
* Update xarray/tests/test_utils.py
Co-authored-by: Illviljan <[email protected]>
* moved test_latex_name_isnt_split() to test_plots
* Apply suggestions from code review
* fixed test_latex_name_isnt_split()
* ran code through pre-commit
* updated whats-new.rst
Co-authored-by: Illviljan <[email protected]>
Co-authored-by: Deepak Cherian <[email protected]>long_names when plotting (#5682)1 parent 2705c63 commit 4109966
3 files changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
493 | | - | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
494 | 500 | | |
495 | 501 | | |
496 | 502 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2950 | 2950 | | |
2951 | 2951 | | |
2952 | 2952 | | |
| 2953 | + | |
| 2954 | + | |
| 2955 | + | |
| 2956 | + | |
| 2957 | + | |
| 2958 | + | |
| 2959 | + | |
0 commit comments