Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Matplotlib animation problem
#1
Hello everyone!
Here's my problem: I'm working on graph path finding and I want to animate this search on matplotlib.
My code basically is so:

def anim():
	plt.ion()
	plt.plot(path)
	while condition:
		p=newpath(path)
		plt.plot(path)
but I would want to erase my last path before I show the new one. I don't find any solution using interactive mode. Help would be appreciated Big Grin Thank you a lot!
Quote
#2
UP please
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Matplotlib problem ift38375 0 179 Jul-02-2019, 02:55 PM
Last Post: ift38375
  Animation using matplotlib query JohnDoe 0 236 May-09-2019, 08:07 PM
Last Post: JohnDoe
  Matplotlib 3d voxels animation jasiekkm 0 294 Apr-07-2019, 07:44 AM
Last Post: jasiekkm
  Python Beacon positioning and animation with Raspberry pi matplotlib joefreedy 1 459 Feb-14-2019, 08:47 PM
Last Post: joefreedy
  Problem installing numpy and matplotlib achondrite 1 507 Jan-16-2019, 11:43 PM
Last Post: snippsat
  problem in plotting intraday results using matplotlib mr_byte31 0 722 Aug-20-2018, 11:32 AM
Last Post: mr_byte31

Forum Jump:


Users browsing this thread: 1 Guest(s)