From 5171e20a4b1147bb5ef581c0e0294eba9d2480c1 Mon Sep 17 00:00:00 2001 From: Gard Spreemann Date: Wed, 21 Mar 2018 16:07:44 +0100 Subject: * Version 0.0.10. * Use plot instead of scatter for small performance improvement. --- phstuff/barcode.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'phstuff/barcode.py') diff --git a/phstuff/barcode.py b/phstuff/barcode.py index 9e562a6..adce5e5 100644 --- a/phstuff/barcode.py +++ b/phstuff/barcode.py @@ -83,10 +83,10 @@ def plot(ax, barcode, min_scale, max_scale, color = "black", finite_marker = "." infinites = np.array(infinites) if finites.shape[0] > 0: - ax.scatter(finites[:, 0], finites[:, 1], color = color, marker = finite_marker, alpha = alpha, zorder=10) + ax.plot(finites[:, 0], finites[:, 1], color = color, marker = finite_marker, linestyle = "None", alpha = alpha, zorder=10) if infinites.shape[0] > 0: - ax.scatter(infinites[:, 0], infinites[:, 1], color = color, marker = infinite_marker, alpha = alpha, zorder=10) + ax.plot(infinites[:, 0], infinites[:, 1], color = color, marker = infinite_marker, linestyle = "None", alpha = alpha, zorder=10) below_diag_patch = ax.add_patch( -- cgit v1.2.3