Python Forum
Getting error "TypeError: 'int' object is not callable" while using ylim
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting error "TypeError: 'int' object is not callable" while using ylim
#1
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()
Reply


Messages In This Thread
Getting error "TypeError: 'int' object is not callable" while using ylim - by maxprime_bhisham - Apr-23-2020, 09:44 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  TypeError: cannot pickle ‘_asyncio.Future’ object Abdul_Rafey 1 454 Mar-07-2024, 03:40 PM
Last Post: deanhystad
  error in class: TypeError: 'str' object is not callable akbarza 2 567 Dec-30-2023, 04:35 PM
Last Post: deanhystad
Bug TypeError: 'NoneType' object is not subscriptable TheLummen 4 773 Nov-27-2023, 11:34 AM
Last Post: TheLummen
  TypeError: 'NoneType' object is not callable akbarza 4 1,083 Aug-24-2023, 05:14 PM
Last Post: snippsat
  [NEW CODER] TypeError: Object is not callable iwantyoursec 5 1,447 Aug-23-2023, 06:21 PM
Last Post: deanhystad
  Need help with 'str' object is not callable error. Fare 4 885 Jul-23-2023, 02:25 PM
Last Post: Fare
  boto3 - Error - TypeError: string indices must be integers kpatil 7 1,317 Jun-09-2023, 06:56 PM
Last Post: kpatil
  TypeError: 'float' object is not callable #1 isdito2001 1 1,108 Jan-21-2023, 12:43 AM
Last Post: Yoriz
  TypeError: a bytes-like object is required ZeroX 13 4,305 Jan-07-2023, 07:02 PM
Last Post: deanhystad
  'SSHClient' object is not callable 3lnyn0 1 1,204 Dec-15-2022, 03:40 AM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020