cartesian.py 480 Bytes
Newer Older
1
2
# -*- coding: utf-8 -*-
from abc import abstractmethod
Theo Steininger's avatar
Theo Steininger committed
3
from scatter_plot import ScatterPlot
4
5


Theo Steininger's avatar
Theo Steininger committed
6
class Cartesian(ScatterPlot):
7
8
9
10
11
12
13
14
15
16
17
    def __init__(self, x, y, label, line, marker):
        super(Cartesian, self).__init__(label, line, marker)
        self.x = x
        self.y = y

    @abstractmethod
    def to_plotly(self):
        plotly_object = super(Cartesian, self).to_plotly()
        plotly_object['x'] = self.x
        plotly_object['y'] = self.y
        return plotly_object