@@ -43,7 +43,7 @@ def test_plot3d_red_circles_zscale(data, region):
43
43
region = region ,
44
44
projection = "X10c" ,
45
45
style = "c0.2c" ,
46
- color = "red" ,
46
+ fill = "red" ,
47
47
frame = ["afg" , "zafg" ],
48
48
)
49
49
return fig
@@ -62,27 +62,27 @@ def test_plot3d_red_circles_zsize(data, region):
62
62
region = region ,
63
63
projection = "X10c" ,
64
64
style = "c0.2c" ,
65
- color = "red" ,
65
+ fill = "red" ,
66
66
frame = ["afg" , "zafg" ],
67
67
)
68
68
return fig
69
69
70
70
71
71
def test_plot3d_fail_1d_array_with_data (data , region ):
72
72
"""
73
- Should raise an exception if array color , size, intensity and transparency
73
+ Should raise an exception if array fill , size, intensity and transparency
74
74
are used with matrix.
75
75
"""
76
76
fig = Figure ()
77
77
kwargs = dict (data = data , region = region , projection = "X10c" , frame = "afg" )
78
78
with pytest .raises (GMTInvalidInput ):
79
- fig .plot3d (style = "c0.2c" , color = data [:, 2 ], ** kwargs )
79
+ fig .plot3d (style = "c0.2c" , fill = data [:, 2 ], ** kwargs )
80
80
with pytest .raises (GMTInvalidInput ):
81
- fig .plot3d (style = "cc" , size = data [:, 2 ], color = "red" , ** kwargs )
81
+ fig .plot3d (style = "cc" , size = data [:, 2 ], fill = "red" , ** kwargs )
82
82
with pytest .raises (GMTInvalidInput ):
83
- fig .plot3d (style = "cc" , intensity = data [:, 2 ], color = "red" , ** kwargs )
83
+ fig .plot3d (style = "cc" , intensity = data [:, 2 ], fill = "red" , ** kwargs )
84
84
with pytest .raises (GMTInvalidInput ):
85
- fig .plot3d (style = "cc" , color = "red" , transparency = data [:, 2 ] * 100 , ** kwargs )
85
+ fig .plot3d (style = "cc" , fill = "red" , transparency = data [:, 2 ] * 100 , ** kwargs )
86
86
87
87
88
88
@pytest .mark .mpl_image_compare
@@ -100,7 +100,7 @@ def test_plot3d_projection(data, region):
100
100
region = region ,
101
101
projection = "R270/10c" ,
102
102
style = "s1c" ,
103
- color = "green" ,
103
+ fill = "green" ,
104
104
frame = ["ag" , "zag" ],
105
105
)
106
106
return fig
@@ -109,7 +109,7 @@ def test_plot3d_projection(data, region):
109
109
@pytest .mark .mpl_image_compare
110
110
def test_plot3d_colors (data , region ):
111
111
"""
112
- Plot the data using z as colors .
112
+ Plot the data using z as fills .
113
113
"""
114
114
fig = Figure ()
115
115
fig .plot3d (
@@ -118,7 +118,7 @@ def test_plot3d_colors(data, region):
118
118
z = data [:, 2 ],
119
119
zscale = 5 ,
120
120
perspective = [225 , 30 ],
121
- color = data [:, 2 ],
121
+ fill = data [:, 2 ],
122
122
region = region ,
123
123
projection = "X6c" ,
124
124
style = "c0.5c" ,
@@ -146,7 +146,7 @@ def test_plot3d_sizes(data, region):
146
146
# Using inches instead of cm because of upstream bug at
147
147
# https://github.com/GenericMappingTools/gmt/issues/4386
148
148
style = "ui" ,
149
- color = "blue" ,
149
+ fill = "blue" ,
150
150
frame = ["af" , "zaf" ],
151
151
)
152
152
return fig
@@ -155,7 +155,7 @@ def test_plot3d_sizes(data, region):
155
155
@pytest .mark .mpl_image_compare
156
156
def test_plot3d_colors_sizes (data , region ):
157
157
"""
158
- Plot the data using z as sizes and colors .
158
+ Plot the data using z as sizes and fills .
159
159
"""
160
160
fig = Figure ()
161
161
fig .plot3d (
@@ -164,7 +164,7 @@ def test_plot3d_colors_sizes(data, region):
164
164
z = data [:, 2 ],
165
165
zscale = 5 ,
166
166
perspective = [225 , 30 ],
167
- color = data [:, 2 ],
167
+ fill = data [:, 2 ],
168
168
size = 0.5 * data [:, 2 ],
169
169
region = region ,
170
170
projection = "X6c" ,
@@ -180,7 +180,7 @@ def test_plot3d_colors_sizes(data, region):
180
180
@pytest .mark .mpl_image_compare
181
181
def test_plot3d_colors_sizes_proj (data , region ):
182
182
"""
183
- Plot the data using z as sizes and colors with a projection.
183
+ Plot the data using z as sizes and fills with a projection.
184
184
"""
185
185
fig = Figure ()
186
186
fig .plot3d (
@@ -192,7 +192,7 @@ def test_plot3d_colors_sizes_proj(data, region):
192
192
region = region ,
193
193
projection = "M20c" ,
194
194
frame = ["af" , "zaf" ],
195
- color = data [:, 2 ],
195
+ fill = data [:, 2 ],
196
196
size = data [:, 2 ],
197
197
# Using inches instead of cm because of upstream bug at
198
198
# https://github.com/GenericMappingTools/gmt/issues/4386
@@ -223,7 +223,7 @@ def test_plot3d_varying_intensity():
223
223
perspective = [135 , 30 ],
224
224
frame = ["Sltr" , "xaf+lIntensity" ],
225
225
style = "c0.5c" ,
226
- color = "blue" ,
226
+ fill = "blue" ,
227
227
intensity = intensity ,
228
228
)
229
229
return fig
@@ -244,7 +244,7 @@ def test_plot3d_transparency():
244
244
y = y ,
245
245
z = z ,
246
246
style = "u0.2c" ,
247
- color = "blue" ,
247
+ fill = "blue" ,
248
248
region = [0 , 10 , 0 , 10 , 10 , 90 ],
249
249
projection = "X10c" ,
250
250
zscale = 0.1 ,
@@ -270,7 +270,7 @@ def test_plot3d_varying_transparency():
270
270
y = y ,
271
271
z = z ,
272
272
style = "o0.2c+B5" ,
273
- color = "blue" ,
273
+ fill = "blue" ,
274
274
region = [0 , 10 , 0 , 10 , 10 , 90 ],
275
275
projection = "X10c" ,
276
276
zscale = 0.1 ,
@@ -284,12 +284,12 @@ def test_plot3d_varying_transparency():
284
284
@pytest .mark .mpl_image_compare
285
285
def test_plot3d_sizes_colors_transparencies ():
286
286
"""
287
- Plot the data with varying sizes and colors using z as transparency.
287
+ Plot the data with varying sizes and fills using z as transparency.
288
288
"""
289
289
x = np .arange (1.0 , 10.0 )
290
290
y = np .arange (1.0 , 10.0 )
291
291
z = np .arange (1 , 10 ) * 10
292
- color = np .arange (1 , 10 ) * 0.15
292
+ fill = np .arange (1 , 10 ) * 0.15
293
293
size = np .arange (1 , 10 ) * 0.2
294
294
transparency = np .arange (1 , 10 ) * 10
295
295
@@ -304,7 +304,7 @@ def test_plot3d_sizes_colors_transparencies():
304
304
perspective = [135 , 30 ],
305
305
frame = True ,
306
306
style = "uc" ,
307
- color = color ,
307
+ fill = fill ,
308
308
size = size ,
309
309
cmap = "gray" ,
310
310
transparency = transparency ,
@@ -314,8 +314,8 @@ def test_plot3d_sizes_colors_transparencies():
314
314
315
315
@pytest .mark .mpl_image_compare
316
316
@pytest .mark .mpl_image_compare (filename = "test_plot3d_matrix.png" )
317
- @pytest .mark .parametrize ("color " , ["#aaaaaa" , 170 ])
318
- def test_plot3d_matrix (data , region , color ):
317
+ @pytest .mark .parametrize ("fill " , ["#aaaaaa" , 170 ])
318
+ def test_plot3d_matrix (data , region , fill ):
319
319
"""
320
320
Plot the data passing in a matrix and specifying incols.
321
321
"""
@@ -327,7 +327,7 @@ def test_plot3d_matrix(data, region, color):
327
327
region = region ,
328
328
projection = "M20c" ,
329
329
style = "c1c" ,
330
- color = color ,
330
+ fill = fill ,
331
331
frame = ["a" , "za" ],
332
332
incols = "0,1,2" ,
333
333
)
@@ -367,7 +367,7 @@ def test_plot3d_from_file(region):
367
367
region = region ,
368
368
projection = "X20c" ,
369
369
style = "d1c" ,
370
- color = "yellow" ,
370
+ fill = "yellow" ,
371
371
frame = ["af" , "zaf" ],
372
372
incols = [0 , 1 , 2 ],
373
373
)
@@ -396,7 +396,7 @@ def test_plot3d_vectors():
396
396
region = [- 2 , 2 , - 2 , 2 , - 2 , 2 ],
397
397
projection = "X10c" ,
398
398
style = "V1c+e+n" ,
399
- color = "black" ,
399
+ fill = "black" ,
400
400
frame = ["af" , "zaf" ],
401
401
)
402
402
return fig
@@ -415,11 +415,11 @@ def test_plot3d_scalar_xyz():
415
415
perspective = [225 , 30 ],
416
416
)
417
417
fig .plot3d (
418
- x = - 1.5 , y = 1.5 , z = - 1.5 , style = "c1c" , color = "red" , zscale = True , perspective = True
418
+ x = - 1.5 , y = 1.5 , z = - 1.5 , style = "c1c" , fill = "red" , zscale = True , perspective = True
419
419
)
420
- fig .plot3d (x = 0 , y = 0 , z = 0 , style = "t1c" , color = "green" , zscale = True , perspective = True )
420
+ fig .plot3d (x = 0 , y = 0 , z = 0 , style = "t1c" , fill = "green" , zscale = True , perspective = True )
421
421
fig .plot3d (
422
- x = 1.5 , y = - 1.5 , z = 1.5 , style = "s1c" , color = "blue" , zscale = True , perspective = True
422
+ x = 1.5 , y = - 1.5 , z = 1.5 , style = "s1c" , fill = "blue" , zscale = True , perspective = True
423
423
)
424
424
return fig
425
425
0 commit comments