【问题标题】:What are 'matplotlib' "figure points" and how are they determined?什么是“matplotlib”“图形点”,它们是如何确定的?
【发布时间】:2013-12-23 23:00:56
【问题描述】:

虽然这可能是一个基本问题,但我很难找到答案(搜索词没有帮助,因为它们会产生很多错误点击):什么是“matplotlib”“数字点”以及如何他们决定了?

例如,如果我有类似的东西

annotate("A note", (x_val, y_val), textcoords='offset points', xytext=(5,-5))

注解的坐标将是xval+f(5)yval+f(-5),我试图弄清楚f(.) 的样子以及它所依赖的图形或轴的参数。

【问题讨论】:

    标签: python matplotlib position figure axes


    【解决方案1】:

    一个点只是 typographical point 或 1/72 英寸。就像素而言,它将是 points/72 * display dpifigure points 指的是与图形本身边界的偏移量,而您在注释示例中显示的 offset points 指的是相对于所提供的 x/y 坐标的偏移量。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-02-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-15
      • 2016-10-24
      • 2022-08-13
      • 2011-08-08
      相关资源
      最近更新 更多