-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Export svg for dummy linearity and non-linearity to use in figure for…
… report
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |