@@ -836,7 +836,8 @@ def test_mixedsamplesraises():
836836 ax .plot_surface (X , Y , Z , cstride = 50 , rcount = 10 )
837837
838838
839- @mpl3d_image_comparison (['quiver3d.png' ], style = 'mpl20' )
839+ # remove tolerance when regenerating the test image
840+ @mpl3d_image_comparison (['quiver3d.png' ], style = 'mpl20' , tol = 0.003 )
840841def test_quiver3d ():
841842 plt .rcParams ['axes3d.automargin' ] = True # Remove when image is regenerated
842843 fig = plt .figure ()
@@ -884,6 +885,19 @@ def test_quiver3d_masked():
884885 ax .quiver (x , y , z , u , v , w , length = 0.1 , pivot = 'tip' , normalize = True )
885886
886887
888+ @mpl3d_image_comparison (['quiver3d_colorcoded.png' ], style = 'mpl20' )
889+ def test_quiver3d_colorcoded ():
890+ fig = plt .figure ()
891+ ax = fig .add_subplot (projection = '3d' )
892+
893+ x = y = dx = dz = np .zeros (10 )
894+ z = dy = np .arange (10. )
895+
896+ color = plt .cm .Reds (dy / dy .max ())
897+ ax .quiver (x , y , z , dx , dy , dz , colors = color )
898+ ax .set_ylim (0 , 10 )
899+
900+
887901def test_patch_modification ():
888902 fig = plt .figure ()
889903 ax = fig .add_subplot (projection = "3d" )
@@ -1555,7 +1569,8 @@ def test_minor_ticks():
15551569 ax .set_zticklabels (["half" ], minor = True )
15561570
15571571
1558- @mpl3d_image_comparison (['errorbar3d_errorevery.png' ], style = 'mpl20' )
1572+ # remove tolerance when regenerating the test image
1573+ @mpl3d_image_comparison (['errorbar3d_errorevery.png' ], style = 'mpl20' , tol = 0.003 )
15591574def test_errorbar3d_errorevery ():
15601575 """Tests errorevery functionality for 3D errorbars."""
15611576 t = np .arange (0 , 2 * np .pi + .1 , 0.01 )
0 commit comments