Skip to content
Snippets Groups Projects
Commit 7eeaab7c authored by Flug Schwein's avatar Flug Schwein
Browse files

Update Example for VP_over_time

parent 9ab9ec5a
No related branches found
No related tags found
2 merge requests!5Taken current version of master branch in the https://github.com/holgern/beem,!4Original changes pushed to master at https://github.com/holgern/beem
......@@ -25,9 +25,12 @@ if __name__ == "__main__":
acc_snapshot.build_vp_arrays()
timestamps = acc_snapshot.vp_timestamp
vp = acc_snapshot.vp
downvote_timestamps = acc_snapshot.downvote_vp_timestamp
downvote_vp = acc_snapshot.downvote_vp
plt.figure(figsize=(12, 6))
opts = {'linestyle': '-', 'marker': '.'}
plt.plot_date(timestamps, vp, label="Voting power", **opts)
plt.plot_date(downvote_timestamps, downvote_vp, label='Downvote Power', **opts)
plt.grid()
plt.legend()
plt.title("Voting power over time - @%s" % (account))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment