|
27 | 27 | validate_hist_bins,
|
28 | 28 | validate_markevery,
|
29 | 29 | _validate_linestyle)
|
30 |
| -from matplotlib.testing.decorators import check_figures_equal |
31 | 30 |
|
32 | 31 |
|
33 | 32 | def test_rcparams(tmpdir):
|
@@ -533,48 +532,3 @@ def test_backend_fallback_headful(tmpdir):
|
533 | 532 | # The actual backend will depend on what's installed, but at least tkagg is
|
534 | 533 | # present.
|
535 | 534 | assert backend.strip().lower() != "agg"
|
536 |
| - |
537 |
| -# Test cases for Bug 16583 - matplotlibrc validates some parameters wrongly |
538 |
| - |
539 |
| -# def test_xtickalign_validation_rcparams(): |
540 |
| -# with pytest.raises(ValueError): |
541 |
| -# mpl.rcParams['xtick.alignment'] = 'top' |
542 |
| - |
543 |
| -# @check_figures_equal() |
544 |
| -# def test_left_xtick(fig_test, fig_ref): |
545 |
| -# labels = range(0, 100, 10) |
546 |
| - |
547 |
| -# fig_test.subplots() |
548 |
| -# ax1 = fig_test.axes |
549 |
| -# ax1[0].set_xticklabels(labels, ha='left') |
550 |
| - |
551 |
| -# mpl.rcParams['xtick.alignment'] = 'left' |
552 |
| -# fig_ref.subplots() |
553 |
| -# ax2 = fig_ref.axes |
554 |
| -# ax2[0].set_xticklabels(labels) |
555 |
| - |
556 |
| -# @check_figures_equal() |
557 |
| -# def test_right_xtick(fig_test, fig_ref): |
558 |
| -# labels = range(0, 100, 10) |
559 |
| - |
560 |
| -# fig_test.subplots() |
561 |
| -# ax1 = fig_test.axes |
562 |
| -# ax1[0].set_xticklabels(labels, ha='right') |
563 |
| - |
564 |
| -# mpl.rcParams['xtick.alignment'] = 'right' |
565 |
| -# fig_ref.subplots() |
566 |
| -# ax2 = fig_ref.axes |
567 |
| -# ax2[0].set_xticklabels(labels) |
568 |
| - |
569 |
| -# @check_figures_equal() |
570 |
| -# def test_center_xtick(fig_test, fig_ref): |
571 |
| -# labels = range(0, 100, 10) |
572 |
| - |
573 |
| -# fig_test.subplots() |
574 |
| -# ax1 = fig_test.axes |
575 |
| -# ax1[0].set_xticklabels(labels, ha='center') |
576 |
| - |
577 |
| -# mpl.rcParams['xtick.alignment'] = 'center' |
578 |
| -# fig_ref.subplots() |
579 |
| -# ax2 = fig_ref.axes |
580 |
| -# ax2[0].set_xticklabels(labels) |
0 commit comments