Skip to content

Commit

Permalink
generate reward version config graph
Browse files Browse the repository at this point in the history
  • Loading branch information
serinko committed Dec 6, 2024
1 parent f1887a1 commit 38a01c3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 14 additions & 6 deletions documentation/scripts/rewards_version_graph.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import matplotlib.pyplot as plt
import matplotlib.axes as ax
import matplotlib.pylab as pylab
from matplotlib.pyplot import figure
import numpy as np

plt.style.use('dark_background')
Expand All @@ -14,6 +15,10 @@
#x2 = np.linspace(0, 10, 25)
#y2 = 4 + 1 * np.sin(2 * x2)

f = plt.figure()
f.set_figwidth(12)
f.set_figheight(9)

# plot
#fig, ax = plt.subplots()
plt.plot(x,y, label=f'version_config_score_multiplier = {a} ^ (version_behind ^ {b})')
Expand All @@ -22,20 +27,20 @@


# naming the x axis
plt.xlabel('Nym Node versions behind the current one', fontsize=24)
plt.xlabel('Nym Node versions behind the current one', fontsize=20)


# naming the y axis
plt.ylabel('Config score multiplier', fontsize=24)
plt.ylabel('Config score multiplier', fontsize=20)

# giving a title to my graph
plt.title('Nym node version config score multiplier', fontsize=32)
plt.title('Nym node version config score multiplier', fontsize=28)


#ax.Axes.set_xticks([x])
#ax.Axes.set_yticks([y])

plt.legend(fontsize=20)
plt.legend(fontsize=12)

#params = {'legend.fontsize': 20,
# 'axes.labelsize': 24,
Expand All @@ -48,6 +53,9 @@
# set the limits
plt.xlim([0, 5])
plt.ylim([0,1])
plt.show()

#plt.savefig('../docs/public/images/operators/tokenomics/reward_version_graph.png')


#plt.show()

plt.savefig('../docs/public/images/operators/tokenomics/reward_version_graph.png')

0 comments on commit 38a01c3

Please sign in to comment.