Graphics, Figures & TablesRecreate Figure

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Wooldridge1
Posts: 20
Joined: Wed Oct 19, 2016 9:21 am

Recreate Figure

Post by Wooldridge1 »

Hello,

Image

I have recreated this figure in PAINT. Because the quality is not good, I would like to recreate this figure in LaTeX. But I have no idea how I can do this. I hope you can help me. :-)

Greetings & many thanks in advance! :-)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
TikZ book
User avatar
Stefan Kottwitz
Site Admin
Posts: 10317
Joined: Mon Mar 10, 2008 9:44 pm

Re: Recreate Figure

Post by Stefan Kottwitz »

Welcome to the forum!

Seems to be pretty easy with TikZ. Did you already make it, or did you already ask somewhere else? I just want to know that before I make the effort to draw that.

Stefan
LaTeX.org admin
Wooldridge1
Posts: 20
Joined: Wed Oct 19, 2016 9:21 am

Re: Recreate Figure

Post by Wooldridge1 »

Dear Stefan,

I did not managed it. I call upon your help :)

Greetings and many thanks in advance! :)
User avatar
Stefan Kottwitz
Site Admin
Posts: 10317
Joined: Mon Mar 10, 2008 9:44 pm

Recreate Figure

Post by Stefan Kottwitz »

Here is a suggestion with a bit color.

Code: Select all

\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{quotes,shapes,positioning}
\tikzset{
  treenode/.style = {shape=rectangle, rounded corners,
                     draw, anchor=center,
                     text width=5em, align=center,
                     top color=white, bottom color=blue!20,
                     inner sep=1ex, font=\sffamily\normalsize},
  do/.style = {treenode, diamond, inner sep=0pt},
}
\begin{document}
\begin{tikzpicture}[-latex,
  [every edge quotes/.style={fill=white, font=\footnotesize}, auto=right]]
  \node [do] (model) {Model};
  \node [treenode, below left = 2cm and 2cm]  (A) {Test A};
  \node [treenode, below right = 2cm and 2cm] (B) {Test B};
  \node [do, below right = 1.8cm and 6cm]     (C) {Delete};
  \draw
    (model) edge ["Axis A"] (A)
    (model) edge ["Axis B"] (B)
    (model) edge ["Axis C", auto=left] (C)
  ; 
\end{tikzpicture}
\end{document}
figure.png
figure.png (14.65 KiB) Viewed 3936 times
Stefan
LaTeX.org admin
Wooldridge1
Posts: 20
Joined: Wed Oct 19, 2016 9:21 am

Re: Recreate Figure

Post by Wooldridge1 »

Thank you so much, Stefan. Really helpful! :-)
Post Reply