Commit 6d90ab4
committed
Convert axis limit units in Qt plot options widget
Previously axis limits were converted to floats regardless of the actual
value type in Qt backend's plot options widget. This commit makes datetime
axis limits get converted to actual datetime values which are
considerably easier to edit.
Also, the methods used to convert the datetime values back have different
names under PySide2 and PyQt. Previously the options widget was using the
methods provided by PyQt only. We now support both Qt bindings.
Re matplotlib#190751 parent 1574b5e commit 6d90ab4
File tree
2 files changed
+22
-8
lines changed- lib/matplotlib/backends/qt_editor
2 files changed
+22
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
346 | 350 | | |
347 | | - | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
348 | 356 | | |
349 | 357 | | |
350 | 358 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
39 | 47 | | |
40 | 48 | | |
41 | 49 | | |
| |||
52 | 60 | | |
53 | 61 | | |
54 | 62 | | |
55 | | - | |
56 | | - | |
57 | 63 | | |
58 | 64 | | |
59 | 65 | | |
| |||
0 commit comments