在 LaTeX 中使用 epsfig 或 Graphicx 模糊颜色
我的代码很简单,导入 eps 图像是我之前对其他 matlab 生成的内容做过的事情,但由于某种原因,当我使用 epsfig 或 Graphicx 将其导入到我的热图中时,我的热图中最终出现了模糊的颜色。文档。下图中,右边是我编译为 DVI 并在 Yap 中打开文档时显示的内容,左边是我在 GSView 中查看 eps 时显示的内容。
替代文本 http://img85.imageshack.us/img85/1694/epsproblem.png< /a>
这是我的代码。本例使用的是graphicx,但思路与epsfig相同。
\begin{图}
\居中
\includegraphics[scale=0.5]{images/ngram3_model_raw.eps}
\caption{比较时的困惑 针对 HUB 测试集}
\end{图}
是否有一些我忘记的选项?
My code is simple enough, and importing eps images is something I've done before with other matlab-generated content, but for one reason or another I end up with blurred colors in my heatmap when I use epsfig or graphicx to import it into my document. In the picture below, the right is what shows up if I compile to DVI and open up the document in Yap, and the left is if I simply view the eps in GSView.
alt text http://img85.imageshack.us/img85/1694/epsproblem.png
Here is my code. This example is using graphicx, but the idea is the same with epsfig.
\begin{figure}
\centering
\includegraphics[scale=0.5]{images/ngram3_model_raw.eps}
\caption{The perplexity when compared
against the HUB test set}\end{figure}
Is there perhaps some option I am forgetting?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我在使用 DVI 时遇到了同样的问题,但如果我编译为 pdf,图片就很好
I had the same problem with DVI, but if I compiled to pdf the pictures were fine
你看到的是双线性插值。这是由观众完成的。也许Matlab将绘图内容定义为像素图(我猜你使用imagesc?)。
解决方案并不简单。使用不同的处理链(正如 WtFudgeE 指出的那样)可能会有所帮助,这将导致数据最终采用不再插值的格式。您还可以使用不进行插值的不同查看器,并且我假设打印机也不会进行插值。这又取决于您打印的应用程序。
抱歉,我没有为您提供解决方案;至少你现在可以在谷歌中搜索一些新词了。 ;)
What you see is bilinear interpolation. It is done by the viewer. Probably Matlab defines the plot contents as a pixmap (I guess you use imagesc?).
The solution is not straightforward. It may help to use a different processing chain (as WtFudgE pointed out) that will lead the data end up in a format where it is not interpolated anymore. You may also use a different viewer that does not interpolate and I would assume that a printer would also not interpolate. This can again be dependent of the application you print from.
Sorry that I don't have a solution for you; at least you now have some new words to search for in Google. ;)