File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed
mpl_toolkits/mplot3d/tests Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -504,17 +504,7 @@ def is_scalar_or_string(val):
504
504
505
505
506
506
def duplicate_if_scalar (obj , n = 2 , raises = True ):
507
- """
508
- Ensure object size or duplicate if necessary.
509
-
510
- Parameters
511
- ----------
512
- obj : scalar, str or Sized
513
-
514
- Returns
515
- -------
516
-
517
- """
507
+ """Ensure object size or duplicate into a list if necessary."""
518
508
519
509
if is_scalar_or_string (obj ):
520
510
return [obj ] * n
Original file line number Diff line number Diff line change @@ -294,6 +294,7 @@ def test_bar3d_with_2d_data(bar3d_class):
294
294
ec = '0.5' , lw = 0.5 )
295
295
return fig
296
296
297
+
297
298
# @mpl3d_image_comparison(baseline_images=['bar3d_facecolors_Bar3DCollection-0.png',
298
299
# 'bar3d_facecolors_Bar3DCollection-1.png',
299
300
# 'bar3d_facecolors_HexBar3DCollection-0.png'
@@ -310,6 +311,7 @@ def test_bar3d_facecolors(bar3d_class, shade):
310
311
shade = shade )
311
312
return fig
312
313
314
+
313
315
# @mpl3d_image_comparison(baseline_images=['bar3d_cmap_Bar3DCollection-0.png',
314
316
# 'bar3d_cmap_Bar3DCollection-1.png',
315
317
# 'bar3d_cmap_HexBar3DCollection-0.png'
You can’t perform that action at this time.
0 commit comments