Commit e7a2ffa
committed
Add/calc tickmode "proportional" in
- Create tickmode "proportional"
- Map fractional tickvals to axis values w/ axis range:
- Set ax.(minor?).tickvals to
- Do that right before `arrayTicks()` is called
- Every instance of `tickmode === "array"` gets `...|| "proportional"`
This works well since tickmode "proportional" really just adds a preprocess step to
tickmode "array".
TODO:
- Check if graph is reversed
- Find where ticks are redrawn on zoom and make redraw proportional (will probably fix below)
- Figure out why ticks not redrawn on double click/home
- Add docs in layoutcartesian/
1 parent 1487f52 commit e7a2ffa
File tree
3 files changed
+23
-7
lines changed- src
- plot_api
- plots/cartesian
3 files changed
+23
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2945 | 2945 | | |
2946 | 2946 | | |
2947 | 2947 | | |
2948 | | - | |
| 2948 | + | |
2949 | 2949 | | |
2950 | 2950 | | |
2951 | 2951 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
682 | 682 | | |
683 | 683 | | |
684 | 684 | | |
685 | | - | |
| 685 | + | |
686 | 686 | | |
687 | 687 | | |
688 | | - | |
| 688 | + | |
689 | 689 | | |
690 | 690 | | |
691 | 691 | | |
| |||
944 | 944 | | |
945 | 945 | | |
946 | 946 | | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
947 | 963 | | |
948 | 964 | | |
949 | | - | |
| 965 | + | |
950 | 966 | | |
951 | 967 | | |
952 | 968 | | |
| |||
1617 | 1633 | | |
1618 | 1634 | | |
1619 | 1635 | | |
1620 | | - | |
| 1636 | + | |
1621 | 1637 | | |
1622 | 1638 | | |
1623 | 1639 | | |
| |||
3333 | 3349 | | |
3334 | 3350 | | |
3335 | 3351 | | |
3336 | | - | |
| 3352 | + | |
3337 | 3353 | | |
3338 | 3354 | | |
3339 | 3355 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments