回答編集履歴
1
Update
test
CHANGED
@@ -19,3 +19,43 @@
|
|
19
19
|
```
|
20
20
|
|
21
21
|
![plot](c41d5cd4d011673b02d84f9f4366ee05.png)
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
**追記**
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
bsdfan 氏の回答にある「scilimitsの上限と下限に同じ数字をセットすれば、指数をその数字に固定できます」を読んで `_set_order_of_magnitude` の中身を確認してみると、、、
|
30
|
+
|
31
|
+
> **fixed scaling when lower power limit = upper <> 0.**
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
[matplotlib/ticker.py](https://github.com/matplotlib/matplotlib/blob/main/lib/matplotlib/ticker.py#L753)
|
36
|
+
|
37
|
+
```python
|
38
|
+
|
39
|
+
def _set_order_of_magnitude(self):
|
40
|
+
|
41
|
+
# if scientific notation is to be used, find the appropriate exponent
|
42
|
+
|
43
|
+
# if using an numerical offset, find the exponent after applying the
|
44
|
+
|
45
|
+
# offset. When lower power limit = upper <> 0, use provided exponent.
|
46
|
+
|
47
|
+
if not self._scientific:
|
48
|
+
|
49
|
+
self.orderOfMagnitude = 0
|
50
|
+
|
51
|
+
return
|
52
|
+
|
53
|
+
if self._powerlimits[0] == self._powerlimits[1] != 0:
|
54
|
+
|
55
|
+
# fixed scaling when lower power limit = upper <> 0.
|
56
|
+
|
57
|
+
self.orderOfMagnitude = self._powerlimits[0]
|
58
|
+
|
59
|
+
return
|
60
|
+
|
61
|
+
```
|