Posts

Showing posts from October 27, 2018

Simplifying repetitive drawings and node placing

Image
Clash Royale CLAN TAG #URR8PPP up vote 2 down vote favorite I use the following code to draw repetitive lines and place nodes in specific locations for later on drawing circles and connecting them with lines. Is there a simpler way to do this job, as using foreach command or any other possible simpler method. documentclassbeamer beamertemplatenavigationsymbolsempty usepackagetikz usepackagepgfplots begindocument beginframe[t] frametitle hspace -1cm begintikzpicture[scale=.7, transform shape,linecolor/.style=ultra thick, green!40!black,dotline/.style=thin, black, loosely dotted] pgfmathsetmacroincrmnt.6 draw [thick,-latex](-.3,0) -- (0,0) -- (5,0); draw [thick,-latex](0,-.3) -- (0,0) -- (0,8); draw [thick,-latex](6.,0) -- (7,0) -- (14.4,0); draw [thick,-latex](8,-.2) -- (8,0) -- (8,8); draw [linecolor] (0,incrmnt*1) node (yal) +(180:.15cm) -- +(0:.15cm) node [xshift=-.8cm, yshift=0cm] 1/12([shift=(0:8)]yal.center) node (ya) +(180:.15cm) -- +(0:.15cm) node [xshift=-.8cm, ys