Module ImportFrom alias Import alias Import alias Import alias ImportFrom alias identifier TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad Assign NameStore TupleLoad Str Str Str Str Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore TupleLoad Str Str Str FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Expr Str If BoolOpAnd UnaryOpNot NameLoad UnaryOpNot NameLoad body Expr Call NameLoad orelse If NameLoad body Expr Call NameLoad NameLoad NameLoad orelse Assign NameStore Str Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str For NameStore NameLoad body Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr If CompareNotIn NameLoad NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad Raise Call NameLoad NameLoad Expr Call NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Assign NameStore Str For NameStore NameLoad body Assign NameStore Call NameLoad Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad attr keyword NameLoad If BoolOpOr UnaryOpNot NameLoad CompareIn Call NameLoad NameLoad NameLoad body Assign NameStore BinOpAdd BinOpAdd Str Call AttributeLoad Str attr NameLoad Str Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore BinOpAdd Str Call AttributeLoad Str attr GeneratorExp Call AttributeLoad Str attr Call AttributeLoad SubscriptLoad Call NameLoad NameLoad Slice Num attr comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad ListComp BinOpDiv NameLoad Num comprehension NameStore NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults kwarg body Expr Str If UnaryOpNot NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str ImportFrom alias Assign NameStore Call NameLoad AttributeLoad NameLoad attr Num keyword NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr If CompareNotIn NameLoad NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad Raise Call NameLoad NameLoad Assign NameStore Call NameLoad GeneratorExp TupleLoad Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr If CompareNotIn Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Expr Call AttributeLoad NameLoad attr AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad Raise Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr If CompareNotIn NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad attr Expr Call AttributeLoad NameLoad attr AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad Raise Call NameLoad NameLoad Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Index NameLoad Index Str If NameLoad body AugAssignAdd NameStore Str Assign NameStore ListComp NameLoad comprehension NameStore Call NameLoad NameLoad Return Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Dict For NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad Dict For NameStore SubscriptLoad NameLoad Index NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Index Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr keyword NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Return NameLoad decorator_list
N/A __future__ print_function N/A os.path N/A json N/A webbrowser jcvi.apps.base datadir _DATADIR N/A N/A matplotlib.colors LinearSegmentedColormap N/A N/A N/A ImportError N/A N/A HAVE_MPL False N/A N/A HAVE_MPL True N/A __all__ N/A COLOR_MAPS print_maps print_all_maps print_maps_by_type get_map MAP_TYPES BrewerMap N/A _DATAFILE N/A N/A N/A os path join _DATADIR colorbrewer_all_schemes.json N/A N/A open _DATAFILE r f N/A N/A COLOR_MAPS N/A N/A json load f N/A MAP_TYPES N/A Sequential Diverging Qualitative print_maps N/A N/A map_type number N/A None None N/A N/A 
    Print maps by type and/or number of defined colors.

    Parameters
    ----------
    map_type : {'Sequential', 'Diverging', 'Qualitative'}, optional
        Filter output by map type. By default all maps are printed.
    number : int, optional
        Filter output by number of defined colors. By default there is
        no numeric filtering.

     N/A N/A N/A map_type N/A number N/A N/A N/A print_all_maps N/A N/A map_type N/A N/A N/A print_maps_by_type map_type number N/A N/A s Invalid parameter combination. number without map_type is not supported. N/A N/A ValueError s N/A print_all_maps N/A N/A N/A N/A N/A 
    Print the name and number of defined colors of all available color maps.

     N/A t MAP_TYPES N/A N/A N/A print_maps_by_type t N/A print_maps_by_type N/A N/A map_type number N/A None N/A N/A 
    Print all available maps of a given type.

    Parameters
    ----------
    map_type : {'Sequential', 'Diverging', 'Qualitative'}
        Select map type to print.
    number : int, optional
        Filter output by number of defined colors. By default there is
        no numeric filtering.

     N/A map_type N/A N/A N/A N/A map_type lower capitalize N/A N/A map_type MAP_TYPES N/A N/A s N/A N/A Invalid map type, must be one of {0} format MAP_TYPES N/A N/A ValueError s N/A N/A print map_type N/A map_keys N/A sorted N/A N/A N/A COLOR_MAPS N/A map_type keys N/A format_str {0:8}  :  {1} N/A mk map_keys N/A N/A num_keys N/A sorted N/A N/A N/A N/A COLOR_MAPS N/A map_type N/A mk keys key int N/A N/A N/A number N/A N/A str number num_keys N/A N/A num_str N/A N/A { N/A N/A ,  join num_keys } N/A N/A print N/A N/A format_str format mk num_str N/A _ColorMap N/A object N/A N/A 
    Representation of a color map with matplotlib compatible
    views of the map.

    Parameters
    ----------
    name : str
    map_type : str
    colors : list
        Colors as list of 0-255 RGB triplets.

    Attributes
    ----------
    name : str
    map_type : str
    number : int
        Number of colors in color map.
    colors : list
        Colors as list of 0-255 RGB triplets.
    hex_colors : list
    mpl_colors : list
    mpl_colormap : matplotlib LinearSegmentedColormap

     __init__ N/A N/A self name map_type colors N/A N/A N/A N/A self name name N/A N/A self type map_type N/A N/A self number N/A len colors N/A N/A self colors colors N/A hex_colors N/A N/A self N/A N/A N/A 
        Colors as a tuple of hex strings. (e.g. '#A912F4')

         N/A hc N/A N/A color N/A self colors N/A N/A h N/A # N/A N/A join N/A N/A N/A {0:>02} format N/A N/A N/A N/A hex c N/A 2 upper N/A c color N/A N/A N/A hc append h N/A hc N/A property mpl_colors N/A N/A self N/A N/A N/A 
        Colors expressed on the range 0-1 as used by matplotlib.

         N/A mc N/A N/A color N/A self colors N/A N/A N/A N/A mc append N/A tuple N/A N/A x 255.0 N/A x color N/A mc N/A property mpl_colormap N/A N/A self N/A N/A N/A 
        A basic matplotlib color map. If you want to specify keyword arguments
        use the `get_mpl_colormap` method.

         N/A N/A N/A self get_mpl_colormap N/A property get_mpl_colormap N/A N/A self N/A kwargs N/A N/A 
        A color map that can be used in matplotlib plots. Requires matplotlib
        to be importable. Keyword arguments are passed to
        `matplotlib.colors.LinearSegmentedColormap.from_list`.

         N/A N/A HAVE_MPL N/A N/A N/A RuntimeError matplotlib not available. N/A cmap N/A N/A LinearSegmentedColormap from_list N/A self name N/A self mpl_colors kwargs N/A cmap N/A show_as_blocks N/A N/A self block_size N/A 100 N/A N/A 
        Show colors in the IPython Notebook using ipythonblocks.

        Parameters
        ----------
        block_size : int, optional
            Size of displayed blocks.

         ipythonblocks BlockGrid N/A grid N/A BlockGrid N/A self number 1 block_size block_size N/A N/A block color N/A zip grid N/A self colors N/A N/A N/A block rgb color N/A N/A N/A grid show N/A N/A BrewerMap N/A _ColorMap N/A N/A 
    Representation of a colorbrewer2 color map with matplotlib compatible
    views of the map.

    Parameters
    ----------
    name : str
    map_type : str
    colors : list
        Colors as list of 0-255 RGB triplets.

    Attributes
    ----------
    name : str
    map_type : str
    number : int
        Number of colors in color map.
    colors : list
        Colors as list of 0-255 RGB triplets.
    colorbrewer2_url : str
    hex_colors : list
    mpl_colors : list
    mpl_colormap : matplotlib LinearSegmentedColormap

     colorbrewer2_url N/A N/A self N/A N/A N/A 
        URL that can be used to view the color map at colorbrewer2.org.

         N/A url http://colorbrewer2.org/index.html?type={0}&scheme={1}&n={2} N/A N/A N/A url format N/A N/A N/A self type lower N/A self name N/A self number N/A property colorbrewer2 N/A N/A self N/A N/A N/A 
        View this color map at colorbrewer2.org. This will open
        colorbrewer2.org in your default web browser.

         N/A N/A N/A webbrowser open_new_tab N/A self colorbrewer2_url N/A N/A get_map N/A N/A name map_type number reverse N/A False N/A N/A 
    Return a `BrewerMap` representation of the specified color map.

    Parameters
    ----------
    name : str
        Name of color map. Use `print_maps` to see available color maps.
    map_type : {'Sequential', 'Diverging', 'Qualitative'}
        Select color map type.
    number : int
        Number of defined colors in color map.
    reverse : bool, optional
        Set to True to get the reversed color map.

     N/A number N/A str number N/A map_type N/A N/A N/A N/A map_type lower capitalize N/A N/A map_type MAP_TYPES N/A N/A s N/A N/A Invalid map type, must be one of {0} format MAP_TYPES N/A N/A ValueError s N/A map_names N/A dict N/A N/A N/A N/A k lower k N/A k N/A N/A N/A COLOR_MAPS N/A map_type keys N/A N/A N/A N/A name lower map_names N/A N/A s Invalid color map name {0!r} for type {1!r}.
 N/A s N/A N/A s format name map_type N/A valid_names N/A N/A str k N/A k N/A N/A N/A COLOR_MAPS N/A map_type keys N/A N/A N/A valid_names sort N/A s N/A N/A Valid names are: {0} format valid_names N/A N/A ValueError s N/A name N/A map_names N/A N/A N/A name lower N/A N/A number N/A N/A COLOR_MAPS N/A map_type N/A name N/A N/A s Invalid number for map type {0!r} and name {1!r}.
 N/A s N/A N/A s format map_type N/A str name N/A valid_numbers N/A N/A int k N/A k N/A N/A N/A N/A COLOR_MAPS N/A map_type N/A name keys N/A N/A N/A valid_numbers sort N/A s N/A N/A Valid numbers are : {0} format valid_numbers N/A N/A ValueError s N/A colors N/A N/A N/A N/A COLOR_MAPS N/A map_type N/A name N/A number N/A Colors N/A reverse N/A N/A name _r N/A colors N/A x N/A x N/A reversed colors N/A N/A BrewerMap name map_type colors N/A _load_maps_by_type N/A N/A map_type N/A N/A N/A 
    Load all maps of a given type into a dictionary.

    Color maps are loaded as BrewerMap objects. Dictionary is
    keyed by map name and then integer numbers of defined
    colors. There is an additional 'max' key that points to the
    color map with the largest number of defined colors.

    Parameters
    ----------
    map_type : {'Sequential', 'Diverging', 'Qualitative'}

    Returns
    -------
    maps : dict of BrewerMap

     N/A seq_maps N/A COLOR_MAPS N/A map_type N/A loaded_maps N/A N/A map_name seq_maps N/A N/A N/A loaded_maps N/A map_name N/A N/A num N/A seq_maps N/A map_name N/A N/A inum N/A int num N/A colors N/A N/A N/A seq_maps N/A map_name N/A num N/A Colors N/A bmap N/A BrewerMap map_name map_type colors N/A N/A N/A loaded_maps N/A map_name N/A inum bmap N/A max_num N/A int N/A max N/A N/A N/A seq_maps N/A map_name keys key int N/A N/A N/A loaded_maps N/A map_name N/A max N/A N/A loaded_maps N/A map_name N/A max_num N/A loaded_maps N/A