Module Expr Str Import alias identifier Import alias identifier FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str Num ListLoad Str Str Str Str Str Str Str NameLoad NameLoad NameLoad Str Str body Expr Str Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Str Dict Str Str Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore Call NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body For TupleStore NameStore NameStore Call NameLoad NameLoad body If CompareIn NameLoad NameLoad body Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index NameLoad BinOpAdd SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad BinOpMult SubscriptLoad NameLoad Index NameLoad NameLoad AugAssignAdd SubscriptStore NameLoad Index NameLoad Num orelse Assign SubscriptStore NameLoad Index NameLoad Num For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num NameLoad keyword SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num keyword SubscriptLoad NameLoad Index NameLoad keyword Call NameLoad keyword Str keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call AttributeLoad NameLoad attr ListComp BinOpAdd NameLoad BinOpDiv BinOpMult SubscriptLoad NameLoad Index NameLoad NameLoad Num comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr ListComp Call NameLoad NameLoad comprehension NameStore NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad ListComp BinOpAdd Str Call NameLoad BinOpAdd NameLoad Num comprehension TupleStore NameStore NameStore Call NameLoad NameLoad keyword Num If NameLoad body Expr Call AttributeLoad NameLoad attr Str If NameLoad body Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str ListLoad Str Str Str Str Str Str Str NameLoad NameLoad NameLoad Str Str Num body Expr Str Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Str Dict Str Str Num Num Expr Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num keyword SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num keyword Str keyword Str keyword BinOpAdd Str Call NameLoad BinOpAdd NameLoad Num keyword SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr Str If NameLoad body Expr Call AttributeLoad NameLoad attr Str If NameLoad body Expr Call AttributeLoad NameLoad attr keyword Num Assign NameStore Num Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad BinOpSub NameLoad NameLoad BinOpAdd NameLoad NameLoad BinOpSub NameLoad NameLoad BinOpAdd NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Str For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Str Assign NameStore BinOpAdd BinOpAdd BinOpAdd NameLoad Str SubscriptLoad NameLoad Index NameLoad Str For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore BinOpAdd NameLoad Str Assign NameStore IfExp CompareLt NameLoad BinOpSub Call NameLoad NameLoad Num Str Str If BoolOpAnd NameLoad CompareEq NameLoad Call NameLoad NameLoad CompareEq NameLoad NameLoad body Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd NameLoad Str Call NameLoad NameLoad Str Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Str NameLoad orelse If BoolOpAnd NameLoad CompareEq NameLoad Call NameLoad ListComp SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad CompareEq NameLoad NameLoad body Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd NameLoad Str Call NameLoad NameLoad Str Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Str NameLoad orelse Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd NameLoad Str Call NameLoad NameLoad Str Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Str NameLoad Assign NameStore BinOpAdd NameLoad Str Assign NameStore Str For NameStore NameLoad body Assign NameStore BinOpAdd BinOpAdd BinOpAdd NameLoad Str NameLoad Str Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str NameLoad Str Str NameLoad Str NameLoad Str Return NameLoad decorator_list
N/A N/A 
Created on April 7th, 2016

