(self)
| 242 | |
| 243 | @mpl.style.context("default") |
| 244 | def test_bxp(self): |
| 245 | mpl.rcParams["date.converter"] = 'concise' |
| 246 | fig, ax = plt.subplots() |
| 247 | data = [{ |
| 248 | "med": datetime.datetime(2020, 1, 15), |
| 249 | "q1": datetime.datetime(2020, 1, 10), |
| 250 | "q3": datetime.datetime(2020, 1, 20), |
| 251 | "whislo": datetime.datetime(2020, 1, 5), |
| 252 | "whishi": datetime.datetime(2020, 1, 25), |
| 253 | "fliers": [ |
| 254 | datetime.datetime(2020, 1, 3), |
| 255 | datetime.datetime(2020, 1, 27) |
| 256 | ] |
| 257 | }] |
| 258 | ax.bxp(data, orientation='horizontal') |
| 259 | ax.xaxis.set_major_formatter(mpl.dates.DateFormatter("%Y-%m-%d")) |
| 260 | ax.set_title('Box plot with datetime data') |
| 261 | |
| 262 | @mpl.style.context("default") |
| 263 | def test_clabel(self): |
nothing calls this directly
no test coverage detected