Module ImportFrom alias Import alias identifier Import alias identifier Import alias identifier Assign NameStore ListLoad Str Str Str Str Str Str FunctionDef arguments args NameParam NameParam NameParam defaults Num Num NameLoad kwarg body Expr Str Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num Num NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign TupleStore NameStore NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore BinOpMult NameLoad NameLoad Return TupleLoad BinOpMult NameLoad NameLoad BinOpMult NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Assign NameStore IfExp CompareIsNot NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num NameLoad body Expr Str Assign NameStore IfExp CompareIsNot NameLoad NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore BinOpMult BinOpDiv Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad keyword NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword Num keyword Num keyword Num keyword Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq NameLoad Num body Return Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore IfExp CompareIsNot NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr NameLoad Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str If NameLoad body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Str Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Str If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num NameLoad body Expr Str Assign NameStore IfExp CompareIsNot NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr If CompareEq Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad BinOpMult UnaryOpUSub NameLoad NameLoad BinOpMult NameLoad NameLoad Return BinOpPow Num BinOpAdd NameLoad NameLoad orelse If CompareEq Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad BinOpMult UnaryOpUSub NameLoad NameLoad BinOpMult NameLoad NameLoad Return BinOpAdd NameLoad NameLoad decorator_list If CompareEq NameLoad Str body ImportFrom alias Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Expr Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr
N/A __future__ division N/A numpy np N/A matplotlib.pyplot plt N/A matplotlib.ticker mticker N/A __all__ N/A figure figaspect figimage clear_frame cross_spines pad_limits figure N/A N/A aspect_ratio scale width N/A 0.75 1 None kwargs N/A N/A Return matplotlib figure window.

    Calculate figure height using `aspect_ratio` and *default* figure width.

    Parameters
    ----------
    aspect_ratio : float
        Aspect ratio, height / width, of figure.
    scale : float
        Scale default size of the figure.
    width : float
        Figure width in inches. If None, default to rc parameters.

    See Also
    --------
    figaspect

     N/A size N/A figaspect aspect_ratio scale scale width width N/A N/A N/A plt figure figsize size kwargs N/A figaspect N/A N/A aspect_ratio scale width N/A 0.75 1 None N/A N/A Return figure size (width, height) in inches.

    Calculate figure height using `aspect_ratio` and *default* figure width.
    For example, `figaspect(2)` gives a size that's twice as tall as it is
    wide.

    Note that `figaspect` uses the default figure width, or a specified
    `width`, and adjusts the height; this is the opposite of
    `pyplot.figaspect`, which constrains the figure height and adjusts the
    width. This function's behavior is preferred when you have a constraint on
    the figure width (e.g. in a journal article or a web page with a set
    body-width).

    Parameters
    ----------
    aspect_ratio : float
        Aspect ratio, height / width, of figure.
    scale : float
        Scale default size of the figure.
    width : float
        Figure width in inches. If None, default to rc parameters.

    Returns
    -------
    width, height : float
        Width and height of figure.
     N/A N/A width None N/A N/A N/A width h N/A N/A plt rcParams N/A figure.figsize N/A height N/A width aspect_ratio N/A N/A N/A width scale N/A height scale N/A clear_frame N/A N/A ax N/A None N/A N/A Remove the frame (ticks and spines) from an axes.

    This differs from turning off the axis (`plt.axis('off')` or
    `ax.set_axis_off()`) in that only the ticks and spines are removed. Turning
    off the axis also removes the axes background and axis labels.

    Parameters
    ----------
    ax : :class:`~matplotlib.axes.Axes`
        Axes to modify. If None, use current axes.
     N/A ax N/A N/A ax None ax N/A N/A plt gca N/A N/A N/A N/A ax xaxis set_ticks N/A N/A N/A N/A N/A ax yaxis set_ticks N/A N/A spine N/A N/A N/A ax spines values N/A N/A N/A N/A spine set_visible False N/A figimage N/A N/A img scale dpi N/A 1 None N/A N/A Return figure and axes with figure tightly surrounding image.

    Unlike pyplot.figimage, this actually plots onto an axes object, which
    fills the figure. Plotting the image onto an axes allows for subsequent
    overlays.

    Parameters
    ----------
    img : array
        image to plot
    scale : float
        If scale is 1, the figure and axes have the same dimension as the
        image.  Smaller values of `scale` will shrink the figure.
    dpi : int
        Dots per inch for figure. If None, use the default rcParam.
     N/A dpi N/A N/A dpi None dpi N/A N/A plt rcParams N/A figure.dpi N/A N/A h w N/A img shape N/A figsize N/A N/A N/A N/A np array N/A w h dtype float dpi scale N/A N/A fig ax N/A N/A plt subplots figsize figsize dpi dpi N/A N/A N/A fig subplots_adjust left 0 bottom 0 right 1 top 1 N/A N/A N/A ax set_axis_off N/A N/A N/A ax imshow img N/A N/A N/A ax autoscale enable False N/A N/A fig ax N/A clip_zero_formatter N/A N/A tick_val tick_pos N/A N/A N/A Tick formatter that returns empty string for zero values. N/A N/A tick_val 0 N/A N/A N/A tick_val N/A cross_spines N/A N/A zero_cross remove_zeros ax N/A False True None N/A N/A Remove top and right spines from an axes.

    Parameters
    ----------
    zero_cross : bool
        If True, the spines are set so that they cross at zero.
    remove_zeros : bool
        If True **and `zero_cross` is True**, remove zero ticks.
    ax : :class:`~matplotlib.axes.Axes`
        Axes to modify. If None, use current axes.
     N/A ax N/A N/A ax None ax N/A N/A plt gca N/A N/A N/A N/A N/A ax spines N/A right set_visible False N/A N/A N/A N/A N/A ax spines N/A top set_visible False N/A N/A N/A N/A ax xaxis set_ticks_position bottom N/A N/A N/A N/A ax yaxis set_ticks_position left N/A zero_cross N/A N/A N/A N/A N/A N/A ax spines N/A bottom set_position zero N/A N/A N/A N/A N/A ax spines N/A left set_position zero N/A remove_zeros N/A N/A formatter N/A N/A mticker FuncFormatter clip_zero_formatter N/A N/A N/A N/A ax xaxis set_major_formatter formatter N/A N/A N/A N/A ax yaxis set_major_formatter formatter N/A ax N/A pad_limits N/A N/A pad_frac ax N/A 0.05 None N/A N/A Pad data limits to nicely accomodate data.

    Padding is useful when you use markers, which often get cropped by tight
    data limits since only their center-positions are used to calculate limits.

    Parameters
    ----------
    pad_frac : float
        Padding is calculated as a fraction of the data span. `pad_frac = 0`
        is equivalent to calling plt.axis('tight').
    ax : :class:`~matplotlib.axes.Axes`
        Axes to modify. If None, use current axes.
     N/A ax N/A N/A ax None ax N/A N/A plt gca N/A N/A N/A ax set_xlim N/A _calc_limits N/A ax xaxis pad_frac N/A N/A N/A ax set_ylim N/A _calc_limits N/A ax yaxis pad_frac N/A _calc_limits N/A N/A axis frac N/A N/A N/A limits N/A N/A axis get_data_interval N/A N/A N/A N/A axis get_scale log N/A N/A log_limits N/A N/A np log10 limits N/A mag N/A N/A N/A np diff log_limits N/A 0 N/A pad N/A N/A np array N/A N/A N/A mag frac N/A mag frac N/A N/A 10 N/A log_limits pad N/A N/A N/A N/A N/A axis get_scale linear N/A N/A mag N/A N/A N/A np diff limits N/A 0 N/A pad N/A N/A np array N/A N/A N/A mag frac N/A mag frac N/A N/A limits pad N/A N/A N/A __name__ __main__ N/A yutils.mpl.core demo_plot N/A N/A f ax N/A N/A plt subplots N/A N/A demo_plot ax N/A N/A cross_spines ax N/A N/A N/A ax set_title cross_spines N/A N/A f ax N/A N/A plt subplots N/A N/A demo_plot ax N/A N/A pad_limits ax ax N/A N/A N/A ax set_title floating_yaxis with pad_limits N/A N/A N/A plt show