Skip to content

Commit cb1959c

Browse files
Minor bugfix on problem plot
1 parent 4dbf894 commit cb1959c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

autokattis/api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ def plot_problems(self, filepath=None, show_solved=True, show_partial=True, show
130130
hist = sns.histplot(data=df, x='difficulty', hue='category', multiple='stack', binwidth=0.1)
131131
hist.set(title=f'Solved Kattis Problems ({df.shape[0]})', xlabel='Difficulty')
132132
plt.xticks([*range(math.floor(min(df.difficulty)), math.ceil(max(df.difficulty))+1)])
133-
plt.show()
134133
if filepath != None:
135134
plt.savefig(filepath)
136135
print(f'Saved to {filepath}')
136+
plt.show()
137137

138138
def list_unsolved(self, show_partial=True):
139139
'''

setup.py

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

66
setup_args = dict(
77
name='autokattis',
8-
version='1.4.4',
8+
version='1.4.5',
99
description='Updated Kattis API wrapper',
1010
long_description_content_type="text/markdown",
1111
long_description=README,

0 commit comments

Comments
 (0)