Browse Source

Add GSTBTC graph

pull/16/head
xcps 7 years ago
parent
commit
4748a717b2
  1. 3
      css/style.css
  2. 5
      index.html
  3. 7
      scripts/plot.py

3
css/style.css

@ -45,3 +45,6 @@ li:last-child::after { @@ -45,3 +45,6 @@ li:last-child::after {
font-style: normal;
font-weight: normal;
}
h2.ofplot { margin-bottom: .5em; }
.plot { margin: 0 auto; }

5
index.html

@ -39,7 +39,10 @@ @@ -39,7 +39,10 @@
<font class="red">Gostcoin (GST)</font> is a digital currency based on blockchain technology. It allows instant payments worldwide with focus on privacy and security of its users.<br>
<font class="red">GOSTCoin</font> uses Russian government standard cryptography: <font class="red">GOST R 34.10-2012</font> for signature and <font class="red">GOST R 34.11-2012</font> for hash.<br>
<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>
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>

7
scripts/plot.py

@ -11,7 +11,7 @@ import math @@ -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): @@ -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…
Cancel
Save