AIGrounding/Diagram-MMU huggingface dataset:
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{
datavisualization,
datavisualization.formats.functions,
}
\begin{document}
\tikz \datavisualization [
school book axes,
all axes={unit length=5mm, ticks={step=2}},
visualize as smooth line]
data [format=function] {
var t : interval [0:2*pi];
func x = \value t * cos(\value t r);
func y = \value t * sin(\value t r);
};
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{
positioning,
petri
}
\tikzset{
place/.style={circle,draw=blue!50,fill=blue!20,thick,minimum size=6mm},
}
\begin{document}
\begin{tikzpicture}
\node[place,label=above:$p_1$,tokens=2] (p1) {};
\node[place,label=below:$p_2\ge1$,right=of p1] (p2) {};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes.multipart}
\begin{document}
\begin{tikzpicture}
\node [circle split, draw, double, fill=red!20]
{
$q_1$
\nodepart{lower}
$00$
};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{mindmap}
\begin{document}
\tikz[mindmap,concept color=red!50] \node [concept] {Some concept};
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.17}
\usetikzlibrary{pgfplots.colorbrewer}
\newcommand{\tikzfigwidth}{1\textwidth}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
width = \tikzfigwidth,
xtick = {1,2,3,4},
xticklabels = {\(\rho_c\), \(\rho_b\), \(\rho_{b,sr}\), \(\rho_{b,com}\)},
ymin = 0.95,
ymax = 1.00,
ytick = {0.95, 0.96, 0.97, 0.98, 0.99, 1.00},
yticklabels = {0.95, , , , , 1.00},
ylabel = {Max. Avg. Dice Coeff.},
xticklabel style = {rotate = 90, anchor = east},
]
\addplot[
scatter,
only marks,
point meta=explicit symbolic,
scatter/classes={
a={fill=Set1-A, fill opacity=0.25, draw opacity=0},
b={fill=Set1-B, fill opacity=0.25, draw opacity=0},
c={fill=Set1-C, fill opacity=0.25, draw opacity=0},
d={fill=Set1-D, fill opacity=0.25, draw opacity=0}
},
] table [meta=label] {
x y label
1 0.9587 a
1 0.9701 a
1 0.9594 a
1 0.9741 a
1 0.9689 a
1 0.9678 a
1 0.9708 a
1 0.9611 a
1 0.9726 a
1 0.9692 a
1 0.9733 a
1 0.9592 a
1 0.9728 a
1 0.9775 a
1 0.9762 a
2 0.9772 b
2 0.9771 b
2 0.9793 b
2 0.9786 b
2 0.9707 b
2 0.9754 b
2 0.9787 b
2 0.9795 b
2 0.9777 b
2 0.9731 b
2 0.9779 b
2 0.9717 b
2 0.9761 b
2 0.9770 b
2 0.9674 b
3 0.9664 c
3 0.9786 c
3 0.9778 c
3 0.9750 c
3 0.9782 c
3 0.9762 c
3 0.9705 c
3 0.9776 c
3 0.9738 c
3 0.9707 c
3 0.9765 c
3 0.9773 c
3 0.9760 c
3 0.9755 c
3 0.9748 c
4 0.9759 d
4 0.9807 d
4 0.9745 d
4 0.9783 d
4 0.9687 d
4 0.9803 d
4 0.9762 d
4 0.9765 d
4 0.9769 d
4 0.9790 d
4 0.9779 d
4 0.9737 d
4 0.9736 d
4 0.9716 d
4 0.9772 d
};
\addplot[
only marks,
color = black,
mark = x,
dashed,
mark options={solid},
mark size=4
] coordinates {
(1,0.9688)
(2,0.9758)
(3,0.9750)
(4,0.9761)
};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz, border=1pt]{standalone}
\begin{document}
\begin{tikzpicture}
\node[draw,circle](1) at (90:1) {$1$};
\node[draw,circle](2) at (210:1) {$2$};
\node[draw,circle](3) at (-30:1) {$3$};
\draw[>=latex,->] (1) to[bend right] (2);
\draw[>=latex,->] (2) to (1);
\draw[>=latex,->] (1) to(3);
\draw[>=latex,->] (3) to[bend right] (1);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{upgreek}
\usepackage{fp}
\usepackage{tikz}
\usetikzlibrary{arrows,arrows.meta,arrows.spaced,bending,babel,calc,fit,positioning,scopes,intersections,through,backgrounds,matrix,chains,quotes,angles,math,topaths,plotmarks,decorations,decorations.pathmorphing,decorations.markings,decorations.pathreplacing,decorations.shapes,decorations.text,decorations.footprints,decorations.fractals,shapes,shapes.geometric,shapes.symbols,shapes.arrows,shapes.multipart,shapes.callouts,shapes.misc,shapes.gates.logic.US,shapes.gates.logic.IEC,patterns,patterns.meta,fadings,shadings,shadows,shadows.blur,mindmap,calendar,folding,trees,automata,petri,er,turtle,lindenmayersystems,spy,svg.path,bbox,external,fixedpointarithmetic,fpu,circuits.logic.US,circuits.logic.IEC,circuits.logic.CDH,circuits.ee.IEC,datavisualization,datavisualization.polar,datavisualization.formats.functions,3d,perspective,views,graphs,graphs.standard,rdf}
\usepackage{amsmath,amssymb}
\usepackage{xcolor}
\def\TikZ{Ti\emph{k}
Z}\def\tikzname{Ti\emph{k}
Z}\def\pgfname{PGF}
\def\ConTeXt{Con\TeX t}
\makeatletter\tikzset{help lines/.style={gray,very thin}
,important line/.style={thick},information text/.style={rounded corners,fill=red!10,inner sep=1ex}}\tikzset{Karl's grid/.style={help lines,color=blue!50}
,Karl's axes/.style={<->}}\tikzset{place/.style={circle,draw=blue!50,fill=blue!20,thick,minimum size=6mm}
,transition/.style={rectangle,draw=black!50,fill=black!20,thick,minimum size=4mm},pre/.style={<-,shorten <=1pt,>=stealth',semithick},post/.style={->,shorten >=1pt,>=stealth',semithick}}\tikzset{state/.style={draw,circle,minimum size=0.6cm}
,initial text={}}\tikzset{level distance=1cm,sibling distance=1cm}
\tikzset{>=stealth}
\newcount\mycount\colorlet{anglecolor}{green!50!black}
\colorlet{sincolor}{red}
\colorlet{tancolor}{orange!80!black}
\colorlet{coscolor}{blue}
\newcommand{\drawgrid}[2][]{\draw[help lines,#1] #2}\colorlet{concept color}{blue!40}
\newcommand{\face}[1]{\draw (0,0) circle (0.5);
\fill (#1+0.2,0.2) circle (0.05);
\fill (#1-0.2,0.2) circle (0.05);
\draw (#1-0.2,-0.15) .. controls (#1,-0.3) .. (#1+0.2,-0.15);
}
\newcommand{\showcode}[1]{\texttt{#1}
}\newcommand{\showbb}{\draw[red,thin] (current bounding box.south west) rectangle (current bounding box.north east);
}
\newcommand{\animation}[1]{#1}
\newcommand{\tikzsectionname}{Section}
\newcommand{\convmark}[1]{\draw[thick] (#1) +(-0.1,-0.1) -- +(0.1,0.1) (#1) +(-0.1,0.1) -- +(0.1,-0.1);
}
\newcommand{\holidaycalendar}{}
\newcommand{\showvalue}[1]{#1}
\pgfkeys{/pgf/decoration/.unknown/.code={}}\makeatother
\begin{document}
\tikz[mindmap,concept color=red!50]
\node [concept] {Root concept} child[grow=right] {node[concept] {Child concept}};
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[view/h=70]
\addplot3 [
surf,
shader=flat,
samples=50,
domain=-3:3,
y domain=-2:2,
]
{sin(deg(x+y^2))};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{shadings}
\begin{document}
\begin{tikzpicture}
[parent anchor=east, child anchor=west, grow=east,
sibling distance=15mm, level distance=15mm,
every node/.style={ball color=red, circle, text=white},
edge from parent/.style={draw, dashed, thick, red}]
\node {root}
child {node {left}}
child {node {right}
child {node {child}}
child {node {child}}
};
\end{tikzpicture}
\end{document}
\documentclass[margin=10pt]{standalone}
\usepackage{tikz,bm,pgfplots}
\pgfplotsset{compat=1.14}
\usetikzlibrary{fillbetween}
\usepackage{tikz-3dplot}
\begin{document}
\tdplotsetmaincoords{80}{140}
\begin{tikzpicture}[scale=2,tdplot_main_coords]
\tikzset{dot/.style={circle,fill,minimum size=4.5pt,inner sep=0pt,outer sep=0pt}
,hemispherebehind/.style={ball color=gray!20!white,opacity=0.3},hemispherefront/.style={ball color=gray!65!white,opacity=0.3},circlearc/.style={thick,gray!90},circlearchidden/.style={thick,dashed,gray!90},equator/.style={thick,black},diameter/.style={thick,black,stealth-stealth,shorten <=5pt,shorten >=5pt}}\newcommand{\hemispherefront}{(1cm,0)arc(0:-180:1cm and 1.8mm)arc(180:0:1cm and -1cm)}
\newcommand{\hemispherebehind}{(1cm,0)arc(0:-180:1cm and -1.8mm)arc(-180:0:1cm and 1cm)}
\newcommand{\equator}{(-1,0,0)arc(0:360:-1)}
\tdplotsetthetaplanecoords{35}\path[tdplot_rotated_coords,name path=semicircle](0,-1,0)arc(90:-90:-1);
\path[name path=equator]\equator;
\shade[hemispherebehind]\hemispherebehind;
\shade[hemispherefront,name path=hemisphere]\hemispherefront;
\draw[circlearc,intersection segments={of=semicircle and equator,sequence={L2}}];
\draw[circlearchidden,intersection segments={of=semicircle and hemisphere,sequence={L2}}];
\draw[circlearc,intersection segments={of=semicircle and hemisphere,sequence={L3}}];
\draw[equator]\equator node[pos=1,label={90:$E$}]{};
\draw[diameter](0,-1,0)node[dot,label={120:$-x$}]{}--(0,1,0)node[dot,label={30:$x$}]{};
\node at(.75,0,-.5){$\bm{\mathsf{S}}_2^-$};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=1cm]{standalone}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}[
plotmark/.style={draw, fill=lightgray, circle, inner sep=0pt, minimum size=4pt}
]
\coordinate (A) at (0,0);
\coordinate (B) at (0,7);
\coordinate (C) at (7,5);
\coordinate (AnBC) at ($(B)!(A)!(C)$);
\draw (B)--(C) (A)--(AnBC);
\foreach \i [evaluate=\i as \c using int(100-10*\i)] in {1,...,5} {
\draw[gray!\c] (A) -- ($(AnBC)!\i/5!(C)$);
}
\foreach \n/\p in {A/below left, B/above left, C/above right} {
\node[plotmark, label={\p:$\n$}] at (\n) {};
}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{
positioning,
petri
}
\tikzset{
place/.style={circle,draw=blue!50,fill=blue!20,thick,minimum size=6mm}
}
\begin{document}
\begin{tikzpicture}
\node[place,label=above:$p_1$] (p1) {};
\node[token] at (p1) {};
\node[place,label=above:$p_2$,right=of p1] (p2) {};
\node[token] at (p2) {$y$};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{xcolor}
\usepackage{tikz}
\usepackage{tikz-cd}
\usetikzlibrary{patterns,decorations.pathreplacing}
\begin{document}
\begin{tikzpicture}[roundnode/.style={circle, draw=black, fill=white, thick, scale=0.6},squarednode/.style={rectangle, draw=black, fill=white, thick, scale=0.7},roundnodefill/.style={circle, draw=black, fill=black, thick, scale=0.6},letra/.style={rectangle, draw=white, fill=white, thick, scale=0.7}]
\draw[black, thick] (-2,0) -- (2,0);
\node[squarednode] at (-2,0){};
\node[letra] at (-2,-0.4) {$C_1$};
\node[roundnodefill] at (-1,0){};
\node[letra] at (-1,-0.4) {$C_2$};
\node[roundnodefill] at (0,0){};
\node[letra] at (0,-0.4){$C_3$};
\node[roundnodefill] at (1,0){};
\node[letra] at (1,-0.4) {$C_4$};
\node[squarednode] at (2,0){};
\node[letra] at (2,-0.4) {$C_5$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\begin{circuitikz}
\ctikzset{multipoles/font={\color{red}\tiny}}
\draw (0,0) node[qfpchip,
num pins=16,
external pad fraction=6](C){IC1};
\draw (C.pin 1) -- ++(-0.5,0) to[R]
++(0,-2) node[ground]{};
\end{circuitikz}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\tikz\draw(0,0)node(x)[draw]{X}(2,0)node(y){Y}(node cs:name=x)..controls+(1,1)and+(-1,1)..(node cs:name=y);
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{graphicx,amssymb,datetime,float,MnSymbol,currfile,tikz,multirow}
\usetikzlibrary{arrows}
\usetikzlibrary{decorations.markings}
\tikzset{tt/.style={decoration={markings, mark=at position .485 with {\arrow{>}
}, mark=at position .515 with {\arrow{<}}},postaction={decorate}}}
\begin{document}
\begin{tikzpicture}[inner sep=1mm]
\node at (0,0) (E) {$X$};
\node at (2,0) (D) {$Y$};
\node at (1,0) (Z) {$Z$};
\path[->] (E) edge (Z);
\path[->] (Z) edge (D);
\path[->] (E) edge[bend left] (D);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[view={60}{30},colormap/viridis]
\addplot3 [
surf,shader=interp,z buffer=sort,
samples=30,domain=-1:0,y domain=0:2*pi,
] (
{sqrt(1-x^2) * cos(deg(y))},
{sqrt( 1-x^2 ) * sin(deg(y))},
x
);
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\usepackage{xintexpr}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\begin{document}
\begin{tikzpicture}
\begin{semilogxaxis}[every axis legend/.append style={nodes={right}},xlabel=$n$,log basis x=2,ymode=log,ylabel=Time (sec),/pgf/number format/1000 sep={\,},xticklabel={\xinttheiexpr[0]2^\tick\relax},legend style={at={(0.05,0.95)},title={My title},anchor=north west}]\addplot coordinates{(32,0.04)(64,0.09)(128,0.14)(256,0.27)(512,0.56)(1024,1.66)};
\addplot coordinates{(32,0.04)(64,0.09)(128,0.26)(256,0.92)(512,5.71)(1024,42.14)};
\legend{With minimization,Without minimization}
\end{semilogxaxis}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{amsmath}
\usepackage{tikz}
\usetikzlibrary{
arrows,
positioning,
petri
}
\tikzset{
>=stealth,
place/.style={circle,draw=blue!50,fill=blue!20,thick,minimum size=6mm},
transition/.style={rectangle,draw=black!50,fill=black!20,thick,minimum size=4mm},
pre/.style={<-,shorten <=1pt,>=stealth',semithick},
post/.style={->,shorten >=1pt,>=stealth',semithick},
}
\begin{document}
\begin{tikzpicture}
\node[place,tokens=2,label=above:$p_1$] (p1) {};
\node[place,label=above:$p_2\ge1$,right=of p1] (p2) {};
\node[transition,below right=of p1,label=below:$t_1$] {}
edge[pre] (p1)
edge[post] node[auto] {2} (p2);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{tikz,subcaption}
\usetikzlibrary{calc,intersections, through,arrows,decorations.markings}
\newcommand{\gdia}[2]{\filldraw[fill=gray!30] (#1+0.5*#2,0.866*#2) -- +(0.5,0.866) -- +(1,0) -- +(0.5,-0.866) -- cycle;
}
\newcommand{\bsla}[2]{\draw (#1+0.5*#2,0.866*#2) -- +(-0.5,0.866) -- +(0.5,0.866) -- +(1,0) -- cycle;
}
\newcommand{\dia}[2]{\draw (#1+0.5*#2,0.866*#2) -- +(0.5,0.866) -- +(1,0) -- +(0.5,-0.866) -- cycle;
}
\begin{document}
\begin{tikzpicture}[fill=gray!50, scale=0.5,rotate=90,vertex/.style={circle,inner sep=2,fill=black,draw}]
\gdia{0}{0}\bsla{1}{0}\dia{0}{-1}\draw[dashed] (-1.5,0.866) -- (-0.5,0.866)-- (0,0);
\draw[dashed] (0.5,0.866) -- (1,2*0.866) -- (2,2*0.866);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{cd, knots, calc}
\tikzset{smallstring/.style={thick,scale=0.75,every node/.style={transform shape}
}}\newcommand{\E}{\left(}
\newcommand{\R}{\right)}
\begin{document}
\begin{tikzpicture}[baseline=15, smallstring]
\node (top) at (0,2) {$\mathcal B \E \mathcal R \E a \R \to \mathcal R \E a \R \R$};
\node[draw, rectangle] (j) at (0,0) {$j_a^{\mathcal A}$};
\node[draw, rectangle] (r) at (0,1) {$\mathcal R_{a \to a}$};
\draw (j) to (r);
\draw (r) to (top);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{
datavisualization,
datavisualization.formats.functions
}
\begin{document}
\begin{tikzpicture}
\datavisualization [
scientific axes,
x axis={length=3cm, ticks=few},
visualize as smooth line
]
data [format=function] {
var x : interval [-1.5:1.5] samples 7;
func y = \value x*\value x;
};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5mm]{standalone}
\usetikzlibrary{backgrounds}
\begin{document}
\begin{tikzpicture}[n/.style={circle,draw,minimum size=5mm}]
\draw(0,0)node[n](A){A}(2,0)node[n](B){B}(0,-2)node[n](C){C}(2,-2)node[n](D){D}(A)--node[left=5mm]{Clique 1}(C)--(D)--(B)--(C);
\pgfonlayer{background}\draw[cyan!30,line width=12mm,line cap=round](A.center)--(C.center);
\endpgfonlayer\scope[xshift=5.5cm]\draw(0,0)node[n](A){A}(2,0)node[n](B){B}(0,-2)node[n](C){C}(2,-2)node[n](D){D}(A)--node[left=5mm]{Clique 2}(C)--(D)--(B)--(C);
\pgfonlayer{background}\filldraw[cyan!30,line width=12mm,line cap=round,line join=round](B.center)--(C.center)--(D.center)--cycle;
\endpgfonlayer\endscope
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric,positioning,shadows,calc,backgrounds}
\begin{document}
\begin{tikzpicture}[
every node/.style={inner sep=1.5pt},
data/.style={ellipse, draw, fill=white, thick, minimum height=6mm, align=center},
process/.style={rectangle, draw, fill=white, thick, minimum width=5mm, minimum height=6mm, align=center, inner sep=5pt},
shadows/.style={double copy shadow, shadow xshift=2pt, shadow yshift=-2pt},
]
\node[data] (code) {User code};
\node[data] (query) [right=of code,xshift=1.7cm] {User Codesearch\\query $\star$};
\node[process, shadows] (parsers) [below=of code,yshift=-0.5cm] {Parsers};
\node[data, shadows] (asts) [below=of parsers] {ASTs};
\node[process] (engine) [below=of asts] {Analysis\\engine};
\node[data] (graph) [below=of engine,yshift=0.1mm] {Analysis\\graph};
\node[process] (translator) [below=of query,yshift=-0.3cm] {Translator};
\node[data] (stdlib) [right=of translator,yshift=10mm] {Codesearch\\STL $\star$};
\node[data] (partial-query) [below=of translator,yshift=0.3cm] {Partial\\query};
\node[process] (autocomplete) [below=of partial-query,yshift=0.3cm] {Autocomplete\\engine $\star$};
\node[process] (solver) [below=of autocomplete] {StarLang\\solver};
\node[data] (starlang-query) [right=of autocomplete,xshift=-5mm] {StarLang\\query $\star$};
\node[data] (suggestions) [left=of partial-query] {Suggestions};
\node[data] (result) [below=of solver] {Query result};
\draw[->] (code) -- (parsers);
\draw[->] (parsers) -- (asts);
\draw[->] (asts) -- (engine);
\draw[->] (engine) -- (graph);
\draw[->] (graph) -- (solver);
\draw[->] (graph) -| +(2,1.97) -- (autocomplete.185);
\draw[->] (partial-query) -- (autocomplete);
\draw[->] (translator) -- (partial-query);
\draw[->] (query) -- (translator);
\draw[<-,dashed] (stdlib) |- (query);
\draw[->] (translator) -| (starlang-query);
\draw[->] (starlang-query) |- (solver);
\draw[->] (stdlib) |- +(0.9,-3.5) -- +(0.9,-6.55) -- (solver);
\draw[->] (stdlib) |- +(0.9,-3.5) -- +(-2.85,-3.5) -- (autocomplete.50);
\draw[->] (solver) -- (result);
\draw[->] (solver.115) -| (autocomplete.255);
\draw[->] (autocomplete.285) -- (solver.75);
\draw[->] (autocomplete.175) -| (suggestions);
\draw[->] (suggestions) |- (query);
\begin{scope}[on background layer]
\draw[very thick,fill=black!10] ($(parsers.north west)+(-0.7,0.6)$) rectangle ($(solver.south east)+(3.7,-0.6)$);
\end{scope}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepgfplotslibrary{colorbrewer}
\begin{document}
\begin{tikzpicture}
\begin{axis}[view={60}{30}, colormap/YlOrRd]
\addplot3 [
contour filled={
number=7,
},
point meta=x,
z buffer=sort,
samples=30, domain=-1:1, y domain=0:2*pi,
] (
{sqrt(1-x^2) * cos(deg(y))},
{sqrt(1-x^2) * sin(deg(y))},
x
);
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=0.5]
\draw (-1,-{2*sqrt(3)}) arc(240:60:2cm and 4cm) ;
\filldraw (-1,-{2*sqrt(3)}) circle (2pt) (1,{2*sqrt(3)}) circle (2pt) (-1,2) circle (2pt) (-1,1) circle (2pt) (-1,0) circle (2pt) (-1,-1) circle (2pt) (-1,-2) circle (2pt) (1,-1.5) circle (2pt) (1,-0.5) circle (2pt) (1,0.5) circle (2pt) (1,1.5) circle (2pt) (1,-2.5) circle (2pt);
\draw (-1,-{2*sqrt(3)})--(1,-2.5)--(-1,-2)--(1,-1.5)--(-1,-1)--(1,-0.5)--(-1,0)--(1,0.5)--(-1,1)--(1,1.5)--(-1,2)-- (1,{2*sqrt(3)});
\draw (-1,-{2*sqrt(3)}) node[below]{$v_{k-1}$} (-1,-2) node[above]{$v_{k-3}$} (1,-2.5) node[right]{$v_{k-3}$} (1,{2*sqrt(3)}) node[right]{$v_{1}$} (-1,2) node[above]{$v_{2}$} (1,1.5) node[right]{$v_{3}$};
\draw (0,4) node[above]{$h_{k-1}$} (0,-3)node[below]{$h_{k-2}$} (0,-5.5) node[above]{If $k$ is odd.};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{amsmath,amssymb}
\usepackage{tikz}
\usetikzlibrary{datavisualization, datavisualization.formats.functions}
\begin{document}
\begin{tikzpicture}
\datavisualization [scientific axes, visualize as smooth line] data [format=function] { var x : interval [0:100];
func y = sqrt(\value x);
};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\begin{document}
\begin{tikzpicture}
\begin{axis}[axis on top,
axis x line=middle,
axis y line=middle,
xmin = -2.0, xmax = 2.0,
ymin = -2.0, ymax = 2.0,
]
\addplot[fill=lightgray,mark=none] coordinates {
(-1.0, -1.0)
( 1.0, -1.0)
( 1.0, 1.0)
(-1.0, 1.0)
(-1.0, -1.0)
};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\begin{tikzpicture}
\draw (0,0) node[flipflop JK, add async SR]{};
\draw (3,0) node[flipflop JK, add async SR, rotate=90]{};
\draw (7,0) node[flipflop JK, add async SR, rotate=90, rotated numbers]{};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=0.5]
\node (a) at (-2,4) {$\{a\}$};
\node (c) at (2,4) {$\{c\}$};
\node (b) at (-2,2) {$\{b\}$};
\node (d) at (2,2) {$\{d\}$};
\node (zero) at (0,0) {$\{0\}$};
\draw (a) -- (b) -- (zero) -- (d) -- (c);
\node (a) at (6,4) {$\{a\}$};
\node (b) at (10,4) {$\{b\}$};
\node (c) at (6,2) {$\{c\}$};
\node (d) at (10,2) {$\{d\}$};
\node (zero) at (8,0) {$\{0\}$};
\draw (a) -- (c) -- (zero) -- (d) -- (b);
\node (a) at (16,6) {$\{a\}$};
\node (b) at (14,4) {$\{b\}$};
\node (c) at (18,4) {$\{c\}$};
\node (d) at (16,2) {$\{d\}$};
\node (zero) at (16,0) {$\{0\}$};
\draw (zero) -- (d) -- (b) -- (a) -- (c) -- (d);
\node (a) at (21,2) {$\{a\}$};
\node (b) at (23,2) {$\{b\}$};
\node (c) at (25,2) {$\{c\}$};
\node (d) at (27,2) {$\{d\}$};
\node (zero) at (24,0) {$\{0\}$};
\draw (a) -- (zero) -- (b)
(c) -- (zero) -- (d);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}
\usetikzlibrary{arrows, arrows.meta}
\begin{document}
\begin{tikzpicture}
\draw[] plot[smooth cycle] coordinates {(.7,-.3) (4.3,-.3) (4.7,2.3) (.5,2.3)};
\draw[] plot[smooth cycle] coordinates {(5.3,-.3) (7.1,-.3) (7.6,2.3) (5.8,2.3)};
\draw [] (0.2,2.7) node (s) {\Large$R$};
\draw [] (5.7,2.7) node (s) {\Large$Q$};
\begin{scope}[scale = 0.82, every node/.append style={transform shape}, yshift = -.5cm, xshift = -.2cm]
\draw [] (5,2.5) node (s) {\Large$s$};
\draw [] (8,2.57) node (sp) {\Large$s'$};
\draw [] (1.5,1.52) node (t) {\Large$t$};
\draw [] (2.8,1.48) node (t1) {\Large$t_1$};
\draw [] (5,1.48) node (tn) {\Large$t_n$};
\draw [] (8,1.57) node (tp) {\Large$t'$};
\draw [] (1.5,.8) node (ht) {\color{darkgray}$h_R(t)$};
\draw [] (2.1,.8) node () {\color{darkgray}$>$};
\draw [] (2.8,.8) node (ht1) {\color{darkgray}$h_R(t_1)$};
\draw [] (3.45,.8) node () {\color{darkgray}$>$};
\draw [] (3.9,.8) node () {\color{darkgray}$\dots$};
\draw [] (4.3,.8) node () {\color{darkgray}$>$};
\draw [] (5,.8) node (htn) {\color{darkgray}$h_R(t_n)$};
\draw [-stealth](5.3,2.6) [out = 30, in = 150]to (7.7,2.6);
\draw [-stealth](5.3,1.6) [out = 30, in = 150]to (7.7,1.6);
\draw [-stealth](1.8,1.5) -- (2.4,1.5);
\draw [](3.1,1.5) -- (3.4,1.5);
\draw [-stealth](4.2,1.5) -- (4.6,1.5);
\draw [] (3.85,1.5) node (dots) {\Large$\dots$};
\end{scope}
\end{tikzpicture}
\end{document}