Skip to content
Snippets Groups Projects
Commit f2599634 authored by Doorn, Nina (UT-TNW)'s avatar Doorn, Nina (UT-TNW)
Browse files

cleaned Makefigures.py

parent 1b5f4b51
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ import scipy.io as sio
from brian2 import *
#specify where the images must be saved
outputdir = '/home/Nina/Documents/SBI_project/Output/Paper_Figures_ver1/'
outputdir = '/home/yourdir'
def rasterplot(APs, savetitle, dt, start, stop, color):
figure(figsize=(8.5, 2.2), dpi=300)
......@@ -25,15 +25,8 @@ def Marginaldiffplot(samples1, samples2, numparams, priorlimits, parlabels, save
vals, xvals = np.histogram(samples2[:, ind], bins=30)
two, = ax.plot(xvals[1:], vals, color='#9A98B5')
ax.set_xlim(priorlimits[ind])
# ax.set_xticks(priorlimits[ind])
ax.set_xlabel(parlabels[ind])
ax.spines[['right', 'top']].set_visible(False)
# ax.set_ylabel("Count")
# ax.set_title('{0:.6f}'.format(Pvals[ind])) #ax.set_title(str(Pvals[ind]))
# ax.set_xticks(priorlimits[ind])
# ax.legend([one, two], ["Most efficient 2%", "Least efficient 2%"], ncol=3, loc=((0.0, 1)))
# ax.set_ylim(bottom=0)
# ax.set_ylim([0, 250])
tight_layout()
plt.savefig(savetitle + parlabels[ind] + '.png', dpi=400, format='png',
bbox_inches="tight", transparent=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment