情节+朱莉娅+乳胶 [英] Plotly + Julia + Latex
本文介绍了情节+朱莉娅+乳胶的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在Plotly后端使用乳胶.看下面的例子:即使x轴和y轴的对数刻度格式也不正确!你知道该怎么做吗?
I would like to use latex with the Plotly backend. Look in this example: Even the x-axis and y-axis log scales are not formatted properly! Do you know how to do that?
最好
v.
using Plots, LaTeXStrings
plotlyjs()
x = 10 .^ LinRange(-5,5,10)
plot(x, 1 ./ x, yaxis=:log, xaxis=:log, m = 2, xlabel="x", label="1/x",ylabel="f(x)")
plot!(x, 10 ./ x, m=2,label="10/x")
plot!(x, 1 ./ (x.^2), m=2, label=L"f(x)=$1/x^2$")
savefig("./test.png")
推荐答案
似乎可以与gr()
后端一起使用,因此我希望plotlyjs()
后端不支持LaTeXString.
Seems to work with the gr()
backend, so I expect LaTeXString is not supported by the plotlyjs()
backend.
这篇关于情节+朱莉娅+乳胶的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文