MCPcopy Index your code
hub / github.com/PySimpleGUI/PySimpleGUI / _close_line

Method _close_line

DemoPrograms/Demo_Matplotlib_Browser.py:490–496  ·  view source on GitHub ↗
(self, line)

Source from the content-addressed store, hash-verified

488 self._close_line(line)
489
490 def _close_line(self, line):
491 x, y = line.get_data()
492 # FIXME: markers at x[0], y[0] get doubled-up
493 if x[0] != x[-1]:
494 x = np.concatenate((x, [x[0]]))
495 y = np.concatenate((y, [y[0]]))
496 line.set_data(x, y)
497
498 def set_varlabels(self, labels):
499 self.set_thetagrids(np.degrees(theta), labels)

Callers 1

plotMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected