- Questo topic ha 9 risposte, 2 partecipanti ed è stato aggiornato l'ultima volta 10 anni, 11 mesi fa da
ilFuria.AWT.
-
CreatoreTopic
-
14 Ottobre 2015 alle 16:44 #103642
-
CreatoreTopic
-
AutoreRisposte
-
-
14 Ottobre 2015 alle 17:18 #103643::
Ciao, io guardando un po’ qui e usando la documentazione del pacchetto [tt]tikz-3dplot[/tt] ho prodotto il seguente codice
`
%===========================================================================================================================%
\documentclass{standalone}
\usepackage{tikz}
\usepackage{tikz-3dplot}
\begin{document}
\tdplotsetmaincoords{50}{120}
%define polar coordinates for some vector
%TODO: look into using 3d spherical coordinate system
\pgfmathsetmacro{\rvec}{.8}
\pgfmathsetmacro{\thetavec}{30}
\pgfmathsetmacro{\phivec}{60}
%start tikz picture, and use the tdplot_main_coords style to implement the display
%coordinate transformation provided by 3dplot
\begin{tikzpicture}[scale=5,tdplot_main_coords]
\draw[thick,color=red,->] (0,0,0) — (1,0,0) node[anchor=north east]{asse $x$};
\draw[thick, color=green,->] (0,0,0) — (0,1,0) node[anchor=north west]{asse $y$};
\draw[thick,color=blue,->] (0,0,0) — (0,0,1) node[anchor=south]{asse $z$};
\draw[dashed](0.3,0,0)–(0.3,0.3,0);
\draw[dashed](0,0.3,0)–(0.3,0.3,0);
\draw[dashed](0.3,0.3,0)–(0.3,0.3,0.5) node[anchor=west]{a $(x,y,z)$};
\draw[dashed](0,0,0)–(0.3,0.3,0);
\draw[dashed](0,0,0.5)–(0.3,0.3,0.5);
\end{tikzpicture}\end{document}
`
che produce un risultato non uguale al tuo, ma sul quale di certo puoi iniziare a lavorare, facendo riferimento alla documentazione dei pacchetti.Se invece hai una domanda più specifica falla pure
[attachment=1443]texstes.pdf[/attachment]
spero di esser stato d’aiuto
Attachments:
You must be logged in to view attached files. -
14 Ottobre 2015 alle 17:22 #103644::
Altro che d’aiuto. Mi hai risolto un PROBLEMONE.Grazie grazie grazie.
`\tdplotsetmaincoords{60}{75}
%define polar coordinates for some vector
%TODO: look into using 3d spherical coordinate system
\pgfmathsetmacro{\rvec}{.8}
\pgfmathsetmacro{\thetavec}{0}
\pgfmathsetmacro{\phivec}{60}
%start tikz picture, and use the tdplot_main_coords style to implement the display
%coordinate transformation provided by 3dplot
\begin{tikzpicture}[scale=5,tdplot_main_coords]
\draw[thick,color=green,-] (0,0,0) — (0.9,0,0) node[anchor=north east]{asse $x$};
\draw[thick, color=red,-] (0,0,0) — (0,1,0) node[anchor=north west]{asse $y$};
\draw[thick,color=blue,-] (0,0,0) — (0,0,0.9) node[anchor=south]{asse $z$};
\draw[dashed](0.7,0,0)–(0.7,0.7,0);
\draw[dashed](0,0.7,0)–(0.7,0.7,0);
\draw[dashed](0.7,0.7,0)–(0.7,0.7,0.8) node[anchor=west]{$(x,y,z)$};
\draw[dashed](0,0,0)–(0.7,0.7,0);
\draw[dashed](0,0,0.8)–(0.7,0.7,0.8);
\fill(0.7,0.7,0.8) circle (0.5pt);
\end{tikzpicture}`Rimaneggiato un pochino
-
14 Ottobre 2015 alle 19:10 #103645
-
14 Ottobre 2015 alle 19:11 #103646::
A me servivano senza comunque provvedo subito.
Grazie.`
%TODO: look into using 3d spherical coordinate system
\pgfmathsetmacro{\rvec}{.8}
\pgfmathsetmacro{\thetavec}{0}
\pgfmathsetmacro{\phivec}{60}
%start tikz picture, and use the tdplot_main_coords style to implement the display
%coordinate transformation provided by 3dplot
\begin{tikzpicture}[scale=5,tdplot_main_coords]
\draw[thick,color=green,->] (0,0,0) — (0.9,0,0) node[anchor=north east]{asse $x$};
\draw[thick, color=red,->] (0,0,0) — (0,1,0) node[anchor=north west]{asse $y$};
\draw[thick,color=blue,->] (0,0,0) — (0,0,0.9) node[anchor=south]{asse $z$};
\draw[dashed](0.7,0,0)–(0.7,0.7,0);
\draw[dashed](0,0.7,0)–(0.7,0.7,0);
\draw[dashed](0.7,0.7,0)–(0.7,0.7,0.8) node[anchor=west]{$(x,y,z)$};
\draw[dashed](0,0,0)–(0.7,0.7,0);
\draw[dashed](0,0,0.8)–(0.7,0.7,0.8);
\fill(0.7,0.7,0.8) circle (0.5pt);
\end{tikzpicture}
`
-
14 Ottobre 2015 alle 19:14 #103647
-
14 Ottobre 2015 alle 19:18 #103648
-
14 Ottobre 2015 alle 19:43 #103649
-
14 Ottobre 2015 alle 19:48 #103650
-
14 Ottobre 2015 alle 20:06 #103651::
Mi fa piacere tu abbia risolto. In ogni caso: occhio che quella direttiva è già sia nel mio sia nel tuo codice, con valori diversi. Ti raccomando di leggerti anche il significato degli altri comandi: il mio voleva essere un esempio-guida, purtroppo non ho avuto tempo di rivederlo adeguatamente
-
-
AutoreRisposte
- Devi essere connesso per rispondere a questo topic.