@requires_application()
def test_markers():
 np.random.seed(57983)
 data = np.random.normal(size=(30, 2), loc=50, scale=10)
 with TestingCanvas() as c:
  marker = Markers(parent=c.scene)
  marker.set_data(data)
  assert_image_approved(c.render(), 'visuals/markers.png')
 with TestingCanvas(px_scale=2) as c:
  marker = Markers(parent=c.scene)
  marker.set_data(data)
  assert_image_approved(c.render(), 'visuals/markers.png')

@ requires_application ( ) def test_markers ( ) : np . random . seed ( 57983 ) data = np . random . normal ( size = ( 30 , 2 ) , loc = 50 , scale = 10 ) with TestingCanvas ( ) as c : marker = Markers ( parent = c . scene ) marker . set_data ( data ) assert_image_approved ( c . render ( ) , 'visuals/markers.png' ) with TestingCanvas ( px_scale = 2 ) as c : marker = Markers ( parent = c . scene ) marker . set_data ( data ) assert_image_approved ( c . render ( ) , 'visuals/markers.png' )
test basic marker / point-sprite support .