-
Notifications
You must be signed in to change notification settings - Fork 5
/
TE_plot.py
37 lines (30 loc) · 821 Bytes
/
TE_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
# TE_plot.py
# Tyson Pond
# Last Modified: 2019-07-08
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# lorenz
df = pd.read_csv('lorenz_entropies.csv', header=None)
x = np.linspace(0,20,df.shape[0])
# rossler
##df = pd.read_csv('rossler_entropies.csv', header=None)
##x = np.linspace(0,8,df.shape[0])
y = df.mean(axis=1).values
err = df.std(axis=1).values
fig = plt.figure()
(_, caps, _) = plt.errorbar(x,y, yerr=err, capsize=1, elinewidth=1, color='red',
ecolor='red')
for cap in caps:
cap.set_color('red')
cap.set_markeredgewidth(2)
# lorenz
plt.xlabel(r'$C$')
plt.ylabel(r'$TE_{X\to Y} - TE_{Y\to X}$')
plt.ylim(-0.1,0.85)
plt.show()
# rossler
##plt.xlabel(r'$\epsilon$')
##plt.ylabel(r'$TE_{X\to Y} - TE_{Y\to X}$')
##plt.ylim(0,1.4)
##plt.show()