-
Notifications
You must be signed in to change notification settings - Fork 1
/
test_plot.py
44 lines (30 loc) · 4.84 KB
/
test_plot.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import base64
import gzip
import io
import os
import sys
import matplotlib
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
import notebook
import xlrd
def main():
print("Verze Pythonu je {}.{}.".format(sys.version_info[0], sys.version_info[1]))
if sys.version_info[0] < 3:
print("Je potřeba nainstalovat Python 3. :-(")
sys.exit(1)
print("Verze Jupyter Notebooku je {}.".format(notebook.__version__))
# Přečteme data, která jsou na konci tohoto skriptu.
data_file = io.BytesIO(gzip.decompress(base64.b85decode(POINTS)))
data = pd.read_csv(data_file)
sns.set()
plt.scatter(x='x', y='y', data=data, alpha=0.7)
print("Jestli vidíte kódové slovo v grafu, nainstalovali jste všechno úspěšně. :)")
plt.show(block=True)
sys.exit(0)
# Následují body se zakódovaným slovem
POINTS = b'ABzY8qVrB%0{@MhTaFw%4n+TRE!l!3>baoV!_4j{)c(0voQo<LFyL;LBnBf$MrQeW|NH*$$?s2z)S~CQR;#_WmdjgOT5Z=>TW-6|{uC{%Y1X-G&7(x0`_Hn{s{S=<%qUO&U6pHIrPr0qERpN$`#+(DB}Ivub<WzWt+UWhc$yaGH1Zf{w>kGJd%u3j)8C(+*4|BjVvJJ8c>RcHoMmO#So(C=eTt5?1D^T*tkjnF*XNs7_xWDi&u6_qGtIfmY<)-WRUzD)Kl?1ov*e+LWsTm(e($}XqBM*YBlajc&e|RCz4=p=g`P$qOPimY=)>=|`+5}7PfPmkY_pA}&#rjy&7Tryl`=e99%~j|d+zt%{V7U7q#nIT?5vyA+1`8irwIL;R#k#$spl7Ezt`^jDdVgv;!DjTM)a*K&G+8^DMG)b_77&|{odO@Meye|{|bJ-zW<}ElvGNtRXk}!SsDNN(OvE%o|>8DJ@r09I#>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