_showscale.py 445 Bytes
Newer Older
xuebingbing's avatar
xuebingbing committed
1 2 3 4
import _plotly_utils.basevalidators


class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator):
xuebingbing's avatar
xuebingbing committed
5
    def __init__(self, plotly_name="showscale", parent_name="cone", **kwargs):
xuebingbing's avatar
xuebingbing committed
6 7 8
        super(ShowscaleValidator, self).__init__(
            plotly_name=plotly_name,
            parent_name=parent_name,
xuebingbing's avatar
xuebingbing committed
9 10
            edit_type=kwargs.pop("edit_type", "calc"),
            role=kwargs.pop("role", "info"),
xuebingbing's avatar
xuebingbing committed
11 12
            **kwargs
        )