質問するログイン新規登録

質問編集履歴

3

使用環境の追加

2020/08/07 06:21

投稿

s1920897
s1920897

スコア14

title CHANGED
File without changes
body CHANGED
@@ -4,6 +4,10 @@
4
4
  プログラミング初心者故によくわからず、検討違いかもしれませんが
5
5
  pythonやanacondaを再インストールしましたが同じようなエラーが出力されました。
6
6
 
7
+ OS:win10
8
+ python3.8
9
+ anadonda3を利用しています。
10
+
7
11
  以下がエラー文になります。
8
12
  Traceback (most recent call last):
9
13
  File "C:\Users\kstkh\anaconda3\lib\site-packages\matplotlib\animation.py", line 230, in saving

2

エラー文の訂正

2020/08/07 06:21

投稿

s1920897
s1920897

スコア14

title CHANGED
File without changes
body CHANGED
@@ -5,7 +5,7 @@
5
5
  pythonやanacondaを再インストールしましたが同じようなエラーが出力されました。
6
6
 
7
7
  以下がエラー文になります。
8
- > Traceback (most recent call last):
8
+ Traceback (most recent call last):
9
9
  File "C:\Users\kstkh\anaconda3\lib\site-packages\matplotlib\animation.py", line 230, in saving
10
10
  yield self
11
11
  File "C:\Users\kstkh\anaconda3\lib\site-packages\matplotlib\animation.py", line 1152, in save

1

エラー文の訂正

2020/08/07 06:17

投稿

s1920897
s1920897

スコア14

title CHANGED
File without changes
body CHANGED
@@ -5,8 +5,32 @@
5
5
  pythonやanacondaを再インストールしましたが同じようなエラーが出力されました。
6
6
 
7
7
  以下がエラー文になります。
8
- > IndexError: list index out of range
8
+ > Traceback (most recent call last):
9
+ File "C:\Users\kstkh\anaconda3\lib\site-packages\matplotlib\animation.py", line 230, in saving
10
+ yield self
11
+ File "C:\Users\kstkh\anaconda3\lib\site-packages\matplotlib\animation.py", line 1152, in save
12
+ writer.grab_frame(**savefig_kwargs)
13
+ File "C:\Users\kstkh\anaconda3\lib\site-packages\matplotlib\animation.py", line 568, in grab_frame
14
+ self._frames.append(Image.frombuffer(
15
+ File "C:\Users\kstkh\anaconda3\lib\site-packages\PIL\Image.py", line 2706, in frombuffer
16
+ im = im._new(core.map_buffer(data, size, decoder_name, 0, args))
17
+ ValueError: buffer is not large enough
9
18
 
19
+ During handling of the above exception, another exception occurred:
20
+
21
+ Traceback (most recent call last):
22
+ File "try2.py", line 116, in <module>
23
+ ani.save('時刻歴温度分布,T=60,D=1,dt=0.1,dx=2.gif', writer='pillow')
24
+ File "C:\Users\kstkh\anaconda3\lib\site-packages\matplotlib\animation.py", line 1152, in save
25
+ writer.grab_frame(**savefig_kwargs)
26
+ File "C:\Users\kstkh\anaconda3\lib\contextlib.py", line 131, in __exit__
27
+ self.gen.throw(type, value, traceback)
28
+ File "C:\Users\kstkh\anaconda3\lib\site-packages\matplotlib\animation.py", line 232, in saving
29
+ self.finish()
30
+ File "C:\Users\kstkh\anaconda3\lib\site-packages\matplotlib\animation.py", line 574, in finish
31
+ self._frames[0].save(
32
+ IndexError: list index out of range
33
+
10
34
  以下がコードになります。
11
35
  何卒よろしくお願い致します。
12
36