Module Expr Str ImportFrom alias alias Import alias identifier Import alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias alias ImportFrom alias alias ImportFrom alias alias ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Return TupleLoad NameLoad NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Num Assign NameStore Num Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num decorator_list decorator_list decorator_list Expr Call AttributeLoad NameLoad attr NameLoad ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Return TupleLoad NameLoad NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Num Assign NameStore Num Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num decorator_list decorator_list decorator_list Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad vararg kwarg body Expr Str Assign NameStore Str Assign NameStore NameLoad Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad vararg kwarg body Expr Str Assign NameStore Str Assign NameStore NameLoad Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad vararg kwarg body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore BinOpMult SubscriptLoad NameLoad Index Num BinOpSub Num NameLoad Assign NameStore BinOpMult SubscriptLoad NameLoad Index Num BinOpAdd Num NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If CompareEq NameLoad Str body Assign NameStore NameLoad orelse If CompareEq NameLoad Str body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Expr Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Expr Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Expr Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Import alias Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Str If CompareEq NameLoad Str body If CompareIs NameLoad NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad orelse If CompareIs NameLoad NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq NameLoad Str body Assign NameStore NameLoad orelse Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list
N/A N/A 
Imaging
=======

Plotting functions using matplotlib_ library.

.. warning::
   You need to have matplotlib_ installed in order to use this module.

.. _matplotlib: http://matplotlib.org/

 __future__ division unicode_literals N/A numpy np N/A matplotlib.pyplot plt matplotlib scale mscale matplotlib transforms mtransforms matplotlib.ticker NullLocator FixedLocator matplotlib.ticker ScalarFormatter NullFormatter acoustics.bands octave third OctaveBandScale N/A N/A mscale ScaleBase N/A N/A 
    Octave band scale.
     N/A name octave __init__ N/A N/A self axis N/A kwargs N/A N/A N/A N/A N/A mscale ScaleBase __init__ self N/A get_transform N/A N/A self N/A N/A N/A N/A N/A self BandTransform N/A set_default_locators_and_formatters N/A N/A self axis N/A N/A N/A N/A N/A axis set_major_locator N/A FixedLocator N/A octave 16 16000 N/A N/A N/A axis set_major_formatter N/A ScalarFormatter N/A N/A N/A axis set_minor_locator N/A NullLocator N/A N/A N/A axis set_minor_formatter N/A NullFormatter N/A limit_range_for_scale N/A N/A self vmin vmax minpos N/A N/A N/A N/A vmin vmax N/A BandTransform N/A N/A mtransforms Transform N/A N/A input_dims 1 N/A output_dims 1 N/A is_separable True N/A has_inverse False __init__ N/A N/A self N/A N/A N/A N/A N/A N/A mtransforms Transform __init__ self N/A transform_non_affine N/A N/A self a N/A N/A N/A N/A N/A np log10 N/A a 1 N/A N/A N/A N/A N/A N/A mscale register_scale OctaveBandScale ThirdBandScale N/A N/A mscale ScaleBase N/A N/A 
    Third-octave band scale.
     N/A name third __init__ N/A N/A self axis N/A kwargs N/A N/A N/A N/A N/A mscale ScaleBase __init__ self N/A get_transform N/A N/A self N/A N/A N/A N/A N/A self BandTransform N/A set_default_locators_and_formatters N/A N/A self axis N/A N/A N/A N/A N/A axis set_major_locator N/A NullLocator N/A N/A N/A axis set_major_formatter N/A ScalarFormatter N/A N/A N/A axis set_minor_locator N/A FixedLocator N/A third 12.5 20000 N/A N/A N/A axis set_minor_formatter N/A ScalarFormatter N/A limit_range_for_scale N/A N/A self vmin vmax minpos N/A N/A N/A N/A vmin vmax N/A BandTransform N/A N/A mtransforms Transform N/A N/A input_dims 1 N/A output_dims 1 N/A is_separable True N/A has_inverse False __init__ N/A N/A self N/A N/A N/A N/A N/A N/A mtransforms Transform __init__ self N/A transform_non_affine N/A N/A self a N/A N/A N/A N/A N/A np log10 N/A a 1 N/A N/A N/A N/A N/A N/A mscale register_scale ThirdBandScale plot_octave N/A N/A data octaves axes kHz xlabel ylabel title separator N/A None False None None None None args kwargs N/A N/A 
    Plot octave bands from `data` levels and `octaves` bands.

    data: levels in an 1-D NumPy array.

    octaves: octaves in an 1-D NumPy array. Note that you can use
    :func:`trompe.utils.bands.octave` for this or manually enter all bands.

    axes: a `matplotlib.axes` object (optional).

    kHz: if `True` it shows "1k" or "2k" instead of "1000" or "2000" as
    tick labels (`False` by default, optional).

    xlabel: a `str` containing label for x axis (optional).

    ylabel: a `str` containing label for y axis (optional).

    title: a `str` containing title (optional).

    separator: a `str` defining the decimal separator. By default takes '.'
    or ',' values according to system settings (when separator is None).
     N/A band_type octave N/A k_ticks kHz N/A N/A plot_bands data octaves axes band_type k_ticks xlabel ylabel title separator args kwargs N/A plot_third N/A N/A data thirds axes kHz xlabel ylabel title separator N/A None False None None None None args kwargs N/A N/A 
    Plot third octave bands from `data` levels and `thirds` bands.

    data: levels in an 1-D NumPy array.

    thirds: thirds in an 1-D NumPy array. Note that you can use
    :func:`trompe.utils.bands.thirds` for this or manually enter all bands.

    axes: a `matplotlib.axes` object (`None` by default, optional).

    kHz: if `True` it shows "1k" or "2.5k" instead of "1000" or "2500" as
    tick labels (`False` by default, optional).

    xlabel: a `str` containing label for x axis (optional).

    ylabel: a `str` containing label for y axis (optional).

    title: a `str` containing title (optional).

    separator: a `str` defining the decimal separator. By default takes '.'
    or ',' values according to system settings (when separator is None).
     N/A band_type third N/A k_ticks kHz N/A N/A plot_bands data thirds axes band_type k_ticks xlabel ylabel title separator args kwargs N/A plot_bands N/A N/A data bands axes band_type k_ticks xlabel ylabel title separator N/A False None None None None args kwargs N/A N/A 
    Plot bands from `data` levels and `bands`.
    Only use if you want to plot from arbitrary octave or third octave data.

    data: levels in an 1-D NumPy array.

    axes: `matplotlib.axes` object.

    band_type: `'octave'` or `'third'` are accepted values.

    axes: a `matplotlib.axes` object (`None` by default, optional).

    kHz: if `True` it shows "1k" or "2.5k" instead of "1000" or "2500" as
    tick labels (`False` by default, optional).

    xlabel: a `str` containing label for x axis (optional).

    ylabel: a `str` containing label for y axis (optional).

    title: a `str` containing title (optional).

    separator: a `str` defining the decimal separator. By default takes '.'
    or ',' values according to system settings (when separator is None).
     N/A N/A axes None N/A N/A axes N/A N/A plt gca N/A factor 0.1 N/A min_auto N/A N/A bands N/A 0 N/A 1 factor N/A max_auto N/A N/A bands N/A -1 N/A 1 factor N/A N/A N/A axes set_xlim N/A min_auto max_auto N/A N/A N/A axes set_xscale band_type N/A ticklabels N/A _get_ticklabels band_type k_ticks separator N/A N/A band_type third N/A N/A third_ticks True N/A N/A N/A band_type octave N/A N/A third_ticks False N/A N/A N/A axes set_xticklabels ticklabels minor third_ticks N/A N/A xlabel None N/A N/A N/A N/A axes set_xlabel xlabel N/A N/A ylabel None N/A N/A N/A N/A axes set_ylabel ylabel N/A N/A title None N/A N/A N/A N/A axes set_title title N/A N/A N/A axes plot bands data args kwargs N/A N/A TICKS_OCTAVE N/A 16 31.5 63 125 250 500 1000 2000 4000 8000 16000 N/A 
