Skip to content

Commit 3cd9f96

Browse files
committed
Zipf Distribution
1 parent 3f55e22 commit 3cd9f96

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

22.Zipf_Distribution.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@
4646
zipf = r.zipf(a=2, size=(1000))
4747
# print('\n',zipf)
4848
# print('\n',zipf[zipf<10]);exit()
49-
sns.distplot(zipf[zipf<20], kde=False)
49+
sns.distplot(zipf, hist=False)
5050

5151
plt.xlabel('Rank X')
5252
plt.ylabel('Frequencey Y')
5353
plt.title('Zipf Distribution')
54-
plt.xlim(0,100)
55-
plt.ylim(0,100)
54+
# plt.xlim(0,100)
55+
# plt.ylim(0,100)
5656

5757
plt.show()

0 commit comments

Comments
 (0)