Deep Learning Vector Plotting ‘tuple’ object is not callable

Hi All,

Greetings!

I am pursuing the Deep learning course and

while plotting vectors the below code throws the error

TypeError: ‘tuple’ object is not callable.

can you please help

```

def plot_vectors(vecs):

for vec in vecs:

    plt.quiver(vec\[0\],vec\[1\],vec\[2\],vec\[3\],scale\_units='xy',angles='xy',scale=1,color='g')

plt.xlim(-10,10)

plt.ylim(-10,10)

plt.show()

plot_vectors([(0,0,3,4)])

```

Thanks,

MunishRaghavan

I ran your code (copy-paste), seems to be working fine for me. May be you can check tab/spaces etc, if the error persist, share a screenshot of code+error.

Hi Sanjay,

Thank you for the reply.

I ran the code in a new tab in the google colab and it worked fine.

Not sure what the root cause is.

Thanks,

MunishRaghavan