summaryrefslogtreecommitdiff
path: root/phstuff/barcode.py
diff options
context:
space:
mode:
authorGard Spreemann <gspreemann@gmail.com>2018-03-21 16:07:44 +0100
committerGard Spreemann <gspreemann@gmail.com>2018-03-21 16:07:44 +0100
commit5171e20a4b1147bb5ef581c0e0294eba9d2480c1 (patch)
tree6084b60786972b092cfa21e32d0fcca9356dd97c /phstuff/barcode.py
parentda94ac5c18449abe5b8c25a3bf22cc1301dfa59f (diff)
* Version 0.0.10.v0.0.10
* Use plot instead of scatter for small performance improvement.
Diffstat (limited to 'phstuff/barcode.py')
-rw-r--r--phstuff/barcode.py4
1 files changed, 2 insertions, 2 deletions
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(