Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- import matplotlib.pyplot as plt
- import numpy as np
- data = pd.read_csv("test_peripheral_dat.csv",encoding = 'utf8')
- #import csv file
- time=np.cumsum(data['Time step (secs)'])
- #this produces expected output (real time)
- #now I need to plot time versus each column
- #and store in diff files
- counter=2
- for i in range(len(data.columns)-3):
- #column=data.columns[counter]
- #print(column)
- plotted_data=plt.scatter(x=time, y=data.columns[counter])
- fig = plotted_data.get_figure()
- fig.savefig('{}.png'.format(data.columns[counter]))
- counter+=1
- ValueError: x and y must be the same size
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement