id,node_id,number,title,user,state,locked,assignee,milestone,comments,created_at,updated_at,closed_at,author_association,active_lock_reason,draft,pull_request,body,reactions,performed_via_github_app,state_reason,repo,type 1444440024,PR_kwDOAMm_X85CpkQO,7277,Require to explicitly defining optional dimensions such as hue and markersize,14371165,closed,0,,,5,2022-11-10T19:23:28Z,2023-02-11T20:55:16Z,2023-02-11T20:55:16Z,MEMBER,,0,pydata/xarray/pulls/7277,"- [x] Closes #7314 - [x] Closes #7268 * Matplotlib adds default colors with `plt.plot(x, y)` when `y` is a 2D array. * Matplotlib prioritizes `c` over default colors with `plt.plot(x, y, c=""blue"")` when `y` is a 2D array. * Seaborn prioritizes `hue` over `c`, but all plot axes has to be explicit. The plot1d function now follows closer to seaborns example and require explicitly defining optional dimensions such as hue/markersize. Positives and negatives: +++ Reliable performance, won't accidentally choose large and heavy arrays to plot. \- Loss of dimension information for default values, will essentially flatten the n-dimensional arrays. \- Other xarray plot functions guesses quite a bit as well, API is not consistent. Required dimensions like the x-axis will still be guessed since the mpl errors weren't very intuitive. While at it: * Make it possible to prioritize certain mpl kwargs when hue/markersize isn't defined. * Fix integer coords in `plot1`d and facetgrid, use `.coords` instead of `getitem`.","{""url"": ""https://api.github.com/repos/pydata/xarray/issues/7277/reactions"", ""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,,13221727,pull