From 8a13b89a5cd65682b8c850608fec95aeb1959f42 Mon Sep 17 00:00:00 2001 From: ycanerol Date: Mon, 26 Jun 2017 17:39:12 +0200 Subject: [PATCH] Export svg for dummy linearity and non-linearity to use in figure for report --- make_linear_nonlinear.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 make_linear_nonlinear.py diff --git a/make_linear_nonlinear.py b/make_linear_nonlinear.py new file mode 100644 index 0000000..72a1fce --- /dev/null +++ b/make_linear_nonlinear.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Jun 26 15:27:36 2017 + +@author: ycan +""" + +import matplotlib.pyplot as plt +import numpy as np +import matplotlib +# Function definitions from LNP_model.py + + +t = np.arange(0,.6,.01) +plt.plot(linear_filter(t,1)) +plt.axis('off') +plt.savefig('/Users/ycan/Downloads/linear.svg', format='svg', transparent=True) +plt.show() + +k = np.linspace(-5, 5, 1001) +plt.plot(k, nlt(k,2)) +plt.axis('off') +plt.savefig('/Users/ycan/Downloads/nonlinear.svg', format='svg', transparent=True) +plt.show()