Risposte nei forum create
-
AutoreRisposte
-
::
non ho dati sensibili poichè è l’esempio contenuto nel link che ho postato.
Lo riporto:`\documentclass{beamer}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel}
\usetheme{Padova}\title{Lorem ipsum dolor sit amet}
\subtitle{Curabitur sit amet mi magna}
\author{Tizio Caio}
\date{January 1, 1900}\begin{document}
\maketitle
\begin{frame}{Outline}
\tableofcontents
\end{frame}\section{Introduction}
\begin{frame}{Introduction}
Etiam eu interdum ligula
Nunc mi eros, vulputate in ornare a, viverra eget quam \vspace{.5em}
\begin{itemize}
\item Morbi \textbf{vitae lacus} porta neque tincidunt sodales \vspace{.5em}
\item Proin tincidunt, \textbf{neque} at tincidunt mollis \vspace{.5em}
\item Ut \alert{lacinia sem a nibh} consequat porttitor
\end{itemize}
\end{frame}\section{First section}
\begin{frame}{First section}
\begin{block}{Normal block}
Fusce luctus venenatis felis quis semper
\end{block}\begin{alertblock}{Alert block}
$$ E = (x_1 \vee \neg x_2 \vee \neg x_3) \wedge (x_1 \vee x_2 \vee x_4) $$
\end{alertblock}\begin{exampleblock}{Example block}
Proin tincidunt, neque at tincidunt mollis
\end{exampleblock}
\end{frame}\end{document}
`
::
riapro questa conversazione poichè non capisco ancora una cosa. Posto il codice:`
\documentclass[a4paper,11pt,openright,titlepage]{book}
\usepackage{pgfplots}
\usepgflibrary{arrows}
\pgfplotsset{
compat=1.11,
every axis/.append style={font=\small},
legend style={font=\footnotesize},
tick label style={font=\small },
label style={font=\small},
/pgf/number format/.cd,
use comma,
fixed,
precision=2,
}\begin{document}
\begin{figure}
\centering
{\begin{tikzpicture}
\begin{axis}
[axis x line=bottom,
axis y line=left,
xmin=0,
xtick={0,0.01,0.02,0.03,0.04,0.05,0.06},
ymin=0,
minor tick num =1,
grid=both,
ylabel style={align=center}, ylabel={lunghezza (m)},
xlabel=tempo (s),
legend style={cells={anchor=east},
legend pos=outer north east,
}, enlargelimits=false]
\addplot [mark repeat=2, very thick, red]
coordinates {
( 0 , 0.00E+00 )
( 0.001 , 0.00E+00 )
( 0.001 , 1.00E+00 )
( 0.001 , 2.00E+00 )
( 0.002 , 2.00E+00 )
( 0.002 , 3.00E+00 )
( 0.003 , 3.00E+00 )
( 0.004 , 3.00E+00 )
( 0.004 , 4.00E+00 )
( 0.004 , 5.00E+00 )
( 0.005 , 5.00E+00 )
( 0.006 , 5.00E+00 )
( 0.006 , 6.00E+00 )
( 0.006 , 7.00E+00 )
( 0.007 , 7.00E+00 )
( 0.008 , 7.00E+00 )
( 0.008 , 8.00E+00 )
( 0.009 , 8.00E+00 )
( 0.01 , 8.00E+00 )
( 0.01 , 9.00E+00 )
( 0.01 , 1.00E+01 )
( 0.011 , 1.00E+01 )
( 0.011 , 1.10E+01 )
( 0.012 , 1.10E+01 )
( 0.012 , 1.20E+01 )
( 0.013 , 1.20E+01 )
( 0.013 , 1.30E+01 )
( 0.014 , 1.30E+01 )
( 0.015 , 1.30E+01 )
( 0.016 , 1.30E+01 )
( 0.016 , 1.40E+01 )
( 0.017 , 1.40E+01 )
( 0.017 , 1.50E+01 )
( 0.018 , 1.50E+01 )
( 0.018 , 1.60E+01 )
( 0.019 , 1.60E+01 )
( 0.02 , 1.60E+01 )
( 0.02 , 1.70E+01 )
( 0.021 , 1.70E+01 )
( 0.021 , 1.80E+01 )
( 0.022 , 1.80E+01 )
( 0.022 , 1.90E+01 )
( 0.023 , 1.90E+01 )
( 0.024 , 1.90E+01 )
( 0.025 , 1.90E+01 )
( 0.025 , 2.00E+01 )
( 0.025 , 2.10E+01 )
( 0.026 , 2.10E+01 )
( 0.027 , 2.10E+01 )
( 0.028 , 2.10E+01 )
( 0.028 , 2.20E+01 )
( 0.028 , 2.30E+01 )
( 0.029 , 2.30E+01 )
( 0.03 , 2.30E+01 )
( 0.031 , 2.30E+01 )
( 0.032 , 2.30E+01 )
( 0.032 , 2.40E+01 )
( 0.033 , 2.40E+01 )
( 0.033 , 2.50E+01 )
( 0.033 , 2.60E+01 )
( 0.034 , 2.60E+01 )
( 0.035 , 2.60E+01 )
( 0.035 , 2.70E+01 )
( 0.036 , 2.70E+01 )
( 0.036 , 2.80E+01 )
( 0.037 , 2.80E+01 )
( 0.038 , 2.80E+01 )
( 0.039 , 2.80E+01 )
( 0.039 , 2.90E+01 )
( 0.04 , 2.90E+01 )
( 0.041 , 2.90E+01 )
( 0.041 , 3.00E+01 )
( 0.042 , 3.00E+01 )
( 0.043 , 3.00E+01 )
( 0.044 , 3.00E+01 )
( 0.044 , 3.10E+01 )
( 0.045 , 3.10E+01 )
( 0.046 , 3.10E+01 )
( 0.046 , 3.20E+01 )
( 0.046 , 3.30E+01 )
( 0.047 , 3.30E+01 )
( 0.048 , 3.30E+01 )
( 0.049 , 3.30E+01 )
( 0.049 , 3.40E+01 )
( 0.05 , 3.40E+01 )
( 0.051 , 3.40E+01 )
( 0.052 , 3.40E+01 )
( 0.052 , 3.50E+01 )
( 0.053 , 3.50E+01 )
( 0.053 , 3.60E+01 )
( 0.054 , 3.60E+01 )
( 0.055 , 3.60E+01 )
( 0.055 , 3.70E+01 )
( 0.056 , 3.70E+01 )
( 0.056 , 3.80E+01 )
( 0.057 , 3.80E+01 )
( 0.057 , 3.90E+01 )
( 0.058 , 3.90E+01 )
( 0.059 , 3.90E+01 )
( 0.059 , 4.00E+01 )
( 0.06 , 4.00E+01 )
( 0.061 , 4.00E+01 )
( 0.062 , 4.00E+01 )
( 0.062 , 4.10E+01 )};
\end{axis}
\end{tikzpicture}}
\end{figure}\end{document}
`
Non riesco a capire come mai i numeri nell’asse delle ascisse vengano visualizzati come 1*10^-2 piuttosto che 0.01.
grazie ancora
::
grazie ! quindi per i trapezi ho fatto così:`\documentclass[a4paper,11pt,openright,titlepage]{book}
\usepackage{tikz}
\usetikzlibrary{calc,positioning,shapes.geometric,shapes.symbols,shapes.misc, intersections, shadows, arrows}\begin{document}
%————————————————————————————————
\tikzstyle{startstop} = [rectangle, rounded corners, minimum width=3cm, minimum height=1cm,text centered, draw=black]
\tikzstyle{cloud} = [trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=3cm, minimum height=1cm, text centered, draw=black]
\tikzstyle{block} = [rectangle, minimum width=3cm, minimum height=1cm, text centered, draw=black]
\tikzstyle{decision} = [diamond, shape aspect=2, minimum width=3cm, minimum height=1cm, text centered, draw=black]
\tikzstyle{arrow} = [thick,->,>=stealth] %stile per le frecce
\tikzstyle{line} = [draw, -latex']
%————————————————————————————————\begin{tikzpicture}[node distance = 2.5cm, auto]
% Place nodes
\node [cloud] (solve) {SolveProblem()};
\node [decision, below of=solve] (time) {$t=t_{i+1}$};
\node [block, below= .5cm of time] (nuovi) {newModel \\newNLproblem};
\node [block, below of=nuovi] (mesh) {Meshproblem};
\node [decision, below of=mesh] (risolt) {Solved};
\node [block, below of=risolt] (processo) {Process Fracture};
\node [block, text width=1.5cm, left=2cm of risolt] (end) {end};
\node [decision, below of=processo] (sigma) {$\sigma>\sigma_{u}$};
\node [block, below= 0.5cm of sigma] (nuovo) {New Apex};
% Draw edges
\path [line] (solve) — (time);
\path [line] (time) — (nuovi)
node[auto,pos=0.3,text centered] {yes};
\path [line] (nuovi) — (mesh);
\path [line] (mesh) — (risolt);
\path [line] (risolt) — (end)
node[auto,above left,pos=0,text centered] {no};
\path [line] (risolt) — (processo)
node[auto, right,pos=0.3,text centered] {yes};
\path [line] (processo) — (sigma);
%\path [line] (sigma) — (nuovo);
\path [line] (sigma) — (nuovo)
node[auto, right,pos=0.3,text centered] {yes};
\path [line] (time) -| (end)
node[auto,above left,pos=0,text centered] {no};
\path[line](sigma.east) — ($(sigma.east)+(1,0)$) node[auto,above right,pos=0,text centered] {no} — ($(mesh.east)+(1,0)$) — (mesh.east);
\path[line](nuovo.east) — ($(nuovo.east)+(2,0)$) — ($(time.east)+(2,0)$) — (time.east);\end{tikzpicture}
\end{document}
`un’ultima cosa: in merito alla dimensione, ok, teniamo la stessa larghezza, ma c’è un modo per mandare a capo dopo newModel con newNLproblem ? cioè mantenere la stessa larghezza ma variare l’altezza dei blocchi.
ancora grazie
Marco
-
AutoreRisposte