显示XTICKS作为日志量表的整数
我正在尝试使用我已经拥有的数据来复制以下散点图。该图绘制了f_n vs n vs n在日志刻度(黑色点)上,但是x轴和y轴代表实际数字,而不是10的幂。蓝线是最佳拟合的线,可以忽略。基于这个问题的答案,我试图制定x-axis使用 tick-formating api ,但我无法获得适当的格式以显示出适当的格式以显示出的诸如诸如的任意数字(2,5,20,50)。此外,我应该如何选择性地选择y轴的壁虱,我尝试了 LogLocator
但也无法工作。
欢迎任何帮助或建议。先感谢您!
I'm trying to replicate the following scatterplot with the data I already have. The figure plots F_n vs n on a log-log scale (black dots) but the x-axis and y-axis represent the actual numbers and not the powers of 10. The blue line is the line of best fit and can be ignored. Based on the answers to this question, I have tried to formate the x-axis using ScalarFormatter
and the tick-formating API but I am unable to get the proper formatting to display arbitrary numbers like (2,5,20,50). Furthermore, how should one selectively pick the ticks for the y-axis, I tried the LogLocator
but it did not work either.
Any help or suggestions are welcome. Thank you in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
实现这一目标的一种方法是使用
XTICKS
和yticks
。这是一个示例:One way to achieve that is to play with
xticks
andyticks
. Here is an example: