|
13 | 13 |
|
14 | 14 | # print(matplotlib.__version__, matplotlib.__file__) |
15 | 15 |
|
16 | | -fig, ax = plt.subplots() |
17 | | -plt.ylabel('some numbers') |
| 16 | +# fig, ax = plt.subplots() |
| 17 | +# plt.ylabel('some numbers') |
18 | 18 |
|
19 | 19 |
|
20 | | -def user_defined_function(event): |
21 | | - return round(event.xdata * 10, 1), round(event.ydata + 3, 3) |
| 20 | +# def user_defined_function(event): |
| 21 | +# return round(event.xdata * 10, 1), round(event.ydata + 3, 3) |
22 | 22 |
|
23 | | -ax.plot(rand(100), 'o', hover=user_defined_function) |
24 | | -plt.show() |
| 23 | +# ax.plot(rand(100), 'o', hover=user_defined_function) |
| 24 | +# plt.show() |
25 | 25 |
|
26 | 26 | # Alternative test for testing out string literals as tooltips: |
27 | 27 |
|
28 | | -# fig, ax = plt.subplots() |
29 | | -# plt.ylabel('some numbers') |
| 28 | +fig, ax = plt.subplots() |
| 29 | +plt.ylabel('some numbers') |
30 | 30 |
|
31 | | -# ax.plot(rand(3), 'o', hover=['London','Paris','Barcelona']) |
32 | | -# plt.show() |
| 31 | +ax.plot(rand(3), 'o', hover=['London','Paris','Barcelona']) |
| 32 | +plt.show() |
0 commit comments