Skip to content

Commit

Permalink
Export svg for dummy linearity and non-linearity to use in figure for…
Browse files Browse the repository at this point in the history
… report
  • Loading branch information
ycanerol committed Jun 26, 2017
1 parent 61373ae commit 8a13b89
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions make_linear_nonlinear.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit 8a13b89

Please sign in to comment.