![]() |
Getting error "TypeError: 'int' object is not callable" while using ylim - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Getting error "TypeError: 'int' object is not callable" while using ylim (/thread-26180.html) |
Getting error "TypeError: 'int' object is not callable" while using ylim - maxprime_bhisham - Apr-23-2020 Hi I am getting error "TypeError: 'int' object is not callable" while using ylim function in matplotlib. I want to set limit of x and y axis. my code is given below. I am new to Pyhton. Please help on the matter. code - import numpy as np import matplotlib.pyplot as plt y_v1=[21,32,14,29,23,26,122] d2=np.arange(1,8) plt.plot(d2, y_v1, label='Visits',marker='o', linestyle='dotted') plt.xlim(1,6) plt.ylim(1,40) plt.show() RE: Getting error "TypeError: 'int' object is not callable" while using ylim - pyzyx3qwerty - Apr-23-2020 Please use proper code tags while posting a thread RE: Getting error "TypeError: 'int' object is not callable" while using ylim - DataAnalyticsIreland - Apr-26-2020 I'm getting this <Figure size 640x480 with 1 Axes> when I run the code, are you still having the same problem? |