gnuplot 上的 tikz 终端
我正在尝试在 LaTeX 文档 (nic.tex) 中使用 gnuplot 构建图表,
\documentclass[border=5mm]{standalone}
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{xcolor}
\usepackage{tikz}
\usepackage[miktex]{gnuplottex}
\begin{document}
\begin{gnuplot}[terminal = tikz]
plot sin(x)
\end{gnuplot}
\end{document}
但出现错误
Opening gnuplot stream ./nic-gnuplottex-fig1.gnuplot (nic-gnuplottex-fig1.tex
! Package pgfkeys Error: I do not know the key '/tikz/gnuplot' and I am going t
o ignore it. Perhaps you misspelled it.
See the pgfkeys package documentation for explanation.
Type H <return> for immediate help.
...
l.1 \begin{tikzpicture}[gnuplot]
我使用 Windows 10、MiKTeX 2.9、gnuplot 版本 5.4
I'm trying to build a graph with gnuplot in LaTeX document (nic.tex)
\documentclass[border=5mm]{standalone}
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{xcolor}
\usepackage{tikz}
\usepackage[miktex]{gnuplottex}
\begin{document}
\begin{gnuplot}[terminal = tikz]
plot sin(x)
\end{gnuplot}
\end{document}
but get an error
Opening gnuplot stream ./nic-gnuplottex-fig1.gnuplot (nic-gnuplottex-fig1.tex
! Package pgfkeys Error: I do not know the key '/tikz/gnuplot' and I am going t
o ignore it. Perhaps you misspelled it.
See the pgfkeys package documentation for explanation.
Type H <return> for immediate help.
...
l.1 \begin{tikzpicture}[gnuplot]
I use Windows 10, MiKTeX 2.9, gnuplot version 5.4
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题已解决。有必要在 gnuplot 中创建一个样式文件并在 LaTeX 文档中使用它。
The issue is resolved. It was necessary to create a style file in gnuplot and use it in LaTeX document.