Skip to content

Commit

Permalink
fix:remove more space
Browse files Browse the repository at this point in the history
  • Loading branch information
liuf5 committed Mar 23, 2021
1 parent cc976ad commit d6b9e73
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions zoomeye/plotlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ def show_pie_chart(stat):
:param stat: list, all data and label
"""

print()
if len(stat) > len(config.COLOR_TABLE):
raise ("max support 10 items")

Expand All @@ -64,7 +63,6 @@ def show_pie_chart(stat):
else:
print(ch)
count += 1
print()


def unicode_output():
Expand Down Expand Up @@ -128,7 +126,6 @@ def generate_histogram(values, labels=None, force_ascii=False):
:param force_ascii: bool, unicode or ascii output
return :None
"""
print()
# max length and bar width
matrix = get_matrix(values, 36, 1)

Expand Down Expand Up @@ -163,8 +160,8 @@ def generate_histogram(values, labels=None, force_ascii=False):
r = trim_zeros(row)
data.append("".join(chars[item] for item in r))
out.append(fmt.format(*data))
result = '\n'.join(out) + '\n'
print(result)
for item in out:
print(' ' + item)



Expand Down

0 comments on commit d6b9e73

Please sign in to comment.