[Ipe-discuss] use library calc tikz in IPE2

Tony iperstatica at gmail.com
Mon May 6 10:38:43 CEST 2019


 I don't understand where I'm wrong. you can check?

I need the numbers written with the cycle
foreach in {5, ..., 1}
{
[circle, scale = 0.6, minimum size = 0.5cm, draw = black, fill = white] at
({(160 / 3.8) * (i) -396}: 4cm) {i};
};
  are inside the figure. maybe i wrong the position of something?

I insert the code to compile with texstudio and file IPE
THANKS

\documentclass[a4paper,portrate]{article}
\usepackage[T1]{fontenc}
\usepackage[italian]{babel}
\usepackage{amsmath}
\usepackage{caption}
\usepackage[margin=0.3in]{geometry}
\usepackage{tikz}
\usetikzlibrary{scopes}
\usetikzlibrary{intersections}
\usetikzlibrary{calc}
\usetikzlibrary{arrows.meta}
\usepackage{ifthen}
\usepackage{mwe}
\usepackage{lmodern}
\makeatletter
\DeclareMathSizes{\@xpt}{\@xpt}{5}{4}
\DeclareMathSizes{\@xipt}{\@xipt}{6}{5}
\DeclareMathSizes{\@xiipt}{\@xiipt}{6}{5}
\DeclareMathSizes{\@xivpt}{\@xivpt}{\@xpt}{6}
\makeatother

\begin{document}

%%%------------GRAFICO RICHARDSON FLUX NUMBER---------------------
\begin{tikzpicture} [scale = 0.5,
every node/.append style={scale=1},
node font=\small,
dashed axis/.style={dash pattern=on 4pt off 2pt},
moon line/.style={dash pattern=on 8pt off 4pt},
information text/.style={rounded corners, fill=Info Color, inner sep=1ex},
prg/.style={draw,fill=white}
]
\definecolor{Info Color}{HTML}{eeeeee};

\def\ax{0}; %Posizione centrale assi%
\def\ay{0}
%%--Scale Factor --------------------
\def\sca{0.4}
\def\scaa{0.9}
% Asse x e y
\draw[{Stealth[length=0.01cm]}-{Stealth[length=0.2cm]}] (-16, 0) -- (16, 0)
node [right=0.1em] {$P_{G}$}
node[pos=30/32,above=0.8cm]{CL}
node[pos=3.4/4.5,above]{$P_{G}\gg P_{M}$}
%%----------------------------------------------------
node[pos=2/32,above=0.8cm]{FS}
node[pos=1.1/4.5,,above]{$P_{M}\approx 0,P_{G}<0$}
{[nodes=prg]  node[pos=0.1]{$R_{i}=+\infty$}
    node[pos=0.9]{$R_{i}=+\infty$}}; % Asse
\draw[{Stealth[length=0.001cm]}-{Stealth[length=0.2cm]}] (0, -0) -- (0, 16)
node [above=0.1em] {$P_{M}$}
{[nodes=prg] node[pos=14/16]{CF} node[pos=12/16]{$P_{M}\gg P_{G}$}
    node[pos=10/16] {$R_{i}=0$}};

%%--------------------------------------------------------------------------------
\path (6.5, 8) node [anchor=north west] {$P_{M}\approx P_{G}$}
(8.5, 8) node [anchor=south east] {CM};

\path (-11.5, 8) node [anchor=north west] {$P_{M}>0,P_{G}<0$}
(-8.5, 8) node [anchor=south east] {FTS};
%------------------------------------------------------------------------------------
%
\draw[{Stealth[length=0.01cm]}-{Stealth[length=0.01cm]}] (0, -0) -- (15:15)
node[prg,midway,sloped]{ $ R_{i}\approx-1$};

\draw[-] (0, -0) -- (165:15) node[prg,midway,sloped] {$R_{i}\approx+1$};

\draw[moon line] (110:15) -- (0, 0) -- (70:15);


\foreach \i in {5,...,1}
{
    \node [circle,scale = 0.6, minimum size=0.5cm, draw=black,fill=white]
at ({(160/3.8)*(\i)-396}:4cm) {\i};
};

%draw information box
\draw[shift={(6, 10)}] node[scale=\scaa,above right, text
width=5.5cm,information text] {
    \small
    {\boldmath
        \textbf{\underline{Indice}} }
    \vspace{1ex}
    \small
    \begin{description}
    \item[CL]: Libera;
    \item[CM]: Mista;
    \item[CF]: Forzata;
    \item[FTS]: Flussi Turbolenti Stratificati;
    \item[FS]: Flussi Stratificati;
    \end{description}
};
%\node[anchor=north,align=center,text width=4cm] at (0,-0.2)
{\captionof{figure}{TKE.}};

\end{tikzpicture}





<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Mail
priva di virus. www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.science.uu.nl/pipermail/ipe-discuss/attachments/20190506/7243c817/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: richardson1b.ipe
Type: application/octet-stream
Size: 9566 bytes
Desc: not available
URL: <https://mailman.science.uu.nl/pipermail/ipe-discuss/attachments/20190506/7243c817/attachment-0001.obj>


More information about the Ipe-discuss mailing list