von basti-fantasti-48 » Do 17. Nov 2022, 09:33
Hallo,
ich habe ein tikz. Ich möchte dass bei der x-Achse bei 100% Schluss ist und nicht mehr 110% stehen.
\documentclass[
12pt, % Schriftgröße
paper=a4,
DIV=13, % Seitenlayout (Satzspiegel)
parskip=half, % Abstand zwischen Absätzen
% twoside, % Doppelseitig
openright, % neues Kapitel rechts
% cleardoublepage,
bibtotoc,
headsepline,
headings,
% draft,
]{scrreprt}
\usepackage{amsmath,amssymb}
\usepackage{graphicx}
\graphicspath{{bilder/}}
\usepackage{svg}
\usepackage{pgfkeys}
\usepackage{tikz}
\usepackage{pgfplots}\pgfplotsset{compat=newest}
\usetikzlibrary{arrows.meta,positioning,calc}
\pgfplotsset{select coords between index/.style 2 args={
x filter/.code={
\ifnum\coordindex<#1\def\pgfmathresult{}\fi
\ifnum\coordindex>#2\def\pgfmathresult{}\fi
}
}}
\usepackage{pdfpages}
\begin{document}
\begin{figure}[ht]
\begin{tikzpicture}[baseline]%
\pgfplotstableread{%
x y
0 3.5
5 3.7
10 3.72
15 3.74
20 3.75
25 3.76
30 3.77
35 3.78
40 3.8
45 3.85
50 3.88
55 3.9
60 3.95
70 4
75 4.05
80 4.08
85 4.1
90 4.15
95 4.2
100 4.25
}\mytable%
\begin{axis}[%
xlabel={$x$},%
ylabel={$y$},
xmin=0,
width=\linewidth, %Bildbreite
height=5cm %Bildhöhe%
]
\addplot+ [ smooth,
no marks,
line join=round,] table [x=x,y=y] {\mytable};
\end{axis}
\end{tikzpicture}
\caption{hallo}
\end{figure}
\end{document}
Hallo,
ich habe ein tikz. Ich möchte dass bei der x-Achse bei 100% Schluss ist und nicht mehr 110% stehen.
[code]
\documentclass[
12pt, % Schriftgröße
paper=a4,
DIV=13, % Seitenlayout (Satzspiegel)
parskip=half, % Abstand zwischen Absätzen
% twoside, % Doppelseitig
openright, % neues Kapitel rechts
% cleardoublepage,
bibtotoc,
headsepline,
headings,
% draft,
]{scrreprt}
\usepackage{amsmath,amssymb}
\usepackage{graphicx}
\graphicspath{{bilder/}}
\usepackage{svg}
\usepackage{pgfkeys}
\usepackage{tikz}
\usepackage{pgfplots}\pgfplotsset{compat=newest}
\usetikzlibrary{arrows.meta,positioning,calc}
\pgfplotsset{select coords between index/.style 2 args={
x filter/.code={
\ifnum\coordindex<#1\def\pgfmathresult{}\fi
\ifnum\coordindex>#2\def\pgfmathresult{}\fi
}
}}
\usepackage{pdfpages}
\begin{document}
\begin{figure}[ht]
\begin{tikzpicture}[baseline]%
\pgfplotstableread{%
x y
0 3.5
5 3.7
10 3.72
15 3.74
20 3.75
25 3.76
30 3.77
35 3.78
40 3.8
45 3.85
50 3.88
55 3.9
60 3.95
70 4
75 4.05
80 4.08
85 4.1
90 4.15
95 4.2
100 4.25
}\mytable%
\begin{axis}[%
xlabel={$x$},%
ylabel={$y$},
xmin=0,
width=\linewidth, %Bildbreite
height=5cm %Bildhöhe%
]
\addplot+ [ smooth,
no marks,
line join=round,] table [x=x,y=y] {\mytable};
\end{axis}
\end{tikzpicture}
\caption{hallo}
\end{figure}
\end{document}
[/code]