client-superstaq icon indicating copy to clipboard operation
client-superstaq copied to clipboard

Fix overlapping markers in feature plots

Open teaguetomesh opened this issue 2 years ago • 0 comments

    def _close_line(self, line: matplotlib.lines.Line2D) -> None:
        x, y = line.get_data()
        # FIXME: markers at x[0], y[0] get doubled-up
        if x[0] != x[-1]:
            x = np.append(x, x[0])
            y = np.append(y, y[0])
            line.set_data(x, y)

teaguetomesh avatar Jun 18 '22 16:06 teaguetomesh