gpt4 book ai didi

logging - Mathematica 中对数图刻度线的指数形式

转载 作者:行者123 更新时间:2023-12-03 23:26:56 24 4
gpt4 key购买 nike

为了学习更多 Mathematica,我试图重现此 log (log) plot 上的刻度线:
enter image description here
这是我能得到的最接近的:

LogLogPlot[Log[x!], {x, 1, 10^5}, PlotRange -> {{0, 10^5}, {10^-1, 10^6}}, Ticks -> {Table[10^i, {i, 0, 5}], Table[10^i, {i, -1, 6}]}]
enter image description here
问题
如何为适当的 n 值制作始终为 10^n 形式的刻度线?

最佳答案

Superscript ,没有任何内在含义的通用排版形式,是您的 friend 。

LogLogPlot[Log[x!], {x, 1, 10^5}, 
PlotRange -> {{0, 10^5}, {10^-1, 10^6}},
Ticks -> {
Table[{10^i, Superscript[10, i]}, {i, 0, 5}],
Table[{10^i, Superscript[10, i]}, {i, -1, 6}]
}
]

关于logging - Mathematica 中对数图刻度线的指数形式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7860400/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com