15 lines
384 B
Python
15 lines
384 B
Python
# -*- encoding: utf-8 -*-
|
|
|
|
from .generic_plot import generic_plot
|
|
|
|
|
|
class coordinates_plot(generic_plot):
|
|
def __init__(self, *args, **kargs):
|
|
super().__init__(*args, **kargs)
|
|
|
|
def format_data(self, data):
|
|
pts = []
|
|
for d in data:
|
|
pts.append("({}, {})".format(*self.format_values(d)))
|
|
return "coordinates {{{}}}".format("".join(pts))
|