Python Forum
[Tkinter] updating tkinter chart from within function
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] updating tkinter chart from within function
#2
How many dots do you expect to see on the scatter plot when this program is run? 2 or 102?
import matplotlib.pyplot as plt
from random import randint

x = [5, 10]
y = [5, 10]
plt.scatter(x, y)
for i in range(100):
    x.append(randint(0,100))
    y.append(randint(0,100))
plt.show()
Reply


Messages In This Thread
RE: updating tkinter chart from within function - by deanhystad - Jul-02-2020, 03:33 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Using Tkinter inside function not working Ensaimadeta 5 5,107 Dec-03-2023, 01:50 PM
Last Post: deanhystad
  [Tkinter] Updating tkinter text BliepMonster 5 6,116 Nov-28-2022, 01:42 AM
Last Post: deanhystad
  [Tkinter] Updating Tkinter label using multiprocessing Agusms 6 3,188 Aug-15-2022, 07:10 PM
Last Post: menator01
  Tkinter won't run my simple function AthertonH 6 3,922 May-03-2022, 02:33 PM
Last Post: deanhystad
  [Tkinter] tkinter best way to pass parameters to a function Pedroski55 3 4,906 Nov-17-2021, 03:21 AM
Last Post: deanhystad
  Creating a function interrupt button tkinter AnotherSam 2 5,579 Oct-07-2021, 02:56 PM
Last Post: AnotherSam
  [Tkinter] Have tkinter button toggle on and off a continuously running function AnotherSam 5 5,056 Oct-01-2021, 05:00 PM
Last Post: Yoriz
  tkinter get function finndude 2 2,983 Mar-02-2021, 03:53 PM
Last Post: finndude
  tkinter -- after() method and return from function -- (python 3) Nick_tkinter 12 7,498 Feb-20-2021, 10:26 PM
Last Post: Nick_tkinter
  function in new window (tkinter) Dale22 7 5,202 Nov-24-2020, 11:28 PM
Last Post: Dale22

Forum Jump:

User Panel Messages

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