How to use the probscale.validate.other_options function in probscale

To help you get started, we’ve selected a few probscale examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github matplotlib / mpl-probscale / probscale / viz.py View on Github external
"""

    if dist is None:
        dist = _minimal_norm

    # check input values
    fig, ax = validate.axes_object(ax)
    probax = validate.axis_name(probax, 'probability axis')
    problabel = validate.axis_label(problabel)
    datalabel = validate.axis_label(datalabel)

    # default values for symbology options
    scatter_kws = validate.other_options(scatter_kws)
    line_kws = validate.other_options(line_kws)
    pp_kws = validate.other_options(pp_kws)

    # check plottype
    plottype = validate.axis_type(plottype)

    # !-- kwarg that only seaborn should use --!
    _color = fgkwargs.get('color', None)
    if _color is not None:
        scatter_kws['color'] = _color
        line_kws['color'] = _color

    # !-- kwarg that only seaborn should use --!
    _label = fgkwargs.get('label', None)
    if _label is not None:
        scatter_kws['label'] = _label

    # !-- kwarg that only seaborn should use --!
github matplotlib / mpl-probscale / probscale / viz.py View on Github external
...          line_kws=dict(linestyle='-', linewidth=2),
        ...          scatter_kws=dict(marker='s', alpha=0.5))

    """

    if dist is None:
        dist = _minimal_norm

    # check input values
    fig, ax = validate.axes_object(ax)
    probax = validate.axis_name(probax, 'probability axis')
    problabel = validate.axis_label(problabel)
    datalabel = validate.axis_label(datalabel)

    # default values for symbology options
    scatter_kws = validate.other_options(scatter_kws)
    line_kws = validate.other_options(line_kws)
    pp_kws = validate.other_options(pp_kws)

    # check plottype
    plottype = validate.axis_type(plottype)

    # !-- kwarg that only seaborn should use --!
    _color = fgkwargs.get('color', None)
    if _color is not None:
        scatter_kws['color'] = _color
        line_kws['color'] = _color

    # !-- kwarg that only seaborn should use --!
    _label = fgkwargs.get('label', None)
    if _label is not None:
        scatter_kws['label'] = _label
github matplotlib / mpl-probscale / probscale / viz.py View on Github external
...          scatter_kws=dict(marker='s', alpha=0.5))

    """

    if dist is None:
        dist = _minimal_norm

    # check input values
    fig, ax = validate.axes_object(ax)
    probax = validate.axis_name(probax, 'probability axis')
    problabel = validate.axis_label(problabel)
    datalabel = validate.axis_label(datalabel)

    # default values for symbology options
    scatter_kws = validate.other_options(scatter_kws)
    line_kws = validate.other_options(line_kws)
    pp_kws = validate.other_options(pp_kws)

    # check plottype
    plottype = validate.axis_type(plottype)

    # !-- kwarg that only seaborn should use --!
    _color = fgkwargs.get('color', None)
    if _color is not None:
        scatter_kws['color'] = _color
        line_kws['color'] = _color

    # !-- kwarg that only seaborn should use --!
    _label = fgkwargs.get('label', None)
    if _label is not None:
        scatter_kws['label'] = _label