Cairatex终端产生位图输出
我正在使用IEETRAN文档样式在Overleaf中使用Gnuplottex编写文档。 当我绘制填充结果时,结果似乎并不是矢量图形格式。因此,放大时被像素化。 另外,一些怪异的白色盒子正在藏在标签的部分周围。
我使用cairopdf终端和GNUPLOT 5.4在机器上局部开发了图。 第一张图片显示了使用cairatex终端的乳胶的PDF。 第二张图片显示了使用CairopDF终端进行的测试PDF中非常深的缩放,一切看起来都不错。
set style fill transparent solid 0.35 noborder
plot for[i=1:num_states] normal(x, word(means, i), word(std, i)) notitle with filledcurves y1=0
到底是怎么回事?我读到epslatex在透明度方面有一些麻烦,这也是如此吗?
I am using gnuplottex in Overleaf to write a document using the IEEETran document style.
When I plot filledcurves the result kind of bad as it seems not to be in a vector graphics format; thus getting pixelated upon zooming into the figure.
Additionaly, some weird white boxes are floating around hideing parts of a label.
I developed the figure locally on my machine using the cairopdf terminal and Gnuplot 5.4.
The first picture show the resulting pdf of of Latex using the cairolatex terminal.
The second picture shows a very deep zoom in the test pdf done with the cairopdf terminal where everything looks good.
set style fill transparent solid 0.35 noborder
plot for[i=1:num_states] normal(x, word(means, i), word(std, i)) notitle with filledcurves y1=0
What is going on? I read that epslatex has some trouble with transparency is that here also the case?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
PostScript语言本身(包括 *.EPS)不支持透明度或alpha-channel颜色。因此,没有 *.ps或 *.ps文件可以正确描绘透明/半透明区域。充其量可以通过使用一些中间表示,该中间表示能够处理Alpha通道,然后将最终的混合颜色转换为Postscript,但这意味着以后在观看或打印过程中进行的色彩平衡调整将无法保留混合区域中的正确平衡。
PDF应该没有问题。我不知道是什么原因造成了部分白色矩形。也许如果您显示一个创建图形的更完整的脚本?
编辑:
使用
gnuplot中的cairatex pdf
设置终端应解决像素化和透明度问题。如果不需要的白色矩形持续存在,您可以创建一个新问题。The PostScript language itself (including *.eps) does not support transparency or alpha-channel colors. So no *.ps or *.eps file can portray transparent/translucent areas properly. At best it can be approximated by using some intermediate representation that does handle alpha channels and then translating the final resulting blended colors to PostScript, but that means later color balance adjustments made during viewing or printing will not preserve the correct balance in the blended areas.
There should be no problem with pdf. I don't know what caused that partial white rectangle. Maybe if you show a more complete script that created the figure?
Edited:
Using
set terminal cairolatex pdf
in gnuplot should solve the pixelation and transparency issues. You can create a new question if the unwanted white rectangles persist.