|
1 |
| -from __future__ import absolute_import, division, print_function |
2 |
| - |
3 |
| -import six |
4 | 1 | from itertools import chain, product
|
5 | 2 | from distutils.version import LooseVersion
|
6 | 3 | import io
|
@@ -602,14 +599,14 @@ def test_const_xy():
|
602 | 599 | style='default')
|
603 | 600 | def test_polar_wrap():
|
604 | 601 | fig = plt.figure()
|
605 |
| - plt.subplot(111, polar=True) |
| 602 | + plt.subplot(111, polar=True, label='First axes') |
606 | 603 | plt.polar(np.deg2rad([179, -179]), [0.2, 0.1], "b.-")
|
607 |
| - plt.polar(np.deg2rad([179, 181]), [0.2, 0.1], "g.-") |
| 604 | + plt.polar(np.deg2rad([179, 181]), [0.2, 0.1], "g.-") |
608 | 605 | plt.rgrids([0.05, 0.1, 0.15, 0.2, 0.25, 0.3])
|
609 | 606 | assert len(fig.axes) == 1, 'More than one polar axes created.'
|
610 | 607 |
|
611 | 608 | fig = plt.figure()
|
612 |
| - plt.subplot(111, polar=True) |
| 609 | + plt.subplot(111, polar=True, label='Second axes') |
613 | 610 | plt.polar(np.deg2rad([2, -2]), [0.2, 0.1], "b.-")
|
614 | 611 | plt.polar(np.deg2rad([2, 358]), [0.2, 0.1], "g.-")
|
615 | 612 | plt.polar(np.deg2rad([358, 2]), [0.2, 0.1], "r.-")
|
@@ -705,11 +702,10 @@ def test_polar_rlabel_position():
|
705 | 702 | ax.tick_params(rotation='auto')
|
706 | 703 |
|
707 | 704 |
|
708 |
| -@image_comparison(baseline_images=['polar_theta_wedge'], style='default', |
709 |
| - tol=0.01 if six.PY2 else 0) |
| 705 | +@image_comparison(baseline_images=['polar_theta_wedge'], style='default') |
710 | 706 | def test_polar_theta_limits():
|
711 | 707 | r = np.arange(0, 3.0, 0.01)
|
712 |
| - theta = 2*np.pi*r |
| 708 | + theta = 2 * np.pi * r |
713 | 709 |
|
714 | 710 | theta_mins = np.arange(15.0, 361.0, 90.0)
|
715 | 711 | theta_maxs = np.arange(50.0, 361.0, 90.0)
|
@@ -4329,7 +4325,7 @@ def test_twin_spines():
|
4329 | 4325 | def make_patch_spines_invisible(ax):
|
4330 | 4326 | ax.set_frame_on(True)
|
4331 | 4327 | ax.patch.set_visible(False)
|
4332 |
| - for sp in six.itervalues(ax.spines): |
| 4328 | + for sp in ax.spines.values: |
4333 | 4329 | sp.set_visible(False)
|
4334 | 4330 |
|
4335 | 4331 | fig = plt.figure(figsize=(4, 3))
|
|
0 commit comments