marker.py 546 Bytes
Newer Older
1
2
# -*- coding: utf-8 -*-

Martin Reinecke's avatar
Martin Reinecke committed
3
from ..plotly_wrapper import PlotlyWrapper
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18


class Marker(PlotlyWrapper):
    # find symbols at: https://plot.ly/python/reference/#scatter-marker-symbol
    def __init__(self, color=None, size=None, symbol=None, opacity=None):
        self.color = color
        self.size = size
        self.symbol = symbol
        self.opacity = opacity

    def to_plotly(self):
        return dict(color=self.color,
                    size=self.size,
                    symbol=self.symbol,
                    opacity=self.opacity)