From: Kevin P. <kp...@me...> - 2015-08-14 17:37:38
|
That does help. But then that means I need to reformat my data somehow? I want it so that each “voice” is plotted separately as a unique color and my legend would be Voice 1 ----- Voice 2 ----- Voice 3 ----- Voice 4 ----- Just as if I had the temperature for four different days plotted. confused > On Aug 15, 2015, at 2:14 AM, Benjamin Root <ben...@ou...> wrote: > > All "cbook.get_sample_data(..., asfileobj=False)" does is returns the full filename path to a given file stored in our package for demonstration purposes. You can ignore that entirely. Just say "fname = 'foobar.csv'" and have your own csv file called "foobar.csv" sitting in your current working directory. "plotfile()" works by reading in a CSV file and plotting the columns given. So, the CSV file will need in its first line those column headers. The first one given will be for the x-axis, while the rest are for the individual lines. > > Does that help? > Ben Root > |