Octave center frequencies as strings. 
 N/A TICKS_OCTAVE_KHZ N/A 16 31.5 63 125 250 500 1k 2k 4k 8k 16k N/A 
Octave center frequencies as strings. Uses kHz notation.
 N/A TICKS_THIRD_OCTAVE N/A 12.5 16 20 25 31.5 40 50 63 80 100 125 160 200 250 315 400 500 630 800 1000 1250 1600 2000 2500 3150 4000 5000 6300 8000 10000 12500 16000 20000 N/A 
Third-octave center frequencies as strings.
 N/A TICKS_THIRD_OCTAVE_KHZ N/A 12.5 16 20 25 31.5 40 50 63 80 100 125 160 200 250 315 400 500 630 800 1000 1250 1600 2000 2500 3150 4000 5000 6300 8000 10000 12500 16000 20000 N/A 
Third-octave center frequencies as strings. Uses kHz notation.
 _get_ticklabels N/A N/A band_type kHz separator N/A N/A N/A 
    Return a list with all tick labels for octave or third octave bands cases.
     N/A N/A separator None N/A N/A locale N/A separator N/A N/A N/A locale localeconv N/A decimal_point N/A N/A band_type octave N/A N/A N/A kHz True N/A N/A ticklabels TICKS_OCTAVE_KHZ N/A N/A ticklabels TICKS_OCTAVE N/A N/A N/A kHz True N/A N/A ticklabels TICKS_THIRD_OCTAVE_KHZ N/A N/A ticklabels TICKS_THIRD_OCTAVE N/A ticklabels N/A _set_separator ticklabels separator N/A ticklabels N/A _set_separator N/A N/A ticklabels separator N/A N/A N/A 
    Set the decimal separator. Note that this is a 'private' function, so
    you can set the decimal separator directly in plotting functions.
     N/A N/A separator . N/A N/A bands_sep ticklabels N/A N/A bands_sep N/A N/A item ticklabels N/A N/A decimal_number_format N/A N/A item replace . separator N/A N/A N/A bands_sep append decimal_number_format N/A bands_sep N/A