def step_impl(context): for name, color_map in context.color_maps: testing.assert_html_equal( color_map._repr_html_(), "color-diverging-map-%s" % name)
def step_impl(context): for name, color_map in context.color_maps: testing.assert_html_equal(color_map._repr_html_(), "color-diverging-map-%s" % name)
def step_impl(context): colormap = toyplot.color.CategoricalMap( toyplot.color.brewer.palette("BlueGreenBrown", 3)) testing.assert_html_equal(colormap._repr_html_(), "color-categorical-map")
def step_impl(context): for name, palette in context.palettes: testing.assert_html_equal(palette._repr_html_(), "color-brewer-%s" % name)
def step_impl(context): context.palette += toyplot.color.brewer.palette("Blues") testing.assert_html_equal(context.palette._repr_html_(), "color-palette-iadd")
def step_impl(context): colors = numpy.array(["red", "green", "blue", "black"]) palette = toyplot.color.Palette(colors) testing.assert_html_equal(palette._repr_html_(), "color-palette-css-array")
def step_impl(context): testing.assert_html_equal( context.palette._repr_html_(), "color-palette-reverse")
def step_impl(context): palette = toyplot.color.spread(context.color) testing.assert_html_equal(palette._repr_html_(), "color-spread")
def step_impl(context): palette = context.palettes[0] + context.palettes[1] testing.assert_html_equal( palette._repr_html_(), "color-palette-add")
def step_impl(context): context.palette += toyplot.color.brewer.palette("Blues") testing.assert_html_equal( context.palette._repr_html_(), "color-palette-iadd")
def step_impl(context): testing.assert_html_equal( context.color_map._repr_html_(), "color-linear-map")
def step_impl(context): testing.assert_html_equal( context.color_map._repr_html_(), "color-diverging-map-custom")
def step_impl(context): testing.assert_html_equal(context.color_map._repr_html_(), "color-diverging-map-custom")
def step_impl(context): testing.assert_html_equal(context.color_map._repr_html_(), "color-linear-map")
def step_impl(context): colors = [(1, 0, 0, 1), (0, 1, 0, 1), (0, 0, 1, 1), (0, 0, 0, 0.5)] palette = toyplot.color.Palette(colors) testing.assert_html_equal(palette._repr_html_(), "color-palette-rgba-tuples")
def step_impl(context): palette = context.palettes[0] + context.palettes[1] testing.assert_html_equal(palette._repr_html_(), "color-palette-add")
def step_impl(context): testing.assert_html_equal(context.palette._repr_html_(), "color-palette-reverse")
def step_impl(context): testing.assert_html_equal( toyplot.color._jupyter_color_swatches(context.value), "color-swatch")
def step_impl(context): for name, palette in context.palettes: testing.assert_html_equal( palette._repr_html_(), "color-brewer-%s" % name)
def step_impl(context): testing.assert_html_equal(context.palette._repr_html_(), "color-brewer-count")
def step_impl(context, reference): testing.assert_html_equal(toyplot.color._jupyter_color_swatches(context.colors), reference)
def step_impl(context): testing.assert_html_equal( context.palette._repr_html_(), "color-brewer-count")