【问题标题】:My LaTeX strings look bold when zooming out in the printed figure缩小打印图形时,我的 LaTeX 字符串看起来很粗
【发布时间】:2022-10-16 23:02:35
【问题描述】:

我正在使用 Plotly 为一篇研究文章生成我的数据。我需要以 EPS 或 PDF 格式导出我的图形,如果我以 PNG 格式导出,我会遇到一个不会出现的问题。

导出图形时,LaTeX 字符串变粗。 我不知道如何解决这个问题。你知道有什么命令可以消除这种粗体效果吗?

这是编写标签的python代码,例如

fig.update_yaxes(row=1, col=1, title=r"$\boldsymbol{\tau} \; \text{(N)}$")
for i in range(2, rows + 1):
    fig.update_yaxes(row=i, col=1, title=r"$\boldsymbol{\tau} \; \text{(Nm)}$")
for i in range(1, cols + 1):
    fig.update_xaxes(row=rows, col=i, title=r"$\text{Time (s)}$")

这就是我导出图形的方式:

fig.write_image(out_path_file + "/q_integrated.png")
fig.write_image(out_path_file + "/q_integrated.pdf")
fig.write_html(out_path_file + "/q_integrated.html", include_mathjax="cdn")
fig.write_image(out_path_file + "/q_integrated.eps")

【问题讨论】:

标签: python plotly latex plotly-python export-to-pdf


【解决方案1】:

这里同样的问题。我已经设法匹配字体类型和大小,但不能在数学模式下工作。有什么解决办法吗?

【讨论】:

  • 这篇文章看起来不像是试图回答这个问题。这里的每一篇文章都应该是明确的尝试回答这个问题;如果您有批评或需要澄清问题或其他答案,您可以在其下方直接post a comment(如这个)。请删除此答案并创建评论或新问题。见:Ask questions, get answers, no distractions
猜你喜欢
  • 1970-01-01
  • 2020-11-15
  • 2013-06-24
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-07-15
  • 2017-11-08
  • 2022-01-25
相关资源
最近更新 更多