Koordinatensystem verbessern

Neue Frage »

nemo09876 Auf diesen Beitrag antworten »
Koordinatensystem verbessern
Meine Frage:
Hallo,

ich würde gerne wissen, wie man eine 0 beim Ursprung hinzufügt
und darüber eine Überschrift ("Das Koordinatensystem") macht und unten vom Koordinatensystem etwas einen Abstand macht, um da noch zB. ein Copyright zu machen.

Für Hilfe bin ich sehr dankbar und bedanke mit entsprechend für kommende Hilfe im Vorraus.

Für den Zwischenstand der Ausgabe siehe Anhang...

Hier noch der Code:

\documentclass[margin=5mm]{standalone}
\usepackage[utf8]{inputenc}
\usepackage{xcolor}
\usepackage{tikz}
\usepackage{pgffor}

\begin{document}

\begin{tikzpicture}%[-5:0.1, samples=500]
\coordinate[label=right:X] (X) at (5.5,0);
\coordinate[label=right:Y] (Y) at (0,2);
\draw[step=0.5cm,gray,very thin] (-1.4,-4.4) grid (5.9, 2.4);
%\draw[->, line width=1pt, red] (0,0) -- (3,1);
%\draw[-, line width=1pt, blue] (0,0) -- (1,4) -- (2,4);
\draw[<->, line width=1pt, black] (X) -- (0,0) -- (Y);
\draw[-, line width=1pt, black] (-1,0) -- (0,0) -- (0,-4);
\foreach \i in {1,-1,-2,...,-3}{
\draw[line width=1pt] (-0.2, \i) -- (0, \i);
\coordinate[label=left:\i] (\i) at (-0.2,\i);
}
\foreach \i in {5,...,1}{
\draw[line width=1pt] (\i, -0.2) -- (\i, 0);
\coordinate[label=\i] (\i) at (\i,-0.7);
}
\draw [line width=1.3pt,smooth,color=black!65!green,samples=100,domain=-0.5:5] plot({\x},{4*\x*e^(-\x)});
\node [color=black!65!green] at (1.6,1.64) {f};
\end{tikzpicture}

\end{document}

Meine Ideen:
leider entsprechend keine, zumindest keine konstruktiven...
Ich bitte trotzdem um Hilfe, ich wüste sonst keine andere Möglichkeit.
moody_ds Auf diesen Beitrag antworten »

code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
\documentclass[margin=5mm]{standalone}
\usepackage[utf8]{inputenc}
\usepackage{xcolor}
\usepackage{tikz}
\usepackage{pgffor}

\begin{document}

\begin{tikzpicture}%[-5:0.1, samples=500]

\coordinate[label=right:X] (X) at (5.5,0);
\coordinate[label=right:Y] (Y) at (0,2);
\draw[step=0.5cm,gray,very thin] (-1.4,-4.4) grid (5.9, 2.4);
%\draw[->, line width=1pt, red] (0,0) -- (3,1);
%\draw[-, line width=1pt, blue] (0,0) -- (1,4) -- (2,4);
\draw[<->, line width=1pt, black] (X) -- (0,0) -- (Y);
\draw[-, line width=1pt, black] (-1,0) -- (0,0) -- (0,-4);
\foreach \i in {1,-1,-2,...,-3}{
\draw[line width=1pt] (-0.2, \i) -- (0, \i);
\coordinate[label=left:\i] (\i) at (-0.2,\i);
}
\foreach \i in {5,...,1}{
\draw[line width=1pt] (\i, -0.2) -- (\i, 0);
\coordinate[label=\i] (\i) at (\i,-0.7);
}
% 0 zufügen, Position evtl. anpassen
\coordinate[label=0] (0) at (0.12,-0.7);
\draw [line width=1.3pt,smooth,color=black!65!green,samples=100,domain=-0.5:5] plot({\x},{4*\x*e^(-\x)});
\node [color=black!65!green] at (1.6,1.64) {f};
% Titel zufügen
\node[align=center,yshift=1em] 
    at (current bounding box.north)
    {Hier ist ein Titel};
% copyright zufügen		
\node[align=center,yshift=-1em] 
    at (current bounding box.south)
    {copyright?};		
\end{tikzpicture}

\end{document}



[attach]46931[/attach]
Neue Frage »
Antworten »



Verwandte Themen

Die Beliebtesten »
Die Größten »
Die Neuesten »