-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Corrections on the README.md Examples. Full Alignment with code on th…
…e examples directory
- Loading branch information
Showing
3 changed files
with
78 additions
and
16 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
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,18 @@ | ||
from PyLTSpice import RawRead | ||
|
||
from matplotlib import pyplot as plt | ||
|
||
LTR = RawRead("./testfiles/TRAN - STEP.raw") | ||
|
||
print(LTR.get_trace_names()) | ||
print(LTR.get_raw_property()) | ||
|
||
IR1 = LTR.get_trace("I(R1)") | ||
x = LTR.get_trace('time') # Gets the time axis | ||
steps = LTR.get_steps() | ||
for step in range(len(steps)): | ||
# print(steps[step]) | ||
plt.plot(x.get_wave(step), IR1.get_wave(step), label=steps[step]) | ||
|
||
plt.legend() # order a legend | ||
plt.show() |
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