Commit e68c1e8
Add functionality to label individual bars with Axes.bar() (matplotlib#23525)
* Add labels argument to bar().
* Add what's new users entry.
* Fix doc entry.
* Add test for mismatch in label length and data length.
* Switch to 'label' argument.
* Handle duplicate bar labels in legend; address PR comments.
* Add tests.
* Update label description in docstring.
* Remove duplicate label filtering.
* Add note on repeated labels.
* Update docstring per PR.
Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>1 parent 83b97f9 commit e68c1e8
File tree
3 files changed
+68
-4
lines changed- doc/users/next_whats_new
- lib/matplotlib
- axes
- tests
3 files changed
+68
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2256 | 2256 | | |
2257 | 2257 | | |
2258 | 2258 | | |
| 2259 | + | |
| 2260 | + | |
| 2261 | + | |
| 2262 | + | |
| 2263 | + | |
| 2264 | + | |
| 2265 | + | |
| 2266 | + | |
2259 | 2267 | | |
2260 | 2268 | | |
2261 | 2269 | | |
| |||
2381 | 2389 | | |
2382 | 2390 | | |
2383 | 2391 | | |
| 2392 | + | |
| 2393 | + | |
| 2394 | + | |
| 2395 | + | |
| 2396 | + | |
| 2397 | + | |
| 2398 | + | |
| 2399 | + | |
| 2400 | + | |
| 2401 | + | |
2384 | 2402 | | |
2385 | 2403 | | |
2386 | 2404 | | |
| |||
2420 | 2438 | | |
2421 | 2439 | | |
2422 | 2440 | | |
2423 | | - | |
2424 | | - | |
| 2441 | + | |
| 2442 | + | |
2425 | 2443 | | |
2426 | 2444 | | |
2427 | 2445 | | |
2428 | 2446 | | |
2429 | 2447 | | |
2430 | | - | |
| 2448 | + | |
2431 | 2449 | | |
2432 | 2450 | | |
2433 | 2451 | | |
| |||
2466 | 2484 | | |
2467 | 2485 | | |
2468 | 2486 | | |
2469 | | - | |
| 2487 | + | |
| 2488 | + | |
2470 | 2489 | | |
2471 | 2490 | | |
2472 | 2491 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1886 | 1886 | | |
1887 | 1887 | | |
1888 | 1888 | | |
| 1889 | + | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
| 1899 | + | |
| 1900 | + | |
| 1901 | + | |
| 1902 | + | |
| 1903 | + | |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
| 1914 | + | |
| 1915 | + | |
| 1916 | + | |
| 1917 | + | |
1889 | 1918 | | |
1890 | 1919 | | |
1891 | 1920 | | |
| |||
0 commit comments