質問編集履歴

3

情報の追記

2020/09/09 06:43

投稿

qkazooing
qkazooing

スコア22

test CHANGED
File without changes
test CHANGED
@@ -59,3 +59,11 @@
59
59
  とでてきました。
60
60
 
61
61
  結局のところVScode上ではmatplotlibは反応しているけどexe化すると反応しなくなる?状態になります。
62
+
63
+
64
+
65
+ **追記2**
66
+
67
+ matplotlibのバージョンを落としたら、pyinstallerでexe化はできました。
68
+
69
+ ただJenkinsではできない状況が続いています。

2

コードの修正

2020/09/09 06:43

投稿

qkazooing
qkazooing

スコア22

test CHANGED
File without changes
test CHANGED
@@ -42,6 +42,10 @@
42
42
 
43
43
  ax.set_ylabel('gene expression [log(TPM)]')
44
44
 
45
+ plt.title("test")
46
+
47
+ fig.autofmt_xdate(rotation=45)
48
+
45
49
  fig.show()
46
50
 
47
51
  ```

1

情報の追記

2020/09/09 01:35

投稿

qkazooing
qkazooing

スコア22

test CHANGED
File without changes
test CHANGED
@@ -7,3 +7,51 @@
7
7
 
8
8
 
9
9
  どなたかご教授お願い致します。
10
+
11
+
12
+
13
+ **追記**
14
+
15
+ 簡単にコードを記載します
16
+
17
+ ```ここに言語を入力
18
+
19
+ import matplotlib.pyplot as plt
20
+
21
+ import numpy as np
22
+
23
+
24
+
25
+ x = np.array(['ERS1', 'ERS2', 'ETR1', 'ETR2', 'EIN4'])
26
+
27
+ y = np.array([12.0, 3.1, 11.8, 2.9, 6.2])
28
+
29
+
30
+
31
+ x_position = np.arange(len(x))
32
+
33
+
34
+
35
+ fig = plt.figure()
36
+
37
+ ax = fig.add_subplot(1, 1, 1)
38
+
39
+ ax.bar(x_position, y, tick_label=x)
40
+
41
+ ax.set_xlabel('gene')
42
+
43
+ ax.set_ylabel('gene expression [log(TPM)]')
44
+
45
+ fig.show()
46
+
47
+ ```
48
+
49
+ コマンドプロンプトからpyinstaller ***.py --onefileで作成しようとしましたがこちらもダメでした。
50
+
51
+ exe化してからのエラーとして、
52
+
53
+ MatplotlibDeprecationWarning: Matplotlib installs where the data is not in the mpl-data subdirectory of the package are deprecated since 3.2 and support for them will be removed two minor releases later.
54
+
55
+ とでてきました。
56
+
57
+ 結局のところVScode上ではmatplotlibは反応しているけどexe化すると反応しなくなる?状態になります。