首页 文章
  • 277 votes
     answers
     views

    使用python中的matplotlib绘制对数轴

    我想使用matplotlib绘制一个具有一个对数轴的图形 . 我've been reading the docs, but can' t弄清楚了语法 . 我知道它可能在情节参数中像 'scale=linear' 一样简单,但我似乎无法正确对待 示例程序: import pylab import matplotlib.pyplot as plt a = [pow(10, i) for i in r...
  • 81 votes
     answers
     views

    'log'和'symlog'之间有什么区别?

    在matplotlib中,我可以使用pyplot.xscale()或Axes.set_xscale()设置轴缩放 . 这两个函数都接受三种不同的比例: 'linear' | 'log' | 'symlog' . 'log' 和 'symlog' 之间有什么区别?在我做过的简单测试中,它们看起来完全相同 . 我知道文档说它们接受不同的参数,但我仍然不明白它们之间的区别 . 有人可以解释一下...
  • -1 votes
     answers
     views

    大O符号的计算机科学对数? [关闭]

    我一直都有这个问题,并且从来没有能够将这两个概念联系起来,所以我正在寻找一些帮助来理解计算机科学中的对数关于Big-O表示法和算法时间复杂度 . 我将对数理解为能够回答问题的数学概念,"what number do I need to raise this base to exponentially to get X?" . 例如,log2(16)告诉我们需要将2增加到4才能得...
  • 1 votes
     answers
     views

    Highcharts 3.0气泡图中的对数Y轴

    我'm trying to change yAxis type of a Highcharts 3.0ß bubble chart to logarithmic, but - when it displays something - it displays a single series, and a single bubble... here'是一个简单的例子,基于"official&...
  • 1 votes
     answers
     views

    大十进制整数中的位数

    给定一个大十进制整数,我如何计算bit-length,即其二进制表示的位数? Example: bitlength("590295810358705712624") == 70 算术表达式为: bitlength = ⌊log₂(n)⌋ + 1 对于小整数,此表达式可以转换为标准库调用 . 但是具有任意数字位数的大整数呢? 我们可以从一个或两个前导数字计算 log₂ 的非常...
  • 13 votes
     answers
     views

    matplotlib中累积分布函数的对数图

    我有一个包含记录事件的文件 . 每个条目都有时间和延迟 . 我有兴趣绘制延迟的累积分布函数 . 我对尾部延迟最感兴趣所以我希望绘图具有对数y轴 . 我对以下百分位数的延迟感兴趣:第90,99,99.9,99.99和99.999 . 到目前为止,这是我的代码生成一个常规的CDF图: # retrieve event times and latencies from the file times, l...

热门问题