@@ -806,7 +806,8 @@ def test_mixedsamplesraises():
806806 ax .plot_surface (X , Y , Z , cstride = 50 , rcount = 10 )
807807
808808
809- @mpl3d_image_comparison (['quiver3d.png' ], style = 'mpl20' )
809+ # remove tolerance when regenerating the test image
810+ @mpl3d_image_comparison (['quiver3d.png' ], style = 'mpl20' , tol = 0.003 )
810811def test_quiver3d ():
811812 fig = plt .figure ()
812813 ax = fig .add_subplot (projection = '3d' )
@@ -853,6 +854,19 @@ def test_quiver3d_masked():
853854 ax .quiver (x , y , z , u , v , w , length = 0.1 , pivot = 'tip' , normalize = True )
854855
855856
857+ @mpl3d_image_comparison (['quiver3d_colorcoded.png' ], style = 'mpl20' )
858+ def test_quiver3d_colorcoded ():
859+ fig = plt .figure ()
860+ ax = fig .add_subplot (projection = '3d' )
861+
862+ x = y = dx = dz = np .zeros (10 )
863+ z = dy = np .arange (10. )
864+
865+ color = plt .cm .Reds (dy / dy .max ())
866+ ax .quiver (x , y , z , dx , dy , dz , colors = color )
867+ ax .set_ylim (0 , 10 )
868+
869+
856870def test_patch_modification ():
857871 fig = plt .figure ()
858872 ax = fig .add_subplot (projection = "3d" )
@@ -1519,7 +1533,8 @@ def test_minor_ticks():
15191533 ax .set_zticklabels (["half" ], minor = True )
15201534
15211535
1522- @mpl3d_image_comparison (['errorbar3d_errorevery.png' ], style = 'mpl20' )
1536+ # remove tolerance when regenerating the test image
1537+ @mpl3d_image_comparison (['errorbar3d_errorevery.png' ], style = 'mpl20' , tol = 0.003 )
15231538def test_errorbar3d_errorevery ():
15241539 """Tests errorevery functionality for 3D errorbars."""
15251540 t = np .arange (0 , 2 * np .pi + .1 , 0.01 )
0 commit comments