Skip to content

Commit

Permalink
update python >= 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
landmanbester committed Jun 17, 2024
1 parent 509232c commit 854f2b6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
long_description_content_type="text/markdown",
url="https://github.com/ratt-ru/surfvis",
packages=find_packages(),
python_requires='>=3.7',
python_requires='>=3.10',
install_requires=requirements,
classifiers=[
"Programming Language :: Python :: 3",
Expand Down
17 changes: 9 additions & 8 deletions surfvis/surfchi2.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,14 +306,15 @@ def makeplot(data, name, subt):

rax = divider.append_axes("right", size="50%", pad=0.025)
x = data[~ np.isnan(data)]
hist(x, bins='scott', ax=rax, histtype='stepfilled',
alpha=0.5, density=False)
rax.set_yticks([])
rax.tick_params(axis='y', which='both',
bottom=False, top=False,
labelbottom=False)
rax.tick_params(axis='x', which='both',
length=1, width=1, labelsize=8)
if x.any():
hist(x, bins='scott', ax=rax, histtype='stepfilled',
alpha=0.5, density=False)
rax.set_yticks([])
rax.tick_params(axis='y', which='both',
bottom=False, top=False,
labelbottom=False)
rax.tick_params(axis='x', which='both',
length=1, width=1, labelsize=8)

fig.suptitle(subt, fontsize=20)
plt.savefig(name, dpi=250)
Expand Down

0 comments on commit 854f2b6

Please sign in to comment.