16 lines
365 B
Python
16 lines
365 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(*d))
|
|
return 'coordinates {{{}}}'.format(''.join(pts))
|