質問編集履歴
1
エラーメッセージの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,9 +12,147 @@
|
|
12
12
|
|
13
13
|
### 発生している問題・エラーメッセージ
|
14
14
|
|
15
|
+
TypeError Traceback (most recent call last)
|
16
|
+
|
15
|
-
|
17
|
+
/tmp/ipykernel_36/997856417.py in <module>
|
18
|
+
|
19
|
+
1 x=data["日付"]
|
20
|
+
|
21
|
+
2 y=data["金額"]
|
22
|
+
|
23
|
+
----> 3 plt.plot(x,y,"o")
|
24
|
+
|
25
|
+
4 plt.show()
|
16
26
|
|
17
27
|
|
28
|
+
|
29
|
+
/opt/conda/lib/python3.7/site-packages/matplotlib/pyplot.py in plot(scalex, scaley, data, *args, **kwargs)
|
30
|
+
|
31
|
+
3019 return gca().plot(
|
32
|
+
|
33
|
+
3020 *args, scalex=scalex, scaley=scaley,
|
34
|
+
|
35
|
+
-> 3021 **({"data": data} if data is not None else {}), **kwargs)
|
36
|
+
|
37
|
+
3022
|
38
|
+
|
39
|
+
3023
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
/opt/conda/lib/python3.7/site-packages/matplotlib/axes/_axes.py in plot(self, scalex, scaley, data, *args, **kwargs)
|
44
|
+
|
45
|
+
1603 """
|
46
|
+
|
47
|
+
1604 kwargs = cbook.normalize_kwargs(kwargs, mlines.Line2D)
|
48
|
+
|
49
|
+
-> 1605 lines = [*self._get_lines(*args, data=data, **kwargs)]
|
50
|
+
|
51
|
+
1606 for line in lines:
|
52
|
+
|
53
|
+
1607 self.add_line(line)
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
/opt/conda/lib/python3.7/site-packages/matplotlib/axes/_base.py in __call__(self, data, *args, **kwargs)
|
58
|
+
|
59
|
+
313 this += args[0],
|
60
|
+
|
61
|
+
314 args = args[1:]
|
62
|
+
|
63
|
+
--> 315 yield from self._plot_args(this, kwargs)
|
64
|
+
|
65
|
+
316
|
66
|
+
|
67
|
+
317 def get_next_color(self):
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
/opt/conda/lib/python3.7/site-packages/matplotlib/axes/_base.py in _plot_args(self, tup, kwargs, return_kwargs)
|
72
|
+
|
73
|
+
496 self.axes.xaxis.update_units(x)
|
74
|
+
|
75
|
+
497 if self.axes.yaxis is not None:
|
76
|
+
|
77
|
+
--> 498 self.axes.yaxis.update_units(y)
|
78
|
+
|
79
|
+
499
|
80
|
+
|
81
|
+
500 if x.shape[0] != y.shape[0]:
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
/opt/conda/lib/python3.7/site-packages/matplotlib/axis.py in update_units(self, data)
|
86
|
+
|
87
|
+
1446 neednew = self.converter != converter
|
88
|
+
|
89
|
+
1447 self.converter = converter
|
90
|
+
|
91
|
+
-> 1448 default = self.converter.default_units(data, self)
|
92
|
+
|
93
|
+
1449 if default is not None and self.units is None:
|
94
|
+
|
95
|
+
1450 self.set_units(default)
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
/opt/conda/lib/python3.7/site-packages/matplotlib/category.py in default_units(data, axis)
|
100
|
+
|
101
|
+
107 # the conversion call stack is default_units -> axis_info -> convert
|
102
|
+
|
103
|
+
108 if axis.units is None:
|
104
|
+
|
105
|
+
--> 109 axis.set_units(UnitData(data))
|
106
|
+
|
107
|
+
110 else:
|
108
|
+
|
109
|
+
111 axis.units.update(data)
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
/opt/conda/lib/python3.7/site-packages/matplotlib/category.py in __init__(self, data)
|
114
|
+
|
115
|
+
183 self._counter = itertools.count()
|
116
|
+
|
117
|
+
184 if data is not None:
|
118
|
+
|
119
|
+
--> 185 self.update(data)
|
120
|
+
|
121
|
+
186
|
122
|
+
|
123
|
+
187 @staticmethod
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
/opt/conda/lib/python3.7/site-packages/matplotlib/category.py in update(self, data)
|
128
|
+
|
129
|
+
218 for val in OrderedDict.fromkeys(data):
|
130
|
+
|
131
|
+
219 # OrderedDict just iterates over unique values in data.
|
132
|
+
|
133
|
+
--> 220 _api.check_isinstance((str, bytes), value=val)
|
134
|
+
|
135
|
+
221 if convertible:
|
136
|
+
|
137
|
+
222 # this will only be called so long as convertible is True.
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
/opt/conda/lib/python3.7/site-packages/matplotlib/_api/__init__.py in check_isinstance(_types, **kwargs)
|
142
|
+
|
143
|
+
95 ", ".join(names[:-1]) + " or " + names[-1]
|
144
|
+
|
145
|
+
96 if len(names) > 1 else names[0],
|
146
|
+
|
147
|
+
---> 97 type_name(type(v))))
|
148
|
+
|
149
|
+
98
|
150
|
+
|
151
|
+
99
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
TypeError: 'value' must be an instance of str or bytes, not a float
|
18
156
|
|
19
157
|
|
20
158
|
|