Re: Le mie (dis)avventure con TikZ

#96820
Up
0
Down
::


Fossa delle Marianne e Monte Everest.
`
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shadings}
\begin{document}

\begin{tikzpicture}[scale=.9]
% Disegna Everest
\filldraw [fill=cyan] (0,0)– (4mm,7mm)– (10mm,14mm)–(13mm,16mm)– (15mm,19mm)–(17mm,17mm)–%
(19mm,16.5mm)–(24mm,0);
% Vetta innevata
\filldraw[fill=white] (10mm,14mm)–(13mm,16mm)– (15mm,19mm)–(17mm,17mm)–%
(19mm,16.5mm);
% Disegna Fossa delle Marianne!
\filldraw [top color=blue, bottom color=teal, draw=black](28mm,0)–(31mm,-6mm)–(35mm,-8mm)–(37mm,-15mm)–(42mm,-20mm)– (49mm,-21mm)–%
(51mm, -17mm)–(52mm, -5mm)–(55mm,0);
% Disegna il livello del mare
\draw [thick] (-5mm,0) — (60mm,0);

\begin{scope}[font=\small]
% Posiziona altezze
\node

(0)at (-5mm,0) {$0$~m};
\node [above](everest) at (14mm,21mm) {$+8855$~m};
\node [below](marianne) at (49mm,-21mm) {$-10\,916$~m};
% Posiziona etichette
\node (testo1) at (35mm,16mm) {Monte Everest};
\node (testo2) at (12mm,-5mm) {Livello del mare};
\node (testo3) at (18mm,-17mm) {Fossa delle Marianne};
\end{scope}
% Disegna frecce
\draw [<-,purple] (everest) .. controls +(right:10mm) and +(up:10mm) .. node[]{} (testo1); \draw [<-](0)..controls +(down:5mm) and +(left:19mm)..node[]{} (testo2); \draw [<-, cyan](marianne)..controls +(left:10mm) and +(down:10mm)..node[]{} (testo3); \end{tikzpicture} \end{document} `

Go to top