Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
svn path=/trunk/matplotlib/; revision=3402
- Loading branch information
Showing
7 changed files
with
352 additions
and
137 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 @@ | ||
import matplotlib | ||
matplotlib.use('GTKAgg') | ||
from matplotlib.backends.backend_gtk import DialogLineprops | ||
|
||
import numpy as npy | ||
from pylab import figure, show | ||
|
||
def f(t): | ||
s1 = npy.cos(2*npy.pi*t) | ||
e1 = npy.exp(-t) | ||
return npy.multiply(s1,e1) | ||
|
||
t1 = npy.arange(0.0, 5.0, 0.1) | ||
t2 = npy.arange(0.0, 5.0, 0.02) | ||
t3 = npy.arange(0.0, 2.0, 0.01) | ||
|
||
fig = figure() | ||
ax = fig.add_subplot(111) | ||
l1, = ax.plot(t1, f(t1), 'bo', label='line 1') | ||
l2, = ax.plot(t2, f(t2), 'k--', label='line 2') | ||
|
||
dlg = DialogLineprops([l1,l2]) | ||
dlg.show() | ||
show() | ||
|
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.