-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path#plot_heat_map_I_e_Je.py#
executable file
·67 lines (56 loc) · 1.3 KB
/
#plot_heat_map_I_e_Je.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import nest
import numpy as np
import simplejson
open_file = open("heat_map_values_I_e_Je.json", "r")
mean_rate_list = simplejson.load(open_file)
open_file.close()
from matplotlib import pyplot as PLT
from matplotlib import cm as CM
from matplotlib import mlab as ML
import numpy as NP
mean_rate_list.remove(mean_rate_list[0])
x_0 = np.arange(0,500,10)
y_0 = np.arange(0,10,0.2)
x_list = []
y_list = []
for i in range(0,500,10):
y_list.append(i)
number = 0.0
for j in range(50):
number += 0.2
x_list.append(number)
import plotly.tools as tls
tls.set_credentials_file(username='jmg1030', api_key='2c0f8cg9h4')
import plotly.plotly as py
import plotly.graph_objs as go
print(len(x_list))
print(len(y_list))
print(len(mean_rate_list))
print(len(mean_rate_list[0]))
data = [
go.Heatmap(
z=mean_rate_list,
x=x_list,
y=y_list
)
]
layout = go.Layout(
title='Plot Title',
xaxis=dict(
title='Je',
titlefont=dict(
family='Courier New, monospace',
size=18,
color='#7f7f7f'
)
),
yaxis=dict(
title='I_e, pA',
titlefont=dict(
family='Courier New, monospace',
size=18,
color='#7f7f7f'
)
)
)
py.iplot(data, filename='I_e, Je, vs. Mean_Spike_Rate')