Skip to content

Commit c767b08

Browse files
authored
Merge pull request #38 from nschloe/upd
rm print, update
2 parents 43c2a62 + 5433532 commit c767b08

4 files changed

Lines changed: 4 additions & 5 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repos:
55
- id: isort
66

77
- repo: https://github.com/psf/black
8-
rev: 22.1.0
8+
rev: 22.3.0
99
hooks:
1010
- id: black
1111
language_version: python3

src/matplotx/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.3.6"
1+
__version__ = "0.3.7"

src/matplotx/_labels.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ def line_labels(
5555
ax_height_inches = ax_height * fig_height_inches
5656
ylim = ax.get_ylim()
5757
if logy:
58-
print(ylim)
5958
ax_height_ylim = math.log10(ylim[1]) - math.log10(ylim[0])
6059
else:
6160
ax_height_ylim = ylim[1] - ylim[0]

tests/test_spy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import tempfile
22
from pathlib import Path
33

4-
import imageio
4+
import imageio.v2 as iio
55
import numpy
66
import pytest
77
from scipy import sparse
@@ -32,7 +32,7 @@ def test_png(ref, kwargs):
3232
with tempfile.TemporaryDirectory() as temp_dir:
3333
filepath = Path(temp_dir) / "test.png"
3434
matplotx.spy(M, filename=filepath, **kwargs)
35-
im = imageio.imread(filepath)
35+
im = iio.imread(filepath)
3636
y = numpy.random.randint(0, 100, size=numpy.prod(im.shape))
3737
assert numpy.dot(y, im.flatten()) == ref
3838

0 commit comments

Comments
 (0)