Skip to content

Get new marker colorbar into mpl conversions #234

Closed
@theengineear

Description

@theengineear

Here's a working example of how to maker a colorbar on a scatter plot.

import plotly.plotly as py
fig = {
    "data": [{
        "marker": {
            "color": [0, -1, -2, -3, -4, -7, -8, -9, -33, -34, -35, -36, -37],
            "colorbar": {"title": "hi!"}
        },
        "y": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13],
        "type": "scatter",
        "mode": "markers",
    }],
    "layout": {"title": "scatter + colorbar = <3", "showlegend": False}
}

py.iplot(fig, validate=False)

This was completed in streambed in https://github.com/plotly/streambed/pull/2430

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions