@@ -40,40 +40,6 @@ def tearDown( self ):
4040 """Clean-up any generated files here."""
4141 pass
4242
43- #--------------------------------------------------------------------
44- def test_polar_wrap ( self ):
45- """Test polar plots where data crosses 0 degrees."""
46-
47- fname = self .outFile ( "polar_wrap_180.png" )
48-
49- D2R = npy .pi / 180.0
50-
51- fig = pylab .figure ()
52-
53- #NOTE: resolution=1 really should be the default
54- pylab .subplot ( 111 , polar = True , resolution = 1 )
55- pylab .polar ( [179 * D2R , - 179 * D2R ], [0.2 , 0.1 ], "b.-" )
56- pylab .polar ( [179 * D2R , 181 * D2R ], [0.2 , 0.1 ], "g.-" )
57- pylab .rgrids ( [0.05 , 0.1 , 0.15 , 0.2 , 0.25 , 0.3 ] )
58-
59- fig .savefig ( fname )
60- self .checkImage ( fname )
61-
62-
63- fname = self .outFile ( "polar_wrap_360.png" )
64-
65- fig = pylab .figure ()
66-
67- #NOTE: resolution=1 really should be the default
68- pylab .subplot ( 111 , polar = True , resolution = 1 )
69- pylab .polar ( [2 * D2R , - 2 * D2R ], [0.2 , 0.1 ], "b.-" )
70- pylab .polar ( [2 * D2R , 358 * D2R ], [0.2 , 0.1 ], "g.-" )
71- pylab .polar ( [358 * D2R , 2 * D2R ], [0.2 , 0.1 ], "r.-" )
72- pylab .rgrids ( [0.05 , 0.1 , 0.15 , 0.2 , 0.25 , 0.3 ] )
73-
74- fig .savefig ( fname )
75- self .checkImage ( fname )
76-
7743 #--------------------------------------------------------------------
7844 def test_polar_units ( self ):
7945 """Test polar plots with unitized data."""
0 commit comments