MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_bxp

Method test_bxp

lib/matplotlib/tests/test_datetime.py:244–260  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 4

bxpMethod · 0.80
subplotsMethod · 0.45
set_major_formatterMethod · 0.45
set_titleMethod · 0.45

Tested by

no test coverage detected