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

Improve graphing for Example for VP_over_time

parent 73ecf00f
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
......@@ -28,9 +28,9 @@ if __name__ == "__main__":
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)
opts = {'linestyle': '-', 'marker': ''}
plt.plot_date(timestamps, vp, label="Voting power", color='green', **opts)
plt.plot_date(downvote_timestamps, downvote_vp, label='Downvote Power', color='red', **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