在LaTex中导出绘制的图表


0

我绘制在图中的乳胶,然后我需要将其导出为.jpg.eps文件,这里是我的.tex代码?

\documentclass{article}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot coordinates {
( 338.1, 266.45 )
( 169.1, 143.43 )
( 84.5, 64.80 )
( 42.3, 34.19 )
( 21.1, 9.47 )
 };
\end{axis}
\end{tikzpicture}
\end{document}

我怎样才能做到这一点?

Answers:


0

使用TikZ externalize库。并在序言中包括pgfplots

\usetikzlibrary{external}
\tikzexternalize

现在你将获得一个图像,.pdf并可以转换为你想要的格式。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.