Skip to content

Instantly share code, notes, and snippets.

@Crypt-iQ
Created February 6, 2024 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Crypt-iQ/3ca970f0a4c15ee15457c9578f78228e to your computer and use it in GitHub Desktop.
Save Crypt-iQ/3ca970f0a4c15ee15457c9578f78228e to your computer and use it in GitHub Desktop.
plot feefilters, put feefilter.log in same directory
import matplotlib.pyplot as plt
import os
import numpy as np
import seaborn as sns
import pandas as pd
from scipy.stats import norm
lines = open("feefilter.log").read().splitlines()
data = []
for x in range(0, len(lines)):
if int(lines[x]) == 250000000000:
continue
data.append(int(lines[x]))
print(len(data))
print(data)
plt.axis([0, 30000, 0, 3000])
df = pd.DataFrame({'feefilter':data})
#sns.histplot(data=df, x="feefilter", binwidth=50)
sns.histplot(data=df, x="feefilter")
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment