Commit 6fa0fd1
committed
Add keymap (default: G) to toggle minor grid.
If either minor grid is on, turn both of them off. Otherwise, turn all
major and minor grids on (it usually doesn't make sense to have the
minor grids only).
Also change the behavior of `keymap.grid` ("g") to synchronize the grid
state of both axes. Otherwise, if starting from only grids in one
direction (`plt.plot(); plt.grid(axis="x")`), "g" switches between only
`x` grid and only `y` grid, which is unlikely to be the expected
behavior.1 parent 0cfc7a8 commit 6fa0fd1
File tree
4 files changed
+22
-4
lines changed- doc/users
- lib/matplotlib
4 files changed
+22
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
| 103 | + | |
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2482 | 2482 | | |
2483 | 2483 | | |
2484 | 2484 | | |
| 2485 | + | |
2485 | 2486 | | |
2486 | 2487 | | |
2487 | 2488 | | |
| |||
2525 | 2526 | | |
2526 | 2527 | | |
2527 | 2528 | | |
| 2529 | + | |
2528 | 2530 | | |
2529 | 2531 | | |
2530 | | - | |
| 2532 | + | |
| 2533 | + | |
| 2534 | + | |
| 2535 | + | |
| 2536 | + | |
| 2537 | + | |
| 2538 | + | |
| 2539 | + | |
| 2540 | + | |
| 2541 | + | |
| 2542 | + | |
| 2543 | + | |
| 2544 | + | |
| 2545 | + | |
| 2546 | + | |
| 2547 | + | |
2531 | 2548 | | |
2532 | 2549 | | |
2533 | 2550 | | |
2534 | | - | |
2535 | 2551 | | |
2536 | 2552 | | |
2537 | 2553 | | |
| |||
2541 | 2557 | | |
2542 | 2558 | | |
2543 | 2559 | | |
2544 | | - | |
2545 | 2560 | | |
2546 | 2561 | | |
2547 | 2562 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1313 | 1313 | | |
1314 | 1314 | | |
1315 | 1315 | | |
| 1316 | + | |
1316 | 1317 | | |
1317 | 1318 | | |
1318 | 1319 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
585 | 585 | | |
586 | 586 | | |
587 | 587 | | |
| 588 | + | |
588 | 589 | | |
589 | 590 | | |
590 | 591 | | |
| |||
0 commit comments