gnuplot 上的 tikz 终端

发布于 2025-01-14 08:26:58 字数 773 浏览 4 评论 0原文

我正在尝试在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

淡忘如思 2025-01-21 08:26:58

问题已解决。有必要在 gnuplot 中创建一个样式文件并在 LaTeX 文档中使用它。

The issue is resolved. It was necessary to create a style file in gnuplot and use it in LaTeX document.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文