質問編集履歴
3
pythonをタブに追加
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
2
pythonであることを明記
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
|
12
12
|
|
13
|
-
```
|
13
|
+
```python
|
14
14
|
|
15
15
|
|
16
16
|
|
@@ -109,9 +109,3 @@
|
|
109
109
|
[ax.auto_scale_xyz([0,1],[0,1],[0,1])を入れるとよい](https://stackoverflow.com/questions/10326371/setting-aspect-ratio-of-3d-plot/19026019)とあったので試してみたのですが変化ありませんでした。
|
110
110
|
|
111
111
|
解決方法のわかる方いらっしゃったら教えてください。
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
```
|
1
コードの不要な場所を削除
test
CHANGED
File without changes
|
test
CHANGED
@@ -42,15 +42,9 @@
|
|
42
42
|
|
43
43
|
|
44
44
|
|
45
|
-
# matplotlib.use('Agg')
|
46
|
-
|
47
|
-
|
48
|
-
|
49
45
|
fig = plt.figure()
|
50
46
|
|
51
47
|
ax = fig.add_subplot(111,projection="3d")
|
52
|
-
|
53
|
-
mu=4*math.pi*1e-7
|
54
48
|
|
55
49
|
|
56
50
|
|
@@ -82,7 +76,7 @@
|
|
82
76
|
|
83
77
|
for j in range(100):
|
84
78
|
|
85
|
-
z[i][j] = x[i][j]*x[i][j]-y[i][j]*y[i][j]
|
79
|
+
z[i][j] = x[i][j]*x[i][j]-y[i][j]*y[i][j]
|
86
80
|
|
87
81
|
ma=max(z[i][j],ma)
|
88
82
|
|
@@ -102,9 +96,7 @@
|
|
102
96
|
|
103
97
|
plot()
|
104
98
|
|
105
|
-
#ax.set_xlabel(" ")
|
106
99
|
|
107
|
-
#ax.set_ylabel(" ")
|
108
100
|
|
109
101
|
fig.savefig("out",transparent=True)
|
110
102
|
|