@@ -223,44 +223,36 @@ def test_scale_overflow(self):
223
223
for index in range (len (self .data )):
224
224
self .scale2 (self .data , index )
225
225
226
- class TestRPlot1 (unittest .TestCase ):
227
- def setUp (self ):
226
+ class TestRPlot (unittest .TestCase ):
227
+ def test_rplot1 (self ):
228
228
path = os .path .join (curpath (), 'data/tips.csv' )
229
+ plt .figure ()
229
230
self .data = read_csv (path , sep = ',' )
230
231
self .plot = rplot .RPlot (self .data , x = 'tip' , y = 'total_bill' )
231
232
self .plot + rplot .TrellisGrid (['sex' , 'smoker' ])
232
233
self .plot + rplot .GeomPoint (colour = rplot .ScaleRandomColour ('day' ), shape = rplot .ScaleShape ('size' ))
233
234
self .fig = plt .gcf ()
234
235
self .plot .render (self .fig )
235
236
236
- def test_subplots (self ):
237
- pass
238
-
239
- class TestRPlot2 (unittest .TestCase ):
240
- def setUp (self ):
237
+ def test_rplot2 (self ):
241
238
path = os .path .join (curpath (), 'data/tips.csv' )
239
+ plt .figure ()
242
240
self .data = read_csv (path , sep = ',' )
243
241
self .plot = rplot .RPlot (self .data , x = 'tip' , y = 'total_bill' )
244
242
self .plot + rplot .TrellisGrid (['.' , 'smoker' ])
245
243
self .plot + rplot .GeomPoint (colour = rplot .ScaleRandomColour ('day' ), shape = rplot .ScaleShape ('size' ))
246
244
self .fig = plt .gcf ()
247
245
self .plot .render (self .fig )
248
246
249
- def test_subplots (self ):
250
- pass
251
-
252
- class TestRPlot3 (unittest .TestCase ):
253
- def setUp (self ):
247
+ def test_rplot3 (self ):
254
248
path = os .path .join (curpath (), 'data/tips.csv' )
249
+ plt .figure ()
255
250
self .data = read_csv (path , sep = ',' )
256
251
self .plot = rplot .RPlot (self .data , x = 'tip' , y = 'total_bill' )
257
252
self .plot + rplot .TrellisGrid (['sex' , '.' ])
258
253
self .plot + rplot .GeomPoint (colour = rplot .ScaleRandomColour ('day' ), shape = rplot .ScaleShape ('size' ))
259
254
self .fig = plt .gcf ()
260
255
self .plot .render (self .fig )
261
256
262
- def test_subplots (self ):
263
- pass
264
-
265
257
if __name__ == '__main__' :
266
258
unittest .main ()
0 commit comments