图表无处不在

图表无处不在

我在我的文档中包含了一些图表,但是这些图表到处都是,2 页之后,或者它们只是出现在末尾,或者它们出现在其下面的 2 个小节中。

你能帮助我吗

这是我的代码:

谢谢

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usepackage{SIunits}
\usepackage{pgfplots}
\usepackage{xcolor}

\begin{document}


\begin{figure}[h]
\centering
\caption{Chute de la tension première expérience}
\label{fig:Chute Tension 1}
\begin{tikzpicture}
\begin{axis}[%
no markers,
xmin=0, xmax=200,
ymin=12.3, ymax=12.7,
ylabel = $U$,
xlabel = {$Temps (secondes)$},
]
\draw[<->,thin] (axis cs:60, 12.621) -- node [right]{$\Delta U$} (axis cs:60, 12.380);
\draw[dashed] (axis cs:60, 12.621) -- (axis cs:20, 12.621);
\addplot [color=blue] table [x=Temps, y=U1, col sep=comma] {test2.csv};
\end{axis}
\end{tikzpicture}
\end{figure}
\begin{figure}
\centering
\caption{Augmentation de l'intensité première expérience}
\label{fig:Augmentation Intensite 1}
\begin{tikzpicture}
\begin{axis}[%
no markers,
xmin=0, xmax=200,
ymin=0, ymax=7,
ylabel = $I$,
xlabel = {$Temps (secondes)$},
]
\addplot [color=red] table [x=Temps, y=I1, col sep=comma] {test2.csv};
\draw[<->,thin] (axis cs:40, 1.1308) -- node [right]{$\Delta I$} (axis cs:40, 6.0160); 
\draw[dashed] (axis cs:25, 1.1308) -- (axis cs:40, 1.1308);
\end{axis}
\end{tikzpicture}
\end{figure}
\end{document}

答案1

我找到了解决方案,我[h]在代码中使用了该选项,[H] 现在所有问题都解决了。谢谢 Jules

相关内容