File tree Expand file tree Collapse file tree 1 file changed +28
-5
lines changed Expand file tree Collapse file tree 1 file changed +28
-5
lines changed Original file line number Diff line number Diff line change @@ -309,8 +309,8 @@ def test_plot_matrix(data):
309
309
projection = "M15c" ,
310
310
style = "cc" ,
311
311
color = "#aaaaaa" ,
312
- B = "a" ,
313
- columns = "0,1,2+s0.005" ,
312
+ frame = "a" ,
313
+ incols = "0,1,2+s0.005" ,
314
314
)
315
315
return fig
316
316
@@ -327,7 +327,7 @@ def test_plot_matrix_color(data):
327
327
projection = "X10c" ,
328
328
style = "c0.5c" ,
329
329
cmap = "rainbow" ,
330
- B = "a" ,
330
+ frame = "a" ,
331
331
)
332
332
return fig
333
333
@@ -345,7 +345,7 @@ def test_plot_from_file(region):
345
345
style = "d1c" ,
346
346
color = "yellow" ,
347
347
frame = True ,
348
- columns = [0 , 1 ],
348
+ incols = [0 , 1 ],
349
349
)
350
350
return fig
351
351
@@ -453,7 +453,7 @@ def test_plot_datetime():
453
453
@pytest .mark .mpl_image_compare (filename = "test_plot_sizes.png" )
454
454
def test_plot_deprecate_sizes_to_size (data , region ):
455
455
"""
456
- Make sure that the old parameter "sizes" is supported and it reports an
456
+ Make sure that the old parameter "sizes" is supported and it reports a
457
457
warning.
458
458
459
459
Modified from the test_plot_sizes() test.
@@ -472,3 +472,26 @@ def test_plot_deprecate_sizes_to_size(data, region):
472
472
)
473
473
assert len (record ) == 1 # check that only one warning was raised
474
474
return fig
475
+
476
+
477
+ @pytest .mark .mpl_image_compare (filename = "test_plot_from_file.png" )
478
+ def test_plot_deprecate_columns_to_incols (region ):
479
+ """
480
+ Make sure that the old parameter "columns" is supported and it reports a
481
+ warning.
482
+
483
+ Modified from the test_plot_from_file() test.
484
+ """
485
+ fig = Figure ()
486
+ with pytest .warns (expected_warning = FutureWarning ) as record :
487
+ fig .plot (
488
+ data = POINTS_DATA ,
489
+ region = region ,
490
+ projection = "X10c" ,
491
+ style = "d1c" ,
492
+ color = "yellow" ,
493
+ frame = True ,
494
+ columns = [0 , 1 ],
495
+ )
496
+ assert len (record ) == 1 # check that only one warning was raised
497
+ return fig
You can’t perform that action at this time.
0 commit comments