Create graph with plt.pcolormesh

Asked

Viewed 11 times

0

I am trying to create a graph to visualize current speeds. I have put the following code:

plt.figure(figsize=(14,2))
plt.pcolormesh(tempo1,niveis,np.transpose(v1u))
plt.title('v1')
plt.plot(tempo1,media1,'r')
plt.show() 

Where time data 1, media1 and v1u are a list, each has a column containing 360 rows.

and the following error was generated:

ValueError: not enough values to unpack (expected 2, got 1)

Can someone help me what I’m doing wrong

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.