微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

IguanaTex 和 TikZ

如何解决IguanaTex 和 TikZ

我正在尝试使用 IguanaTeX 将一些 tikzpicture 导入 PowerPoint。

这是我正在试验的代码

\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=1.7}

\begin{document}

\begin{tikzpicture}[scale=0.50,local bounding Box=picture,baseline=(picture.south),declare function={binom(\k,\n,\p)=\n!/(\k!*(\n-\k)!)*\p^\k*(1-\p)^(\n-\k);}
]

\begin{axis}[
    samples at={0,...,40},yticklabel style={
        /pgf/number format/fixed,/pgf/number format/fixed zerofill,/pgf/number format/precision=1
    },ybar=0pt,bar width=1
]
\addplot [fill=cyan,fill opacity=0.5] {binom(x,40,0.2)}; \addlegendentry{$p=0.2$}
\addplot [fill=orange,0.5)}; \addlegendentry{$p=0.5$}
\end{axis}
\end{tikzpicture}

\end{document}

请注意,要使其正确显示,您需要将 IguanaTeX 中的认 DVI 更改为 pdflatex。

首先,图形出现但在底部出现了一些不必要的空白。因此,生成的图形对于幻灯片来说太大了。我怎样才能删除它?

其次,如何将轴等更改为以白色显示,而不是认的黑色,以便我可以在黑色背景的 PowerPoint 幻灯片上看到图表?

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。