mwavepy.convenience
index
/home/alex/docs/python/path/mwavepy/convenience.py

Holds pre-initialized  class's to provide convenience. Also provides
some functions, which cant be categorized as anything better than 
general conviniencies.
        
        Pre-initialized classes include:
                Frequency Objects for standard frequency bands
                Media objects for standard waveguide bands,

 
Modules
       
mwavepy.mathFunctions
numpy
os
pylab
scipy.stats
mwavepy.touchstone

 
Functions
       
find_nearest(array, value)
find nearest value in array.
taken from  http://stackoverflow.com/questions/2566412/find-nearest-value-in-numpy-array
find_nearest_index(array, value)
find nearest value in array.
taken from  http://stackoverflow.com/questions/2566412/find-nearest-value-in-numpy-array
legend_off(ax=None)
turn off the legend for a given axes. if no axes is given then 
it will use current axes.
now_string()
# other
plot_complex(z, *args, **kwargs)
plots a complex array or list in real vs imaginary.
save_all_figs(dir='./', format=['eps', 'pdf', 'png'])
## Functions
# Ploting

 
Data
        ALMOST_ZER0 = 1e-06
f_wr1 = <mwavepy.frequency.Frequency object>
f_wr10 = <mwavepy.frequency.Frequency object>
f_wr1p5 = <mwavepy.frequency.Frequency object>
f_wr2p2 = <mwavepy.frequency.Frequency object>
f_wr3 = <mwavepy.frequency.Frequency object>
mil = 2.5399999999999997e-05
wr1 = Rectangular Waveguide Media. 750-1100 GHz. 201 points a= 2.54e-04m, b= 1.27e-04m
wr10 = Rectangular Waveguide Media. 75-110 GHz. 201 points a= 2.54e-03m, b= 1.27e-03m
wr1p5 = Rectangular Waveguide Media. 500-750 GHz. 201 points a= 3.81e-04m, b= 1.90e-04m
wr2p2 = Rectangular Waveguide Media. 330-500 GHz. 201 points a= 5.59e-04m, b= 2.79e-04m
wr3 = Rectangular Waveguide Media. 220-325 GHz. 201 points a= 7.62e-04m, b= 3.81e-04m