mirror of
https://github.com/GOSTSec/gostcoin.i2p
synced 2025-02-10 22:04:14 +00:00
Add GSTBTC graph
This commit is contained in:
parent
981cace439
commit
4748a717b2
@ -45,3 +45,6 @@ li:last-child::after {
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h2.ofplot { margin-bottom: .5em; }
|
||||
.plot { margin: 0 auto; }
|
||||
|
@ -41,5 +41,8 @@
|
||||
<br>
|
||||
Hash and Proof-of-work uses <font class="red">GOST_R_3411_2012-256(GOST_R_3411_2012-512())</font> function (256 bit hashsum over 512 bit hashsum of string), assumed in Big Endian.<br>
|
||||
For signatures <font class="red">Gostcoin</font> uses <font class="red">GOST_R_3410_2012</font> algorithm with CryptoPro XchA (1.2.643.2.2.36.0) parameters set over the hash specified above.
|
||||
<br><br><br>
|
||||
<h2 class="red ofplot">GST/BTC exchange rate chart</h2>
|
||||
<div class="plot"><img src="img/GSTBTC_graph.png" /></div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -11,7 +11,7 @@ import math
|
||||
import json
|
||||
import urllib
|
||||
|
||||
PLOT_TITLE = 'BTC_GST graph'
|
||||
PLOT_TITLE = ''
|
||||
Y_AXIS_NAME = 'BTC price'
|
||||
PNG_FILENAME = '../img/GSTBTC_graph.png'
|
||||
DPI = 60 # affects the size of output image
|
||||
@ -65,7 +65,10 @@ def draw_plot(oneline, secondline, dates):
|
||||
plt.ylabel(Y_AXIS_NAME)
|
||||
plt.title(PLOT_TITLE)
|
||||
plt.grid(True)
|
||||
plt.savefig(PNG_FILENAME, bbox_inches='tight', dpi=DPI)
|
||||
plt.savefig(PNG_FILENAME,
|
||||
bbox_inches='tight',
|
||||
dpi=DPI,
|
||||
transparent=True)
|
||||
|
||||
def generate_graphic():
|
||||
data = get_data_from_nvspc()
|
||||
|
Loading…
x
Reference in New Issue
Block a user