MCPcopy Create free account
hub / github.com/Image-Py/imagepy / add_data

Method add_data

imagepy/ui/plotwindow.py:74–77  ·  view source on GitHub ↗
(self, xs, ys=None, color=(0,0,255), lw=2)

Source from the content-addressed store, hash-verified

72 self.update()
73
74 def add_data(self, xs, ys=None, color=(0,0,255), lw=2):
75 if ys is None:
76 ys, xs = xs, np.arange(len(xs))
77 self.data.append((xs, ys, color, lw))
78
79 def draw_coord(self, dc, w, h, l, t, r, b):
80 xs = [5, 10, 20, 40, 50, 100, 200, 400, 500, 1000, 2000, 4000, 10000]

Callers 2

profileMethod · 0.80
plotwindow.pyFile · 0.80

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected