@@ -67,10 +67,10 @@ def check_expected_error(what, f):
67
67
wait = 1 )
68
68
gp .plot (- x , x ** 3 , wait = 1 )
69
69
gp .plot ((x ** 2 ), wait = 1 )
70
- gp .plot ((- x , x ** 3 , { 'with' : 'lines' } ), (x ** 2 ,), wait = 1 )
70
+ gp .plot ((- x , x ** 3 , dict ( _with = 'lines' ) ), (x ** 2 ,), wait = 1 )
71
71
gp .plot ( x , np .vstack ((x ** 3 , x ** 2 )) , wait = 1 )
72
72
gp .plot ( np .vstack ((- x ** 3 , x ** 2 )), _with = 'lines' , wait = 1 )
73
- gp .plot ( (np .vstack ((x ** 3 , - x ** 2 )), { 'with' : 'points' } ), wait = 1 )
73
+ gp .plot ( (np .vstack ((x ** 3 , - x ** 2 )), dict ( _with = 'points' ) ), wait = 1 )
74
74
75
75
# Make sure xrange settings don't get overridden. The label below should be out
76
76
# of bounds, and not visible
@@ -100,18 +100,18 @@ def check_expected_error(what, f):
100
100
wait = 1 )
101
101
102
102
plot1 .plot ( ( np .vstack ((x , x * 2 , x * 3 )), x ** 2 - 300 ,
103
- { 'with' : 'lines lw 4' ,
104
- 'y2' : True ,
105
- ' legend' : 'parabolas' } ),
103
+ dict ( _with = 'lines lw 4' ,
104
+ y2 = True ,
105
+ legend = 'parabolas' ) ),
106
106
107
107
(x ** 2 * 10 , x ** 2 / 40 , x ** 2 / 2 , # implicit domain
108
- { 'with' : 'xyerrorbars' ,
109
- ' tuplesize' : 4 } ),
108
+ dict ( _with = 'xyerrorbars' ,
109
+ tuplesize = 4 ) ),
110
110
111
111
(x , np .vstack ((x ** 3 , x ** 3 - 100 )),
112
- { "with" : 'lines' ,
113
- ' legend' : 'shifted cubics' ,
114
- ' tuplesize' : 2 } ))
112
+ dict ( _with = 'lines' ,
113
+ legend = 'shifted cubics' ,
114
+ tuplesize = 2 ) ))
115
115
116
116
#################################
117
117
@@ -186,9 +186,9 @@ def check_expected_error(what, f):
186
186
# some paraboloids plotted on an implicit 2D domain
187
187
xx ,yy = np .ogrid [- 10 :11 , - 10 :11 ]
188
188
zz = xx * xx + yy * yy
189
- gp .plot3d ( ( zz , { ' legend' : 'zplus' } ),
190
- (- zz , { ' legend' : 'zminus' } ),
191
- (zz * 2 , { ' legend' : 'zplus2' } ),
189
+ gp .plot3d ( ( zz , dict ( legend = 'zplus' ) ),
190
+ (- zz , dict ( legend = 'zminus' ) ),
191
+ (zz * 2 , dict ( legend = 'zplus2' ) ),
192
192
193
193
_with = 'points' , title = 'gridded paraboloids' , ascii = True ,
194
194
wait = 1 )
@@ -222,12 +222,12 @@ def check_expected_error(what, f):
222
222
xx ,yy = np .ogrid [- 10 :11 , - 10 :11 ]
223
223
zz = xx * xx + yy * yy
224
224
xx = np .linspace (0 ,20 ,100 )
225
- gp .plot ( ( zz , { ' tuplesize' : 3 ,
226
- 'with' : 'image' } ),
225
+ gp .plot ( ( zz , dict ( tuplesize = 3 ,
226
+ _with = 'image' ) ),
227
227
(xx , 20 * np .cos (xx / 20 * np .pi / 2 ),
228
228
229
- { ' tuplesize' : 2 ,
230
- 'with' : 'lines' } ),
229
+ dict ( tuplesize = 2 ,
230
+ _with = 'lines' ) ),
231
231
232
232
title = 'Paraboloid heat map, 2D' ,
233
233
xmin = 0 ,
@@ -267,8 +267,8 @@ def check_expected_error(what, f):
267
267
268
268
# Using broadcasting to plot each slice with a different style
269
269
gp .plot ((np .rollaxis ( np .dstack ((xx ,zz )), 2 ,0 ),
270
- { ' tuplesize' : 3 ,
271
- 'with' : np .array (('points palette pt 7' ,'points ps variable pt 6' ))} ),
270
+ dict ( tuplesize = 3 ,
271
+ _with = np .array (('points palette pt 7' ,'points ps variable pt 6' ))) ),
272
272
273
273
title = 'Two 3D matrix plots. Binary.' ,
274
274
square = 1 ,
@@ -286,8 +286,8 @@ def check_expected_error(what, f):
286
286
#
287
287
# 2 3d matrix curves
288
288
gp .plot ((np .rollaxis ( np .dstack ((xx ,zz )), 2 ,0 ),
289
- { ' tuplesize' : 3 ,
290
- 'with' : np .array (('points palette pt 7' ,'points ps variable pt 6' ))} ),
289
+ dict ( tuplesize = 3 ,
290
+ _with = np .array (('points palette pt 7' ,'points ps variable pt 6' ))) ),
291
291
292
292
title = 'Two 3D matrix plots. Binary.' ,
293
293
square = 1 ,
@@ -304,7 +304,8 @@ def check_expected_error(what, f):
304
304
305
305
# single 3d matrix curve. Two plots: the image and the contours together.
306
306
# Broadcasting the styles
307
- gp .plot3d ( (zz , {'tuplesize' : 3 , 'with' : np .array (('image' ,'lines' ))}),
307
+ gp .plot3d ( (zz , dict (tuplesize = 3 ,
308
+ _with = np .array (('image' ,'lines' )))),
308
309
309
310
title = 'matrix plot with contours' ,
310
311
cmds = [ 'set contours base' ,
0 commit comments