@author: Numair Mansur (numair.mansur@gmail.com)
 N/A seaborn sns N/A matplotlib.pyplot plt bar_plot N/A N/A x curves title width colors log_scale_y log_scale_x legend x_title y_title N/A 0.1 N/A b g r c m y k False False True X Label Y Label N/A N/A 
    Plots Mean and Standard Deviation with a Bar Graph

    Example
    -------    
        x = np.array([[1, 3, 4, 5], [1, 3, 4, 5], [1, 3, 4, 5], [1, 2, 3, 4]])
        curve1 = np.array([[1, 3, 5, 7], [0.2, 0.4, 0.7, 0.4]])
        curve2 = np.array([[3, 2, 6, 8], [0.1, 1, 0.7, 0.3]])
        curve3 = np.array([[2, 4, 6, 3], [0.4, 0.4, 0.1, 0.3]])
        curve4 = np.array([[4, 3, 2, 1], [0.3, 0.4, 0.1, 0.2]])
        curves = [curve1, curve2, curve3, curve4]

        plot = bar_plot(x, curves, legend = True)
        plot.show()

    Parameters
    -----------
    x : numpy array
        For each curve, contains the x-coordinates. Each entry
        corresponds to one curve.
    curves : list of numpy arrays
        A list of 2D numpy arrays of mean and standard deviation. First entry in the
        numpy array corresponds to the mean and the second entry corresponds to the
        error. Each entry in the curves list corresponds to one curve.
    title : string
        Title of the graph
    width : float
    	Width of the bars.
    colors : string array
        Color of the curve. Each entry corresponds to one curve
    log_scale_y : Boolean
        If set to true, changes the y-axis to log scale.
    log_scale_x: Boolean
        If set to true, change the x-axis to log scale.
    legend : Boolean
        If set to true, displays the legend.
    x_title : String
    	X label string 
    y_title : String
    	Y label string

   	Retrun
   	----------
   	plt : object

     N/A N/A N/A sns set style white color_codes True font_scale 1.2 N/A N/A N/A sns set_style ticks N/A xtick.major.size ytick.major.size 3 2 N/A x N/A N/A x astype float N/A N/A fig ax N/A N/A plt subplots N/A bars N/A N/A x_location_map N/A dict N/A N/A i j N/A enumerate x N/A N/A N/A l k N/A enumerate j N/A N/A N/A k x_location_map N/A N/A N/A N/A x N/A i N/A l N/A N/A N/A x N/A i N/A l N/A N/A x_location_map N/A k width N/A N/A x_location_map N/A k 1 N/A N/A N/A x_location_map N/A k 1 N/A N/A i j N/A enumerate x N/A N/A bar N/A N/A ax bar j N/A N/A curves N/A i N/A 0 width yerr N/A N/A curves N/A i N/A 1 color N/A colors N/A i error_kw N/A dict ecolor #525252 capsize 3 capthick 1.5 N/A N/A N/A bars append bar N/A N/A N/A ax set_ylabel y_title fontsize 14 N/A N/A N/A ax set_xlabel x_title fontsize 14 N/A N/A N/A ax set_title title fontsize 15 N/A N/A N/A ax set_xticks N/A N/A i N/A N/A N/A x_location_map N/A i width 2 N/A i x_location_map N/A N/A N/A ax set_xticklabels N/A N/A int i N/A i x_location_map N/A legend N/A N/A N/A N/A ax legend bars N/A N/A Curve  N/A str N/A i 1 N/A N/A i j N/A enumerate bars loc 0 N/A log_scale_x N/A N/A N/A N/A plt xscale log N/A log_scale_y N/A N/A N/A N/A plt yscale log N/A plt N/A plot_mean_and_std N/A N/A x curves title colors log_scale_y log_scale_x legend x_title y_title std_scale N/A N/A b g r c m y k False False True X Label Y Label 1 N/A N/A 
    Plots Mean and Standard Deviation with an error bar graph

    Example
    -------    

        x = np.array([[1, 3, 4, 5], [1, 3, 4, 5], [1, 3, 4, 5], [1, 2, 3, 4]])
        curve1 = np.array([[1, 3, 5, 7], [0.2, 0.4, 0.7, 0.4]])
        curve2 = np.array([[3, 2, 6, 8], [0.1, 1, 0.7, 0.3]])
        curve3 = np.array([[2, 4, 6, 3], [0.4, 0.4, 0.1, 0.3]])
        curve4 = np.array([[4, 3, 2, 1], [0.3, 0.4, 0.1, 0.2]])
        curves = [curve1, curve2, curve3, curve4]

        plot = point_plot(x, curves)
        plot.show()

    Parameters
    ----------
    x : numpy array
        For each curve, contains the x-coordinates. Each entry
        corresponds to one curve.
    curves : list of numpy arrays
        A list of 2D numpy arrays of mean and standard deviation. First entry in the
        numpy array corresponds to the mean and the second entry corresponds to the
        error. Each entry in the curves list corresponds to one curve.
    title : string
        Title of the graph
    colors : string array
        Color of the curve. Each entry corresponds to one curve
    log_scale_y : Boolean
        If set to true, changes the y-axis to log scale.
    log_scale_x: Boolean
        If set to true, change the x-axis to log scale.
    legend : Boolean
        If set to true, displays the legend.
    x_title : String
        X label string 
    y_title : String
        Y label string

    Retrun
    ----------
    plt : object

     N/A N/A N/A sns set style white color_codes True font_scale 1.2 N/A N/A N/A sns set_style ticks N/A xtick.major.size ytick.major.size 3 2 N/A N/A N/A plt figure N/A N/A i j N/A enumerate x N/A N/A N/A N/A plt errorbar j N/A N/A curves N/A i N/A 0 yerr N/A N/A curves N/A i N/A 1 fmt - marker o label N/A curve N/A str N/A i 1 color N/A colors N/A i N/A N/A N/A plt ylabel y_title fontsize 14 N/A N/A N/A plt xlabel x_title fontsize 13 N/A N/A N/A plt title title N/A N/A N/A plt grid N/A log_scale_x N/A N/A N/A N/A plt xscale log N/A log_scale_y N/A N/A N/A N/A plt yscale log N/A legend N/A N/A N/A N/A plt legend loc 0 N/A plot_margin 0.25 N/A N/A x0 x1 y0 y1 N/A N/A plt axis N/A N/A N/A plt axis N/A N/A x0 plot_margin N/A x1 plot_margin N/A y0 plot_margin N/A y1 plot_margin N/A plt N/A latex_matrix_string N/A N/A mean error title row_labels col_labels best_bold_row best_bold_column N/A True False N/A N/A 
    Latex Matrix String Generator.
    
    Example
    -------
        mean = [[1, 6, 5, 7], [12, 4, 6, 13], [9, 8, 7, 10]]
        error = [[2, 6, 1, 5], [4, 8, 2, 3], [1, 4, 8, 2]]


        print(latex_matrix_string(mean, error, "Testing Testing", [
                         "row1", "row2", "row3"], [
                         "col1", "col2", "col3", "col4"]))

    Parameters
    ----------
    mean : array of float array
            An array of float arrays containing mean values
    error : array of float array
            An array of float array containing error values
    title : string
            Title string of the table
    row_labels : string array
            Array of strings for row names
    col_labels : string arrays
            Array of strings for column names
    best_bold_row : boolean
            If set to true, the minimum mean entry in each row will
            be set to bold.
    best_bold_column :
            If set to true, the minimum mean entry in each column will
            be set to bold.
     N/A matrix_string \hline
 N/A N/A i row N/A enumerate mean N/A N/A column_string { |c N/A matrix_string N/A N/A N/A matrix_string \textbf{ N/A row_labels N/A i }&  N/A N/A j cell N/A enumerate row N/A N/A column_string N/A column_string |c N/A ending_string N/A N/A j N/A N/A len row 1  &   \\ \hline
 N/A N/A best_bold_row N/A cell N/A min row N/A best_bold_column False N/A N/A matrix_string N/A N/A N/A N/A N/A N/A matrix_string $\mathbf{ N/A str cell  \pm  N/A str N/A N/A error N/A i N/A j }$ ending_string N/A N/A N/A best_bold_column N/A cell N/A min N/A N/A a N/A j N/A a mean N/A best_bold_row False N/A N/A matrix_string N/A N/A N/A N/A N/A N/A matrix_string $\mathbf{ N/A str cell  \pm  N/A str N/A N/A error N/A i N/A j }$ ending_string N/A N/A matrix_string N/A N/A N/A N/A N/A N/A matrix_string $ N/A str cell  \pm  N/A str N/A N/A error N/A i N/A j $ ending_string N/A column_string N/A column_string | } N/A column_label N/A column col_labels N/A N/A column_label N/A N/A N/A column_label &\textbf{ column } N/A latex_string1 N/A N/A N/A N/A N/A N/A N/A N/A N/A \begin{table}[ht]
\centering
\begin{tabular}
 column_string 
\hline
 column_label \\ [0.1ex] matrix_string \end{tabular}
\\[-1.5ex]
\caption{ title }
\end{table} N/A latex_string1 N/A