Skip to content

Commit

Permalink
Merge pull request #38 from nschloe/upd
Browse files Browse the repository at this point in the history
rm print, update
  • Loading branch information
nschloe authored May 17, 2022
2 parents 43c2a62 + 5433532 commit c767b08
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repos:
- id: isort

- repo: https://github.com/psf/black
rev: 22.1.0
rev: 22.3.0
hooks:
- id: black
language_version: python3
Expand Down
2 changes: 1 addition & 1 deletion src/matplotx/__about__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.3.6"
__version__ = "0.3.7"
1 change: 0 additions & 1 deletion src/matplotx/_labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ def line_labels(
ax_height_inches = ax_height * fig_height_inches
ylim = ax.get_ylim()
if logy:
print(ylim)
ax_height_ylim = math.log10(ylim[1]) - math.log10(ylim[0])
else:
ax_height_ylim = ylim[1] - ylim[0]
Expand Down
4 changes: 2 additions & 2 deletions tests/test_spy.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import tempfile
from pathlib import Path

import imageio
import imageio.v2 as iio
import numpy
import pytest
from scipy import sparse
Expand Down Expand Up @@ -32,7 +32,7 @@ def test_png(ref, kwargs):
with tempfile.TemporaryDirectory() as temp_dir:
filepath = Path(temp_dir) / "test.png"
matplotx.spy(M, filename=filepath, **kwargs)
im = imageio.imread(filepath)
im = iio.imread(filepath)
y = numpy.random.randint(0, 100, size=numpy.prod(im.shape))
assert numpy.dot(y, im.flatten()) == ref

Expand Down

0 comments on commit c767b08

Please sign in to comment.