我在pgf/tikz中创建图表.当我在我的文档中使用它们时,它们被缩放,其中几个在minipage/subfig环境中.发生这种情况时,字体大小会随着图形缩放而变得非常小或不可读.我已经完成了手册,但迄今为止我试图控制它并不成功.
有没有办法直接设置字体大小?有什么选择?
下面给出的一个aswer显示了如何使用\ tikzstyle字体选项指定tikzpicture环境中的字体大小.
现在我正在使用:
\beginppgfgraphicnamed{graph}
\input{graph.tex}
\endpgfgraphicnamed
Run Code Online (Sandbox Code Playgroud)
tikzpicture环境用于输入文件.有没有在我使用的设置中指定字体大小?这可能是问题吗?graph.tex文件是通过另一个程序自动生成的.
除了为单个图形设置字体大小之外,最理想的是有一个参数来全局设置所有tikz图形的字体大小?我想这个问题是在缩放minipage或subfig.
非常感谢,
松鸦
我正在使用pgf/tikz图形,我想知道在minipage/subfig环境中使用它们时如何控制图形中字体大小的缩放?
有没有办法手动设置pgf/tikz图形或乳胶中的永久字体大小,以便使字体大小不变为缩放?
理想情况下,我希望能够为每个图形或所有图形或子图形/小型化环境手动指定字体大小?
以下是建议使用的示例.谢谢您的帮助.
\begin{figure}[h]
\centering
\subfloat[Graph 1]{
\begin{minipage}[h]{0.7\linewidth}
\centering\beginpgfgraphicnamed{graph1}
\input{graph1.tex}
\endpgfgraphicnamed
\label{fig:graph1}
\end{minipage}}
\hspace{5pt}
\subfloat[Graph 2]{
\begin{minipage}[h]{0.5\linewidth}
\centering\beginpgfgraphicnamed{graph2}
\input{graph2.tex}
\endpgfgraphicnamed
\label{fig:graph2}
\end{minipage}}
\subfloat[Graph 3]{
\begin{minipage}[h]{0.5\linewidth}
\centering\beginpgfgraphicnamed{graph3}
\input{graph3.tex}
\endpgfgraphicnamed
\label{fig:graph3}
\end{minipage}}
\caption{Three Graphs}
\end{figure}
Run Code Online (Sandbox Code Playgroud)
也许在minipage/subfig之外我可以使用其他帖子的建议来使字体变大,因为图形是用页面宽度缩放的?在这个例子中我想要的是它自己的第一个图像,更大,然后是两个小图像,并排在一个图中,并排在一起.
我在你的个人资料Mica中看到了一些R标签.图形是使用tikzDevice生成的,并在我的latex文档中提取.
所以我在没有tikzpicture环境的情况下生成文件,以便我可以自己手动设置选项.当我使用时,\begin{tikzpicture} \end{tikzpicture}我得到错误"尺寸太大我不能使用大于19英尺的尺寸.继续,我将使用我能够的最大值." .我需要用\beginpgfgraphicnamed{} .. \endpgfgraphicnamed{}它才能让它工作?不确定影响究竟是什么.
以下是自动生成文件的示例:
\begin{scope}
\path[clip] ( 0.00, 0.00) rectangle (794.97,614.29);
\definecolor[named]{drawColor}{rgb}{0.13,0.76,0.43}
\definecolor[named]{fillColor}{rgb}{0.31,0.94,0.66}
\end{scope}
\begin{scope}
\path[clip] ( 0.00, 0.00) rectangle (794.97,614.29);
\definecolor[named]{drawColor}{rgb}{0.13,0.76,0.43}
\definecolor[named]{fillColor}{rgb}{0.31,0.94,0.66}
\end{scope}
Run Code Online (Sandbox Code Playgroud)
........
\begin{scope}
\path[clip] ( 0.00, 0.00) rectangle (794.97,614.29);
\definecolor[named]{drawColor}{rgb}{0.13,0.76,0.43}
\definecolor[named]{fillColor}{rgb}{0.31,0.94,0.66}
\definecolor[named]{fillColor}{rgb}{1.00,1.00,1.00}
\draw[fill=fillColor,draw opacity=0.00,] …Run Code Online (Sandbox Code Playgroud)