Skip to content

Commit 5f9cea2

Browse files
Add and improve documentation
1 parent cab2c17 commit 5f9cea2

File tree

3 files changed

+187
-24
lines changed

3 files changed

+187
-24
lines changed

pgfplots-test.tikz

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
\begin{tikzpicture}
2-
\begin{axis}
2+
\begin{axis}[scale only axis]
33
\addplot {x^2 - x + 4};
44
\end{axis}
55
\end{tikzpicture}

test-tikzscale.tex

+7
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
\usepackage{tikz}
66
\usepackage{pgfplots}
77
\usepackage{currfile}
8+
\usepackage{lmodern}
89

910
\begin{document}
1011
\section*{Tests}
@@ -33,6 +34,12 @@
3334
\includegraphics{pgfplots-test}%
3435
\item Use pgfplots with given width and height\\%
3536
\includegraphics[width=\linewidth,height=0.3\linewidth]{pgfplots-test}%
37+
\item Use \texttt{input} with pgfplots and given width and height\\%
38+
\makeatletter%
39+
\gdef\tikzscale@width{\linewidth}%
40+
\gdef\tikzscale@height{0.3\linewidth}%
41+
\makeatother%
42+
\input{pgfplots-test.tikz}%
3643
\end{itemize}
3744
\end{document}
3845

0 commit comments

Comments
 (0)