()
| 217 | |
| 218 | |
| 219 | def test_shared_axis_datetime(): |
| 220 | # datetime uses dates.DateConverter |
| 221 | y1 = [datetime(2020, i, 1, tzinfo=timezone.utc) for i in range(1, 13)] |
| 222 | y2 = [datetime(2021, i, 1, tzinfo=timezone.utc) for i in range(1, 13)] |
| 223 | fig, (ax1, ax2) = plt.subplots(1, 2, sharey=True) |
| 224 | ax1.plot(y1) |
| 225 | ax2.plot(y2) |
| 226 | ax1.yaxis.set_units(timezone(timedelta(hours=5))) |
| 227 | assert ax2.yaxis.units == timezone(timedelta(hours=5)) |
| 228 | |
| 229 | |
| 230 | def test_shared_axis_categorical(): |