@@ -229,8 +229,8 @@ def test_rplot1(self):
229
229
plt .figure ()
230
230
self .data = read_csv (path , sep = ',' )
231
231
self .plot = rplot .RPlot (self .data , x = 'tip' , y = 'total_bill' )
232
- self .plot + rplot .TrellisGrid (['sex' , 'smoker' ])
233
- self .plot + rplot .GeomPoint (colour = rplot .ScaleRandomColour ('day' ), shape = rplot .ScaleShape ('size' ))
232
+ self .plot . add ( rplot .TrellisGrid (['sex' , 'smoker' ]) )
233
+ self .plot . add ( rplot .GeomPoint (colour = rplot .ScaleRandomColour ('day' ), shape = rplot .ScaleShape ('size' ) ))
234
234
self .fig = plt .gcf ()
235
235
self .plot .render (self .fig )
236
236
@@ -239,8 +239,8 @@ def test_rplot2(self):
239
239
plt .figure ()
240
240
self .data = read_csv (path , sep = ',' )
241
241
self .plot = rplot .RPlot (self .data , x = 'tip' , y = 'total_bill' )
242
- self .plot + rplot .TrellisGrid (['.' , 'smoker' ])
243
- self .plot + rplot .GeomPoint (colour = rplot .ScaleRandomColour ('day' ), shape = rplot .ScaleShape ('size' ))
242
+ self .plot . add ( rplot .TrellisGrid (['.' , 'smoker' ]) )
243
+ self .plot . add ( rplot .GeomPoint (colour = rplot .ScaleRandomColour ('day' ), shape = rplot .ScaleShape ('size' ) ))
244
244
self .fig = plt .gcf ()
245
245
self .plot .render (self .fig )
246
246
@@ -249,8 +249,8 @@ def test_rplot3(self):
249
249
plt .figure ()
250
250
self .data = read_csv (path , sep = ',' )
251
251
self .plot = rplot .RPlot (self .data , x = 'tip' , y = 'total_bill' )
252
- self .plot + rplot .TrellisGrid (['sex' , '.' ])
253
- self .plot + rplot .GeomPoint (colour = rplot .ScaleRandomColour ('day' ), shape = rplot .ScaleShape ('size' ))
252
+ self .plot . add ( rplot .TrellisGrid (['sex' , '.' ]) )
253
+ self .plot . add ( rplot .GeomPoint (colour = rplot .ScaleRandomColour ('day' ), shape = rplot .ScaleShape ('size' ) ))
254
254
self .fig = plt .gcf ()
255
255
self .plot .render (self .fig )
256
256
@@ -259,9 +259,9 @@ def test_rplot_iris(self):
259
259
plt .figure ()
260
260
self .data = read_csv (path , sep = ',' )
261
261
plot = rplot .RPlot (self .data , x = 'SepalLength' , y = 'SepalWidth' )
262
- plot + rplot .GeomPoint (colour = rplot .ScaleGradient ('PetalLength' , colour1 = (0.0 , 1.0 , 0.5 ), colour2 = (1.0 , 0.0 , 0.5 )),
262
+ plot . add ( rplot .GeomPoint (colour = rplot .ScaleGradient ('PetalLength' , colour1 = (0.0 , 1.0 , 0.5 ), colour2 = (1.0 , 0.0 , 0.5 )),
263
263
size = rplot .ScaleSize ('PetalWidth' , min_size = 10.0 , max_size = 200.0 ),
264
- shape = rplot .ScaleShape ('Name' ))
264
+ shape = rplot .ScaleShape ('Name' )))
265
265
self .fig = plt .gcf ()
266
266
plot .render (self .fig )
267
267
0 commit comments