SourceForge logo
SourceForge logo
Menu

matplotlib-checkins — Commit notification. DO NOT POST to this list, just subscribe to it.

You can subscribe to this list here.

2007 Jan
Feb
Mar
Apr
May
Jun
Jul
(115)
Aug
(120)
Sep
(137)
Oct
(170)
Nov
(461)
Dec
(263)
2008 Jan
(120)
Feb
(74)
Mar
(35)
Apr
(74)
May
(245)
Jun
(356)
Jul
(240)
Aug
(115)
Sep
(78)
Oct
(225)
Nov
(98)
Dec
(271)
2009 Jan
(132)
Feb
(84)
Mar
(74)
Apr
(56)
May
(90)
Jun
(79)
Jul
(83)
Aug
(296)
Sep
(214)
Oct
(76)
Nov
(82)
Dec
(66)
2010 Jan
(46)
Feb
(58)
Mar
(51)
Apr
(77)
May
(58)
Jun
(126)
Jul
(128)
Aug
(64)
Sep
(50)
Oct
(44)
Nov
(48)
Dec
(54)
2011 Jan
(68)
Feb
(52)
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
(1)
2018 Jan
Feb
Mar
Apr
May
(1)
Jun
Jul
Aug
Sep
Oct
Nov
Dec
S M T W T F S


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
(1)
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31


Showing 1 results of 1

From: aishwarya s. <ais...@gm...> - 2018年05月16日 14:21:28
Dear all,
I wanted to reciprocate the effect of :
 import matplotlib.pyplot as plt}
 plt.imshow(image1)
 plt.pause(0.7)
 plt.imshow(image2)
in a code making use of Tkinter and FigureCanvastkAgg;
Which lookes something like this :
f = Figure(figsize=(6,6))
 a = f.add_subplot(111)
 image = np.array(np.random.random((1024,1024))*100,dtype=int)
 a.imshow(image)
 canvas = FigureCanvasTkAgg(f, self)
 canvas.show()
 canvas.get_tk_widget().pack(side=tk.BOTTOM, fill=tk.BOTH, expand=True)`
If I want to plot another image2 in the same graph. How could I do it?
I tried another method but was not able to obtain the desired output:
> ​
>
 self.i = 0
 def Plot():
 print self.i
 self.f = Figure(figsize=(6,6))
 self.a = self.f.add_subplot(111)
 image = np.array(np.random.random((1024,1024))*100,dtype=int)
>
> if self.i <20:
 self.i = self.i+1
 self.a.imshow(image)
 self.canvas = FigureCanvasTkAgg(self.f, self)
 self.canvas.show()
 self.parent.after(500,Plot)
 Plot()
>
>
 self.canvas.get_tk_widget().pack(side=tk.BOTTOM, fill=tk.BOTH,
> expand=True)
 toolbar = NavigationToolbar2TkAgg(self.canvas, self)
 toolbar.update()
 self.canvas._tkcanvas.pack(side=tk.TOP, fill=tk.BOTH, expand=True)
​
>
>
Awaiting your reply.
-- 
Regards,
Aishwarya Selvaraj

Showing 1 results of 1

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /