You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
627 B

import pytest
import bqplot
@pytest.fixture
def scale_x():
return bqplot.LinearScale(min=0, max=1, allow_padding=False)
@pytest.fixture
def scale_ordinal():
return bqplot.OrdinalScale(min=0, max=1, allow_padding=False)
@pytest.fixture
def scale_y():
return bqplot.LinearScale(min=2, max=3, allow_padding=False)
@pytest.fixture
def scales(scale_x, scale_y):
return {'x': scale_x, 'y': scale_y}
@pytest.fixture
def figure(scale_x, scale_y):
return bqplot.Figure(scale_x=scale_x, scale_y=scale_y)
# @pytest.fixture
# def scatter(scale_x, scale_y):
# bqplot.Scatter(scale_x=scale_x, scale_y=scale_y)