Using def for pyplot - all data plotted, not what is passed to def : I created a basic def function to use with pyplot. 

I have a csv(UTF8) file has the time and free memory statistics logged every 3 seconds for different file systems.

Here is my file structure:

    time_seconds,filesystem_1_freemem,filesystem_2_freemem,filesystem_3_freemem

I am trying to plot freemem data different filesystem data for comparison. 

I have the following code:

    def draw_graph (input_file, x_axis, y_axis, label_color, label_name, graph_title):
        fig = plt.figure()
        ax = input_file.plot(kind="line")
        plt.title(graph_title)
        ax.set_xlabel("Time (seconds)")
        ax.set_ylabel("freemem")
        plt.ticklabel_format(style="plain", axis="y")
        plt.show

When I call this function with the following arguments, it draws *all* the data (filesystem_1_freemem, filesystem_2_freemem, filesystem_3_freemem), *not* the argument that I am passing it (filesystem_1_freemem):

    draw_graph(df, "time_seconds", "filesystem_1_freemem" , "Red", "filesystem_1_freemem","Filesystem 1 - Freemem Values")

Obviously, there is something I am missing, so that it is plotting whatever is in the CSV file. How can I correct this?

After that, as an improvement, how can I revise the code so that it plots one (or multiple) argument(s) that it is given? (assume a for loop for the arguments?)

Thank you very much for your kind assistance!
