'Plot depending on dataframe

I load a single file into three dataframes:

data = pd.read_csv(file, sep='\t', names=['Time', '60Ni', '61Ni', '62Ni', '63Cu', '64Ni', '65Cu', '66Zn'], skiprows=6, nrows=50, index_col=False, dtype=float)
data2 = pd.read_csv(file, sep='\t', names=['Time', '60Ni', '61Ni', '62Ni', '63Cu', '64Ni', '65Cu', '66Zn'], skiprows=56, nrows=50, index_col=False, dtype=float)
data3 = pd.read_csv(file, sep='\t', names=['Time', '60Ni', '61Ni', '62Ni', '63Cu', '64Ni', '65Cu', '66Zn'], skiprows=106, nrows=50, index_col=False, dtype=float)

I would like to plot them depending on the used dataframe:

For data:

fig.savefig(outfile_plt + basename + "_1_filtered.png", dpi=150)

For data2:

fig.savefig(outfile_plt + basename + "_2_filtered.png", dpi=150)

For data3:

fig.savefig(outfile_plt + basename + "_3_filtered.png", dpi=150)

How can I do that?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source