Überarbeitungsverlauf[Zurück]
Klicke auf Einblenden/Ausblenden von Überarbeitungen 2
Markdown

25 Dez '15, 02:20

esdd's gravatar image

esdd
17.8k294257

Hier meine Lösung. <pre><code> \documentclass[12pt,titlepage,footsepline,headsepline]{scrreprt} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage{color} \usepackage[a4paper,lmargin={4cm},rmargin={2.5cm},tmargin={3cm},bmargin={3cm}]{geometry} \usepackage{pgfplots} \usetikzlibrary{intersections} \usepgfplotslibrary{fillbetween} \pgfplotsset{compat=1.12} \begin{document} \begin{tikzpicture} \centering \begin{axis} [ width=15cm, title=V-n-Manöverdiagramm, xlabel={equivalent Airspeed [kts]}, ylabel={Load Factor}, ymin=-3, ymax=5, xmin=0, xmax=330, transpose legend, legend columns=2, legend cell align=left, legend entries={ pos. Lift, neg.Lift, max. Load (+/-)}, legend style={at={(0.5,-0.15)},anchor=north}, ] %Hier werden die Linien gezeichnet und mit Namen versehen \addplot [name path=b,blue,domain=0:100]{(1.2*1.225*23)/(2*2525.15*9.81)*x^2}; \addplot [name path=c,cyan,domain=0:100]{-(0.9*1.225*23)/(2*2523.15*9.81)*x^2}; \addplot [name path=ro,red] coordinates{(0,4.4)(330,4.4)}; \addplot [name path=ru,red] coordinates{(0,-1.76)(330,-1.76)}; \addplot [name path=vs,dashed]coordinates {(74.41,-4)(74.41,6)}node[pos=0.15,right]{$V_S$}; \addplot [name path=vd,dashed]coordinates{(232.47,-4)(232.47,6)}node[pos=0.15,right]{$V_D$}; \addplot [solid]coordinates{(0,0)(330,0)}; %Jetzt werden die Schnittpunkte berechnet und als Koordinaten verwurstet \path [name intersections={of=b and vs}]; \coordinate (bvs) at (intersection-1); \path [name intersections={of=b and ro}]; \coordinate (bro) at (intersection-1); \path [name intersections={of=ro and vd}]; \coordinate (rovd) at (intersection-1); \path [name intersections={of=vd and ru}]; \coordinate (vdru) at (intersection-1); \path [name intersections={of=vs and ru}]; \coordinate (vsru) at (intersection-1); %Zuletzt wird die Einhüllende gezeichnet und dann gefüllt \draw [fill,blue,opacity=0.5](bvs) -- (bro) -- (rovd) -- (vdru) -- (vsru) -- (bvs); \end{axis} \end{tikzpicture} \end{document} </code></pre> Das ganze sieht dann so aus: ![alt text][1] [1]: http://texwelt.de/wissen/upfiles/v-n.tiff
Klicke auf Einblenden/Ausblenden von Überarbeitungen 1

24 Dez '15, 22:30

Sean1978's gravatar image

Sean1978
4112

Hier meine Lösung. <pre><code> \documentclass[12pt,titlepage,footsepline,headsepline]{scrreprt} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage{color} \usepackage[a4paper,lmargin={4cm},rmargin={2.5cm},tmargin={3cm},bmargin={3cm}]{geometry} \usepackage{pgfplots} \usetikzlibrary{intersections} \usepgfplotslibrary{fillbetween} \pgfplotsset{compat=1.12} \begin{document} \begin{tikzpicture} \centering \begin{axis} [ width=15cm, title=V-n-Manöverdiagramm, xlabel={equivalent Airspeed [kts]}, ylabel={Load Factor}, ymin=-3, ymax=5, xmin=0, xmax=330, transpose legend, legend columns=2, legend cell align=left, legend entries={ pos. Lift, neg.Lift, max. Load (+/-)}, legend style={at={(0.5,-0.15)},anchor=north}, ] %Hier werden die Linien gezeichnet und mit Namen versehen \addplot [name path=b,blue,domain=0:100]{(1.2*1.225*23)/(2*2525.15*9.81)*x^2}; \addplot [name path=c,cyan,domain=0:100]{-(0.9*1.225*23)/(2*2523.15*9.81)*x^2}; \addplot [name path=ro,red] coordinates{(0,4.4)(330,4.4)}; \addplot [name path=ru,red] coordinates{(0,-1.76)(330,-1.76)}; \addplot [name path=vs,dashed]coordinates {(74.41,-4)(74.41,6)}node[pos=0.15,right]{$V_S$}; \addplot [name path=vd,dashed]coordinates{(232.47,-4)(232.47,6)}node[pos=0.15,right]{$V_D$}; \addplot [solid]coordinates{(0,0)(330,0)}; %Jetzt werden die Schnittpunkte berechnet und als Koordinaten verwurstet \path [name intersections={of=b and vs}]; \coordinate (bvs) at (intersection-1); \path [name intersections={of=b and ro}]; \coordinate (bro) at (intersection-1); \path [name intersections={of=ro and vd}]; \coordinate (rovd) at (intersection-1); \path [name intersections={of=vd and ru}]; \coordinate (vdru) at (intersection-1); \path [name intersections={of=vs and ru}]; \coordinate (vsru) at (intersection-1); %Zuletzt wird die Einhüllende gezeichnet und dann gefüllt \draw [fill,blue,opacity=0.5](bvs) -- (bro) -- (rovd) -- (vdru) -- (vsru) -- (bvs); \end{axis} \end{tikzpicture} \end{document} </code></pre> Das ganze sieht dann so aus: ![alt text][1] [1]: http://texwelt.de/wissen/upfiles/v-n.tiff