├── BayesNet ├── BATF.pdf ├── BATF.png ├── BATF.tex ├── BCPF.pdf ├── BCPF.png ├── BCPF.tex ├── BGCP-1.pdf ├── BGCP-1.png ├── BGCP-1.tex ├── BGCP.pdf ├── BGCP.png ├── BGCP.tex ├── BTMF.pdf ├── BTMF.png ├── BTMF.tex ├── btmf_net.pdf ├── btmf_net.png └── btmf_net.tex ├── Framework ├── LRTC-flow.pdf ├── LRTC-flow.png ├── LRTC-flow.tex ├── Laplacian_convolutional_time_series.pdf ├── Laplacian_convolutional_time_series.png ├── Laplacian_convolutional_time_series.tex ├── circulant_graph_degree_2.pdf ├── circulant_graph_degree_2.png ├── circulant_graph_degree_2.tex ├── circulant_graph_degree_4.pdf ├── circulant_graph_degree_4.png ├── circulant_graph_degree_4.tex ├── curve1.pdf ├── curve2.pdf ├── graphical_matrix_time_series.pdf ├── graphical_matrix_time_series.png ├── graphical_matrix_time_series.tex ├── graphical_tensor_time_series.pdf ├── graphical_tensor_time_series.png ├── graphical_tensor_time_series.tex ├── graphical_time_series.pdf ├── graphical_time_series.png ├── graphical_time_series.tex ├── input_tensor.pdf ├── input_tensor.tex ├── latc_framework.pdf ├── latc_framework.png ├── latc_framework.tex ├── latc_illustration.pdf ├── latc_illustration.tex ├── mf-explained.pdf ├── mf-explained.png ├── mf-explained.tex ├── output_tensor.pdf ├── output_tensor.tex ├── rolling_prediction.pdf ├── rolling_prediction.png ├── rolling_prediction.tex ├── rolling_prediction_strategy.pdf ├── rolling_prediction_strategy.png ├── rolling_prediction_strategy.tex ├── tc_framework.pdf ├── tc_framework.png ├── tc_framework.tex ├── tensor_time_series.pdf ├── tensor_time_series.png └── tensor_time_series.tex ├── LICENSE ├── README.md ├── TensorFactorization ├── AuTF.pdf ├── AuTF.png ├── AuTF.tex ├── CP_factorization.pdf ├── CP_factorization.png ├── CP_factorization.tex ├── CPfact.pdf ├── CPfact.png ├── CPfact.tex ├── TVART.pdf ├── TVART.png ├── TVART.tex ├── tensor.pdf ├── tensor.png ├── tensor.tex ├── tensor_svt.pdf ├── tensor_svt.png ├── tensor_svt.tex ├── tensors.png └── tensors.tex ├── awesome-stuff ├── jay.pdf ├── transdim_logo_large.pdf ├── transdim_logo_large.png └── transdim_logo_large.tex ├── data-visualization ├── NM_Bdata.pdf ├── NM_Bdata.png ├── NM_Bdata.tex ├── NM_Gdata.pdf ├── NM_Gdata.png ├── NM_Gdata.tex ├── NM_Hdata.pdf ├── NM_Hdata.png ├── NM_Hdata.tex ├── NM_Sdata.pdf ├── NM_Sdata.png ├── NM_Sdata.tex ├── NMseries.pdf ├── NMseries.png ├── NMseries.tex ├── RM_Bdata.pdf ├── RM_Bdata.png ├── RM_Bdata.tex ├── RM_Gdata.pdf ├── RM_Gdata.png ├── RM_Gdata.tex ├── RM_Hdata.pdf ├── RM_Hdata.png ├── RM_Hdata.tex ├── RM_Sdata.pdf ├── RM_Sdata.png ├── RM_Sdata.tex ├── RMseries.pdf ├── RMseries.png ├── RMseries.tex ├── performance_bar.pdf ├── performance_bar.png └── performance_bar.tex ├── images ├── batf_01.png ├── batf_02.png ├── batf_03.png ├── batf_04.png └── batf_05.png ├── matrix ├── flip_matrix.pdf ├── flip_matrix.png ├── flip_matrix.tex ├── linear_circ_mat.pdf ├── linear_circ_mat.png ├── linear_circ_mat.tex ├── linear_conv_mat.pdf ├── linear_conv_mat.png ├── linear_conv_mat.tex ├── linear_regression_circ.pdf ├── linear_regression_circ.png ├── linear_regression_circ.tex ├── linear_regression_w_conv.pdf ├── linear_regression_w_conv.png ├── linear_regression_w_conv.tex ├── mode3_prod.pdf ├── mode3_prod.png ├── mode3_prod.tex ├── prob.pdf ├── prob.png ├── prob.tex ├── sparse_reg.pdf ├── sparse_reg.png ├── sparse_reg.tex ├── sparse_reg_time_series.pdf ├── sparse_reg_time_series.png └── sparse_reg_time_series.tex ├── norms ├── ell1_norm.pdf ├── ell1_norm.png ├── ell1_norm.tex ├── ell2_norm.pdf ├── ell2_norm.png ├── ell2_norm.tex ├── ell2_xy.pdf ├── ell2_xy.png ├── ell2_xy.tex ├── ell2_xyz.pdf ├── ell2_xyz.png ├── ell2_xyz.tex ├── ell_infty_norm.pdf ├── ell_infty_norm.png ├── ell_infty_norm.tex ├── manhattan_distance.pdf ├── manhattan_distance.png ├── manhattan_distance.tex ├── unit_vector_black.pdf ├── unit_vector_black.png ├── unit_vector_black.tex ├── unit_vector_white.pdf ├── unit_vector_white.png └── unit_vector_white.tex ├── pgfplots-function ├── bilognormal_pdf.pdf ├── bilognormal_pdf.png ├── bilognormal_pdf.tex ├── conj_grad_example_1.pdf ├── conj_grad_example_1.png ├── conj_grad_example_1.tex ├── conj_grad_example_2.pdf ├── conj_grad_example_2.png ├── conj_grad_example_2.tex ├── erlang_cdf.pdf ├── erlang_cdf.png ├── erlang_cdf.tex ├── erlang_pdf.pdf ├── erlang_pdf.png ├── erlang_pdf.tex ├── forecasting.pdf ├── forecasting.png ├── forecasting.tex ├── lognormal_pdf.pdf ├── lognormal_pdf.png ├── lognormal_pdf.tex ├── normal_pdf.pdf ├── normal_pdf.png ├── normal_pdf.tex ├── normal_pdf_1.pdf ├── normal_pdf_1.png ├── normal_pdf_1.tex ├── normal_pdf_2.pdf ├── normal_pdf_2.png ├── normal_pdf_2.tex ├── normal_pdf_3.pdf ├── normal_pdf_3.png ├── normal_pdf_3.tex ├── sin_cos_functions.pdf ├── sin_cos_functions.png ├── sin_cos_functions.tex ├── student_pdf_1.pdf ├── student_pdf_1.png ├── student_pdf_1.tex ├── student_pdf_2.pdf ├── student_pdf_2.png └── student_pdf_2.tex └── tutorial ├── Bayesian_nets.md └── README.md /BayesNet/BATF.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/BayesNet/BATF.pdf -------------------------------------------------------------------------------- /BayesNet/BATF.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/BayesNet/BATF.png -------------------------------------------------------------------------------- /BayesNet/BATF.tex: -------------------------------------------------------------------------------- 1 | \documentclass[tikz, border = 0.1cm]{standalone} 2 | \usepackage{tikz} 3 | \usetikzlibrary{bayesnet} 4 | \usepackage{amsmath, amsthm, amssymb, amsfonts} 5 | \tikzset{>=latex} 6 | 7 | \begin{document} 8 | \begin{tikzpicture} 9 | 10 | \node[circle, draw = black, fill = gray!20, inner sep = 0pt, minimum size = 0.65cm] (obs) at (0, 0) {{$y_{ijt}$}}; 11 | \node[circle, draw = black, inner sep = 0pt, minimum size = 0.6cm] (ui) at (-0.9, 0.9) {{$\boldsymbol{u}_{i}$}}; 12 | \node[circle, draw = black, inner sep = 0pt, minimum size = 0.6cm] (vj) at (0, 1.8) {{$\boldsymbol{v}_{j}$}}; 13 | \node[circle, draw = black, inner sep = 0pt, minimum size = 0.6cm] (xt) at (0.9, 0.95) {{$\boldsymbol{x}_{t}$}}; 14 | \node[circle, draw = black, inner sep = 0pt, minimum size = 0.6cm] (phi) at (-0.9, -0.7) {{$\phi_{i}$}}; 15 | \node[circle, draw = black, inner sep = 0pt, minimum size = 0.6cm] (theta) at (0, -2) {{$\theta_{j}$}}; 16 | \node[circle, draw = black, inner sep = 0pt, minimum size = 0.6cm] (eta) at (0.9, -0.75) {{$\eta_{t}$}}; 17 | \node[circle, draw = black, inner sep = 0pt, minimum size = 0.55cm] (tau) at (2, 0) {{$\tau$}}; 18 | \node[circle, draw = black, inner sep = 0pt, minimum size = 0.55cm] (mu) at (-2, 0) {{$\mu$}}; 19 | 20 | \foreach \n in {ui, vj, xt, tau, mu, phi, theta, eta}{\path [draw, ->] (\n) edge (obs);} 21 | 22 | \node [text width = 0.2cm] (m) at (-1.1, 0.3) {\small{$m$}}; 23 | \plate[] {plate1} {(obs) (ui) (m) (phi)} { }; 24 | \node [text width = 0.6cm] (n) at (0, -1.55) {\small{$n$}}; 25 | \plate[] {plate2} {(obs) (vj) (n) (theta)} { }; 26 | \node [text width = 0.2cm] (f) at (1.1, 0.3) {\small{$f$}}; 27 | \plate[] {plate3} {(obs) (xt) (f) (eta)} { }; 28 | 29 | \node[circle, draw = black, inner sep = 0pt, minimum size = 0.6cm] (muv) at (-0.6, 2.8) {\small{$\boldsymbol{\mu}_{v}$}}; 30 | \node[circle, draw = black, inner sep = 0pt, minimum size = 0.6cm] (lambdav) at (0.6, 2.8) {\small{$\Lambda_{v}$}}; 31 | \node[text width = 0.8cm] (gamma) at (2, 0.8) {\small{$a_0,b_0$}}; 32 | \node[text width = 0.8cm] (hyper1) at (-2, 0.8) {\small{$\mu_{0},\tau_{0}$}}; 33 | \node[text width = 0.8cm] (hyper2) at (1.2, -2) {\small{$\mu_{0},\tau_{0}$}}; 34 | \node[text width = 0.8cm] (hyper3) at (2.1, -0.75) {\small{$\mu_{0},\tau_{0}$}}; 35 | \node[text width = 0.8cm] (hyper4) at (-2.1, -0.7) {\small{$\mu_{0},\tau_{0}$}}; 36 | \node[text width = 0.4cm] (mu0) at (-0.6, 3.6) {\small{$\boldsymbol{\mu}_{0}$}}; 37 | \node[text width = 0.9cm] (wnu0) at (0.6, 3.6) {\small{$W_{0},\nu_{0}$}}; 38 | \node[text width = 0.6cm] (cdots1) at (-1, 1.6) {\Large\color{gray}{$\cdots$}}; 39 | \node[text width = 0.6cm] (cdots2) at (1, 1.6) {\Large\color{gray}{$\cdots$}}; 40 | 41 | \path [draw, ->] (muv) edge (vj); 42 | \foreach \n in {vj, muv}{\path [draw, ->] (lambdav) edge (\n);} 43 | \path [draw, ->] (mu0) edge (muv); 44 | \path [draw, ->] (wnu0) edge (lambdav); 45 | \path [draw, ->] (gamma) edge (tau); 46 | \path [draw, ->] (hyper1) edge (mu); 47 | \path [draw, ->] (hyper2) edge (theta); 48 | \path [draw, ->] (hyper3) edge (eta); 49 | \path [draw, ->] (hyper4) edge (phi); 50 | 51 | \end{tikzpicture} 52 | \end{document} 53 | -------------------------------------------------------------------------------- /BayesNet/BCPF.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/BayesNet/BCPF.pdf -------------------------------------------------------------------------------- /BayesNet/BCPF.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/BayesNet/BCPF.png -------------------------------------------------------------------------------- /BayesNet/BCPF.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border = 0.1cm]{standalone} 2 | \usepackage[utf8]{inputenc} 3 | 4 | \usepackage{tikz} 5 | \usepackage{amsfonts, amsmath, amssymb} 6 | \usepackage{systeme, mathtools} 7 | \usetikzlibrary{positioning, arrows.meta, quotes} 8 | \usetikzlibrary{shapes,snakes} 9 | \usetikzlibrary{bayesnet} 10 | \tikzset{>=latex} 11 | \tikzstyle{plate caption} = [caption, node distance=0, inner sep=0pt, 12 | below left=5pt and 0pt of #1.south] 13 | 14 | \begin{document} 15 | \begin{tikzpicture} 16 | \node [obs] (x) at (0,0) {\large $x_{\boldsymbol{i}}$}; 17 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.6cm] (u1) at (-1.2,1.6) { $\boldsymbol{u}_{i_1}^{(1)}$}; 18 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.6cm] (u3) at (1.2,1.6) { $\boldsymbol{u}_{i_d}^{(d)}$}; 19 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.65cm] (lambda) at (0,3.0) {\large $\boldsymbol{\lambda}$}; 20 | 21 | \node[mark size=1pt,color=black] at (0,1.6) {\pgfuseplotmark{*}}; 22 | \node[mark size=1pt,color=black] at (-0.2,1.6) {\pgfuseplotmark{*}}; 23 | \node[mark size=1pt,color=black] at (0.2,1.6) {\pgfuseplotmark{*}}; 24 | 25 | \node [text width=0.5cm] (c0) at (0,4) {$\alpha,\beta$}; 26 | \node [text width=0.5cm] (a0) at (2.5,2.6) {$\alpha,\beta$}; 27 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.65cm] (tau_epsilon) at (2.5,1.6) {\large $\tau_{\epsilon}$}; 28 | 29 | \path [draw,->] (u1) edge (x); 30 | \path [draw,->] (u3) edge (x); 31 | \path [draw,->] (lambda) edge (u1); 32 | \path [draw,->] (lambda) edge (u3); 33 | 34 | \path [draw,->] (c0) edge (lambda); 35 | \path [draw,->] (tau_epsilon) edge (x); 36 | \path [draw,->] (a0) edge (tau_epsilon); 37 | \plate [color=red] {part1} {(x)(u1)} { }; 38 | \plate [color=blue] {part3} {(x)(u3)(part1.north east)} { }; 39 | 40 | \node [text width=2cm] at (-0.6,-0.5) {\large $n_1$}; 41 | \node [text width=2cm] at (2,-0.5) {\large $n_d$}; 42 | 43 | \end{tikzpicture} 44 | \end{document} -------------------------------------------------------------------------------- /BayesNet/BGCP-1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/BayesNet/BGCP-1.pdf -------------------------------------------------------------------------------- /BayesNet/BGCP-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/BayesNet/BGCP-1.png -------------------------------------------------------------------------------- /BayesNet/BGCP-1.tex: -------------------------------------------------------------------------------- 1 | \documentclass[tikz,border=0.1cm]{standalone} 2 | \usepackage{tikz} 3 | \usetikzlibrary{bayesnet} 4 | \usepackage{amsmath, amsfonts, amssymb} 5 | \tikzset{>=latex} 6 | 7 | \begin{document} 8 | \begin{tikzpicture} 9 | \node[circle,draw=black,fill=gray!20,inner sep=0pt,minimum size=0.8cm] (obs) at (2,-1) {\small{$y_{ijt}$}}; 10 | \node[circle,draw=black,fill=green!10] (ui) at (0.8,0) {\small{$\boldsymbol{u}_{i}$}}; 11 | \node[circle,draw=black,fill=green!10] (vj) at (2,1) {\small{$\boldsymbol{v}_{j}$}}; 12 | \node[circle,draw=black,fill=green!10] (xt) at (3.2,0) {\small{$\boldsymbol{x}_{t}$}}; 13 | \node[circle,draw=black,fill=green!10] (tau) at (4.2,-1) {\small{$\tau$}}; 14 | \path[draw=black,->] (ui) edge (obs); 15 | \path[draw=black,->] (vj) edge (obs); 16 | \path[draw=black,->] (xt) edge (obs); 17 | \path[draw=black,->] (tau) edge (obs); 18 | \node [text width=0.8cm] (m) at (1,-1.2) {\small{$m$}}; 19 | \plate[] {plate1} {(obs)(ui)(m)} { }; 20 | \node [text width=0.9cm] (n) at (2,-2.3) {\small{$n$}}; 21 | \plate[] {plate2} {(obs)(vj)(n)} { }; 22 | \node [text width=0.2cm] (f) at (3.2,-1.3) {\small{$f$}}; 23 | \plate[] {plate3} {(obs)(xt)(f)} { }; 24 | \node[circle,draw=black,fill=red!10,inner sep=0pt,minimum size=0.7cm] (muv) at (1.3,2.2) {\small{$\boldsymbol{\mu}_{v}$}}; 25 | \node[circle,draw=black,fill=red!10,inner sep=0pt,minimum size=0.7cm] (lambdav) at (2.7,2.2) {\small{$\Lambda_{v}$}}; 26 | \node[text width=0.6cm] (gamma) at (4.2,0) {\small{$\alpha,\beta$}}; 27 | \node[text width=0.4cm] (mu0) at (1.3,3.2) {\small{$\boldsymbol{\mu}_{0}$}}; 28 | \node[text width=0.9cm] (wnu0) at (2.7,3.2) {\small{$W_{0},\nu_{0}$}}; 29 | \node[text width=0.6cm] (cdots1) at (0.8,0.8) {\LARGE\color{red!50}{$\cdots$}}; 30 | \node[text width=0.6cm] (cdots2) at (3.2,0.8) {\LARGE\color{red!50}{$\cdots$}}; 31 | \path[draw=black,->] (muv) edge (vj); 32 | \path[draw=black,->] (lambdav) edge (vj); 33 | \path[draw=black,->] (lambdav) edge (muv); 34 | \path[draw=black,->] (mu0) edge (muv); 35 | \path[draw=black,->] (wnu0) edge (lambdav); 36 | \path[draw=black,->] (gamma) edge (tau); 37 | \end{tikzpicture} 38 | \end{document} -------------------------------------------------------------------------------- /BayesNet/BGCP.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/BayesNet/BGCP.pdf -------------------------------------------------------------------------------- /BayesNet/BGCP.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/BayesNet/BGCP.png -------------------------------------------------------------------------------- /BayesNet/BGCP.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=0.1cm]{standalone} 2 | \usepackage{tikz} 3 | \usepackage{amsfonts} 4 | \usepackage{amsmath,amssymb} 5 | \usepackage{systeme,mathtools} 6 | \usetikzlibrary{positioning,arrows.meta,quotes} 7 | \usetikzlibrary{shapes,snakes} 8 | \usetikzlibrary{bayesnet} 9 | \tikzset{>=latex} 10 | \tikzstyle{plate caption} = [caption, node distance=0, inner sep=0pt, 11 | below left=5pt and 0pt of #1.south] 12 | \begin{document} 13 | \begin{tikzpicture} 14 | % Third-order tensor 15 | \node [obs] (x) at (2,1) {\LARGE $x_{\boldsymbol{i}}$}; 16 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.5cm] (u1) at (0.7,2.05) {\large $\boldsymbol{u}_{i_1}^{(1)}$}; 17 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.5cm] (u2) at (2,4) {\large $\boldsymbol{u}_{i_2}^{(2)}$}; 18 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.5cm] (u3) at (3.25,2.15) {\large $\boldsymbol{u}_{i_3}^{(3)}$}; 19 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.5cm] (mu1) at (0.7,3.3) {\large $\boldsymbol{\mu}^{(1)}$}; 20 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.5cm] (lambda1) at (-0.9,3.3) {\large $\Lambda^{(1)}$}; 21 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.5cm] (mu2) at (2.9,5.4) {\large $\boldsymbol{\mu}^{(2)}$}; 22 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.5cm] (lambda2) at (1.1,5.4) {\large $\Lambda^{(2)}$}; 23 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.5cm] (mu3) at (3.25,3.55) {\large $\boldsymbol{\mu}^{(3)}$}; 24 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.5cm] (lambda3) at (4.75,3.55) {\large $\Lambda^{(3)}$}; 25 | \node [text width=0.5cm] (mu01) at (0.7,4.30) {$\boldsymbol{\mu}_0$}; 26 | \node [text width=1cm] (nuW1) at (-0.9,4.30) {$\nu_0,W_0$}; 27 | \node [text width=0.5cm] (mu02) at (2.9,6.4) {$\boldsymbol{\mu}_0$}; 28 | \node [text width=1cm] (nuW2) at (1.1,6.4) {$\nu_0,W_0$}; 29 | \node [text width=0.5cm] (mu03) at (3.25,4.55) {$\boldsymbol{\mu}_0$}; 30 | \node [text width=1cm] (nuW3) at (4.75,4.55) {$\nu_0,W_0$}; 31 | 32 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.7cm] (tau_epsilon) at (4.25,1) {\large $\tau_{\epsilon}$}; 33 | \node [text width=1cm] (ab0) at (5.1,1.8) {$a_0,b_0$}; 34 | 35 | \path [draw,->] (u1) edge (x); 36 | \path [draw,->] (u2) edge (x); 37 | \path [draw,->] (u3) edge (x); 38 | \path [draw,->] (mu1) edge (u1); 39 | \path [draw,->] (lambda1) edge (u1); 40 | \path [draw,->] (lambda1) edge (mu1); 41 | \path [draw,->] (mu2) edge (u2); 42 | \path [draw,->] (lambda2) edge (u2); 43 | \path [draw,->] (lambda2) edge (mu2); 44 | \path [draw,->] (mu3) edge (u3); 45 | \path [draw,->] (lambda3) edge (u3); 46 | \path [draw,->] (lambda3) edge (mu3); 47 | \path [draw,->] (mu01) edge (mu1); 48 | \path [draw,->] (nuW1) edge (lambda1); 49 | \path [draw,->] (mu02) edge (mu2); 50 | \path [draw,->] (nuW2) edge (lambda2); 51 | \path [draw,->] (mu03) edge (mu3); 52 | \path [draw,->] (nuW3) edge (lambda3); 53 | 54 | \path [draw,->] (tau_epsilon) edge (x); 55 | \path [draw,->] (ab0) edge (tau_epsilon); 56 | 57 | \plate [color=red] {part1} {(x)(u1)} { }; 58 | \plate [color=blue] {part2} {(x)(u2)(part1.south east)} { }; 59 | \plate [color=orange] {part3} {(x)(u3)(part2.south)(part1.north east)} { }; 60 | \node [text width=2cm] at (1.25,0.5) {\large $n_1$}; 61 | \node [text width=2cm] at (2.8,0.1) {\large $n_2$}; 62 | \node [text width=2cm] at (4,-0.25) {\large $n_3$}; 63 | \node [text width=4cm] at (2,-1) {\large (a) third-order tensor}; 64 | 65 | % Fourth-order tensor 66 | \node [obs] (x_4) at (12-1.5,1) {\LARGE $x_{\boldsymbol{i}}$}; 67 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.5cm] (u1_4) at (10-1.5,1.9) {\large $\boldsymbol{u}_{i_1}^{(1)}$}; 68 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.5cm] (u4_4) at (14-1.5,2) {\large $\boldsymbol{u}_{i_4}^{(4)}$}; 69 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.5cm] (u2_4) at (11-1.5,3.95) {\large $\boldsymbol{u}_{i_2}^{(2)}$}; 70 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.5cm] (u3_4) at (13-1.5,4) {\large $\boldsymbol{u}_{i_3}^{(3)}$}; 71 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.5cm] (mu1_4) at (10-1.5,3.3) {\large $\boldsymbol{\mu}^{(1)}$}; 72 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.5cm] (lambda1_4) at (8.5-1.5,3.3) {\large $\Lambda^{(1)}$}; 73 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.5cm] (mu2_4) at (11-1.5,5.4) {\large $\boldsymbol{\mu}^{(2)}$}; 74 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.5cm] (lambda2_4) at (9.5-1.5,5.4) {\large $\Lambda^{(2)}$}; 75 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.5cm] (mu3_4) at (13-1.5,5.4) {\large $\boldsymbol{\mu}^{(3)}$}; 76 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.5cm] (lambda3_4) at (14.50-1.5,5.4) {\large $\Lambda^{(3)}$}; 77 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.5cm] (mu4_4) at (14-1.5,3.35) {\large $\boldsymbol{\mu}^{(4)}$}; 78 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.5cm] (lambda4_4) at (15.5-1.5,3.35) {\large $\Lambda^{(4)}$}; 79 | \node [text width=0.5cm] (mu01_4) at (10-1.5,4.3) {$\boldsymbol{\mu}_0$}; 80 | \node [text width=1cm] (nuW1_4) at (8.5-1.5,4.3) {$\nu_0,W_0$}; 81 | \node [text width=0.5cm] (mu02_4) at (11-1.5,6.4) {$\boldsymbol{\mu}_0$}; 82 | \node [text width=1cm] (nuW2_4) at (9.5-1.5,6.4) {$\nu_0,W_0$}; 83 | \node [text width=0.5cm] (mu03_4) at (13-1.5,6.4) {$\boldsymbol{\mu}_0$}; 84 | \node [text width=1cm] (nuW3_4) at (14.50-1.5,6.4) {$\nu_0,W_0$}; 85 | \node [text width=0.5cm] (mu04_4) at (14-1.5,4.35) {$\boldsymbol{\mu}_0$}; 86 | \node [text width=1cm] (nuW4_4) at (15.5-1.5,4.35) {$\nu_0,W_0$}; 87 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.7cm] (tau_epsilon4) at (15-1.5,1) {\large $\tau_{\epsilon}$}; 88 | \node [text width=1cm] (ab0_4) at (15.8-1.5,1.8) {$a_0,b_0$}; 89 | 90 | \path [draw,->] (u1_4) edge (x_4); 91 | \path [draw,->] (u2_4) edge (x_4); 92 | \path [draw,->] (u3_4) edge (x_4); 93 | \path [draw,->] (u4_4) edge (x_4); 94 | \path [draw,->] (mu1_4) edge (u1_4); 95 | \path [draw,->] (mu2_4) edge (u2_4); 96 | \path [draw,->] (mu3_4) edge (u3_4); 97 | \path [draw,->] (mu4_4) edge (u4_4); 98 | \path [draw,->] (lambda1_4) edge (mu1_4); 99 | \path [draw,->] (lambda1_4) edge (u1_4); 100 | \path [draw,->] (lambda2_4) edge (mu2_4); 101 | \path [draw,->] (lambda2_4) edge (u2_4); 102 | \path [draw,->] (lambda3_4) edge (mu3_4); 103 | \path [draw,->] (lambda3_4) edge (u3_4); 104 | \path [draw,->] (lambda4_4) edge (mu4_4); 105 | \path [draw,->] (lambda4_4) edge (u4_4); 106 | \path [draw,->] (mu01_4) edge (mu1_4); 107 | \path [draw,->] (nuW1_4) edge (lambda1_4); 108 | \path [draw,->] (mu02_4) edge (mu2_4); 109 | \path [draw,->] (nuW2_4) edge (lambda2_4); 110 | \path [draw,->] (mu03_4) edge (mu3_4); 111 | \path [draw,->] (nuW3_4) edge (lambda3_4); 112 | \path [draw,->] (mu04_4) edge (mu4_4); 113 | \path [draw,->] (nuW4_4) edge (lambda4_4); 114 | \path [draw,->] (tau_epsilon4) edge (x_4); 115 | \path [draw,->] (ab0_4) edge (tau_epsilon4); 116 | 117 | \plate [color=red] {part1} {(x_4)(u1_4)} { }; 118 | \plate [color=blue] {part2} {(x_4)(u2_4)(part1.south east)} { }; 119 | \plate [color=orange] {part3} {(x_4)(u3_4)(part2.south)(part1.south east)(part2.east)} {$ $}; 120 | \plate [color=violet] {part4} {(x_4)(u4_4)(part2.east)(part3.east)} { }; 121 | \node [text width=4.2cm] at (12-1.5,-1) {\large (b) fourth-order tensor}; 122 | \node [text width=2cm] at (10.65-1.5,0.5) {\large $n_1$}; 123 | \node [text width=2cm] at (11.55-1.5,0.1) {\large $n_2$}; 124 | \node [text width=2cm] at (13-1.5,-0.25) {\large $n_3$}; 125 | \node [text width=2cm] at (15-1.5,0.5) {\large $n_4$}; 126 | \end{tikzpicture} 127 | \end{document} -------------------------------------------------------------------------------- /BayesNet/BTMF.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/BayesNet/BTMF.pdf -------------------------------------------------------------------------------- /BayesNet/BTMF.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/BayesNet/BTMF.png -------------------------------------------------------------------------------- /BayesNet/BTMF.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=0.1cm, 12pt]{standalone} 2 | \usepackage{tikz} 3 | \usepackage{amsfonts} 4 | \usepackage{amsmath,amssymb} 5 | \usepackage{systeme,mathtools} 6 | \usetikzlibrary{positioning,arrows.meta,quotes} 7 | \usetikzlibrary{shapes,snakes} 8 | \usetikzlibrary{bayesnet} 9 | \tikzset{>=latex} 10 | \tikzstyle{plate caption} = [caption, node distance=0, inner sep=0pt, 11 | below left=5pt and 0pt of #1.south] 12 | \begin{document} 13 | \begin{tikzpicture} 14 | \node [obs,inner sep=0pt,minimum size=0.8cm] (obs) at (0.8+2.4,0+0.8-0.3) {\normalsize$y_{i,t+1}$}; 15 | \node [obs,minimum size=0.95cm] (obs1) at (-0.8+2.4,0+0.8-0.3) {\normalsize$y_{i,t}$}; 16 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.8cm] (obs2) at (-0.8+2.4-1.6,0.5) {$y_{i,t-1}$}; 17 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.8cm] (xtd1) at (-2.6,-2.0) {\scalebox{0.85}[1]{$\boldsymbol{x}_{t-d+1}$}}; 18 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=1cm] (xtd) at (-4.2,-2.0) {$\boldsymbol{x}_{t-d}$}; 19 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=1cm] (xt1) at (3.2,-2.0) {$\boldsymbol{x}_{t+1}$}; 20 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=1cm] (xt2) at (1.6,-2.0) {$\boldsymbol{x}_{t}$}; 21 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=1cm] (xt3) at (0,-2.0) {$\boldsymbol{x}_{t-1}$}; 22 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=1cm] (w) at (2.4-0.8,2.3-0.4) {$\boldsymbol{w}_{i}$}; 23 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.9cm] (lambda) at (3.2-0.8,3.8-0.4) {$\Lambda_{w}$}; 24 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.9cm] (mu) at (0+2.4-1.6,3.8-0.4) {$\boldsymbol{\mu}_{w}$}; 25 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.9cm] (kappa) at (0.8,-4) {$\Sigma$}; 26 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.9cm] (thetak) at (-1.3,-4) {$A$}; 27 | 28 | \node[mark size=1pt,color=black] at (-1.6+2.4-1.6,0+0.8-0.3) {\pgfuseplotmark{*}}; 29 | \node[mark size=1pt,color=black] at (-1.8+2.4-1.6,0+0.8-0.3) {\pgfuseplotmark{*}}; 30 | \node[mark size=1pt,color=black] (leftnode0) at (-2.0+2.4-1.6,0+0.8-0.3) {\pgfuseplotmark{*}}; 31 | 32 | \node[mark size=1pt,color=black] at (1.6+2.4,0+0.8-0.3) {\pgfuseplotmark{*}}; 33 | \node[mark size=1pt,color=black] at (1.8+2.4,0+0.8-0.3) {\pgfuseplotmark{*}}; 34 | \node[mark size=1pt,color=black] (rightnode0) at (2.0+2.4,0+0.8-0.3) {\pgfuseplotmark{*}}; 35 | 36 | \node[mark size=1pt,color=black] at (-1.1,-2) {\pgfuseplotmark{*}}; 37 | \node[mark size=1pt,color=black] at (-1.3,-2) {\pgfuseplotmark{*}}; 38 | \node[mark size=1pt,color=black] at (-1.5,-2) {\pgfuseplotmark{*}}; 39 | 40 | \node[mark size=1pt,color=black] (leftnode1) at (-5.4,-2) {\pgfuseplotmark{*}}; 41 | \node[mark size=1pt,color=black] at (-5.2,-2) {\pgfuseplotmark{*}}; 42 | \node[mark size=1pt,color=black] at (-5.0,-2) {\pgfuseplotmark{*}}; 43 | 44 | \node[mark size=1pt,color=black] (rightnode1) at (4.4,-2) {\pgfuseplotmark{*}}; 45 | \node[mark size=1pt,color=black] at (4.2,-2) {\pgfuseplotmark{*}}; 46 | \node[mark size=1pt,color=black] at (4.0,-2) {\pgfuseplotmark{*}}; 47 | 48 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.8cm] (tau) at (3.0+2.4-1.2,-1.8+0.8) {$\tau$}; 49 | \node [text width=0.6cm] (gamma1) at (3.0+2.4,-1.8+0.8) {$\alpha,\beta$}; 50 | \node [text width=0.9cm] (gamma2) at (0+2.4,4.8-0.3) {\small $W_0,\nu_0$}; 51 | \node [text width=0.5cm] (mu0) at (0+2.4-1.6,4.8-0.3) {$\boldsymbol{\mu}_0$}; 52 | \node [text width=0.9cm] (gamma3) at (0.8,-5.1) {\small $S_0,\nu_0$}; 53 | \node [text width=1.2cm] (gamma4) at (-1.3,-5.1) {\small $M_0,\Psi_0$}; 54 | 55 | \path [draw,->] (w) edge (obs); 56 | \path [draw,->] (w) edge (obs1); 57 | \path [draw,->,dashed] (w) edge (obs2); 58 | \path [draw,->] (lambda) edge (w); 59 | \path [draw,->] (kappa) edge (xtd); 60 | \path [draw,->] (kappa) edge (xtd1); 61 | \path [draw,->] (kappa) edge (xt1); 62 | \path [draw,->] (kappa) edge (xt2); 63 | \path [draw,->] (kappa) edge (xt3); 64 | \path [draw,->] (gamma1) edge (tau); 65 | \path [draw,->] (gamma2) edge (lambda); 66 | \path [draw,->] (gamma3) edge (kappa); 67 | \path [draw,->] (gamma4) edge (thetak); 68 | \path [draw,->] (lambda) edge (mu); 69 | \path [draw,->] (mu) edge (w); 70 | \path [draw,->] (mu0) edge (mu); 71 | \path [draw,->] (tau) edge (obs); 72 | \path [draw,->] (tau) edge (obs1); 73 | \path [draw,->,dashed] (tau) edge (obs2); 74 | \path [draw,->] (xt1) edge (obs); 75 | \path [draw,->] (xt2) edge (xt1); 76 | \path [draw,->] (xt3) edge (xt2); 77 | \path [draw,->,dashed] (xt3) edge (obs2); 78 | \path [draw,->] (xt3) edge [bend left] node [right] {} (xt1); 79 | \path [draw,->] (xtd) edge [bend left] node [right] {} (xt2); 80 | \path [draw,->] (xtd) edge [bend left] node [right] {} (xt3); 81 | \path [draw,->] (xtd) edge (xtd1); 82 | \path [draw,->] (xtd1) edge [bend left] node [right] {} (xt1); 83 | \path [draw,->] (xtd1) edge [bend left] node [right] {} (xt2); 84 | \path [draw,->] (xtd1) edge [bend left] node [right] {} (xt3); 85 | \path [draw,->] (xt2) edge (obs1); 86 | \path [draw,->] (thetak) edge (xt1); 87 | \path [draw,->] (thetak) edge (xt2); 88 | \path [draw,->] (thetak) edge (xt3); 89 | \path [draw,->] (thetak) edge (xtd); 90 | \path [draw,->] (thetak) edge (xtd1); 91 | \path [draw,->] (kappa) edge (thetak); 92 | 93 | \node [text width=2.2cm] (m) at (-1+2.5-1.5,2.6+0.8-1.6) {\small{$i\in\left\{1,...,N\right\}$}}; 94 | \plate [color=black] {part1} {(leftnode0)(rightnode0)(obs)(obs1)(w)(m)} { }; 95 | \end{tikzpicture} 96 | \end{document} -------------------------------------------------------------------------------- /BayesNet/btmf_net.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/BayesNet/btmf_net.pdf -------------------------------------------------------------------------------- /BayesNet/btmf_net.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/BayesNet/btmf_net.png -------------------------------------------------------------------------------- /BayesNet/btmf_net.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=0.1cm, 12pt]{standalone} 2 | \usepackage{tikz} 3 | \usepackage{amsfonts} 4 | \usepackage{amsmath,amssymb} 5 | \usepackage{systeme,mathtools} 6 | \usetikzlibrary{positioning,arrows.meta,quotes} 7 | \usetikzlibrary{shapes,snakes} 8 | \usetikzlibrary{bayesnet} 9 | \tikzset{>=latex} 10 | \tikzstyle{plate caption} = [caption, node distance=0, inner sep=0pt, 11 | below left=5pt and 0pt of #1.south] 12 | \begin{document} 13 | \begin{tikzpicture} 14 | \node [obs,inner sep=0pt,minimum size=0.8cm] (obs) at (0.8+2.4,0+0.8-0.3) {\normalsize$y_{i,t+1}$}; 15 | \node [obs,minimum size=0.95cm] (obs1) at (-0.8+2.4,0+0.8-0.3) {\normalsize$y_{i,t}$}; 16 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.8cm] (xtd1) at (-2.6,-2.0) {\scalebox{0.85}[1]{$\boldsymbol{x}_{t-d+1}$}}; 17 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=1cm] (xtd) at (-4.2,-2.0) {$\boldsymbol{x}_{t-d}$}; 18 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=1cm] (xt1) at (3.2,-2.0) {$\boldsymbol{x}_{t+1}$}; 19 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=1cm] (xt2) at (1.6,-2.0) {$\boldsymbol{x}_{t}$}; 20 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=1cm] (xt3) at (0,-2.0) {$\boldsymbol{x}_{t-1}$}; 21 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=1cm] (w) at (2.4,2.3-0.4) {$\boldsymbol{w}_{i}$}; 22 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.9cm] (lambda) at (3.2,3.8-0.4) {$\Lambda_{w}$}; 23 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.9cm] (mu) at (0+2.4-0.8,3.8-0.4) {$\boldsymbol{\mu}_{w}$}; 24 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.8cm] (kappa) at (0,-3.8) {$\Lambda_x$}; 25 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.9cm] (thetak) at (-2,0) {$\boldsymbol{\theta}_{k}$}; 26 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.8cm] (rho) at (-1.2,1.5) {$\Lambda_{\theta}$}; 27 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.8cm] (mu_theta) at (-2.8,1.5) {$\boldsymbol{\mu}_{\theta}$}; 28 | 29 | \node[mark size=1pt,color=black] at (-1.6+2.4,0+0.8-0.3) {\pgfuseplotmark{*}}; 30 | \node[mark size=1pt,color=black] at (-1.8+2.4,0+0.8-0.3) {\pgfuseplotmark{*}}; 31 | \node[mark size=1pt,color=black] (leftnode0) at (-2.0+2.4,0+0.8-0.3) {\pgfuseplotmark{*}}; 32 | 33 | \node[mark size=1pt,color=black] at (1.6+2.4,0+0.8-0.3) {\pgfuseplotmark{*}}; 34 | \node[mark size=1pt,color=black] at (1.8+2.4,0+0.8-0.3) {\pgfuseplotmark{*}}; 35 | \node[mark size=1pt,color=black] (rightnode0) at (2.0+2.4,0+0.8-0.3) {\pgfuseplotmark{*}}; 36 | 37 | \node[mark size=1pt,color=black] at (-1.1,-2) {\pgfuseplotmark{*}}; 38 | \node[mark size=1pt,color=black] at (-1.3,-2) {\pgfuseplotmark{*}}; 39 | \node[mark size=1pt,color=black] at (-1.5,-2) {\pgfuseplotmark{*}}; 40 | 41 | \node[mark size=1pt,color=black] (leftnode1) at (-5.4,-2) {\pgfuseplotmark{*}}; 42 | \node[mark size=1pt,color=black] at (-5.2,-2) {\pgfuseplotmark{*}}; 43 | \node[mark size=1pt,color=black] at (-5.0,-2) {\pgfuseplotmark{*}}; 44 | 45 | \node[mark size=1pt,color=black] (rightnode1) at (4.4,-2) {\pgfuseplotmark{*}}; 46 | \node[mark size=1pt,color=black] at (4.2,-2) {\pgfuseplotmark{*}}; 47 | \node[mark size=1pt,color=black] at (4.0,-2) {\pgfuseplotmark{*}}; 48 | 49 | \node [circle,draw=black,fill=white,inner sep=0pt,minimum size=0.8cm] (tau) at (3.0+2.4-1.2,-1.8+0.8) {$\tau$}; 50 | \node [text width=0.6cm] (gamma1) at (3.0+2.4,-1.8+0.8) {$\alpha,\beta$}; 51 | \node [text width=0.9cm] (gamma2) at (0+2.4+0.8,4.8-0.4) {\small $W_0,\nu_0$}; 52 | \node [text width=0.5cm] (mu0) at (0+2.4-0.8,4.8-0.4) {$\boldsymbol{\mu}_0$}; 53 | \node [text width=0.3cm] (mu1) at (-2.8,2.5) {$\boldsymbol{\mu}_0$}; 54 | \node [text width=0.9cm] (gamma3) at (0,-4.8) {\small $W_0,\nu_0$}; 55 | \node [text width=0.9cm] (gamma4) at (-1.2,2.5) {\small $W_0,\nu_0$}; 56 | 57 | \path [draw,->] (w) edge (obs); 58 | \path [draw,->] (w) edge (obs1); 59 | \path [draw,->] (lambda) edge (w); 60 | \path [draw,->] (kappa) edge (xtd); 61 | \path [draw,->] (kappa) edge (xtd1); 62 | \path [draw,->] (kappa) edge (xt1); 63 | \path [draw,->] (kappa) edge (xt2); 64 | \path [draw,->] (kappa) edge (xt3); 65 | \path [draw,->] (gamma1) edge (tau); 66 | \path [draw,->] (gamma2) edge (lambda); 67 | \path [draw,->] (gamma3) edge (kappa); 68 | \path [draw,->] (gamma4) edge (rho); 69 | \path [draw,->] (lambda) edge (mu); 70 | \path [draw,->] (mu) edge (w); 71 | \path [draw,->] (mu0) edge (mu); 72 | \path [draw,->] (mu1) edge (mu_theta); 73 | \path [draw,->] (tau) edge (obs); 74 | \path [draw,->] (tau) edge (obs1); 75 | \path [draw,->] (xt1) edge (obs); 76 | \path [draw,->] (xt2) edge (xt1); 77 | \path [draw,->] (xt3) edge (xt2); 78 | \path [draw,->] (xt3) edge [bend left] node [right] {} (xt1); 79 | \path [draw,->] (xtd) edge [bend right] node [right] {} (xt2); 80 | \path [draw,->] (xtd) edge [bend left] node [right] {} (xt3); 81 | \path [draw,->] (xtd) edge (xtd1); 82 | \path [draw,->] (xtd1) edge [bend right] node [right] {} (xt1); 83 | \path [draw,->] (xtd1) edge [bend left] node [right] {} (xt2); 84 | \path [draw,->] (xtd1) edge [bend right] node [right] {} (xt3); 85 | \path [draw,->] (xt2) edge (obs1); 86 | \path [draw,->] (thetak) edge (xt1); 87 | \path [draw,->] (thetak) edge (xt2); 88 | \path [draw,->] (thetak) edge (xt3); 89 | \path [draw,->] (thetak) edge (xtd); 90 | \path [draw,->] (thetak) edge (xtd1); 91 | \path [draw,->] (rho) edge (thetak); 92 | \path [draw,->] (rho) edge (mu_theta); 93 | \path [draw,->] (mu_theta) edge (thetak); 94 | 95 | \node [text width=2.2cm] (m) at (-1+2.4-0.5,2.6+0.8-1.6-0.3) {\small{$i\in\left\{1,...,N\right\}$}}; 96 | \plate [color=black] {part1} {(leftnode0)(rightnode0)(obs)(obs1)(w)(m)} { }; 97 | \node [text width=2.2cm] (d) at (-3.5,0-0.2) {\small{$k\in\left\{1,...,d\right\}$}}; 98 | \plate [color=black] {part3} {(thetak)(d)} { }; 99 | \end{tikzpicture} 100 | \end{document} 101 | -------------------------------------------------------------------------------- /Framework/LRTC-flow.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/Framework/LRTC-flow.pdf -------------------------------------------------------------------------------- /Framework/LRTC-flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/Framework/LRTC-flow.png -------------------------------------------------------------------------------- /Framework/LRTC-flow.tex: -------------------------------------------------------------------------------- 1 | \documentclass[tikz,border={3cm 0.5cm 3cm 0.5cm}]{standalone} 2 | \usepackage{amsmath,amsthm} 3 | \usepackage{amssymb} 4 | \usepackage{bbm} 5 | \usepackage{amsfonts} 6 | \usepackage[ruled,vlined]{algorithm2e} 7 | \usetikzlibrary{positioning,matrix,fit,calc} 8 | \pgfdeclarelayer{behind} 9 | \pgfdeclarelayer{background} 10 | \pgfdeclarelayer{foreground} 11 | \pgfsetlayers{behind,background,main,foreground} 12 | 13 | \begin{document} 14 | \begin{tikzpicture}[T/.style={text width=12em,node font=\bfseries}, 15 | A/.style={align=center}, 16 | B/.style={A,draw,text width=14em,align=left}, 17 | C/.style={text width=14em,align=right}, 18 | L/.style={node font=\tiny,text=blue}, 19 | F/.style={draw,dashed,fill=white}, 20 | font=\sffamily] 21 | 22 | \matrix(mat1)[matrix of nodes,nodes={minimum width=12em}] at (0,0) { 23 | |[T]| \large{\color{orange!80}Incomplete tensor} \\[1em] 24 | |[A]| \pgfdeclareimage[width=4.8cm]{img}{input_tensor.pdf} 25 | \pgfuseimage{img} \\ 26 | |[A]| Tensor $\boldsymbol{\mathcal{Y}}\in\mathbb{R}^{M\times N\times T}$ \\ 27 | }; 28 | 29 | \matrix(mat2)[matrix of nodes,nodes={minimum width=13em}] at (7,0) { 30 | |[T]| \large{\color{orange!80}Model} \\[1em] 31 | |[B]| Initialize $\boldsymbol{\mathcal{T}}^{1}=\boldsymbol{0}$, $\mathcal{P}_{\Omega}(\boldsymbol{\mathcal{M}}_{k}^{1}) = \mathcal{P}_{\Omega}(\boldsymbol{\mathcal{Y}})$, and set $\boldsymbol{\alpha},\rho,\theta$ and maximum iteration $L$. \\[1.5em] 32 | |[C]| \begin{algorithm}[H] 33 | \For{$l = 1$ \KwTo $L$}{ 34 | \For{$k = 1$ \KwTo $3$}{ 35 | 36 | Update $\boldsymbol{\mathcal{X}}_{k}^{l+1}$; 37 | 38 | } 39 | 40 | Update $\boldsymbol{\mathcal{M}}^{l+1}$; 41 | 42 | Update $\boldsymbol{\mathcal{T}}^{l+1}$; 43 | 44 | } 45 | \end{algorithm} \\ 46 | }; 47 | 48 | \matrix(mat3)[matrix of nodes,nodes={minimum width=12em}] at (14,0) { 49 | |[T]| \large{\color{orange!80}Recovered tensor}\\[1em] 50 | |[A]| \pgfdeclareimage[width=4.8cm]{img}{output_tensor.pdf} 51 | \pgfuseimage{img} \\ 52 | |[A]| Tensor $\hat{\boldsymbol{\mathcal{Y}}}=\sum_{k=1}^{3}\alpha_k\boldsymbol{\mathcal{X}}_{k}^{L+1}$ \\ 53 | }; 54 | 55 | \begin{scope} 56 | \begin{pgfonlayer}{background} 57 | \node[F,fit=(mat1-1-1)(mat1-3-1),fill=gray!3](F1){}; 58 | \node[F,fit=(mat2-1-1)(mat2-3-1),fill=gray!3](F2){}; 59 | \node[F,fit=(mat3-1-1)(mat3-3-1),fill=gray!3](F3){}; 60 | 61 | \end{pgfonlayer} 62 | \draw[-latex](mat2-2-1)--(mat2-3-1); 63 | \node[text width=2cm] (cdots) at (4.2,0) {{\color{gray}\LARGE$\Rightarrow$}}; 64 | \node[text width=2cm] (cdots) at (11.2,0) {{\color{gray}\LARGE$\Rightarrow$}}; 65 | \end{scope} 66 | \begin{scope} 67 | \begin{pgfonlayer}{behind} 68 | \end{pgfonlayer} 69 | \end{scope} 70 | \end{tikzpicture} 71 | \end{document} -------------------------------------------------------------------------------- /Framework/Laplacian_convolutional_time_series.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/Framework/Laplacian_convolutional_time_series.pdf -------------------------------------------------------------------------------- /Framework/Laplacian_convolutional_time_series.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/Framework/Laplacian_convolutional_time_series.png -------------------------------------------------------------------------------- /Framework/Laplacian_convolutional_time_series.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=2mm]{standalone} 2 | \usepackage{tikz} 3 | \usepackage{helvet} 4 | \renewcommand{\familydefault}{\sfdefault} 5 | \usepackage{amsmath} 6 | 7 | \usepackage{pgfplots} 8 | \pgfplotsset{ 9 | tick label style = {font=\sansmath\sffamily}, compat=newest} 10 | 11 | \begin{document} 12 | \footnotesize 13 | 14 | \begin{tikzpicture} 15 | \begin{axis}[axis lines=left, enlargelimits=upper, domain=0:2, xmin=0, axis y line=none, xtick={1,2,3,4,5}, xticklabels={${x}_{1}$,${x}_{2}$,${x}_{3}$,${x}_{4}$,${x}_{5}$}, legend pos=outer north east, width=6cm, height=3.0cm, xlabel=Time series, xlabel near ticks, ylabel near ticks] 16 | 17 | \addplot[only marks, mark size=5, color=red!90, draw=black] coordinates{(1,1)}; 18 | \addplot[only marks, mark size=5, color=red!75, draw=black] coordinates{(2,1)}; 19 | \addplot[only marks, mark size=5, color=red!60, draw=black] coordinates{(3,1)}; 20 | \addplot[only marks, mark size=5, color=red!45, draw=black] coordinates{(4,1)}; 21 | \addplot[only marks, mark size=5, color=red!30, draw=black] coordinates{(5,1)}; 22 | 23 | \end{axis} 24 | 25 | \newcommand{\rightpos}{0.5} 26 | \node at (5.4,0.8-\rightpos) {\color{black}Global trends}; 27 | \node (A) at (4.8,0.5-\rightpos) {}; 28 | \node (B) at (6,0.5-\rightpos) {}; 29 | \draw [->,very thick,gray] (A) edge (B); 30 | 31 | \newcommand{\circpos}{0.25} 32 | 33 | \node[circle,draw=black,fill=red!90,inner sep=0pt,minimum size=0.35cm] at (7-\circpos,1.5-\rightpos) {}; 34 | \node[circle,draw=black,fill=red!70,inner sep=0pt,minimum size=0.35cm] at (7-\circpos,1.0-\rightpos) {}; 35 | \node[circle,draw=black,fill=red!50,inner sep=0pt,minimum size=0.35cm] at (7-\circpos,0.5-\rightpos) {}; 36 | \node[circle,draw=black,fill=red!30,inner sep=0pt,minimum size=0.35cm] at (7-\circpos,0.0-\rightpos) {}; 37 | \node[circle,draw=black,fill=red!10,inner sep=0pt,minimum size=0.35cm] at (7-\circpos,-0.5-\rightpos) {}; 38 | 39 | \node[circle,draw=black,fill=red!10,inner sep=0pt,minimum size=0.35cm] at (7.5-\circpos,1.5-\rightpos) {}; 40 | \node[circle,draw=black,fill=red!90,inner sep=0pt,minimum size=0.35cm] at (7.5-\circpos,1.0-\rightpos) {}; 41 | \node[circle,draw=black,fill=red!70,inner sep=0pt,minimum size=0.35cm] at (7.5-\circpos,0.5-\rightpos) {}; 42 | \node[circle,draw=black,fill=red!50,inner sep=0pt,minimum size=0.35cm] at (7.5-\circpos,0.0-\rightpos) {}; 43 | \node[circle,draw=black,fill=red!30,inner sep=0pt,minimum size=0.35cm] at (7.5-\circpos,-0.5-\rightpos) {}; 44 | 45 | \node[circle,draw=black,fill=red!30,inner sep=0pt,minimum size=0.35cm] at (8-\circpos,1.5-\rightpos) {}; 46 | \node[circle,draw=black,fill=red!10,inner sep=0pt,minimum size=0.35cm] at (8-\circpos,1.0-\rightpos) {}; 47 | \node[circle,draw=black,fill=red!90,inner sep=0pt,minimum size=0.35cm] at (8-\circpos,0.5-\rightpos) {}; 48 | \node[circle,draw=black,fill=red!70,inner sep=0pt,minimum size=0.35cm] at (8-\circpos,0.0-\rightpos) {}; 49 | \node[circle,draw=black,fill=red!50,inner sep=0pt,minimum size=0.35cm] at (8-\circpos,-0.5-\rightpos) {}; 50 | 51 | \node[circle,draw=black,fill=red!50,inner sep=0pt,minimum size=0.35cm] at (8.5-\circpos,1.5-\rightpos) {}; 52 | \node[circle,draw=black,fill=red!30,inner sep=0pt,minimum size=0.35cm] at (8.5-\circpos,1.0-\rightpos) {}; 53 | \node[circle,draw=black,fill=red!10,inner sep=0pt,minimum size=0.35cm] at (8.5-\circpos,0.5-\rightpos) {}; 54 | \node[circle,draw=black,fill=red!90,inner sep=0pt,minimum size=0.35cm] at (8.5-\circpos,0.0-\rightpos) {}; 55 | \node[circle,draw=black,fill=red!70,inner sep=0pt,minimum size=0.35cm] at (8.5-\circpos,-0.5-\rightpos) {}; 56 | 57 | \node[circle,draw=black,fill=red!70,inner sep=0pt,minimum size=0.35cm] at (9-\circpos,1.5-\rightpos) {}; 58 | \node[circle,draw=black,fill=red!50,inner sep=0pt,minimum size=0.35cm] at (9-\circpos,1.0-\rightpos) {}; 59 | \node[circle,draw=black,fill=red!30,inner sep=0pt,minimum size=0.35cm] at (9-\circpos,0.5-\rightpos) {}; 60 | \node[circle,draw=black,fill=red!10,inner sep=0pt,minimum size=0.35cm] at (9-\circpos,0.0-\rightpos) {}; 61 | \node[circle,draw=black,fill=red!90,inner sep=0pt,minimum size=0.35cm] at (9-\circpos,-0.5-\rightpos) {}; 62 | 63 | \node at (8-\circpos,-1.0-\rightpos) {\color{black}$\mathcal{C}(\boldsymbol{x})$}; 64 | 65 | \node at (8.8-\circpos,-1.6-\rightpos) {\color{black}Modeling}; 66 | \node (E) at (8-\circpos,-1.2-\rightpos) {}; 67 | \node (F) at (8-\circpos,-2-\rightpos) {}; 68 | \draw [->,very thick,gray] (E) edge (F); 69 | 70 | \node at (3.3,-1.5) {\color{black}Local trends}; 71 | \node (C) at (2.35,-1) {}; 72 | \node (D) at (2.35,-2) {}; 73 | \draw [->,very thick,gray] (C) edge (D); 74 | 75 | \newcommand{\shift}{2.5} 76 | 77 | \node[circle, draw = black, fill = red!90, minimum size = 0.35cm] (x1) at (0.75, 0-\shift) {}; 78 | \node[circle, draw = black, fill = red!70, minimum size = 0.35cm] (x2) at (1.55, 0-\shift) {}; 79 | \node[circle, draw = black, fill = red!50, minimum size = 0.35cm] (x3) at (2.35, 0-\shift) {}; 80 | \node[circle, draw = black, fill = red!30, minimum size = 0.35cm] (x4) at (3.15, 0-\shift) {}; 81 | \node[circle, draw = black, fill = red!10, minimum size = 0.35cm] (x5) at (3.95, 0-\shift) {}; 82 | 83 | \path [draw, line width = 0.2mm, -] (x1) edge [bend left] node [right] {} (x2); 84 | \path [draw, line width = 0.2mm, -] (x2) edge [bend left] node [right] {} (x3); 85 | \path [draw, line width = 0.2mm, -] (x3) edge [bend left] node [right] {} (x4); 86 | \path [draw, line width = 0.2mm, -] (x4) edge [bend left] node [right] {} (x5); 87 | 88 | \path [draw, line width = 0.2mm, -] (x1) edge [bend right] node [left] {} (x5); 89 | 90 | \node at (2.35,-0.8-\shift) {\color{black}$\boldsymbol{\ell}\star\boldsymbol{x}$}; 91 | 92 | \node at (5.4,0.3-\shift-\rightpos) {\color{black}Modeling}; 93 | \node (G) at (4.8,0-\shift-\rightpos) {}; 94 | \node (H) at (6,0-\shift-\rightpos) {}; 95 | \draw [->,very thick,gray] (G) edge (H); 96 | 97 | \node at (8-\circpos,-0-\shift-\rightpos) {\color{black}$\|\mathcal{C}(\boldsymbol{x})\|_{*}+\frac{\gamma}{2}\|\boldsymbol{\ell}\star\boldsymbol{x}\|_{2}^{2}$}; 98 | 99 | \end{tikzpicture} 100 | 101 | \end{document} 102 | -------------------------------------------------------------------------------- /Framework/circulant_graph_degree_2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/Framework/circulant_graph_degree_2.pdf -------------------------------------------------------------------------------- /Framework/circulant_graph_degree_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/Framework/circulant_graph_degree_2.png -------------------------------------------------------------------------------- /Framework/circulant_graph_degree_2.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=0.3cm, 11pt]{standalone} 2 | \usepackage{tikz} 3 | \usepackage{amsmath, amssymb, amsfonts} 4 | \usepackage{color} 5 | 6 | \begin{document} 7 | \begin{tikzpicture} 8 | 9 | \node[circle, line width = 0.25mm, draw = black, fill = red!15, inner sep = 0pt, minimum size = 0.75cm] (x1) at (0, 0) {\Large${x}_{1}$}; 10 | \node[circle, line width = 0.25mm, draw = black, fill = red!15, inner sep = 0pt, minimum size = 0.75cm] (x2) at (1.5, 0) {\Large${x}_{2}$}; 11 | \node[circle, line width = 0.25mm, draw = black, fill = red!15, inner sep = 0pt, minimum size = 0.75cm] (x3) at (3, 0) {\Large${x}_{3}$}; 12 | \node[circle, line width = 0.25mm, draw = black, fill = red!15, inner sep = 0pt, minimum size = 0.75cm] (x4) at (4.5, 0) {\Large${x}_{4}$}; 13 | \node[circle, line width = 0.25mm, draw = black, fill = red!15, inner sep = 0pt, minimum size = 0.75cm] (x5) at (6, 0) {\Large${x}_{5}$}; 14 | 15 | \path [draw, line width = 0.2mm, -] (x1) edge [bend left] node [right] {} (x2); 16 | \path [draw, line width = 0.2mm, -] (x2) edge [bend left] node [right] {} (x3); 17 | \path [draw, line width = 0.2mm, -] (x3) edge [bend left] node [right] {} (x4); 18 | \path [draw, line width = 0.2mm, -] (x4) edge [bend left] node [right] {} (x5); 19 | 20 | \path [draw, line width = 0.2mm, -] (x1) edge [bend right] node [left] {} (x5); 21 | 22 | \end{tikzpicture} 23 | \end{document} -------------------------------------------------------------------------------- /Framework/circulant_graph_degree_4.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/Framework/circulant_graph_degree_4.pdf -------------------------------------------------------------------------------- /Framework/circulant_graph_degree_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/Framework/circulant_graph_degree_4.png -------------------------------------------------------------------------------- /Framework/circulant_graph_degree_4.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=0.3cm, 11pt]{standalone} 2 | \usepackage{tikz} 3 | \usepackage{amsmath, amssymb, amsfonts} 4 | \usepackage{color} 5 | 6 | \begin{document} 7 | \begin{tikzpicture} 8 | 9 | \node[circle, line width = 0.25mm, draw = black, fill = red!15, inner sep = 0pt, minimum size = 0.75cm] (x1) at (0, 0) {\Large${x}_{1}$}; 10 | \node[circle, line width = 0.25mm, draw = black, fill = red!15, inner sep = 0pt, minimum size = 0.75cm] (x2) at (1.5, 0) {\Large${x}_{2}$}; 11 | \node[circle, line width = 0.25mm, draw = black, fill = red!15, inner sep = 0pt, minimum size = 0.75cm] (x3) at (3, 0) {\Large${x}_{3}$}; 12 | \node[circle, line width = 0.25mm, draw = black, fill = red!15, inner sep = 0pt, minimum size = 0.75cm] (x4) at (4.5, 0) {\Large${x}_{4}$}; 13 | \node[circle, line width = 0.25mm, draw = black, fill = red!15, inner sep = 0pt, minimum size = 0.75cm] (x5) at (6, 0) {\Large${x}_{5}$}; 14 | 15 | \path [draw, line width = 0.2mm, -] (x1) edge [bend left] node [right] {} (x2); 16 | \path [draw, line width = 0.2mm, -] (x2) edge [bend left] node [right] {} (x3); 17 | \path [draw, line width = 0.2mm, -] (x3) edge [bend left] node [right] {} (x4); 18 | \path [draw, line width = 0.2mm, -] (x4) edge [bend left] node [right] {} (x5); 19 | 20 | \path [draw, line width = 0.2mm, -] (x1) edge [bend left] node [right] {} (x3); 21 | \path [draw, line width = 0.2mm, -] (x2) edge [bend left] node [right] {} (x4); 22 | \path [draw, line width = 0.2mm, -] (x3) edge [bend left] node [right] {} (x5); 23 | 24 | \path [draw, line width = 0.2mm, -] (x1) edge [bend right] node [left] {} (x4); 25 | \path [draw, line width = 0.2mm, -] (x1) edge [bend right] node [left] {} (x5); 26 | \path [draw, line width = 0.2mm, -] (x2) edge [bend right] node [left] {} (x5); 27 | 28 | \end{tikzpicture} 29 | \end{document} -------------------------------------------------------------------------------- /Framework/curve1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/Framework/curve1.pdf -------------------------------------------------------------------------------- /Framework/curve2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/Framework/curve2.pdf -------------------------------------------------------------------------------- /Framework/graphical_matrix_time_series.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/Framework/graphical_matrix_time_series.pdf -------------------------------------------------------------------------------- /Framework/graphical_matrix_time_series.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/Framework/graphical_matrix_time_series.png -------------------------------------------------------------------------------- /Framework/graphical_matrix_time_series.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=0.1cm, 12pt]{standalone} 2 | \usepackage[utf8]{inputenc} 3 | 4 | \usepackage{tikz} 5 | \usepackage{amsfonts} 6 | \usepackage{amsmath,amssymb} 7 | \usepackage{systeme,mathtools} 8 | \usetikzlibrary{positioning,arrows.meta,quotes} 9 | \usetikzlibrary{shapes,snakes} 10 | \usetikzlibrary{bayesnet} 11 | \tikzset{>=latex} 12 | 13 | \begin{document} 14 | \begin{tikzpicture} 15 | \node[circle,draw=black,fill=green!10,inner sep=0pt,minimum size=0.95cm] (obs1) at (0,0) {$y_{i,1}$}; 16 | \node[circle,draw=black,fill=white,inner sep=0pt,minimum size=0.95cm] (obs2) at (1.5,0) {$y_{i,2}$}; 17 | \node[circle,draw=black,fill=green!10,inner sep=0pt,minimum size=0.95cm] (obs3) at (3,0) {$y_{i,3}$}; 18 | \node[text width=0.4cm] (obs4) at (4.5,0) {\color{gray}{$\LARGE{\cdots}$}}; 19 | \node[circle,draw=black,fill=white,inner sep=0pt,minimum size=0.95cm] (obs5) at (6,0) {$y_{i,t}$}; 20 | \node[circle,draw=black,fill=red!10,inner sep=0pt,minimum size=0.95cm] (obs6) at (7.5,0) {$y_{i,t+1}$}; 21 | \node[circle,draw=black,fill=red!10,inner sep=0pt,minimum size=0.85cm] (obs7) at (9,0) {$y_{i,t+2}$}; 22 | \node[text width=0.4cm] (obs8) at (10.5,0) {\color{gray}{$\LARGE{\cdots}$}}; 23 | \path [draw,->,color=blue!50!green] (obs1) edge [bend left] node [right] {} (obs2); 24 | \path [draw,->,color=blue!50!green] (obs2) edge [bend left] node [right] {} (obs3); 25 | \path [draw,->,color=blue!50!green] (obs3) edge [bend left] node [right] {} (obs4); 26 | \path [draw,->,color=blue!50!green] (obs4) edge [bend left] node [right] {} (obs5); 27 | \path [draw,->,color=red!50!gray] (obs5) edge [bend left] node [right] {} (obs6); 28 | \path [draw,->,color=red!50!gray] (obs6) edge [bend left] node [right] {} (obs7); 29 | \node[text width=0.3cm] (unknown1) at (1.5,-0.0) {\LARGE\color{red!30}{?}}; 30 | \node[text width=0.3cm] (unknown1) at (6,-0.0) {\LARGE\color{red!30}{?}}; 31 | 32 | \draw[] (0,-0.8) -- (0,-1.2); 33 | \draw[] (6.75,-0.8) -- (6.75,-1.2); 34 | \draw[] (10.5,-0.8) -- (10.5,-1.2); 35 | \node at (3.375,-1) {\small{historical values}}; 36 | \draw[arrows=->] (4.85,-1)--(6.75,-1); 37 | \draw[arrows=<-] (0,-1)--(1.9,-1); 38 | \node at (8.625,-1) {\small{near-future values}}; 39 | \draw[arrows=->] (10.2,-1)--(10.5,-1); 40 | \draw[arrows=<-] (6.75,-1)--(7.05,-1); 41 | 42 | \end{tikzpicture} 43 | \end{document} 44 | -------------------------------------------------------------------------------- /Framework/graphical_tensor_time_series.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/Framework/graphical_tensor_time_series.pdf -------------------------------------------------------------------------------- /Framework/graphical_tensor_time_series.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/Framework/graphical_tensor_time_series.png -------------------------------------------------------------------------------- /Framework/graphical_tensor_time_series.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=0.1cm, 12pt]{standalone} 2 | \usepackage[utf8]{inputenc} 3 | 4 | \usepackage{tikz} 5 | \usepackage{amsfonts} 6 | \usepackage{amsmath,amssymb} 7 | \usepackage{systeme,mathtools} 8 | \usetikzlibrary{positioning,arrows.meta,quotes} 9 | \usetikzlibrary{shapes,snakes} 10 | \usetikzlibrary{bayesnet} 11 | \tikzset{>=latex} 12 | \usepackage{helvet} % Helvetica font 13 | \renewcommand{\familydefault}{\sfdefault} % Sans-serif as default 14 | 15 | \begin{document} 16 | \begin{tikzpicture} 17 | \node[circle,draw=black,fill=green!10,inner sep=0pt,minimum size=1.1cm] (obs1) at (0,0) {$y_{i,j,1}$}; 18 | \node[circle,draw=black,fill=white,inner sep=0pt,minimum size=1.1cm] (obs2) at (1.5,0) {$y_{i,j,2}$}; 19 | \node[circle,draw=black,fill=green!10,inner sep=0pt,minimum size=1.1cm] (obs3) at (3,0) {$y_{i,j,3}$}; 20 | \node[text width=0.4cm] (obs4) at (4.5,0) {\color{gray}{$\LARGE{\cdots}$}}; 21 | \node[circle,draw=black,fill=white,inner sep=0pt,minimum size=1.1cm] (obs5) at (6,0) {$y_{i,j,t}$}; 22 | \node[circle,draw=black,fill=red!10,inner sep=0pt,minimum size=0.8cm] (obs6) at (7.5,0) {$y_{i,j,t+1}$}; 23 | \node[circle,draw=black,fill=red!10,inner sep=0pt,minimum size=0.8cm] (obs7) at (9,0) {$y_{i,j,t+2}$}; 24 | \node[text width=0.4cm] (obs8) at (10.5,0) {\color{gray}{\LARGE${\cdots}$}}; 25 | \path [draw,->,color=blue!50!green] (obs1) edge [bend left] node [right] {} (obs2); 26 | \path [draw,->,color=blue!50!green] (obs2) edge [bend left] node [right] {} (obs3); 27 | \path [draw,->,color=blue!50!green] (obs3) edge [bend left] node [right] {} (obs4); 28 | \path [draw,->,color=blue!50!green] (obs4) edge [bend left] node [right] {} (obs5); 29 | \path [draw,->,color=red!50!gray] (obs5) edge [bend left] node [right] {} (obs6); 30 | \path [draw,->,color=red!50!gray] (obs6) edge [bend left] node [right] {} (obs7); 31 | \node[text width=0.3cm] (unknown1) at (1.5,-0.0) {\LARGE\color{red!30}{?}}; 32 | \node[text width=0.3cm] (unknown1) at (6,-0.0) {\LARGE\color{red!30}{?}}; 33 | 34 | \draw[] (0,-0.8) -- (0,-1.2); 35 | \draw[] (6.75,-0.8) -- (6.75,-1.2); 36 | \draw[] (10.5,-0.8) -- (10.5,-1.2); 37 | \node at (3.375,-1) {\small{Historical values}}; 38 | \draw[arrows=->] (4.85,-1)--(6.75,-1); 39 | \draw[arrows=<-] (0,-1)--(1.9,-1); 40 | \node at (8.625,-1) {\small{Future values}}; 41 | \draw[arrows=->] (10.2,-1)--(10.5,-1); 42 | \draw[arrows=<-] (6.75,-1)--(7.05,-1); 43 | 44 | \end{tikzpicture} 45 | \end{document} 46 | -------------------------------------------------------------------------------- /Framework/graphical_time_series.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/Framework/graphical_time_series.pdf -------------------------------------------------------------------------------- /Framework/graphical_time_series.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/Framework/graphical_time_series.png -------------------------------------------------------------------------------- /Framework/graphical_time_series.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=0.1cm]{standalone} 2 | \usepackage[utf8]{inputenc} 3 | 4 | \usepackage{tikz} 5 | \usepackage{amsfonts} 6 | \usepackage{amsmath,amssymb} 7 | \usepackage{systeme,mathtools} 8 | \usetikzlibrary{positioning,arrows.meta,quotes} 9 | \usetikzlibrary{shapes,snakes} 10 | \usetikzlibrary{bayesnet} 11 | \tikzset{>=latex} 12 | 13 | \begin{document} 14 | \begin{tikzpicture} 15 | \node[circle,draw=black,fill=green!10,inner sep=0pt,minimum size=0.85cm] (obs1) at (0,0) {$y_{i1}$}; 16 | \node[circle,draw=black,fill=white,inner sep=0pt,minimum size=0.85cm] (obs2) at (1.5,0) {$y_{i2}$}; 17 | \node[circle,draw=black,fill=green!10,inner sep=0pt,minimum size=0.85cm] (obs3) at (3,0) {$y_{i3}$}; 18 | \node[text width=0.6cm] (obs4) at (4.5,0) {\color{red}{$\LARGE\cdots$}}; 19 | \node[circle,draw=black,fill=white,inner sep=0pt,minimum size=0.85cm] (obs5) at (6,0) {$y_{it}$}; 20 | \node[text width=0.6cm] (obs6) at (7.5,0) {\color{red}{$\LARGE\cdots$}}; 21 | \node[circle,draw=black,fill=green!10,inner sep=0pt,minimum size=0.85cm] (obs7) at (9,0) {$y_{if}$}; 22 | \path [draw,->] (obs1) edge [bend left] node [right] {} (obs2); 23 | \path [draw,->] (obs2) edge [bend left] node [right] {} (obs3); 24 | \path [draw,->] (obs3) edge [bend left] node [right] {} (obs4); 25 | \path [draw,->] (obs4) edge [bend left] node [right] {} (obs5); 26 | \path [draw,->] (obs5) edge [bend left] node [right] {} (obs6); 27 | \path [draw,->] (obs6) edge [bend left] node [right] {} (obs7); 28 | \node[text width=0.3cm] (unknown1) at (1.5,-0.8) {\LARGE\color{red}{?}}; 29 | \node[text width=0.3cm] (unknown1) at (6,-0.8) {\LARGE\color{red}{?}}; 30 | \end{tikzpicture} 31 | \end{document} 32 | -------------------------------------------------------------------------------- /Framework/input_tensor.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/Framework/input_tensor.pdf -------------------------------------------------------------------------------- /Framework/input_tensor.tex: -------------------------------------------------------------------------------- 1 | \documentclass[tikz,border=0.1cm]{standalone} 2 | \usepackage{tikz,tikz-3dplot} 3 | \usepackage{amsmath,amsthm} 4 | \usepackage{amssymb} 5 | \usepackage{amsfonts} 6 | \usepackage{xcolor} 7 | 8 | \begin{document} 9 | \newcommand{\Depth}{2} 10 | \newcommand{\Height}{2} 11 | \newcommand{\Width}{2} 12 | \newcommand{\xxx}{0.39} 13 | \newcommand{\yyy}{2.13} 14 | \newcommand{\zzz}{1} 15 | 16 | \begin{tikzpicture}[font=\sffamily] 17 | 18 | \coordinate (O) at (0,0,0); 19 | \coordinate (A) at (0,\Width,0); 20 | \coordinate (B) at (0,\Width,\Height); 21 | \coordinate (C) at (0,0,\Height); 22 | \coordinate (D) at (\Depth,0,0); 23 | \coordinate (E) at (\Depth,\Width,0); 24 | \coordinate (F) at (\Depth,\Width,\Height); 25 | \coordinate (G) at (\Depth,0,\Height); 26 | \draw[green!60!black,fill=green!5] (O) -- (C) -- (G) -- (D) -- cycle;% Bottom Face 27 | \draw[green!60!black,fill=green!5] (O) -- (A) -- (E) -- (D) -- cycle;% Back Face 28 | \draw[green!60!black,fill=green!5] (O) -- (A) -- (B) -- (C) -- cycle;% Left Face 29 | \draw[green!60!black,fill=green!5,opacity=0.8] (D) -- (E) -- (F) -- (G) -- cycle;% Right Face 30 | \draw[green!60!black,fill=green!5,opacity=0.6] (C) -- (B) -- (F) -- (G) -- cycle;% Front Face 31 | \draw[green!60!black,fill=green!5,opacity=0.8] (A) -- (B) -- (F) -- (E) -- cycle;% Top Face 32 | 33 | \draw (0.2,-1.2,0) node {\scriptsize{\color{gray!90}\textbf{$N$~days}}}; 34 | \draw (0.2,-0.95,0) node[rotate = 0] {{\color{gray!25}$\underbrace{\hspace{2cm}}$}}; 35 | \draw (-0.4,1,2) node[rotate = 90] {\scriptsize{\color{gray!90}\textbf{$M$~locations}}}; 36 | \draw (-0.15,1,2) node[rotate = 270] {{\color{gray!25}$\underbrace{\hspace{2cm}}$}}; 37 | \draw (2.5,-0.2,1.4) node[rotate = 45] {\scriptsize{\color{gray!90}\textbf{$T$~intervals}}}; 38 | \draw (2.2,0,1.2) node[rotate = 45] {{\color{gray!25}$\underbrace{\hspace{1.1cm}}$}}; 39 | 40 | \coordinate (O) at (0+\xxx,0+\yyy,0+\zzz); 41 | \coordinate (A) at (0+\xxx,0.25\Width+\yyy,0+\zzz); 42 | \coordinate (B) at (0+\xxx,0.25\Width+\yyy,\Height+\zzz); 43 | \coordinate (C) at (0+\xxx,0+\yyy,\Height+\zzz); 44 | \coordinate (D) at (0.25\Depth+\xxx,0+\yyy,0+\zzz); 45 | \coordinate (E) at (0.25\Depth+\xxx,0.25\Width+\yyy,0+\zzz); 46 | \coordinate (F) at (0.25\Depth+\xxx,0.25\Width+\yyy,\Height+\zzz); 47 | \coordinate (G) at (0.25\Depth+\xxx,0+\yyy,\Height+\zzz); 48 | \draw[gray!80,fill=white] (O) -- (C) -- (G) -- (D) -- cycle;% Bottom Face 49 | \draw[gray!80,fill=white] (O) -- (A) -- (E) -- (D) -- cycle;% Back Face 50 | \draw[gray!80,fill=white] (O) -- (A) -- (B) -- (C) -- cycle;% Left Face 51 | \draw[gray!50,fill=white,opacity=0.8] (D) -- (E) -- (F) -- (G) -- cycle;% Right Face 52 | \draw[gray!50,fill=white,opacity=0.6] (C) -- (B) -- (F) -- (G) -- cycle;% Front Face 53 | \draw[gray!50,fill=white,opacity=0.8] (A) -- (B) -- (F) -- (E) -- cycle;% Top Face 54 | 55 | \coordinate (O) at (0+\xxx+0.5,0+\yyy,0+\zzz); 56 | \coordinate (A) at (0+\xxx+0.5,0.25\Width+\yyy,0+\zzz); 57 | \coordinate (B) at (0+\xxx+0.5,0.25\Width+\yyy,\Height+\zzz); 58 | \coordinate (C) at (0+\xxx+0.5,0+\yyy,\Height+\zzz); 59 | \coordinate (D) at (0.25\Depth+\xxx+0.5,0+\yyy,0+\zzz); 60 | \coordinate (E) at (0.25\Depth+\xxx+0.5,0.25\Width+\yyy,0+\zzz); 61 | \coordinate (F) at (0.25\Depth+\xxx+0.5,0.25\Width+\yyy,\Height+\zzz); 62 | \coordinate (G) at (0.25\Depth+\xxx+0.5,0+\yyy,\Height+\zzz); 63 | \draw[gray!80,fill=white] (O) -- (C) -- (G) -- (D) -- cycle;% Bottom Face 64 | \draw[gray!80,fill=white] (O) -- (A) -- (E) -- (D) -- cycle;% Back Face 65 | \draw[gray!80,fill=white] (O) -- (A) -- (B) -- (C) -- cycle;% Left Face 66 | \draw[gray!50,fill=white,opacity=0.8] (D) -- (E) -- (F) -- (G) -- cycle;% Right Face 67 | \draw[gray!50,fill=white,opacity=0.6] (C) -- (B) -- (F) -- (G) -- cycle;% Front Face 68 | \draw[gray!50,fill=white,opacity=0.8] (A) -- (B) -- (F) -- (E) -- cycle;% Top Face 69 | 70 | \coordinate (O) at (0+\xxx+1.45,0+\yyy,0+\zzz); 71 | \coordinate (A) at (0+\xxx+1.45,0.25\Width+\yyy,0+\zzz); 72 | \coordinate (B) at (0+\xxx+1.45,0.25\Width+\yyy,\Height+\zzz); 73 | \coordinate (C) at (0+\xxx+1.45,0+\yyy,\Height+\zzz); 74 | \coordinate (D) at (0.25\Depth+\xxx+1.45,0+\yyy,0+\zzz); 75 | \coordinate (E) at (0.25\Depth+\xxx+1.45,0.25\Width+\yyy,0+\zzz); 76 | \coordinate (F) at (0.25\Depth+\xxx+1.45,0.25\Width+\yyy,\Height+\zzz); 77 | \coordinate (G) at (0.25\Depth+\xxx+1.45,0+\yyy,\Height+\zzz); 78 | \draw[gray!80,fill=white] (O) -- (C) -- (G) -- (D) -- cycle;% Bottom Face 79 | \draw[gray!80,fill=white] (O) -- (A) -- (E) -- (D) -- cycle;% Back Face 80 | \draw[gray!80,fill=white] (O) -- (A) -- (B) -- (C) -- cycle;% Left Face 81 | \draw[gray!50,fill=white,opacity=0.8] (D) -- (E) -- (F) -- (G) -- cycle;% Right Face 82 | \draw[gray!50,fill=white,opacity=0.6] (C) -- (B) -- (F) -- (G) -- cycle;% Front Face 83 | \draw[gray!50,fill=white,opacity=0.8] (A) -- (B) -- (F) -- (E) -- cycle;% Top Face 84 | 85 | \coordinate (O) at (0+\xxx+1.45,0+\yyy-1.75,0+\zzz); 86 | \coordinate (A) at (0+\xxx+1.45,0.25\Width+\yyy-1.75,0+\zzz); 87 | \coordinate (B) at (0+\xxx+1.45,0.25\Width+\yyy-1.75,\Height+\zzz); 88 | \coordinate (C) at (0+\xxx+1.45,0+\yyy-1.75,\Height+\zzz); 89 | \coordinate (D) at (0.25\Depth+\xxx+1.45,0+\yyy-1.75,0+\zzz); 90 | \coordinate (E) at (0.25\Depth+\xxx+1.45,0.25\Width+\yyy-1.75,0+\zzz); 91 | \coordinate (F) at (0.25\Depth+\xxx+1.45,0.25\Width+\yyy-1.75,\Height+\zzz); 92 | \coordinate (G) at (0.25\Depth+\xxx+1.45,0+\yyy-1.75,\Height+\zzz); 93 | \draw[gray!80,fill=white] (O) -- (C) -- (G) -- (D) -- cycle;% Bottom Face 94 | \draw[gray!80,fill=white] (O) -- (A) -- (E) -- (D) -- cycle;% Back Face 95 | \draw[gray!80,fill=white] (O) -- (A) -- (B) -- (C) -- cycle;% Left Face 96 | \draw[gray!50,fill=white,opacity=0.8] (D) -- (E) -- (F) -- (G) -- cycle;% Right Face 97 | \draw[gray!50,fill=white,opacity=0.6] (C) -- (B) -- (F) -- (G) -- cycle;% Front Face 98 | \draw[gray!50,fill=white,opacity=0.8] (A) -- (B) -- (F) -- (E) -- cycle;% Top Face 99 | 100 | \coordinate (O) at (0+\xxx+0.25,0+\yyy-1.75,0+\zzz); 101 | \coordinate (A) at (0+\xxx+0.25,0.25\Width+\yyy-1.75,0+\zzz); 102 | \coordinate (B) at (0+\xxx+0.25,0.25\Width+\yyy-1.75,\Height+\zzz); 103 | \coordinate (C) at (0+\xxx+0.25,0+\yyy-1.75,\Height+\zzz); 104 | \coordinate (D) at (0.25\Depth+\xxx+0.25,0+\yyy-1.75,0+\zzz); 105 | \coordinate (E) at (0.25\Depth+\xxx+0.25,0.25\Width+\yyy-1.75,0+\zzz); 106 | \coordinate (F) at (0.25\Depth+\xxx+0.25,0.25\Width+\yyy-1.75,\Height+\zzz); 107 | \coordinate (G) at (0.25\Depth+\xxx+0.25,0+\yyy-1.75,\Height+\zzz); 108 | \draw[gray!80,fill=white] (O) -- (C) -- (G) -- (D) -- cycle;% Bottom Face 109 | \draw[gray!80,fill=white] (O) -- (A) -- (E) -- (D) -- cycle;% Back Face 110 | \draw[gray!80,fill=white] (O) -- (A) -- (B) -- (C) -- cycle;% Left Face 111 | \draw[gray!50,fill=white,opacity=0.8] (D) -- (E) -- (F) -- (G) -- cycle;% Right Face 112 | \draw[gray!50,fill=white,opacity=0.6] (C) -- (B) -- (F) -- (G) -- cycle;% Front Face 113 | \draw[gray!50,fill=white,opacity=0.8] (A) -- (B) -- (F) -- (E) -- cycle;% Top Face 114 | 115 | \coordinate (O) at (0,0,0); 116 | \coordinate (A) at (0,\Width,0); 117 | \coordinate (B) at (0,\Width,\Height); 118 | \coordinate (C) at (0,0,\Height); 119 | \coordinate (D) at (\Depth,0,0); 120 | \coordinate (E) at (\Depth,\Width,0); 121 | \coordinate (F) at (\Depth,\Width,\Height); 122 | \coordinate (G) at (\Depth,0,\Height); 123 | \draw[green!30] (O) -- (C) -- (G) -- (D) -- cycle;% Bottom Face 124 | \draw[green!30] (O) -- (A) -- (E) -- (D) -- cycle;% Back Face 125 | \draw[green!30] (O) -- (A) -- (B) -- (C) -- cycle;% Left Face 126 | \draw[green!60!black,opacity=0.8] (D) -- (E) -- (F) -- (G) -- cycle;% Right Face 127 | \draw[green!60!black,opacity=0.6] (C) -- (B) -- (F) -- (G) -- cycle;% Front Face 128 | \draw[green!60!black,opacity=0.8] (A) -- (B) -- (F) -- (E) -- cycle;% Top Face 129 | 130 | 131 | 132 | 133 | \end{tikzpicture} 134 | \end{document} -------------------------------------------------------------------------------- /Framework/latc_framework.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/Framework/latc_framework.pdf -------------------------------------------------------------------------------- /Framework/latc_framework.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/Framework/latc_framework.png -------------------------------------------------------------------------------- /Framework/latc_illustration.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/Framework/latc_illustration.pdf -------------------------------------------------------------------------------- /Framework/mf-explained.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/Framework/mf-explained.pdf -------------------------------------------------------------------------------- /Framework/mf-explained.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/Framework/mf-explained.png -------------------------------------------------------------------------------- /Framework/mf-explained.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=0.1cm]{standalone} 2 | \usepackage[utf8]{inputenc} 3 | 4 | \usepackage{tikz} 5 | \usepackage{amsfonts} 6 | \usepackage{amsmath,amssymb} 7 | \usepackage{systeme,mathtools} 8 | \usetikzlibrary{positioning,arrows.meta,quotes} 9 | \usetikzlibrary{shapes,snakes} 10 | \usetikzlibrary{bayesnet} 11 | \tikzset{>=latex} 12 | 13 | \begin{document} 14 | \begin{tikzpicture} 15 | \draw (-1.8,0.6) node {{\color{blue}MF explained:}}; 16 | \draw [very thick] (0,0) rectangle (3.6/2,2.4/2); 17 | \filldraw [fill=green!20!white,draw=green!40!black] (0,0) rectangle (3.6/2,2.4/2); 18 | \filldraw [fill=white] (0.4/2,0.4/2) rectangle (0.8/2,0.8/2); 19 | \filldraw [fill=white] (2.4/2,0.4/2) rectangle (2.8/2,0.8/2); 20 | \filldraw [fill=white] (0.8/2,1.2/2) rectangle (1.2/2,1.6/2); 21 | \filldraw [fill=white] (2.0/2,1.6/2) rectangle (2.4/2,2.0/2); 22 | \filldraw [fill=white] (0.4/2,2.0/2) rectangle (0.8/2,2.4/2); 23 | \filldraw [fill=white] (2.4/2,2.0/2) rectangle (2.8/2,2.4/2); 24 | \filldraw [fill=white] (2.8/2,1.2/2) rectangle (3.2/2,2.0/2); 25 | \draw [step=0.4/2, very thin, color=gray] (0,0) grid (3.6/2,2.4/2); 26 | \draw (1.8/2,-0.3) node {{\color{red}\scriptsize{$Y\in\mathbb{R}^{m\times f}$}}}; 27 | \draw (4.4/2,1.2/2) node {{\color{black}\large{$\approx$}}}; 28 | \draw [very thick] (5.2/2,0) rectangle (6.0/2,2.4/2); 29 | \filldraw [fill=green!20!white,draw=green!40!black] (5.2/2,0) rectangle (6.0/2,2.4/2); 30 | \draw [step=0.4/2, very thin, color=gray] (5.2/2,0) grid (6.0/2,2.4/2); 31 | \draw (5.6/2,-0.3) node {{\color{black}\scriptsize{$W\in\mathbb{R}^{m\times r}$}}}; 32 | \draw (6.8/2,1.2/2) node {{\color{black}\large{$\times$}}}; 33 | \draw [very thick] (7.6/2,0.8/2) rectangle (11.2/2,1.6/2); 34 | \filldraw [fill=green!20!white,draw=green!40!black] (7.6/2,0.8/2) rectangle (11.2/2,1.6/2); 35 | \draw [step=0.4/2, very thin, color=gray] (7.6/2,0.8/2) grid (11.2/2,1.6/2); 36 | \draw (9.4/2,0) node {{\color{red}\scriptsize{$X^{T}\in\mathbb{R}^{r\times f}$}}}; 37 | \end{tikzpicture} 38 | \end{document} -------------------------------------------------------------------------------- /Framework/output_tensor.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/Framework/output_tensor.pdf -------------------------------------------------------------------------------- /Framework/output_tensor.tex: -------------------------------------------------------------------------------- 1 | \documentclass[tikz,border=0.1cm]{standalone} 2 | \usepackage{tikz,tikz-3dplot} 3 | \usepackage{amsmath,amsthm} 4 | \usepackage{amssymb} 5 | \usepackage{amsfonts} 6 | \usepackage{xcolor} 7 | 8 | \begin{document} 9 | \newcommand{\Depth}{2} 10 | \newcommand{\Height}{2} 11 | \newcommand{\Width}{2} 12 | \newcommand{\xxx}{0.39} 13 | \newcommand{\yyy}{2.13} 14 | \newcommand{\zzz}{1} 15 | 16 | \begin{tikzpicture}[font=\sffamily] 17 | 18 | \coordinate (O) at (0,0,0); 19 | \coordinate (A) at (0,\Width,0); 20 | \coordinate (B) at (0,\Width,\Height); 21 | \coordinate (C) at (0,0,\Height); 22 | \coordinate (D) at (\Depth,0,0); 23 | \coordinate (E) at (\Depth,\Width,0); 24 | \coordinate (F) at (\Depth,\Width,\Height); 25 | \coordinate (G) at (\Depth,0,\Height); 26 | \draw[green!60!black,fill=green!5] (O) -- (C) -- (G) -- (D) -- cycle;% Bottom Face 27 | \draw[green!60!black,fill=green!5] (O) -- (A) -- (E) -- (D) -- cycle;% Back Face 28 | \draw[green!60!black,fill=green!5] (O) -- (A) -- (B) -- (C) -- cycle;% Left Face 29 | \draw[green!60!black,fill=green!5,opacity=0.8] (D) -- (E) -- (F) -- (G) -- cycle;% Right Face 30 | \draw[green!60!black,fill=green!5,opacity=0.6] (C) -- (B) -- (F) -- (G) -- cycle;% Front Face 31 | \draw[green!60!black,fill=green!5,opacity=0.8] (A) -- (B) -- (F) -- (E) -- cycle;% Top Face 32 | 33 | \coordinate (O) at (0,0,0); 34 | \coordinate (A) at (0,\Width,0); 35 | \coordinate (B) at (0,\Width,\Height); 36 | \coordinate (C) at (0,0,\Height); 37 | \coordinate (D) at (\Depth,0,0); 38 | \coordinate (E) at (\Depth,\Width,0); 39 | \coordinate (F) at (\Depth,\Width,\Height); 40 | \coordinate (G) at (\Depth,0,\Height); 41 | \draw[green!30] (O) -- (C) -- (G) -- (D) -- cycle;% Bottom Face 42 | \draw[green!30] (O) -- (A) -- (E) -- (D) -- cycle;% Back Face 43 | \draw[green!30] (O) -- (A) -- (B) -- (C) -- cycle;% Left Face 44 | \draw[green!60!black,opacity=0.8] (D) -- (E) -- (F) -- (G) -- cycle;% Right Face 45 | \draw[green!60!black,opacity=0.6] (C) -- (B) -- (F) -- (G) -- cycle;% Front Face 46 | \draw[green!60!black,opacity=0.8] (A) -- (B) -- (F) -- (E) -- cycle;% Top Face 47 | 48 | \draw (0.2,-1.2,0) node {\scriptsize{\color{gray!90}\textbf{$N$~days}}}; 49 | \draw (0.2,-0.95,0) node[rotate = 0] {{\color{gray!25}$\underbrace{\hspace{2cm}}$}}; 50 | \draw (-0.4,1,2) node[rotate = 90] {\scriptsize{\color{gray!90}\textbf{$M$~locations}}}; 51 | \draw (-0.15,1,2) node[rotate = 270] {{\color{gray!25}$\underbrace{\hspace{2cm}}$}}; 52 | \draw (2.5,-0.2,1.4) node[rotate = 45] {\scriptsize{\color{gray!90}\textbf{$T$~intervals}}}; 53 | \draw (2.2,0,1.2) node[rotate = 45] {{\color{gray!25}$\underbrace{\hspace{1.1cm}}$}}; 54 | 55 | \end{tikzpicture} 56 | \end{document} -------------------------------------------------------------------------------- /Framework/rolling_prediction.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/Framework/rolling_prediction.pdf -------------------------------------------------------------------------------- /Framework/rolling_prediction.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/Framework/rolling_prediction.png -------------------------------------------------------------------------------- /Framework/rolling_prediction.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=0.2cm, 12pt]{standalone} 2 | \usepackage{tikz} 3 | \usepackage{amsmath, amssymb, amsfonts, mathtools} 4 | \usepackage{color} 5 | \begin{document} 6 | \begin{tikzpicture}[domain=0:4] 7 | 8 | \draw [very thick] (0,0) rectangle (4,2.4); 9 | \filldraw [fill=green!20!white,draw=green!40!black] (0,0) rectangle (2.8,2.4); 10 | \filldraw [fill=red!30!white] (2.8,0) rectangle (3.2,2.4); 11 | \filldraw [fill=white] (0.4,0.4) rectangle (0.8,0.8); 12 | \filldraw [fill=white] (2.4,0.4) rectangle (2.8,0.8); 13 | \filldraw [fill=white] (0.8,1.2) rectangle (1.2,1.6); 14 | \filldraw [fill=white] (2.0,1.6) rectangle (2.4,2.0); 15 | \filldraw [fill=white] (0.4,2.0) rectangle (0.8,2.4); 16 | \filldraw [fill=white] (2.4,2.0) rectangle (2.8,2.4); 17 | \draw [step=0.4, very thin, color=gray] (0,0) grid (4,2.4); 18 | \draw (1.4,-0.6) node {{\color{blue}$Y_t\in\mathbb{R}^{N\times t}$}}; 19 | \draw (1.4,-0.2) node[rotate = 0] {{\color{gray}$\underbrace{\hspace{2.8cm}}$}}; 20 | 21 | \draw (5,-0.2) -- (5,-0.3) node[anchor=north,fill=white] {$t-3$}; 22 | \draw (6,-0.2) -- (6,-0.3) node[anchor=north,fill=white] {$t-2$}; 23 | \draw (7,-0.2) -- (7,-0.3) node[anchor=north,fill=white] {$t-1$}; 24 | \draw (8,-0.2) -- (8,-0.3) node[anchor=north,fill=white] {$t$}; 25 | \draw (9,-0.2) -- (9,-0.3) node[anchor=north,fill=white] {$t+1$}; 26 | \draw (10,-0.2) -- (10,-0.3) node[anchor=north,fill=white] {$t+2$}; 27 | \draw (11,-0.2) -- (11,-0.3) node[anchor=north,fill=white] {$t+3$}; 28 | \draw [->, thick] (4.5,-0.3) -- (12.5,-0.3) node [below] {time slot}; 29 | 30 | \filldraw [fill=green!20!white] (5-0.2,0) rectangle (5+0.2,1.6) node [above] {{\color{green!50!black}$\boldsymbol{x}_{t-3}$}}; 31 | \filldraw [fill=green!20!white] (6-0.2,0) rectangle (6+0.2,1.6) node [above] {{\color{green!50!black}$\boldsymbol{x}_{t-2}$}}; 32 | \filldraw [fill=green!20!white] (7-0.2,0) rectangle (7+0.2,1.6) node [above] {{\color{green!50!black}$\boldsymbol{x}_{t-1}$}}; 33 | \filldraw [fill=green!20!white] (8-0.2,0) rectangle (8+0.2,1.6) node [above] {{\color{green!50!black}$\boldsymbol{x}_{t}$}}; 34 | \filldraw [fill=red!30!white] (9-0.2,0) rectangle (9+0.2,1.6) node [above] {{\color{red!80!black}$\boldsymbol{x}_{t+1}$}}; 35 | 36 | \draw (4.6,0.8) node[rotate = 270] {{\color{gray}$\underbrace{\hspace{1.6cm}}$}}; 37 | \draw (4.3,0.8) node {{\color{blue}$R$}}; 38 | \draw (8,2.5) node {{\color{red!60!black}$\boldsymbol{x}_{t+1}\approx A_1\boldsymbol{x}_{t+1-h_1}+...+A_d\boldsymbol{x}_{t+1-h_d}$}}; 39 | 40 | % t+1 step 41 | \draw [very thick] (0,0-4.4) rectangle (4,2.4-4.4); 42 | \filldraw [fill=green!20!white,draw=green!40!black] (0,0-4.4) rectangle (3.2,2.4-4.4); 43 | \filldraw [fill=red!30!white] (3.2,0-4.4) rectangle (3.6,2.4-4.4); 44 | \filldraw [fill=white] (0.4,0.4-4.4) rectangle (0.8,0.8-4.4); 45 | \filldraw [fill=white] (2.4,0.4-4.4) rectangle (2.8,0.8-4.4); 46 | \filldraw [fill=white] (0.8,1.2-4.4) rectangle (1.2,1.6-4.4); 47 | \filldraw [fill=white] (2.0,1.6-4.4) rectangle (2.4,2.0-4.4); 48 | \filldraw [fill=white] (0.4,2.0-4.4) rectangle (0.8,2.4-4.4); 49 | \filldraw [fill=white] (2.4,2.0-4.4) rectangle (2.8,2.4-4.4); 50 | \filldraw [fill=white] (2.8,1.2-4.4) rectangle (3.2,2.0-4.4); 51 | \draw [step=0.4, very thin, color=gray] (0,0-4.4) grid (4,2.4-4.4); 52 | \draw (1.4,-0.6-4.4) node {{\color{blue}$Y_{t+1}\in\mathbb{R}^{N\times (t+1)}$}}; 53 | \draw (1.6,-0.2-4.4) node[rotate = 0] {{\color{gray}$\underbrace{\hspace{3.2cm}}$}}; 54 | 55 | \draw (5,-0.2-4.4) -- (5,-0.3-4.4) node[anchor=north,fill=white] {$t-3$}; 56 | \draw (6,-0.2-4.4) -- (6,-0.3-4.4) node[anchor=north,fill=white] {$t-2$}; 57 | \draw (7,-0.2-4.4) -- (7,-0.3-4.4) node[anchor=north,fill=white] {$t-1$}; 58 | \draw (8,-0.2-4.4) -- (8,-0.3-4.4) node[anchor=north,fill=white] {$t$}; 59 | \draw (9,-0.2-4.4) -- (9,-0.3-4.4) node[anchor=north,fill=white] {$t+1$}; 60 | \draw (10,-0.2-4.4) -- (10,-0.3-4.4) node[anchor=north,fill=white] {$t+2$}; 61 | \draw (11,-0.2-4.4) -- (11,-0.3-4.4) node[anchor=north,fill=white] {$t+3$}; 62 | \draw [->, thick] (4.5,-0.3-4.4) -- (12.5,-0.3-4.4) node [below] {time slot}; 63 | 64 | \filldraw [fill=green!20!white] (5-0.2,0-4.4) rectangle (5+0.2,1.6-4.4) node [above] {{\color{green!50!black}$\boldsymbol{x}_{t-3}$}}; 65 | \filldraw [fill=green!20!white] (6-0.2,0-4.4) rectangle (6+0.2,1.6-4.4) node [above] {{\color{green!50!black}$\boldsymbol{x}_{t-2}$}}; 66 | \filldraw [fill=green!20!white] (7-0.2,0-4.4) rectangle (7+0.2,1.6-4.4) node [above] {{\color{green!50!black}$\boldsymbol{x}_{t-1}$}}; 67 | \filldraw [fill=green!20!white] (8-0.2,0-4.4) rectangle (8+0.2,1.6-4.4) node [above] {{\color{green!50!black}$\boldsymbol{x}_{t}$}}; 68 | \filldraw [fill=green!20!white] (9-0.2,0-4.4) rectangle (9+0.2,1.6-4.4) node [above] {{\color{green!50!black}$\boldsymbol{x}_{t+1}$}}; 69 | \filldraw [fill=red!30!white] (10-0.2,0-4.4) rectangle (10+0.2,1.6-4.4) node [above] {{\color{red!80!black}$\boldsymbol{x}_{t+2}$}}; 70 | 71 | \draw (4.6,0.8-4.4) node[rotate = 270] {{\color{gray}$\underbrace{\hspace{1.6cm}}$}}; 72 | \draw (4.3,0.8-4.4) node {{\color{blue}$R$}}; 73 | \draw (8,2.5-4.4) node {{\color{red!60!black}$\boldsymbol{x}_{t+2}\approx A_1\boldsymbol{x}_{t+2-h_1}+...+A_d\boldsymbol{x}_{t+2-h_d}$}}; 74 | 75 | % t+2 step 76 | \draw [very thick] (0,0-8.8) rectangle (4,2.4-8.8); 77 | \filldraw [fill=green!20!white,draw=green!40!black] (0,0-8.8) rectangle (3.6,2.4-8.8); 78 | \filldraw [fill=red!30!white] (3.6,0-8.8) rectangle (4.0,2.4-8.8); 79 | \filldraw [fill=white] (0.4,0.4-8.8) rectangle (0.8,0.8-8.8); 80 | \filldraw [fill=white] (2.4,0.4-8.8) rectangle (2.8,0.8-8.8); 81 | \filldraw [fill=white] (0.8,1.2-8.8) rectangle (1.2,1.6-8.8); 82 | \filldraw [fill=white] (2.0,1.6-8.8) rectangle (2.4,2.0-8.8); 83 | \filldraw [fill=white] (0.4,2.0-8.8) rectangle (0.8,2.4-8.8); 84 | \filldraw [fill=white] (2.4,2.0-8.8) rectangle (2.8,2.4-8.8); 85 | \filldraw [fill=white] (2.8,1.2-8.8) rectangle (3.2,2.0-8.8); 86 | \filldraw [fill=white] (3.2,0-8.8) rectangle (3.6,0.4-8.8); 87 | \draw [step=0.4, very thin, color=gray] (0,0-8.8) grid (4,2.4-8.8); 88 | \draw (1.4,-0.6-8.8) node {{\color{blue}$Y_{t+2}\in\mathbb{R}^{N\times (t+2)}$}}; 89 | \draw (1.8,-0.2-8.8) node[rotate = 0] {{\color{gray}$\underbrace{\hspace{3.6cm}}$}}; 90 | 91 | \draw (5,-0.2-8.8) -- (5,-0.3-8.8) node[anchor=north,fill=white] {$t-3$}; 92 | \draw (6,-0.2-8.8) -- (6,-0.3-8.8) node[anchor=north,fill=white] {$t-2$}; 93 | \draw (7,-0.2-8.8) -- (7,-0.3-8.8) node[anchor=north,fill=white] {$t-1$}; 94 | \draw (8,-0.2-8.8) -- (8,-0.3-8.8) node[anchor=north,fill=white] {$t$}; 95 | \draw (9,-0.2-8.8) -- (9,-0.3-8.8) node[anchor=north,fill=white] {$t+1$}; 96 | \draw (10,-0.2-8.8) -- (10,-0.3-8.8) node[anchor=north,fill=white] {$t+2$}; 97 | \draw (11,-0.2-8.8) -- (11,-0.3-8.8) node[anchor=north,fill=white] {$t+3$}; 98 | \draw [->, thick] (4.5,-0.3-8.8) -- (12.5,-0.3-8.8) node [below] {time slot}; 99 | 100 | \filldraw [fill=green!20!white] (5-0.2,0-8.8) rectangle (5+0.2,1.6-8.8) node [above] {{\color{green!50!black}$\boldsymbol{x}_{t-3}$}}; 101 | \filldraw [fill=green!20!white] (6-0.2,0-8.8) rectangle (6+0.2,1.6-8.8) node [above] {{\color{green!50!black}$\boldsymbol{x}_{t-2}$}}; 102 | \filldraw [fill=green!20!white] (7-0.2,0-8.8) rectangle (7+0.2,1.6-8.8) node [above] {{\color{green!50!black}$\boldsymbol{x}_{t-1}$}}; 103 | \filldraw [fill=green!20!white] (8-0.2,0-8.8) rectangle (8+0.2,1.6-8.8) node [above] {{\color{green!50!black}$\boldsymbol{x}_{t}$}}; 104 | \filldraw [fill=green!20!white] (9-0.2,0-8.8) rectangle (9+0.2,1.6-8.8) node [above] {{\color{green!50!black}$\boldsymbol{x}_{t+1}$}}; 105 | \filldraw [fill=green!20!white] (10-0.2,0-8.8) rectangle (10+0.2,1.6-8.8) node [above] {{\color{green!50!black}$\boldsymbol{x}_{t+2}$}}; 106 | \filldraw [fill=red!30!white] (11-0.2,0-8.8) rectangle (11+0.2,1.6-8.8) node [above] {{\color{red!80!black}$\boldsymbol{x}_{t+3}$}}; 107 | 108 | \draw (4.6,0.8-8.8) node[rotate = 270] {{\color{gray}$\underbrace{\hspace{1.6cm}}$}}; 109 | \draw (4.3,0.8-8.8) node {{\color{blue}$R$}}; 110 | \draw (8,2.5-8.8) node {{\color{red!60!black}$\boldsymbol{x}_{t+3}\approx A_1\boldsymbol{x}_{t+3-h_1}+...+A_d\boldsymbol{x}_{t+3-h_d}$}}; 111 | \end{tikzpicture} 112 | \end{document} -------------------------------------------------------------------------------- /Framework/rolling_prediction_strategy.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/Framework/rolling_prediction_strategy.pdf -------------------------------------------------------------------------------- /Framework/rolling_prediction_strategy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/Framework/rolling_prediction_strategy.png -------------------------------------------------------------------------------- /Framework/tc_framework.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/Framework/tc_framework.pdf -------------------------------------------------------------------------------- /Framework/tc_framework.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/Framework/tc_framework.png -------------------------------------------------------------------------------- /Framework/tensor_time_series.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/Framework/tensor_time_series.pdf -------------------------------------------------------------------------------- /Framework/tensor_time_series.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/Framework/tensor_time_series.png -------------------------------------------------------------------------------- /Framework/tensor_time_series.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=0.1cm]{standalone} 2 | \usepackage[utf8]{inputenc} 3 | 4 | \usepackage{tikz} 5 | \usepackage{amsfonts} 6 | \usepackage{amsmath,amssymb} 7 | \usepackage{systeme,mathtools} 8 | \usetikzlibrary{positioning,arrows.meta,quotes} 9 | \usetikzlibrary{shapes,snakes} 10 | \usetikzlibrary{bayesnet} 11 | \tikzset{>=latex} 12 | 13 | \begin{document} 14 | \begin{tikzpicture} 15 | \node[circle,draw=black,fill=green!10,inner sep=0pt,minimum size=0.85cm] (obs1) at (0,0) {$y_{ij1}$}; 16 | \node[circle,draw=black,fill=white,inner sep=0pt,minimum size=0.85cm] (obs2) at (1.5,0) {$y_{ij2}$}; 17 | \node[circle,draw=black,fill=green!10,inner sep=0pt,minimum size=0.85cm] (obs3) at (3,0) {$y_{ij3}$}; 18 | \node[text width=0.6cm] (obs4) at (4.5,0) {\color{red}{$\LARGE\cdots$}}; 19 | \node[circle,draw=black,fill=white,inner sep=0pt,minimum size=0.85cm] (obs5) at (6,0) {$y_{ijt}$}; 20 | \node[text width=0.6cm] (obs6) at (7.5,0) {\color{red}{$\LARGE\cdots$}}; 21 | \node[circle,draw=black,fill=green!10,inner sep=0pt,minimum size=0.85cm] (obs7) at (9,0) {$y_{ijf}$}; 22 | \path [draw,->] (obs1) edge [bend left] node [right] {} (obs2); 23 | \path [draw,->] (obs2) edge [bend left] node [right] {} (obs3); 24 | \path [draw,->] (obs3) edge [bend left] node [right] {} (obs4); 25 | \path [draw,->] (obs4) edge [bend left] node [right] {} (obs5); 26 | \path [draw,->] (obs5) edge [bend left] node [right] {} (obs6); 27 | \path [draw,->] (obs6) edge [bend left] node [right] {} (obs7); 28 | \node[text width=0.3cm] (unknown1) at (1.5,0) {\LARGE\color{red!50}{?}}; 29 | \node[text width=0.3cm] (unknown1) at (6,0) {\LARGE\color{red!50}{?}}; 30 | \end{tikzpicture} 31 | \end{document} -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Xinyu Chen 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /TensorFactorization/AuTF.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/TensorFactorization/AuTF.pdf -------------------------------------------------------------------------------- /TensorFactorization/AuTF.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/TensorFactorization/AuTF.png -------------------------------------------------------------------------------- /TensorFactorization/CP_factorization.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/TensorFactorization/CP_factorization.pdf -------------------------------------------------------------------------------- /TensorFactorization/CP_factorization.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/TensorFactorization/CP_factorization.png -------------------------------------------------------------------------------- /TensorFactorization/CPfact.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/TensorFactorization/CPfact.pdf -------------------------------------------------------------------------------- /TensorFactorization/CPfact.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/TensorFactorization/CPfact.png -------------------------------------------------------------------------------- /TensorFactorization/TVART.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/TensorFactorization/TVART.pdf -------------------------------------------------------------------------------- /TensorFactorization/TVART.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/TensorFactorization/TVART.png -------------------------------------------------------------------------------- /TensorFactorization/tensor.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/TensorFactorization/tensor.pdf -------------------------------------------------------------------------------- /TensorFactorization/tensor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/TensorFactorization/tensor.png -------------------------------------------------------------------------------- /TensorFactorization/tensor.tex: -------------------------------------------------------------------------------- 1 | \documentclass[tikz,border=0.1cm]{standalone} 2 | \usepackage{tikz-3dplot} 3 | \usepackage{amsmath,amssymb} 4 | \usepackage{helvet} 5 | \renewcommand{\familydefault}{\sfdefault} 6 | 7 | \begin{document} 8 | \begin{tikzpicture}[ 9 | cube/.style={draw=#1!60!black, fill=#1!5}, 10 | smallcube/.style={draw=#1!80!black, fill=#1!10}, 11 | label/.style={font=\scriptsize, color=blue}, 12 | brace/.style={color=gray!75}, 13 | tensor/.style={color=red}, 14 | arr/.style={draw=gray!75, thick, ->} 15 | ] 16 | % Dimensions 17 | \def\D{2} \def\H{2} \def\W{2} % Main cube 18 | \def\x{1} \def\y{1} \def\z{1} % Small cube offset 19 | \def\s{0.125} % Small cube scale factor 20 | 21 | % Main cube 22 | \coordinate (O) at (0,0,0); 23 | \coordinate (A) at (0,\W,0); 24 | \coordinate (B) at (0,\W,\H); 25 | \coordinate (C) at (0,0,\H); 26 | \coordinate (D) at (\D,0,0); 27 | \coordinate (E) at (\D,\W,0); 28 | \coordinate (F) at (\D,\W,\H); 29 | \coordinate (G) at (\D,0,\H); 30 | 31 | \draw[cube=red] (O)--(C)--(G)--(D)--cycle; % Bottom 32 | \draw[cube=red] (O)--(A)--(E)--(D)--cycle; % Back 33 | \draw[cube=red] (O)--(A)--(B)--(C)--cycle; % Left 34 | \draw[cube=red,opacity=0.8] (D)--(E)--(F)--(G)--cycle; % Right 35 | \draw[cube=red,opacity=0.6] (C)--(B)--(F)--(G)--cycle; % Front 36 | \draw[cube=red,opacity=0.8] (A)--(B)--(F)--(E)--cycle; % Top 37 | 38 | % Small cube 39 | \coordinate (o) at (\x,\y,\z); 40 | \coordinate (a) at (\x,\s*\W+\y,\z); 41 | \coordinate (b) at (\x,\s*\W+\y,\s*\H+\z); 42 | \coordinate (c) at (\x,\y,\s*\H+\z); 43 | \coordinate (d) at (\s*\D+\x,\y,\z); 44 | \coordinate (e) at (\s*\D+\x,\s*\W+\y,\z); 45 | \coordinate (f) at (\s*\D+\x,\s*\W+\y,\s*\H+\z); 46 | \coordinate (g) at (\s*\D+\x,\y,\s*\H+\z); 47 | 48 | \draw[smallcube=green] (o)--(c)--(g)--(d)--cycle; % Bottom 49 | \draw[smallcube=green] (o)--(a)--(e)--(d)--cycle; % Back 50 | \draw[smallcube=green] (o)--(a)--(b)--(c)--cycle; % Left 51 | \draw[smallcube=green,opacity=0.8] (d)--(e)--(f)--(g)--cycle; % Right 52 | \draw[smallcube=green,opacity=0.6] (c)--(b)--(f)--(g)--cycle; % Front 53 | \draw[smallcube=green,opacity=0.8] (a)--(b)--(f)--(e)--cycle; % Top 54 | 55 | % Labels 56 | \node[label] at (0.2,-1.3,0) {$n$ destinations}; 57 | \node[brace] at (0.2,-1,0) {$\underbrace{\hspace{2cm}}$}; 58 | \node[label,rotate=90] at (-0.5,1,2) {$m$ origins}; 59 | \node[brace,rotate=270] at (-0.2,1,2) {$\underbrace{\hspace{2cm}}$}; 60 | \node[label,rotate=45] at (2.5,0,1.6) {$f$ time slots}; 61 | \node[brace,rotate=45] at (2.2,0,1.2) {$\underbrace{\hspace{1.1cm}}$}; 62 | 63 | % Tensor annotation 64 | \draw[arr] (-1,1.7,1) -- (0.85,1,1) node[below,tensor] {$y_{ijt}$}; 65 | \node[tensor] at (-2,1.8,1) {\scriptsize $(i,j,t)$-th entry}; 66 | \node[tensor] at (0,2.4,0) {\footnotesize Tensor $\boldsymbol{\mathcal{Y}}\in\mathbb{R}^{m\times n\times f}$}; 67 | 68 | \end{tikzpicture} 69 | \end{document} 70 | -------------------------------------------------------------------------------- /TensorFactorization/tensor_svt.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/TensorFactorization/tensor_svt.pdf -------------------------------------------------------------------------------- /TensorFactorization/tensor_svt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/TensorFactorization/tensor_svt.png -------------------------------------------------------------------------------- /TensorFactorization/tensors.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/TensorFactorization/tensors.png -------------------------------------------------------------------------------- /TensorFactorization/tensors.tex: -------------------------------------------------------------------------------- 1 | \documentclass[tikz,border=0.1cm]{standalone} 2 | \usepackage{tikz-3dplot} 3 | \usepackage{amsmath,amssymb} 4 | \usepackage{helvet} 5 | \renewcommand{\familydefault}{\sfdefault} 6 | 7 | \begin{document} 8 | \begin{tikzpicture}[ 9 | cube/.style={draw=#1!60!black, fill=#1!5}, 10 | smallcube/.style={draw=#1!80!black, fill=#1!10}, 11 | label/.style={font=\scriptsize, color=blue}, 12 | brace/.style={color=gray!75}, 13 | tensor/.style={color=red}, 14 | arr/.style={draw=gray!75, thick, ->} 15 | ] 16 | % Dimensions 17 | \def\D{2} \def\H{2} \def\W{2} % Main cube 18 | \def\x{1} \def\y{1} \def\z{1} % Small cube offset 19 | \def\s{0.125} % Small cube scale factor 20 | 21 | % Main cube 22 | \coordinate (O) at (0,0,0); 23 | \coordinate (A) at (0,\W,0); 24 | \coordinate (B) at (0,\W,\H); 25 | \coordinate (C) at (0,0,\H); 26 | \coordinate (D) at (\D,0,0); 27 | \coordinate (E) at (\D,\W,0); 28 | \coordinate (F) at (\D,\W,\H); 29 | \coordinate (G) at (\D,0,\H); 30 | 31 | \draw[cube=red] (O)--(C)--(G)--(D)--cycle; % Bottom 32 | \draw[cube=red] (O)--(A)--(E)--(D)--cycle; % Back 33 | \draw[cube=red] (O)--(A)--(B)--(C)--cycle; % Left 34 | \draw[cube=red,opacity=0.8] (D)--(E)--(F)--(G)--cycle; % Right 35 | \draw[cube=red,opacity=0.6] (C)--(B)--(F)--(G)--cycle; % Front 36 | \draw[cube=red,opacity=0.8] (A)--(B)--(F)--(E)--cycle; % Top 37 | 38 | % Small cube 39 | \coordinate (o) at (\x,\y,\z); 40 | \coordinate (a) at (\x,\s*\W+\y,\z); 41 | \coordinate (b) at (\x,\s*\W+\y,\s*\H+\z); 42 | \coordinate (c) at (\x,\y,\s*\H+\z); 43 | \coordinate (d) at (\s*\D+\x,\y,\z); 44 | \coordinate (e) at (\s*\D+\x,\s*\W+\y,\z); 45 | \coordinate (f) at (\s*\D+\x,\s*\W+\y,\s*\H+\z); 46 | \coordinate (g) at (\s*\D+\x,\y,\s*\H+\z); 47 | 48 | \draw[smallcube=green] (o)--(c)--(g)--(d)--cycle; % Bottom 49 | \draw[smallcube=green] (o)--(a)--(e)--(d)--cycle; % Back 50 | \draw[smallcube=green] (o)--(a)--(b)--(c)--cycle; % Left 51 | \draw[smallcube=green,opacity=0.8] (d)--(e)--(f)--(g)--cycle; % Right 52 | \draw[smallcube=green,opacity=0.6] (c)--(b)--(f)--(g)--cycle; % Front 53 | \draw[smallcube=green,opacity=0.8] (a)--(b)--(f)--(e)--cycle; % Top 54 | 55 | % Labels 56 | \node[label] at (0.2,-1.3,0) {$n$ destinations}; 57 | \node[brace] at (0.2,-1,0) {$\underbrace{\hspace{2cm}}$}; 58 | \node[label,rotate=90] at (-0.5,1,2) {$m$ origins}; 59 | \node[brace,rotate=270] at (-0.2,1,2) {$\underbrace{\hspace{2cm}}$}; 60 | \node[label,rotate=45] at (2.5,0,1.6) {$f$ time slots}; 61 | \node[brace,rotate=45] at (2.2,0,1.2) {$\underbrace{\hspace{1.1cm}}$}; 62 | 63 | % Tensor annotation 64 | \draw[arr] (-1,1.7,1) -- (0.85,1,1) node[below,tensor] {$y_{ijt}$}; 65 | \node[tensor] at (-2,1.8,1) {\scriptsize $(i,j,t)$-th entry}; 66 | \node[tensor] at (0,2.4,0) {Tensor $\boldsymbol{\mathcal{Y}}\in\mathbb{R}^{m\times n\times f}$}; 67 | 68 | \end{tikzpicture} 69 | \end{document} -------------------------------------------------------------------------------- /awesome-stuff/jay.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/awesome-stuff/jay.pdf -------------------------------------------------------------------------------- /awesome-stuff/transdim_logo_large.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/awesome-stuff/transdim_logo_large.pdf -------------------------------------------------------------------------------- /awesome-stuff/transdim_logo_large.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/awesome-stuff/transdim_logo_large.png -------------------------------------------------------------------------------- /awesome-stuff/transdim_logo_large.tex: -------------------------------------------------------------------------------- 1 | \documentclass[tikz,border={3cm 0.7cm 3cm 0.45cm}]{standalone} 2 | \usepackage{tikz} 3 | \usepackage{xcolor} 4 | 5 | 6 | \begin{document} 7 | \pagecolor{black} 8 | 9 | \begin{tikzpicture} 10 | \pgfdeclareimage[width=3.5cm]{img0}{jay.pdf} 11 | \node (img) at (0,1.8) {\pgfuseimage{img0}}; 12 | 13 | \draw (0,0) node {\color{black}\Huge {\fontfamily{cmss}\selectfont {\color{red!75!black}\textbf{trans}}\textbf{\color{white}dim}}}; 14 | 15 | \end{tikzpicture} 16 | \end{document} -------------------------------------------------------------------------------- /data-visualization/NM_Bdata.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/data-visualization/NM_Bdata.pdf -------------------------------------------------------------------------------- /data-visualization/NM_Bdata.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/data-visualization/NM_Bdata.png -------------------------------------------------------------------------------- /data-visualization/NM_Bdata.tex: -------------------------------------------------------------------------------- 1 | \documentclass[tikz,border=0.1cm]{standalone} 2 | 3 | \usepackage{tikz} 4 | \usepackage{pgfplots} 5 | \usepackage{amsmath} 6 | 7 | \pgfplotsset{compat=newest} 8 | 9 | \begin{document} 10 | 11 | \newcommand{\power}{10} 12 | 13 | \begin{tikzpicture} 14 | \fontfamily{phv} 15 | \scriptsize 16 | \begin{axis}[ 17 | height=5.5cm, 18 | width=5cm, 19 | axis x line=center, 20 | axis y line=center, 21 | xtick={-300,-150,100,300}, 22 | xticklabels={30.0,15.0,100,300}, 23 | ytick={20,60,100}, 24 | yticklabels={}, 25 | xgrid, 26 | xlabel style={below left}, 27 | ylabel style={below right}, 28 | xmin=-450, 29 | xmax=400, 30 | ymin=-5, 31 | ymax=130] 32 | 33 | \node[] at (axis cs: -150,125) {MAPE}; 34 | \node[] at (axis cs: 150,125) {RMSE}; 35 | 36 | %% RMSE 37 | \draw[draw=gray!60, fill=red!20] (6,20-14) rectangle (85.93,20-7-0.7); 38 | \draw[draw=gray!60, fill=red!20] (6,20-14+40) rectangle (100.81,20-7+40-0.7); 39 | \draw[draw=gray!60, fill=red!20] (6,20-14+80) rectangle (115.67,20-7+80-0.7); 40 | 41 | \draw[draw=gray!60, fill=green!20] (6,20-7) rectangle (195.53,20-0.7); 42 | \draw[draw=gray!60, fill=green!20] (6,20-7+40) rectangle (301.79,20+40-0.7); 43 | \draw[draw=gray!60, fill=green!20] (6,20-7+80) rectangle (385.27,20+80-0.7); 44 | 45 | \draw[draw=gray!60, fill=blue!20] (6,20) rectangle (102.64,20+7-0.7); 46 | \draw[draw=gray!60, fill=blue!20] (6,20+40) rectangle (164.89,20+7+40-0.7); 47 | \draw[draw=gray!60, fill=blue!20] (6,20+80) rectangle (210.56,20+7+80-0.7); 48 | 49 | \draw[draw=gray!60, fill=yellow!20] (6,20+7) rectangle (93.18,20+14-0.7); 50 | \draw[draw=gray!60, fill=yellow!20] (6,20+7+40) rectangle (131.97,20+14+40-0.7); 51 | \draw[draw=gray!60, fill=yellow!20] (6,20+7+80) rectangle (171.63,20+14+80-0.7); 52 | 53 | 54 | %% MAPE 55 | \draw[draw=gray!60, fill=red!20] (-6,20-14) rectangle (-153.5,20-7-0.7); 56 | \draw[draw=gray!60, fill=red!20] (-6,20-14+40) rectangle (-179.1,20-7+40-0.7); 57 | \draw[draw=gray!60, fill=red!20] (-6,20-14+80) rectangle (-203.9,20-7+80-0.7); 58 | 59 | \draw[draw=gray!60, fill=green!20] (-6,20-7) rectangle (-192.8,20-0.7); 60 | \draw[draw=gray!60, fill=green!20] (-6,20-7+40) rectangle (-241.3,20+40-0.7); 61 | \draw[draw=gray!60, fill=green!20] (-6,20-7+80) rectangle (-293.2,20+80-0.7); 62 | 63 | \draw[draw=gray!60, fill=blue!20] (-6,20) rectangle (-176.8,20+7-0.7); 64 | \draw[draw=gray!60, fill=blue!20] (-6,20+40) rectangle (-279.8,20+7+40-0.7); 65 | \draw[draw=gray!60, fill=blue!20] (-6,20+80) rectangle (-334.0,20+7+80-0.7); 66 | 67 | \draw[draw=gray!60, fill=yellow!20] (-6,20+7) rectangle (-187.2,20+14-0.7); 68 | \draw[draw=gray!60, fill=yellow!20] (-6,20+7+40) rectangle (-240.5,20+14+40-0.7); 69 | \draw[draw=gray!60, fill=yellow!20] (-6,20+7+80) rectangle (-380.0,20+14+80-0.7); 70 | 71 | \addplot[mark=None, very thin, dashed] plot coordinates { (-150,0) (-150,115) }; 72 | \addplot[mark=None, very thin, dashed] plot coordinates { (100,0) (100,115) }; 73 | 74 | 75 | \end{axis} 76 | \end{tikzpicture} 77 | 78 | \end{document} -------------------------------------------------------------------------------- /data-visualization/NM_Gdata.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/data-visualization/NM_Gdata.pdf -------------------------------------------------------------------------------- /data-visualization/NM_Gdata.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/data-visualization/NM_Gdata.png -------------------------------------------------------------------------------- /data-visualization/NM_Gdata.tex: -------------------------------------------------------------------------------- 1 | \documentclass[tikz,border=0.1cm]{standalone} 2 | 3 | \usepackage{tikz} 4 | \usepackage{pgfplots} 5 | \usepackage{amsmath} 6 | 7 | \pgfplotsset{compat=newest} 8 | 9 | \begin{document} 10 | 11 | \newcommand{\power}{10} 12 | 13 | \begin{tikzpicture} 14 | \fontfamily{phv} 15 | \scriptsize 16 | \begin{axis}[ 17 | height=5.5cm, 18 | width=5cm, 19 | axis x line=center, 20 | axis y line=center, 21 | xtick={-15,-5,5,15}, 22 | xticklabels={11,10,4.0,5.0}, 23 | ytick={20,60,100}, 24 | yticklabels={}, 25 | xgrid, 26 | xlabel style={below left}, 27 | ylabel style={below right}, 28 | xmin=-35, 29 | xmax=30, 30 | ymin=-5, 31 | ymax=130] 32 | 33 | \node[] at (axis cs: -12,125) {MAPE}; 34 | \node[] at (axis cs: 12,125) {RMSE}; 35 | 36 | %% RMSE 37 | \draw[draw=gray!60, fill=red!20] (0.5,20-14) rectangle (41.7-35,20-7-0.7); 38 | \draw[draw=gray!60, fill=red!20] (0.5,20-14+40) rectangle (42.4-35,20-7+40-0.7); 39 | \draw[draw=gray!60, fill=red!20] (0.5,20-14+80) rectangle (45.2-35,20-7+80-0.7); 40 | 41 | \draw[draw=gray!60, fill=green!20] (0.5,20-7) rectangle (45.2-35,20-0.7); 42 | \draw[draw=gray!60, fill=green!20] (0.5,20-7+40) rectangle (46.9-35,20+40-0.7); 43 | \draw[draw=gray!60, fill=green!20] (0.5,20-7+80) rectangle (49.6-35,20+80-0.7); 44 | 45 | \draw[draw=gray!60, fill=blue!20] (0.5,20) rectangle (43.8-35,20+7-0.7); 46 | \draw[draw=gray!60, fill=blue!20] (0.5,20+40) rectangle (44.7-35,20+7+40-0.7); 47 | \draw[draw=gray!60, fill=blue!20] (0.5,20+80) rectangle (45.5-35,20+7+80-0.7); 48 | 49 | \draw[draw=gray!60, fill=yellow!20] (0.5,20+7) rectangle (46.5-35,20+14-0.7); 50 | \draw[draw=gray!60, fill=yellow!20] (0.5,20+7+40) rectangle (51.2-35,20+14+40-0.7); 51 | \draw[draw=gray!60, fill=yellow!20] (0.5,20+7+80) rectangle (53.7-35,20+14+80-0.7); 52 | 53 | 54 | %% MAPE 55 | \draw[draw=gray!60, fill=red!20] (-0.5,20-14) rectangle (-98.7+95,20-7-0.7); 56 | \draw[draw=gray!60, fill=red!20] (-0.5,20-14+40) rectangle (-100.5+95,20-7+40-0.7); 57 | \draw[draw=gray!60, fill=red!20] (-0.5,20-14+80) rectangle (-108.7+95,20-7+80-0.7); 58 | 59 | \draw[draw=gray!60, fill=green!20] (-0.5,20-7) rectangle (-113.1+95,20-0.7); 60 | \draw[draw=gray!60, fill=green!20] (-0.5,20-7+40) rectangle (-118.1+95,20+40-0.7); 61 | \draw[draw=gray!60, fill=green!20] (-0.5,20-7+80) rectangle (-126.5+95,20+80-0.7); 62 | 63 | \draw[draw=gray!60, fill=blue!20] (-0.5,20) rectangle (-103.3+95,20+7-0.7); 64 | \draw[draw=gray!60, fill=blue!20] (-0.5,20+40) rectangle (-105.5+95,20+7+40-0.7); 65 | \draw[draw=gray!60, fill=blue!20] (-0.5,20+80) rectangle (-107.7+95,20+7+80-0.7); 66 | 67 | \draw[draw=gray!60, fill=yellow!20] (-0.5,20+7) rectangle (-106.5+95,20+14-0.7); 68 | \draw[draw=gray!60, fill=yellow!20] (-0.5,20+7+40) rectangle (-111.7+95,20+14+40-0.7); 69 | \draw[draw=gray!60, fill=yellow!20] (-0.5,20+7+80) rectangle (-117.1+95,20+14+80-0.7); 70 | 71 | \addplot[mark=None, very thin, dashed] plot coordinates { (-5,0) (-5,115) }; 72 | \addplot[mark=None, very thin, dashed] plot coordinates { (5,0) (5,115) }; 73 | 74 | 75 | \end{axis} 76 | \end{tikzpicture} 77 | 78 | \end{document} -------------------------------------------------------------------------------- /data-visualization/NM_Hdata.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/data-visualization/NM_Hdata.pdf -------------------------------------------------------------------------------- /data-visualization/NM_Hdata.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/data-visualization/NM_Hdata.png -------------------------------------------------------------------------------- /data-visualization/NM_Hdata.tex: -------------------------------------------------------------------------------- 1 | \documentclass[tikz,border=0.1cm]{standalone} 2 | 3 | \usepackage{tikz} 4 | \usepackage{pgfplots} 5 | \usepackage{amsmath} 6 | 7 | \pgfplotsset{compat=newest} 8 | 9 | \begin{document} 10 | 11 | \newcommand{\power}{10} 12 | 13 | \begin{tikzpicture} 14 | \fontfamily{phv} 15 | \scriptsize 16 | \begin{axis}[ 17 | height=5.5cm, 18 | width=5cm, 19 | axis x line=center, 20 | axis y line=center, 21 | xtick={-100,-20,30,70}, 22 | xticklabels={30,22,30,70}, 23 | ytick={20,60,100}, 24 | yticklabels={}, 25 | xgrid, 26 | xlabel style={below left}, 27 | ylabel style={below right}, 28 | xmin=-150, 29 | xmax=150, 30 | ymin=-5, 31 | ymax=130] 32 | 33 | \node[] at (axis cs: -55,125) {MAPE}; 34 | \node[] at (axis cs: 55,125) {RMSE}; 35 | 36 | %% RMSE 37 | \draw[draw=gray!60, fill=red!20] (2,20-14) rectangle (34.42,20-7-0.7); 38 | \draw[draw=gray!60, fill=red!20] (2,20-14+40) rectangle (40.30,20-7+40-0.7); 39 | \draw[draw=gray!60, fill=red!20] (2,20-14+80) rectangle (42.83,20-7+80-0.7); 40 | 41 | \draw[draw=gray!60, fill=green!20] (2,20-7) rectangle (60.86,20-0.7); 42 | \draw[draw=gray!60, fill=green!20] (2,20-7+40) rectangle (92.28,20+40-0.7); 43 | \draw[draw=gray!60, fill=green!20] (2,20-7+80) rectangle (108.37,20+80-0.7); 44 | 45 | \draw[draw=gray!60, fill=blue!20] (2,20) rectangle (51.80,20+7-0.7); 46 | \draw[draw=gray!60, fill=blue!20] (2,20+40) rectangle (55,20+7+40-0.7); 47 | \draw[draw=gray!60, fill=blue!20] (2,20+80) rectangle (102.92,20+7+80-0.7); 48 | 49 | \draw[draw=gray!60, fill=yellow!20] (2,20+7) rectangle (71.95,20+14-0.7); 50 | \draw[draw=gray!60, fill=yellow!20] (2,20+7+40) rectangle (83.83,20+14+40-0.7); 51 | \draw[draw=gray!60, fill=yellow!20] (2,20+7+80) rectangle (79.59,20+14+80-0.7); 52 | 53 | 54 | %% MAPE 55 | \draw[draw=gray!60, fill=red!20] (-2,20-14) rectangle (-222.7+200,20-7-0.7); 56 | \draw[draw=gray!60, fill=red!20] (-2,20-14+40) rectangle (-218.6+200,20-7+40-0.7); 57 | \draw[draw=gray!60, fill=red!20] (-2,20-14+80) rectangle (-221.7+200,20-7+80-0.7); 58 | 59 | \draw[draw=gray!60, fill=green!20] (-2,20-7) rectangle (-228.9+200,20-0.7); 60 | \draw[draw=gray!60, fill=green!20] (-2,20-7+40) rectangle (-239.5+200,20+40-0.7); 61 | \draw[draw=gray!60, fill=green!20] (-2,20-7+80) rectangle (-263.0+200,20+80-0.7); 62 | 63 | \draw[draw=gray!60, fill=blue!20] (-2,20) rectangle (-259.3+200,20+7-0.7); 64 | \draw[draw=gray!60, fill=blue!20] (-2,20+40) rectangle (-235.4+200,20+7+40-0.7); 65 | \draw[draw=gray!60, fill=blue!20] (-2,20+80) rectangle (-252.4+200,20+7+80-0.7); 66 | 67 | \draw[draw=gray!60, fill=yellow!20] (-2,20+7) rectangle (-292.1+200,20+14-0.7); 68 | \draw[draw=gray!60, fill=yellow!20] (-2,20+7+40) rectangle (-301.4+200,20+14+40-0.7); 69 | \draw[draw=gray!60, fill=yellow!20] (-2,20+7+80) rectangle (-332.1+200,20+14+80-0.7); 70 | 71 | \addplot[mark=None, very thin, dashed] plot coordinates { (-20,0) (-20,115) }; 72 | \addplot[mark=None, very thin, dashed] plot coordinates { (30,0) (30,115) }; 73 | 74 | 75 | \end{axis} 76 | \end{tikzpicture} 77 | 78 | \end{document} -------------------------------------------------------------------------------- /data-visualization/NM_Sdata.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/data-visualization/NM_Sdata.pdf -------------------------------------------------------------------------------- /data-visualization/NM_Sdata.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/data-visualization/NM_Sdata.png -------------------------------------------------------------------------------- /data-visualization/NM_Sdata.tex: -------------------------------------------------------------------------------- 1 | \documentclass[tikz,border=0.1cm]{standalone} 2 | 3 | \usepackage{tikz} 4 | \usepackage{pgfplots} 5 | \usepackage{amsmath} 6 | 7 | \pgfplotsset{compat=newest} 8 | 9 | \begin{document} 10 | 11 | \newcommand{\power}{10} 12 | 13 | \begin{tikzpicture} 14 | \fontfamily{phv} 15 | \scriptsize 16 | \begin{axis}[ 17 | height=5.5cm, 18 | width=5cm, 19 | axis x line=center, 20 | axis y line=center, 21 | xtick={-50,-20,20,50}, 22 | xticklabels={10.0,7.0,4.0,7.0}, 23 | ytick={20,60,100}, 24 | yticklabels={}, 25 | xgrid, 26 | xlabel style={below left}, 27 | ylabel style={below right}, 28 | xmin=-100, 29 | xmax=100, 30 | ymin=-5, 31 | ymax=130] 32 | 33 | \node[] at (axis cs: -40,125) {MAPE}; 34 | \node[] at (axis cs: 40,125) {RMSE}; 35 | 36 | %% RMSE 37 | \draw[draw=gray!60, fill=red!20] (1.5,20-14) rectangle (47.4-20,20-7-0.7); 38 | \draw[draw=gray!60, fill=red!20] (1.5,20-14+40) rectangle (50.3-20,20-7+40-0.7); 39 | \draw[draw=gray!60, fill=red!20] (1.5,20-14+80) rectangle (56.2-20,20-7+80-0.7); 40 | 41 | \draw[draw=gray!60, fill=green!20] (1.5,20-7) rectangle (56.4-20,20-0.7); 42 | \draw[draw=gray!60, fill=green!20] (1.5,20-7+40) rectangle (61.1-20,20+40-0.7); 43 | \draw[draw=gray!60, fill=green!20] (1.5,20-7+80) rectangle (69.1-20,20+80-0.7); 44 | 45 | \draw[draw=gray!60, fill=blue!20] (1.5,20) rectangle (57.8-20,20+7-0.7); 46 | \draw[draw=gray!60, fill=blue!20] (1.5,20+40) rectangle (58.1-20,20+7+40-0.7); 47 | \draw[draw=gray!60, fill=blue!20] (1.5,20+80) rectangle (88.0-20,20+7+80-0.7); 48 | 49 | \draw[draw=gray!60, fill=yellow!20] (1.5,20+7) rectangle (54.4-20,20+14-0.7); 50 | \draw[draw=gray!60, fill=yellow!20] (1.5,20+7+40) rectangle (56.7-20,20+14+40-0.7); 51 | \draw[draw=gray!60, fill=yellow!20] (1.5,20+7+80) rectangle (62.2-20,20+14+80-0.7); 52 | 53 | 54 | %% MAPE 55 | \draw[draw=gray!60, fill=red!20] (-1.5,20-14) rectangle (-81.5+50,20-7-0.7); 56 | \draw[draw=gray!60, fill=red!20] (-1.5,20-14+40) rectangle (-86.9+50,20-7+40-0.7); 57 | \draw[draw=gray!60, fill=red!20] (-1.5,20-14+80) rectangle (-99.3+50,20-7+80-0.7); 58 | 59 | \draw[draw=gray!60, fill=green!20] (-1.5,20-7) rectangle (-112.0+50,20-0.7); 60 | \draw[draw=gray!60, fill=green!20] (-1.5,20-7+40) rectangle (-123.8+50,20+40-0.7); 61 | \draw[draw=gray!60, fill=green!20] (-1.5,20-7+80) rectangle (-143.0+50,20+80-0.7); 62 | 63 | \draw[draw=gray!60, fill=blue!20] (-1.5,20) rectangle (-101.8+50,20+7-0.7); 64 | \draw[draw=gray!60, fill=blue!20] (-1.5,20+40) rectangle (-102.5+50,20+7+40-0.7); 65 | \draw[draw=gray!60, fill=blue!20] (-1.5,20+80) rectangle (-116.7+50,20+7+80-0.7); 66 | 67 | \draw[draw=gray!60, fill=yellow!20] (-1.5,20+7) rectangle (-95.0+50,20+14-0.7); 68 | \draw[draw=gray!60, fill=yellow!20] (-1.5,20+7+40) rectangle (-98.3+50,20+14+40-0.7); 69 | \draw[draw=gray!60, fill=yellow!20] (-1.5,20+7+80) rectangle (-105.7+50,20+14+80-0.7); 70 | 71 | \addplot[mark=None, very thin, dashed] plot coordinates { (-20,0) (-20,115) }; 72 | \addplot[mark=None, very thin, dashed] plot coordinates { (20,0) (20,115) }; 73 | 74 | 75 | \end{axis} 76 | \end{tikzpicture} 77 | 78 | \end{document} -------------------------------------------------------------------------------- /data-visualization/NMseries.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/data-visualization/NMseries.pdf -------------------------------------------------------------------------------- /data-visualization/NMseries.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/data-visualization/NMseries.png -------------------------------------------------------------------------------- /data-visualization/NMseries.tex: -------------------------------------------------------------------------------- 1 | \documentclass[tikz,border=0.1cm]{standalone} 2 | 3 | \usepackage{tikz} 4 | \usepackage{pgfplots} 5 | \usepackage{amsmath} 6 | 7 | \pgfplotsset{compat=newest} 8 | 9 | \begin{filecontents}{speed1.data} 10 | 1 42.61 11 | 2 45.43 12 | 3 45.99 13 | 4 45.37 14 | 5 42.24 15 | 6 36.90 16 | 7 32.65 17 | 8 34.37 18 | 9 37.09 19 | 10 33.09 20 | 11 25.20 21 | \end{filecontents} 22 | 23 | \begin{filecontents}{speed2.data} 24 | 11 25.20 25 | 12 16.55 26 | 13 24.89 27 | 14 33.48 28 | 15 38.96 29 | 16 43.39 30 | 17 45.01 31 | 18 45.28 32 | 19 44.65 33 | 20 42.97 34 | 21 41.04 35 | 22 38.08 36 | 23 39.45 37 | 24 40.41 38 | 25 39.41 39 | 26 37.30 40 | \end{filecontents} 41 | 42 | \begin{filecontents}{speed3.data} 43 | 26 37.30 44 | 27 35.57 45 | 28 36.46 46 | 29 39.85 47 | 30 42.33 48 | 31 41.85 49 | 32 44.51 50 | 33 45.05 51 | 34 44.45 52 | 35 41.47 53 | 36 36.30 54 | 37 32.72 55 | 38 34.45 56 | 39 36.68 57 | 40 33.00 58 | 41 25.99 59 | \end{filecontents} 60 | 61 | \begin{filecontents}{speed4.data} 62 | 41 25.99 63 | 42 18.61 64 | 43 25.82 65 | 44 33.59 66 | 45 39.40 67 | 46 42.70 68 | 47 45.33 69 | 48 46.20 70 | 49 45.23 71 | 50 42.03 72 | 51 37.69 73 | 52 33.43 74 | 53 35.75 75 | 54 37.17 76 | 55 32.57 77 | 56 24.98 78 | 57 18.33 79 | 58 26.58 80 | 59 33.05 81 | \end{filecontents} 82 | 83 | \begin{filecontents}{speed5.data} 84 | 59 33.05 85 | 60 40.26 86 | 61 41.29 87 | 62 44.32 88 | 63 45.39 89 | 64 45.11 90 | 65 42.16 91 | 66 36.90 92 | 67 32.92 93 | 68 33.84 94 | 69 36.24 95 | 70 33.15 96 | 71 25.93 97 | 72 19.16 98 | 73 24.25 99 | \end{filecontents} 100 | 101 | \begin{filecontents}{speed6.data} 102 | 73 24.25 103 | 74 30.92 104 | 75 38.17 105 | 76 41.60 106 | 77 44.24 107 | 78 45.49 108 | 79 45.28 109 | 80 43.17 110 | 81 39.65 111 | 82 34.20 112 | 83 34.34 113 | 84 36.82 114 | 85 32.93 115 | 86 28.15 116 | 87 25.24 117 | 88 28.93 118 | 89 33.23 119 | 90 39.34 120 | \end{filecontents} 121 | 122 | \begin{filecontents}{speed7.data} 123 | 90 39.34 124 | 91 41.93 125 | 92 44.50 126 | 93 45.79 127 | 94 45.61 128 | 95 43.76 129 | 96 40.76 130 | 97 35.56 131 | 98 35.55 132 | 99 37.76 133 | 100 33.38 134 | 101 28.69 135 | 102 27.10 136 | 103 30.10 137 | 104 33.98 138 | 105 39.77 139 | \end{filecontents} 140 | 141 | \begin{document} 142 | \begin{tikzpicture}[domain=0:110] 143 | \begin{axis}[ 144 | height=3cm, 145 | width=7cm, 146 | axis x line=center, 147 | axis y line=center, 148 | xtick={15,30,45,60,75,90,105}, 149 | ytick={0}, 150 | xticklabels={\footnotesize$T$,\footnotesize$2T$,\footnotesize$3T$,\footnotesize$4T$,\footnotesize$5T$,\footnotesize$6T$,\footnotesize$7T$}, 151 | yticklabels={}, 152 | xlabel style={below left}, 153 | ylabel style={below right}, 154 | xmin=1, 155 | xmax=115, 156 | ymin=0, 157 | ymax=60] 158 | \addplot[no marks,smooth,draw=gray!30,thick] file {speed1.data}; 159 | \fill[green!10,draw=gray!50] (11,0) rectangle (26,55); 160 | \addplot[no marks,smooth,draw=cyan!60!blue,thick] file {speed2.data}; 161 | \addplot[no marks,smooth,draw=gray!30,thick] file {speed3.data}; 162 | \fill[green!10,draw=gray!60] (41,0) rectangle (73,55); 163 | \addplot[no marks,smooth,draw=cyan!60!blue,thick] file {speed4.data}; 164 | \addplot[no marks,smooth,draw=cyan!60!blue,thick] file {speed5.data}; 165 | \addplot[no marks,smooth,draw=gray!30,thick] file {speed6.data}; 166 | \fill[green!10,draw=gray!60] (90,0) rectangle (105,55); 167 | \addplot[no marks,smooth,draw=cyan!60!blue,thick] file {speed7.data}; 168 | \end{axis} 169 | \end{tikzpicture} 170 | 171 | \end{document} -------------------------------------------------------------------------------- /data-visualization/RM_Bdata.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/data-visualization/RM_Bdata.pdf -------------------------------------------------------------------------------- /data-visualization/RM_Bdata.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/data-visualization/RM_Bdata.png -------------------------------------------------------------------------------- /data-visualization/RM_Bdata.tex: -------------------------------------------------------------------------------- 1 | \documentclass[tikz,border=0.1cm]{standalone} 2 | 3 | \usepackage{tikz} 4 | \usepackage{pgfplots} 5 | \usepackage{amsmath} 6 | 7 | \pgfplotsset{compat=newest} 8 | 9 | \begin{document} 10 | 11 | \newcommand{\power}{10} 12 | 13 | \begin{tikzpicture} 14 | \fontfamily{phv} 15 | \scriptsize 16 | \begin{axis}[ 17 | height=5.5cm, 18 | width=5cm, 19 | axis x line=center, 20 | axis y line=center, 21 | xtick={-50,-10,20,50}, 22 | xticklabels={10.0,6.0,20,50}, 23 | ytick={20,60,100}, 24 | yticklabels={}, 25 | xgrid, 26 | xlabel style={below left}, 27 | ylabel style={below right}, 28 | xmin=-100, 29 | xmax=90, 30 | ymin=-5, 31 | ymax=130] 32 | 33 | \node[] at (axis cs: -36,125) {MAPE}; 34 | \node[] at (axis cs: 36,125) {RMSE}; 35 | 36 | %% RMSE 37 | \draw[draw=gray!60, fill=red!20] (1.5,20-14) rectangle (20.97,20-7-0.7); 38 | \draw[draw=gray!60, fill=red!20] (1.5,20-14+40) rectangle (24.53,20-7+40-0.7); 39 | \draw[draw=gray!60, fill=red!20] (1.5,20-14+80) rectangle (32.31,20-7+80-0.7); 40 | 41 | \draw[draw=gray!60, fill=green!20] (1.5,20-7) rectangle (39.96,20-0.7); 42 | \draw[draw=gray!60, fill=green!20] (1.5,20-7+40) rectangle (55.14,20+40-0.7); 43 | \draw[draw=gray!60, fill=green!20] (1.5,20-7+80) rectangle (73.58,20+80-0.7); 44 | 45 | \draw[draw=gray!60, fill=blue!20] (1.5,20) rectangle (21.52,20+7-0.7); 46 | \draw[draw=gray!60, fill=blue!20] (1.5,20+40) rectangle (24.26,20+7+40-0.7); 47 | \draw[draw=gray!60, fill=blue!20] (1.5,20+80) rectangle (30.31,20+7+80-0.7); 48 | 49 | \draw[draw=gray!60, fill=yellow!20] (1.5,20+7) rectangle (19.85,20+14-0.7); 50 | \draw[draw=gray!60, fill=yellow!20] (1.5,20+7+40) rectangle (29.96,20+14+40-0.7); 51 | \draw[draw=gray!60, fill=yellow!20] (1.5,20+7+80) rectangle (48.04,20+14+80-0.7); 52 | 53 | 54 | %% MAPE 55 | \draw[draw=gray!60, fill=red!20] (-1.5,20-14) rectangle (-60.3+50,20-7-0.7); 56 | \draw[draw=gray!60, fill=red!20] (-1.5,20-14+40) rectangle (-66.6+50,20-7+40-0.7); 57 | \draw[draw=gray!60, fill=red!20] (-1.5,20-14+80) rectangle (-92.2+50,20-7+80-0.7); 58 | 59 | \draw[draw=gray!60, fill=green!20] (-1.5,20-7) rectangle (-91.6+50,20-0.7); 60 | \draw[draw=gray!60, fill=green!20] (-1.5,20-7+40) rectangle (-111.7+50,20+40-0.7); 61 | \draw[draw=gray!60, fill=green!20] (-1.5,20-7+80) rectangle (-141.3+50,20+80-0.7); 62 | 63 | \draw[draw=gray!60, fill=blue!20] (-1.5,20) rectangle (-62.9+50,20+7-0.7); 64 | \draw[draw=gray!60, fill=blue!20] (-1.5,20+40) rectangle (-68.9+50,20+7+40-0.7); 65 | \draw[draw=gray!60, fill=blue!20] (-1.5,20+80) rectangle (-83.3+50,20+7+80-0.7); 66 | 67 | \draw[draw=gray!60, fill=yellow!20] (-1.5,20+7) rectangle (-57.8+50,20+14-0.7); 68 | \draw[draw=gray!60, fill=yellow!20] (-1.5,20+7+40) rectangle (-80.0+50,20+14+40-0.7); 69 | \draw[draw=gray!60, fill=yellow!20] (-1.5,20+7+80) rectangle (-109.6+50,20+14+80-0.7); 70 | 71 | \addplot[mark=None, very thin, dashed] plot coordinates { (-10,0) (-10,115) }; 72 | \addplot[mark=None, very thin, dashed] plot coordinates { (20,0) (20,115) }; 73 | 74 | 75 | \end{axis} 76 | \end{tikzpicture} 77 | 78 | \end{document} -------------------------------------------------------------------------------- /data-visualization/RM_Gdata.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/data-visualization/RM_Gdata.pdf -------------------------------------------------------------------------------- /data-visualization/RM_Gdata.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/data-visualization/RM_Gdata.png -------------------------------------------------------------------------------- /data-visualization/RM_Gdata.tex: -------------------------------------------------------------------------------- 1 | \documentclass[tikz,border=0.1cm]{standalone} 2 | 3 | \usepackage{tikz} 4 | \usepackage{pgfplots} 5 | \usepackage{amsmath} 6 | 7 | \pgfplotsset{compat=newest} 8 | 9 | \begin{document} 10 | 11 | \newcommand{\power}{10} 12 | 13 | \begin{tikzpicture} 14 | \fontfamily{phv} 15 | \scriptsize 16 | \begin{axis}[ 17 | height=5.5cm, 18 | width=5cm, 19 | axis x line=center, 20 | axis y line=center, 21 | xtick={-20,-5,5,15}, 22 | xticklabels={9.0,7.5,3.0,4.0}, 23 | ytick={20,60,100}, 24 | yticklabels={}, 25 | xgrid, 26 | xlabel style={below left}, 27 | ylabel style={below right}, 28 | xmin=-35, 29 | xmax=30, 30 | ymin=-5, 31 | ymax=130] 32 | 33 | 34 | %% RMSE 35 | \draw[draw=gray!60, fill=red!20] (0.5,20-14) rectangle (32.5-25,20-7-0.7); 36 | \draw[draw=gray!60, fill=red!20] (0.5,20-14+40) rectangle (34.1-25,20-7+40-0.7); 37 | \draw[draw=gray!60, fill=red!20] (0.5,20-14+80) rectangle (36.1-25,20-7+80-0.7); 38 | 39 | \draw[draw=gray!60, fill=green!20] (0.5,20-7) rectangle (37.7-25,20-0.7); 40 | \draw[draw=gray!60, fill=green!20] (0.5,20-7+40) rectangle (39.6-25,20+40-0.7); 41 | \draw[draw=gray!60, fill=green!20] (0.5,20-7+80) rectangle (41.8-25,20+80-0.7); 42 | 43 | \draw[draw=gray!60, fill=blue!20] (0.5,20) rectangle (36.1-25,20+7-0.7); 44 | \draw[draw=gray!60, fill=blue!20] (0.5,20+40) rectangle (36.5-25,20+7+40-0.7); 45 | \draw[draw=gray!60, fill=blue!20] (0.5,20+80) rectangle (36.9-25,20+7+80-0.7); 46 | 47 | \draw[draw=gray!60, fill=yellow!20] (0.5,20+7) rectangle (34.7-25,20+14-0.7); 48 | \draw[draw=gray!60, fill=yellow!20] (0.5,20+7+40) rectangle (36.5-25,20+14+40-0.7); 49 | \draw[draw=gray!60, fill=yellow!20] (0.5,20+7+80) rectangle (39.0-25,20+14+80-0.7); 50 | 51 | 52 | %% MAPE 53 | \draw[draw=gray!60, fill=red!20] (-0.5,20-14) rectangle (-75.6+70,20-7-0.7); 54 | \draw[draw=gray!60, fill=red!20] (-0.5,20-14+40) rectangle (-79.3+70,20-7+40-0.7); 55 | \draw[draw=gray!60, fill=red!20] (-0.5,20-14+80) rectangle (-83.8+70,20-7+80-0.7); 56 | 57 | \draw[draw=gray!60, fill=green!20] (-0.5,20-7) rectangle (-93.1+70,20-0.7); 58 | \draw[draw=gray!60, fill=green!20] (-0.5,20-7+40) rectangle (-98.3+70,20+40-0.7); 59 | \draw[draw=gray!60, fill=green!20] (-0.5,20-7+80) rectangle (-104.5+70,20+80-0.7); 60 | 61 | \draw[draw=gray!60, fill=blue!20] (-0.5,20) rectangle (-83.6+70,20+7-0.7); 62 | \draw[draw=gray!60, fill=blue!20] (-0.5,20+40) rectangle (-84.5+70,20+7+40-0.7); 63 | \draw[draw=gray!60, fill=blue!20] (-0.5,20+80) rectangle (-85.5+70,20+7+80-0.7); 64 | 65 | \draw[draw=gray!60, fill=yellow!20] (-0.5,20+7) rectangle (-80.8+70,20+14-0.7); 66 | \draw[draw=gray!60, fill=yellow!20] (-0.5,20+7+40) rectangle (-84.9+70,20+14+40-0.7); 67 | \draw[draw=gray!60, fill=yellow!20] (-0.5,20+7+80) rectangle (-90.8+70,20+14+80-0.7); 68 | 69 | \addplot[mark=None, very thin, dashed] plot coordinates { (-5,0) (-5,115) }; 70 | \addplot[mark=None, very thin, dashed] plot coordinates { (5,0) (5,115) }; 71 | \node[] at (axis cs: -12,125) {MAPE}; 72 | \node[] at (axis cs: 12,125) {RMSE}; 73 | 74 | 75 | \end{axis} 76 | \end{tikzpicture} 77 | 78 | \end{document} -------------------------------------------------------------------------------- /data-visualization/RM_Hdata.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/data-visualization/RM_Hdata.pdf -------------------------------------------------------------------------------- /data-visualization/RM_Hdata.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/data-visualization/RM_Hdata.png -------------------------------------------------------------------------------- /data-visualization/RM_Hdata.tex: -------------------------------------------------------------------------------- 1 | \documentclass[tikz,border=0.1cm]{standalone} 2 | 3 | \usepackage{tikz} 4 | \usepackage{pgfplots} 5 | \usepackage{amsmath} 6 | 7 | \pgfplotsset{compat=newest} 8 | 9 | \begin{document} 10 | 11 | \newcommand{\power}{10} 12 | 13 | \begin{tikzpicture} 14 | \fontfamily{phv} 15 | \scriptsize 16 | \begin{axis}[ 17 | height=5.5cm, 18 | width=5cm, 19 | axis x line=center, 20 | axis y line=center, 21 | xtick={-200,-100,50,150}, 22 | xticklabels={30,20,25,35}, 23 | ytick={20,60,100}, 24 | yticklabels={}, 25 | xgrid, 26 | xlabel style={below left}, 27 | ylabel style={below right}, 28 | xmin=-250, 29 | xmax=250, 30 | ymin=-5, 31 | ymax=130] 32 | 33 | \node[] at (axis cs: -90,125) {MAPE}; 34 | \node[] at (axis cs: 90,125) {RMSE}; 35 | 36 | %% RMSE 37 | \draw[draw=gray!60, fill=red!20] (4,20-14) rectangle (267.9-200,20-7-0.7); 38 | \draw[draw=gray!60, fill=red!20] (4,20-14+40) rectangle (283.3-200,20-7+40-0.7); 39 | \draw[draw=gray!60, fill=red!20] (4,20-14+80) rectangle (303.4-200,20-7+80-0.7); 40 | 41 | \draw[draw=gray!60, fill=green!20] (4,20-7) rectangle (332.6-200,20-0.7); 42 | \draw[draw=gray!60, fill=green!20] (4,20-7+40) rectangle (361.9-200,20+40-0.7); 43 | \draw[draw=gray!60, fill=green!20] (4,20-7+80) rectangle (400.8-200,20+80-0.7); 44 | 45 | \draw[draw=gray!60, fill=blue!20] (4,20) rectangle (349.2-200,20+7-0.7); 46 | \draw[draw=gray!60, fill=blue!20] (4,20+40) rectangle (346.8-200,20+7+40-0.7); 47 | \draw[draw=gray!60, fill=blue!20] (4,20+80) rectangle (344.6-200,20+7+80-0.7); 48 | 49 | \draw[draw=gray!60, fill=yellow!20] (4,20+7) rectangle (329.9-200,20+14-0.7); 50 | \draw[draw=gray!60, fill=yellow!20] (4,20+7+40) rectangle (383.8-200,20+14+40-0.7); 51 | \draw[draw=gray!60, fill=yellow!20] (4,20+7+80) rectangle (414.4-200,20+14+80-0.7); 52 | 53 | 54 | %% MAPE 55 | \draw[draw=gray!60, fill=red!20] (-4,20-14) rectangle (-194.5+100,20-7-0.7); 56 | \draw[draw=gray!60, fill=red!20] (-4,20-14+40) rectangle (-198.5+100,20-7+40-0.7); 57 | \draw[draw=gray!60, fill=red!20] (-4,20-14+80) rectangle (-205.7+100,20-7+80-0.7); 58 | 59 | \draw[draw=gray!60, fill=green!20] (-4,20-7) rectangle (-195.1+100,20-0.7); 60 | \draw[draw=gray!60, fill=green!20] (-4,20-7+40) rectangle (-201.3+100,20+40-0.7); 61 | \draw[draw=gray!60, fill=green!20] (-4,20-7+80) rectangle (-210.1+100,20+80-0.7); 62 | 63 | \draw[draw=gray!60, fill=blue!20] (-4,20) rectangle (-202.2+100,20+7-0.7); 64 | \draw[draw=gray!60, fill=blue!20] (-4,20+40) rectangle (-199.5+100,20+7+40-0.7); 65 | \draw[draw=gray!60, fill=blue!20] (-4,20+80) rectangle (-210.1+100,20+7+80-0.7); 66 | 67 | \draw[draw=gray!60, fill=yellow!20] (-4,20+7) rectangle (-281.5+100,20+14-0.7); 68 | \draw[draw=gray!60, fill=yellow!20] (-4,20+7+40) rectangle (-302.7+100,20+14+40-0.7); 69 | \draw[draw=gray!60, fill=yellow!20] (-4,20+7+80) rectangle (-323.6+100,20+14+80-0.7); 70 | 71 | \addplot[mark=None, very thin, dashed] plot coordinates { (-100,0) (-100,115) }; 72 | \addplot[mark=None, very thin, dashed] plot coordinates { (50,0) (50,115) }; 73 | 74 | 75 | \end{axis} 76 | \end{tikzpicture} 77 | 78 | \end{document} -------------------------------------------------------------------------------- /data-visualization/RM_Sdata.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/data-visualization/RM_Sdata.pdf -------------------------------------------------------------------------------- /data-visualization/RM_Sdata.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/data-visualization/RM_Sdata.png -------------------------------------------------------------------------------- /data-visualization/RM_Sdata.tex: -------------------------------------------------------------------------------- 1 | \documentclass[tikz,border=0.1cm]{standalone} 2 | 3 | \usepackage{tikz} 4 | \usepackage{pgfplots} 5 | \usepackage{amsmath} 6 | 7 | \pgfplotsset{compat=newest} 8 | 9 | \begin{document} 10 | 11 | \newcommand{\power}{10} 12 | 13 | \begin{tikzpicture} 14 | \fontfamily{phv} 15 | \scriptsize 16 | \begin{axis}[ 17 | height=5.5cm, 18 | width=5cm, 19 | axis x line=center, 20 | axis y line=center, 21 | xtick={-30,-10,10,25}, 22 | xticklabels={8.0,5.0,3.0,4.5}, 23 | ytick={20,60,100}, 24 | yticklabels={}, 25 | xgrid, 26 | xlabel style={below left}, 27 | ylabel style={below right}, 28 | xmin=-50, 29 | xmax=50, 30 | ymin=-5, 31 | ymax=130] 32 | 33 | 34 | %% RMSE 35 | \draw[draw=gray!60, fill=red!20] (0.8,20-14) rectangle (33.6-20,20-7-0.7); 36 | \draw[draw=gray!60, fill=red!20] (0.8,20-14+40) rectangle (35.2-20,20-7+40-0.7); 37 | \draw[draw=gray!60, fill=red!20] (0.8,20-14+80) rectangle (38.4-20,20-7+80-0.7); 38 | 39 | \draw[draw=gray!60, fill=green!20] (0.8,20-7) rectangle (40.8-20,20-0.7); 40 | \draw[draw=gray!60, fill=green!20] (0.8,20-7+40) rectangle (43.4-20,20+40-0.7); 41 | \draw[draw=gray!60, fill=green!20] (0.8,20-7+80) rectangle (47.6-20,20+80-0.7); 42 | 43 | \draw[draw=gray!60, fill=blue!20] (0.8,20) rectangle (45.3-20,20+7-0.7); 44 | \draw[draw=gray!60, fill=blue!20] (0.8,20+40) rectangle (45.6-20,20+7+40-0.7); 45 | \draw[draw=gray!60, fill=blue!20] (0.8,20+80) rectangle (46.1-20,20+7+80-0.7); 46 | 47 | \draw[draw=gray!60, fill=yellow!20] (0.8,20+7) rectangle (38.3-20,20+14-0.7); 48 | \draw[draw=gray!60, fill=yellow!20] (0.8,20+7+40) rectangle (39.4-20,20+14+40-0.7); 49 | \draw[draw=gray!60, fill=yellow!20] (0.8,20+7+80) rectangle (41.1-20,20+14+80-0.7); 50 | 51 | 52 | %% MAPE 53 | \draw[draw=gray!60, fill=red!20] (-0.8,20-14) rectangle (-52.7+40,20-7-0.7); 54 | \draw[draw=gray!60, fill=red!20] (-0.8,20-14+40) rectangle (-55.9+40,20-7+40-0.7); 55 | \draw[draw=gray!60, fill=red!20] (-0.8,20-14+80) rectangle (-61.9+40,20-7+80-0.7); 56 | 57 | \draw[draw=gray!60, fill=green!20] (-0.8,20-7) rectangle (-73.1+40,20-0.7); 58 | \draw[draw=gray!60, fill=green!20] (-0.8,20-7+40) rectangle (-79.1+40,20+40-0.7); 59 | \draw[draw=gray!60, fill=green!20] (-0.8,20-7+80) rectangle (-88.9+40,20+80-0.7); 60 | 61 | \draw[draw=gray!60, fill=blue!20] (-0.8,20) rectangle (-75.3+40,20+7-0.7); 62 | \draw[draw=gray!60, fill=blue!20] (-0.8,20+40) rectangle (-76.0+40,20+7+40-0.7); 63 | \draw[draw=gray!60, fill=blue!20] (-0.8,20+80) rectangle (-76.7+40,20+7+80-0.7); 64 | 65 | \draw[draw=gray!60, fill=yellow!20] (-0.8,20+7) rectangle (-60.9+40,20+14-0.7); 66 | \draw[draw=gray!60, fill=yellow!20] (-0.8,20+7+40) rectangle (-63.5+40,20+14+40-0.7); 67 | \draw[draw=gray!60, fill=yellow!20] (-0.8,20+7+80) rectangle (-66.4+40,20+14+80-0.7); 68 | 69 | \addplot[mark=None, very thin, dashed] plot coordinates { (-10,0) (-10,115) }; 70 | \addplot[mark=None, very thin, dashed] plot coordinates { (10,0) (10,115) }; 71 | \node[] at (axis cs: -20,125) {MAPE}; 72 | \node[] at (axis cs: 20,125) {RMSE}; 73 | 74 | 75 | \end{axis} 76 | \end{tikzpicture} 77 | 78 | \end{document} -------------------------------------------------------------------------------- /data-visualization/RMseries.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/data-visualization/RMseries.pdf -------------------------------------------------------------------------------- /data-visualization/RMseries.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/data-visualization/RMseries.png -------------------------------------------------------------------------------- /data-visualization/RMseries.tex: -------------------------------------------------------------------------------- 1 | \documentclass[tikz,border=0.1cm]{standalone} 2 | 3 | \usepackage{tikz} 4 | \usepackage{pgfplots} 5 | \usepackage{amsmath} 6 | 7 | \pgfplotsset{compat=newest} 8 | 9 | \begin{filecontents}{speed1.data} 10 | 1 42.61 11 | 2 45.43 12 | 3 45.99 13 | 4 45.37 14 | 5 42.24 15 | 6 36.90 16 | \end{filecontents} 17 | 18 | \begin{filecontents}{speed2.data} 19 | 6 36.90 20 | 7 32.65 21 | 8 34.37 22 | 9 37.09 23 | 10 33.09 24 | 11 25.20 25 | 12 16.55 26 | 13 24.89 27 | \end{filecontents} 28 | 29 | \begin{filecontents}{speed3.data} 30 | 13 24.89 31 | 14 33.48 32 | 15 38.96 33 | 16 43.39 34 | 17 45.01 35 | 18 45.28 36 | 19 44.65 37 | 20 42.97 38 | 21 41.04 39 | 22 38.08 40 | 23 39.45 41 | 24 40.41 42 | 25 39.41 43 | \end{filecontents} 44 | 45 | \begin{filecontents}{speed4.data} 46 | 25 39.41 47 | 26 37.30 48 | 27 35.57 49 | 28 36.46 50 | 29 39.85 51 | \end{filecontents} 52 | 53 | \begin{filecontents}{speed5.data} 54 | 29 39.85 55 | 30 42.33 56 | 31 41.85 57 | 32 44.51 58 | 33 45.05 59 | 34 44.45 60 | 35 41.47 61 | 36 36.30 62 | 37 32.72 63 | 38 34.45 64 | 39 36.68 65 | 40 33.00 66 | 41 25.99 67 | 42 18.61 68 | 43 25.82 69 | 44 33.59 70 | 45 39.40 71 | 46 42.70 72 | 47 45.33 73 | 48 46.20 74 | 49 45.23 75 | 50 42.03 76 | 51 37.69 77 | 52 33.43 78 | 53 35.75 79 | 54 37.17 80 | 55 32.57 81 | \end{filecontents} 82 | 83 | \begin{filecontents}{speed6.data} 84 | 55 32.57 85 | 56 24.98 86 | 57 18.33 87 | 58 26.58 88 | 59 33.05 89 | 60 40.26 90 | 61 41.29 91 | 62 44.32 92 | 63 45.39 93 | 64 45.11 94 | 65 42.16 95 | 66 36.90 96 | 67 32.92 97 | 68 33.84 98 | 69 36.24 99 | 70 33.15 100 | 71 25.93 101 | 72 19.16 102 | 73 24.25 103 | 74 30.92 104 | 75 38.17 105 | 76 41.60 106 | \end{filecontents} 107 | 108 | \begin{filecontents}{speed7.data} 109 | 76 41.60 110 | 77 44.24 111 | 78 45.49 112 | 79 45.28 113 | 80 43.17 114 | 81 39.65 115 | 82 34.20 116 | 83 34.34 117 | \end{filecontents} 118 | 119 | \begin{filecontents}{speed8.data} 120 | 83 34.34 121 | 84 36.82 122 | 85 32.93 123 | 86 28.15 124 | 87 25.24 125 | 88 28.93 126 | 89 33.23 127 | \end{filecontents} 128 | 129 | \begin{filecontents}{speed9.data} 130 | 89 33.23 131 | 90 39.34 132 | 91 41.93 133 | 92 44.50 134 | 93 45.79 135 | 94 45.61 136 | 95 43.76 137 | \end{filecontents} 138 | 139 | 140 | \begin{filecontents}{speed10.data} 141 | 95 43.76 142 | 96 40.76 143 | 97 35.56 144 | 98 35.55 145 | 99 37.76 146 | 100 33.38 147 | 101 28.69 148 | 102 27.10 149 | 103 30.10 150 | 104 33.98 151 | 105 39.77 152 | \end{filecontents} 153 | 154 | \begin{document} 155 | \begin{tikzpicture}[domain=0:110] 156 | \begin{axis}[ 157 | height=3cm, 158 | width=7cm, 159 | axis x line=center, 160 | axis y line=center, 161 | xtick={15,30,45,60,75,90,105}, 162 | ytick={0}, 163 | xticklabels={\footnotesize$T$,\footnotesize$2T$,\footnotesize$3T$,\footnotesize$4T$,\footnotesize$5T$,\footnotesize$6T$,\footnotesize$7T$}, 164 | yticklabels={}, 165 | xlabel style={below left}, 166 | ylabel style={below right}, 167 | xmin=1, 168 | xmax=115, 169 | ymin=0, 170 | ymax=60] 171 | \addplot[no marks,smooth,draw=cyan!60!blue,thick] file {speed1.data}; 172 | \addplot+[only marks, 173 | mark=*, 174 | mark options={scale=0.9,fill=white}, 175 | draw=gray!60,thick] plot coordinates{(6,36.90) (13,24.89) (25,39.41) (29,39.85) (55,32.57) (76,41.60) (83,34.34) (89,33.23) (95,43.76)}; 176 | \addplot[no marks,smooth,draw=cyan!60!blue,thick] file {speed2.data}; 177 | \addplot[no marks,smooth,draw=cyan!60!blue,thick] file {speed3.data}; 178 | \addplot[no marks,smooth,draw=cyan!60!blue,thick] file {speed4.data}; 179 | \addplot[no marks,smooth,draw=cyan!60!blue,thick] file {speed5.data}; 180 | \addplot[no marks,smooth,draw=cyan!60!blue,thick] file {speed6.data}; 181 | \addplot[no marks,smooth,draw=cyan!60!blue,thick] file {speed7.data}; 182 | \addplot[no marks,smooth,draw=cyan!60!blue,thick] file {speed8.data}; 183 | \addplot[no marks,smooth,draw=cyan!60!blue,thick] file {speed9.data}; 184 | \addplot[no marks,smooth,draw=cyan!60!blue,thick] file {speed10.data}; 185 | \end{axis} 186 | \end{tikzpicture} 187 | 188 | \end{document} -------------------------------------------------------------------------------- /data-visualization/performance_bar.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/data-visualization/performance_bar.pdf -------------------------------------------------------------------------------- /data-visualization/performance_bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/data-visualization/performance_bar.png -------------------------------------------------------------------------------- /data-visualization/performance_bar.tex: -------------------------------------------------------------------------------- 1 | \documentclass[tikz,border=0.1cm]{standalone} 2 | \usepackage{tikz} 3 | \usepackage{amsmath, amssymb, amsfonts} 4 | \usepackage{xcolor} 5 | 6 | \begin{document} 7 | 8 | \begin{tikzpicture} 9 | \fontfamily{phv} 10 | 11 | % Guangzhou data 12 | \draw (0,-7.6) node {\small\color{black}Data Set (G)}; 13 | 14 | \pgfdeclareimage{img}{RM_Gdata.pdf} 15 | \node (img1) at (0,0) {\pgfuseimage{img}}; 16 | 17 | \pgfdeclareimage{img}{NM_Gdata.pdf} 18 | \node (img2) at (0,-5) {\pgfuseimage{img}}; 19 | 20 | % Birmingham data 21 | \draw (4.2,-7.6) node {\small\color{black}Data Set (B)}; 22 | 23 | \pgfdeclareimage{img}{RM_Bdata.pdf} 24 | \node (img1) at (4.2,0) {\pgfuseimage{img}}; 25 | 26 | \pgfdeclareimage{img}{NM_Bdata.pdf} 27 | \node (img2) at (4.2,-5) {\pgfuseimage{img}}; 28 | 29 | % Hangzhou data 30 | \draw (8.4,-7.6) node {\small\color{black}Data Set (H)}; 31 | 32 | \pgfdeclareimage{img}{RM_Hdata.pdf} 33 | \node (img1) at (8.4,0) {\pgfuseimage{img}}; 34 | 35 | \pgfdeclareimage{img}{NM_Hdata.pdf} 36 | \node (img2) at (8.4,-5) {\pgfuseimage{img}}; 37 | 38 | % Seattle data 39 | \draw (12.6,-7.6) node {\small\color{black}Data Set (S)}; 40 | 41 | \pgfdeclareimage{img}{RM_Sdata.pdf} 42 | \node (img1) at (12.6,0) {\pgfuseimage{img}}; 43 | 44 | \pgfdeclareimage{img}{NM_Sdata.pdf} 45 | \node (img2) at (12.6,-5) {\pgfuseimage{img}}; 46 | 47 | \scriptsize 48 | \draw [mark=None, thick] plot coordinates { (-3+0.5,-1.09) (-3+0.5,1.23) }; 49 | \draw [mark=None, very thin] plot coordinates { (-3+0.5,-1.09) (-2.85+0.5,-1.09) }; 50 | \draw [mark=None, very thin] plot coordinates { (-3+0.5,0.07) (-2.85+0.5,0.07) }; 51 | \draw [mark=None, very thin] plot coordinates { (-3+0.5,1.23) (-2.85+0.5,1.23) }; 52 | \draw (-3.45+0.5,1.23) node {\color{black}70\%}; 53 | \draw (-3.45+0.5,0.07) node {\color{black}60\%}; 54 | \draw (-3.45+0.5,-1.09) node {\color{black}50\%}; 55 | \draw (-3+0.5,1.7) node {\color{black}RM}; 56 | 57 | \draw [mark=None, thick] plot coordinates { (-3+0.5,-1.09-5) (-3+0.5,1.23-5) }; 58 | \draw [mark=None, very thin] plot coordinates { (-3+0.5,-1.09-5) (-2.85+0.5,-1.09-5) }; 59 | \draw [mark=None, very thin] plot coordinates { (-3+0.5,0.07-5) (-2.85+0.5,0.07-5) }; 60 | \draw [mark=None, very thin] plot coordinates { (-3+0.5,1.23-5) (-2.85+0.5,1.23-5) }; 61 | \draw (-3.45+0.5,1.23-5) node {\color{black}70\%}; 62 | \draw (-3.45+0.5,0.07-5) node {\color{black}60\%}; 63 | \draw (-3.45+0.5,-1.09-5) node {\color{black}50\%}; 64 | \draw (-3+0.5,1.7-5) node {\color{black}NM}; 65 | 66 | \draw[draw=gray!60, fill=yellow!20] (-0.8+1,2.7) rectangle (0+1,3.0); 67 | \draw[draw=gray!60, fill=blue!20] (3.4+0.5,2.7) rectangle (4.2+0.5,3.0); 68 | \draw[draw=gray!60, fill=green!20] (7.6-0.5,2.7) rectangle (8.4-0.5,3.0); 69 | \draw[draw=gray!60, fill=red!20] (11.8-1,2.7) rectangle (12.6-1,3.0); 70 | 71 | \draw (0+1+0.6,2.85) node {\color{black}BTMF}; 72 | \draw (4.2+0.5+0.6,2.85) node {\color{black}BGCP}; 73 | \draw (8.4-0.5+0.7,2.85) node {\color{black}HaLRTC}; 74 | \draw (12.6-1+0.8,2.85) node {\color{black}LRTC-TNN}; 75 | 76 | 77 | 78 | 79 | \end{tikzpicture} 80 | \end{document} 81 | -------------------------------------------------------------------------------- /images/batf_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/images/batf_01.png -------------------------------------------------------------------------------- /images/batf_02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/images/batf_02.png -------------------------------------------------------------------------------- /images/batf_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/images/batf_03.png -------------------------------------------------------------------------------- /images/batf_04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/images/batf_04.png -------------------------------------------------------------------------------- /images/batf_05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/images/batf_05.png -------------------------------------------------------------------------------- /matrix/flip_matrix.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/matrix/flip_matrix.pdf -------------------------------------------------------------------------------- /matrix/flip_matrix.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/matrix/flip_matrix.png -------------------------------------------------------------------------------- /matrix/flip_matrix.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=0.2cm, 12pt]{standalone} 2 | \usepackage{tikz} 3 | \usepackage{helvet} 4 | \renewcommand{\familydefault}{\sfdefault} 5 | \usepackage{amsmath, amssymb, amsfonts, mathtools} 6 | \usepackage{color} 7 | 8 | \usetikzlibrary{shapes,snakes} 9 | \tikzset{>=latex} 10 | 11 | \begin{document} 12 | \begin{tikzpicture} 13 | 14 | %%% Data matrix X 15 | 16 | \node[circle,draw=red!90,fill=red!90,inner sep=0pt,minimum size=0.4cm] (sv1) at (0.25,1.25) {}; 17 | \node[circle,draw=red!10,fill=red!10,inner sep=0pt,minimum size=0.4cm] (sv1) at (0.75,0.75) {}; 18 | \node[circle,draw=red!65,fill=red!65,inner sep=0pt,minimum size=0.4cm] (sv1) at (0.25,0.75) {}; 19 | \node[circle,draw=red!35,fill=red!35,inner sep=0pt,minimum size=0.4cm] (sv1) at (0.75,1.25) {}; 20 | \draw [thick] (0,0.5) rectangle (1,1.5); 21 | 22 | \node at (0.5,1.8) {\scriptsize\color{black}Matrix $\boldsymbol{Y}$}; 23 | 24 | \node at (2.25,1.25) {\scriptsize\color{black}Modeling}; 25 | \node (G) at (1.5,1) {};\node (H) at (3,1) {};\draw [->,very thick,gray] (G) edge (H); 26 | 27 | %%% Big matrix 28 | \newcommand{\temp}{4} 29 | 30 | %%% (1,1)-th block 31 | \node[circle,draw=red!90,fill=red!90,inner sep=0pt,minimum size=0.4cm] (sv1) at (0.25+\temp,1.75) {}; 32 | \node[circle,draw=red!10,fill=red!10,inner sep=0pt,minimum size=0.4cm] (sv1) at (0.75+\temp,1.25) {}; 33 | \node[circle,draw=red!65,fill=red!65,inner sep=0pt,minimum size=0.4cm] (sv1) at (0.25+\temp,1.25) {}; 34 | \node[circle,draw=red!35,fill=red!35,inner sep=0pt,minimum size=0.4cm] (sv1) at (0.75+\temp,1.75) {}; 35 | \draw [thick,color=gray!25] (0+\temp,1) rectangle (1+\temp,2); 36 | 37 | %%% (2,1)-th block 38 | \node[circle,draw=red!65,fill=red!65,inner sep=0pt,minimum size=0.4cm] (sv1) at (0.25+\temp,0.75) {}; 39 | \node[circle,draw=red!35,fill=red!35,inner sep=0pt,minimum size=0.4cm] (sv1) at (0.75+\temp,0.25) {}; 40 | \node[circle,draw=red!90,fill=red!90,inner sep=0pt,minimum size=0.4cm] (sv1) at (0.25+\temp,0.25) {}; 41 | \node[circle,draw=red!10,fill=red!10,inner sep=0pt,minimum size=0.4cm] (sv1) at (0.75+\temp,0.75) {}; 42 | \draw [thick,color=gray!25] (0+\temp,0) rectangle (1+\temp,1); 43 | 44 | %%% (1,2)-th block 45 | \node[circle,draw=red!35,fill=red!35,inner sep=0pt,minimum size=0.4cm] (sv1) at (1.25+\temp,1.75) {}; 46 | \node[circle,draw=red!65,fill=red!65,inner sep=0pt,minimum size=0.4cm] (sv1) at (1.75+\temp,1.25) {}; 47 | \node[circle,draw=red!10,fill=red!10,inner sep=0pt,minimum size=0.4cm] (sv1) at (1.25+\temp,1.25) {}; 48 | \node[circle,draw=red!90,fill=red!90,inner sep=0pt,minimum size=0.4cm] (sv1) at (1.75+\temp,1.75) {}; 49 | \draw [thick,color=gray!25] (1+\temp,1) rectangle (2+\temp,2); 50 | 51 | %%% (2,2)-th block 52 | \node[circle,draw=red!10,fill=red!10,inner sep=0pt,minimum size=0.4cm] (sv1) at (1.25+\temp,0.75) {}; 53 | \node[circle,draw=red!90,fill=red!90,inner sep=0pt,minimum size=0.4cm] (sv1) at (1.75+\temp,0.25) {}; 54 | \node[circle,draw=red!35,fill=red!35,inner sep=0pt,minimum size=0.4cm] (sv1) at (1.25+\temp,0.25) {}; 55 | \node[circle,draw=red!65,fill=red!65,inner sep=0pt,minimum size=0.4cm] (sv1) at (1.75+\temp,0.75) {}; 56 | \draw [thick,color=gray!25] (1+\temp,0) rectangle (2+\temp,1); 57 | 58 | \draw [thick] (0+\temp,0) rectangle (2+\temp,2); 59 | 60 | \node (G) at (0.05+\temp,1.4) {};\node (H) at (0.05+\temp,0.6) {};\draw [->, thick,gray] (G) edge[bend right] (H); 61 | \node (G) at (0.05+\temp,1.9) {};\node (H) at (0.05+\temp,0.1) {};\draw [->, thick,gray] (G) edge[bend right] (H); 62 | 63 | \draw (-0.5+\temp,1) node[rotate = 90] {\scriptsize{\color{gray}Flip rows}}; 64 | 65 | \node (G) at (0.6+\temp,1.95) {};\node (H) at (1.4+\temp,1.95) {};\draw [->, thick,gray] (G) edge[bend left] (H); 66 | \node (G) at (0.1+\temp,1.95) {};\node (H) at (1.9+\temp,1.95) {};\draw [->, thick,gray] (G) edge[bend left] (H); 67 | \draw (1+\temp,2.5) node {\scriptsize{\color{gray}Flip columns}}; 68 | 69 | \end{tikzpicture} 70 | \end{document} -------------------------------------------------------------------------------- /matrix/linear_circ_mat.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/matrix/linear_circ_mat.pdf -------------------------------------------------------------------------------- /matrix/linear_circ_mat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/matrix/linear_circ_mat.png -------------------------------------------------------------------------------- /matrix/linear_circ_mat.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=1mm, convert = false]{standalone} 2 | \usepackage{amsmath, amssymb, amsfonts} 3 | \usepackage{tikz} 4 | \usepackage{helvet} 5 | \renewcommand{\familydefault}{\sfdefault} 6 | 7 | \begin{document} 8 | 9 | \begin{tikzpicture}[domain=0:4] 10 | \newcommand{\posx}{4} 11 | \newcommand{\posy}{3.8} 12 | 13 | \draw [step=0.4, very thick, color=white] (0+0.8,0.4-4) grid (0.4+0.8,2-4); 14 | \draw [thick] (0+0.8,0.4-4) rectangle (0.4+0.8,2-4); 15 | \draw (1,3-4-0.6) node {\footnotesize{\color{black}$\boldsymbol{z}$}}; 16 | \node[circle,fill=red!70,inner sep=0pt,minimum size=0.35cm] at (1,1.8-4) {\scriptsize\color{black}$z_1$}; 17 | \node[circle,fill=red!50,inner sep=0pt,minimum size=0.35cm] at (1,1.4-4) {\scriptsize\color{black}$z_2$}; 18 | \node[circle,fill=red!30,inner sep=0pt,minimum size=0.35cm] at (1,1-4) {\scriptsize\color{black}$z_3$}; 19 | \node[circle,fill=red!10,inner sep=0pt,minimum size=0.35cm] at (1,0.6-4) {\scriptsize\color{black}$z_4$}; 20 | 21 | \draw (2-0.2,1.2-4) node {\large{\color{gray}$=$}}; 22 | 23 | \draw [step=0.4, very thick, color=white] (2.4,0.4-4) grid (4,2-4); 24 | \draw [thick] (2.4,0.4-4) rectangle (4,2-4); 25 | \draw (3.2,3-4-0.6) node {\footnotesize{\color{black}$\mathcal{C}(\boldsymbol{x})$}}; 26 | \node[circle,fill=cyan!70,inner sep=0pt,minimum size=0.35cm] at (3-0.4,1.8-4) {\scriptsize\color{black}$x_1$}; 27 | \node[circle,fill=cyan!50,inner sep=0pt,minimum size=0.35cm] at (3-0.4,1.4-4) {\scriptsize\color{black}$x_2$}; 28 | \node[circle,fill=cyan!30,inner sep=0pt,minimum size=0.35cm] at (3-0.4,1-4) {\scriptsize\color{black}$x_3$}; 29 | \node[circle,fill=cyan!10,inner sep=0pt,minimum size=0.35cm] at (3-0.4,0.6-4) {\scriptsize\color{black}$x_4$}; 30 | \node[circle,fill=cyan!10,inner sep=0pt,minimum size=0.35cm] at (3,1.8-4) {\scriptsize\color{black}$x_4$}; 31 | \node[circle,fill=cyan!70,inner sep=0pt,minimum size=0.35cm] at (3,1.4-4) {\scriptsize\color{black}$x_1$}; 32 | \node[circle,fill=cyan!50,inner sep=0pt,minimum size=0.35cm] at (3,1-4) {\scriptsize\color{black}$x_2$}; 33 | \node[circle,fill=cyan!30,inner sep=0pt,minimum size=0.35cm] at (3,0.6-4) {\scriptsize\color{black}$x_3$}; 34 | \node[circle,fill=cyan!30,inner sep=0pt,minimum size=0.35cm] at (3.4,1.8-4) {\scriptsize\color{black}$x_3$}; 35 | \node[circle,fill=cyan!10,inner sep=0pt,minimum size=0.35cm] at (3.4,1.4-4) {\scriptsize\color{black}$x_4$}; 36 | \node[circle,fill=cyan!70,inner sep=0pt,minimum size=0.35cm] at (3.4,1-4) {\scriptsize\color{black}$x_1$}; 37 | \node[circle,fill=cyan!50,inner sep=0pt,minimum size=0.35cm] at (3.4,0.6-4) {\scriptsize\color{black}$x_2$}; 38 | \node[circle,fill=cyan!50,inner sep=0pt,minimum size=0.35cm] at (3.8,1.8-4) {\scriptsize\color{black}$x_2$}; 39 | \node[circle,fill=cyan!30,inner sep=0pt,minimum size=0.35cm] at (3.8,1.4-4) {\scriptsize\color{black}$x_3$}; 40 | \node[circle,fill=cyan!10,inner sep=0pt,minimum size=0.35cm] at (3.8,1-4) {\scriptsize\color{black}$x_4$}; 41 | \node[circle,fill=cyan!70,inner sep=0pt,minimum size=0.35cm] at (3.8,0.6-4) {\scriptsize\color{black}$x_1$}; 42 | 43 | \draw (4.6,1.2-4) node {\large{\color{gray}$\times$}}; 44 | 45 | \filldraw [fill=orange!70] (5.2,0.4-4) rectangle (5.6,2-4); 46 | \filldraw [fill=orange!50] (5.2,1.2-4) rectangle (5.6,1.6-4); 47 | \filldraw [fill=orange!30] (5.2,0.8-4) rectangle (5.6,1.2-4); 48 | \filldraw [fill=orange!10] (5.2,0.4-4) rectangle (5.6,0.8-4); 49 | \draw [step=0.4, very thick, color=white] (5.2,0.8-4) grid (5.6,2-4); 50 | \draw [thick] (5.2,0.4-4) rectangle (5.6,2-4); 51 | \draw (5.4,3-4-0.6) node {\footnotesize{\color{black}$\boldsymbol{y}$}}; 52 | 53 | \draw (5.4,1.8-4) node {\scriptsize{\color{black}$y_1$}}; 54 | \draw (5.4,1.4-4) node {\scriptsize{\color{black}$y_2$}}; 55 | \draw (5.4,1.0-4) node {\scriptsize{\color{black}$y_3$}}; 56 | \draw (5.4,0.6-4) node {\scriptsize{\color{black}$y_4$}}; 57 | 58 | \end{tikzpicture} 59 | 60 | \end{document} -------------------------------------------------------------------------------- /matrix/linear_conv_mat.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/matrix/linear_conv_mat.pdf -------------------------------------------------------------------------------- /matrix/linear_conv_mat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/matrix/linear_conv_mat.png -------------------------------------------------------------------------------- /matrix/linear_conv_mat.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=1mm, convert = false]{standalone} 2 | \usepackage{amsmath, amssymb, amsfonts} 3 | \usepackage{tikz} 4 | \usepackage{helvet} 5 | \renewcommand{\familydefault}{\sfdefault} 6 | 7 | \begin{document} 8 | 9 | \begin{tikzpicture}[domain=0:4] 10 | \newcommand{\posx}{4} 11 | \newcommand{\posy}{3.8} 12 | 13 | \draw [step=0.4, very thick, color=white] (0+0.8,0.4-4) grid (0.4+0.8,2-4); 14 | \draw [thick] (0+0.8,0.4-4) rectangle (0.4+0.8,2-4); 15 | \draw (1,3-4-0.6) node {\footnotesize{\color{black}$\boldsymbol{z}$}}; 16 | \node[circle,fill=red!70,inner sep=0pt,minimum size=0.35cm] at (1,1.8-4) {\scriptsize\color{black}$z_1$}; 17 | \node[circle,fill=red!50,inner sep=0pt,minimum size=0.35cm] at (1,1.4-4) {\scriptsize\color{black}$z_2$}; 18 | \node[circle,fill=red!30,inner sep=0pt,minimum size=0.35cm] at (1,1-4) {\scriptsize\color{black}$z_3$}; 19 | \node[circle,fill=red!10,inner sep=0pt,minimum size=0.35cm] at (1,0.6-4) {\scriptsize\color{black}$z_4$}; 20 | 21 | \draw (2-0.1,1.2-4) node {\large{\color{gray}$=$}}; 22 | 23 | \draw [step=0.4, very thick, color=white] (2.8-0.2,0.4-4) grid (4-0.2,2-4); 24 | \draw [thick] (2.8-0.2,0.4-4) rectangle (4-0.2,2-4); 25 | \draw (3.4-0.2,3-4-0.6) node {\footnotesize{\color{black}$\mathcal{C}_3(\boldsymbol{x})$}}; 26 | \node[circle,fill=cyan!70,inner sep=0pt,minimum size=0.35cm] at (3-0.2,1.8-4) {\scriptsize\color{black}$x_1$}; 27 | \node[circle,fill=cyan!50,inner sep=0pt,minimum size=0.35cm] at (3-0.2,1.4-4) {\scriptsize\color{black}$x_2$}; 28 | \node[circle,fill=cyan!30,inner sep=0pt,minimum size=0.35cm] at (3-0.2,1-4) {\scriptsize\color{black}$x_3$}; 29 | \node[circle,fill=cyan!10,inner sep=0pt,minimum size=0.35cm] at (3-0.2,0.6-4) {\scriptsize\color{black}$x_4$}; 30 | \node[circle,fill=cyan!10,inner sep=0pt,minimum size=0.35cm] at (3.4-0.2,1.8-4) {\scriptsize\color{black}$x_4$}; 31 | \node[circle,fill=cyan!70,inner sep=0pt,minimum size=0.35cm] at (3.4-0.2,1.4-4) {\scriptsize\color{black}$x_1$}; 32 | \node[circle,fill=cyan!50,inner sep=0pt,minimum size=0.35cm] at (3.4-0.2,1-4) {\scriptsize\color{black}$x_2$}; 33 | \node[circle,fill=cyan!30,inner sep=0pt,minimum size=0.35cm] at (3.4-0.2,0.6-4) {\scriptsize\color{black}$x_3$}; 34 | \node[circle,fill=cyan!30,inner sep=0pt,minimum size=0.35cm] at (3.8-0.2,1.8-4) {\scriptsize\color{black}$x_3$}; 35 | \node[circle,fill=cyan!10,inner sep=0pt,minimum size=0.35cm] at (3.8-0.2,1.4-4) {\scriptsize\color{black}$x_4$}; 36 | \node[circle,fill=cyan!70,inner sep=0pt,minimum size=0.35cm] at (3.8-0.2,1-4) {\scriptsize\color{black}$x_1$}; 37 | \node[circle,fill=cyan!50,inner sep=0pt,minimum size=0.35cm] at (3.8-0.2,0.6-4) {\scriptsize\color{black}$x_2$}; 38 | 39 | \draw (4.5,1.2-4) node {\large{\color{gray}$\times$}}; 40 | 41 | \filldraw [fill=orange!70] (5.2,0.8-4) rectangle (5.6,2-4); 42 | \filldraw [fill=orange!50] (5.2,1.2-4) rectangle (5.6,1.6-4); 43 | \filldraw [fill=orange!30] (5.2,0.8-4) rectangle (5.6,1.2-4); 44 | \draw [step=0.4, very thick, color=white] (5.2,0.8-4) grid (5.6,2-4); 45 | \draw [thick] (5.2,0.8-4) rectangle (5.6,2-4); 46 | \draw (5.4,3-4-0.6) node {\footnotesize{\color{black}$\boldsymbol{y}$}}; 47 | 48 | \draw (5.4,1.8-4) node {\scriptsize{\color{black}$y_1$}}; 49 | \draw (5.4,1.4-4) node {\scriptsize{\color{black}$y_2$}}; 50 | \draw (5.4,1.0-4) node {\scriptsize{\color{black}$y_3$}}; 51 | 52 | \end{tikzpicture} 53 | 54 | \end{document} -------------------------------------------------------------------------------- /matrix/linear_regression_circ.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/matrix/linear_regression_circ.pdf -------------------------------------------------------------------------------- /matrix/linear_regression_circ.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/matrix/linear_regression_circ.png -------------------------------------------------------------------------------- /matrix/linear_regression_circ.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=1mm, convert = false]{standalone} 2 | \usepackage{amsmath, amssymb, amsfonts} 3 | \usepackage{tikz} 4 | \usepackage{helvet} 5 | \renewcommand{\familydefault}{\sfdefault} 6 | 7 | \begin{document} 8 | 9 | \begin{tikzpicture}[domain=0:4] 10 | \newcommand{\posx}{4} 11 | \newcommand{\posy}{3.8} 12 | 13 | \draw [step=0.4, very thick, color=white] (0+0.8,0.4-4) grid (0.4+0.8,2-4); 14 | \draw [thick] (0+0.8,0.4-4) rectangle (0.4+0.8,2-4); 15 | \draw (1,3-4-0.6) node {\footnotesize{\color{black}$\boldsymbol{x}$}}; 16 | \node[circle,fill=cyan!70,inner sep=0pt,minimum size=0.35cm] at (1,1.8-4) {\scriptsize\color{black}$x_1$}; 17 | \node[circle,fill=cyan!50,inner sep=0pt,minimum size=0.35cm] at (1,1.4-4) {\scriptsize\color{black}$x_2$}; 18 | \node[circle,fill=cyan!30,inner sep=0pt,minimum size=0.35cm] at (1,1-4) {\scriptsize\color{black}$x_3$}; 19 | \node[circle,fill=cyan!10,inner sep=0pt,minimum size=0.35cm] at (1,0.6-4) {\scriptsize\color{black}$x_4$}; 20 | 21 | \draw (2-0.6,1.2-4) node {\large{\color{gray}$\star$}}; 22 | 23 | \filldraw [fill=orange!70] (5.2-3.6,0.4-4) rectangle (5.6-3.6,2-4); 24 | \filldraw [fill=orange!50] (5.2-3.6,1.2-4) rectangle (5.6-3.6,1.6-4); 25 | \filldraw [fill=orange!30] (5.2-3.6,0.8-4) rectangle (5.6-3.6,1.2-4); 26 | \filldraw [fill=orange!10] (5.2-3.6,0.4-4) rectangle (5.6-3.6,0.8-4); 27 | \draw [step=0.4, very thick, color=white] (5.2-3.6,0.8-4) grid (5.6-3.6,2-4); 28 | \draw [thick] (5.2-3.6,0.4-4) rectangle (5.6-3.6,2-4); 29 | \draw (5.4-3.6,3-4-0.6) node {\footnotesize{\color{black}$\boldsymbol{\theta}$}}; 30 | 31 | \draw (5.4-3.6,1.8-4) node {\scriptsize{\color{black}$1$}}; 32 | \draw (5.4-3.6,1.4-4) node {}; 33 | \draw (5.4-3.6,1.0-4) node {}; 34 | \draw (5.4-3.6,0.6-4) node {}; 35 | 36 | \draw (5.4-3.25,0.6-3.6) node[rotate = 90] {{\color{gray!65}$\underbrace{\hspace{1.2cm}}$}}; 37 | \draw (5.4-3,0.6-3.6) node[rotate = 90] {\scriptsize{\color{black}$-\boldsymbol{w}$}}; 38 | 39 | \draw (2-0.2+1,1.2-4) node {\large{\color{gray}$=$}}; 40 | 41 | % \draw [step=0.4, very thick, color=white] (0+0.8+2.4,0.4-4) grid (0.4+0.8+2.4,2-4); 42 | % \draw [thick] (0+0.8+2.4,0.4-4) rectangle (0.4+0.8+2.4,2-4); 43 | % \draw (1+2.4,3-4-0.6) node {\footnotesize{\color{black}$\boldsymbol{x}$}}; 44 | % \node[circle,fill=cyan!70,inner sep=0pt,minimum size=0.35cm] at (1+2.4,1.8-4) {\scriptsize\color{black}$x_1$}; 45 | % \node[circle,fill=cyan!50,inner sep=0pt,minimum size=0.35cm] at (1+2.4,1.4-4) {\scriptsize\color{black}$x_2$}; 46 | % \node[circle,fill=cyan!30,inner sep=0pt,minimum size=0.35cm] at (1+2.4,1-4) {\scriptsize\color{black}$x_3$}; 47 | % \node[circle,fill=cyan!10,inner sep=0pt,minimum size=0.35cm] at (1+2.4,0.6-4) {\scriptsize\color{black}$x_4$}; 48 | 49 | % \draw (4.5-0.6,1.2-4) node {\large{\color{gray}$-$}}; 50 | 51 | \draw [step=0.4, very thick, color=white] (2.8-0.2+1.6-0.4-0.4,0.4-4) grid (4-0.2+1.6-0.4,2-4); 52 | \draw [thick] (2.8-0.2+1.6-0.4-0.4,0.4-4) rectangle (4-0.2+1.6-0.4,2-4); 53 | \draw (3.4-0.4+1.6-0.4,3-4-0.6) node {\footnotesize{\color{black}$\mathcal{C}(\boldsymbol{x})$}}; 54 | \node[circle,fill=cyan!70,inner sep=0pt,minimum size=0.35cm] at (3-0.2+1.2-0.4,1.8-4) {\scriptsize\color{black}$x_1$}; 55 | \node[circle,fill=cyan!50,inner sep=0pt,minimum size=0.35cm] at (3-0.2+1.2-0.4,1.4-4) {\scriptsize\color{black}$x_2$}; 56 | \node[circle,fill=cyan!30,inner sep=0pt,minimum size=0.35cm] at (3-0.2+1.2-0.4,1-4) {\scriptsize\color{black}$x_3$}; 57 | \node[circle,fill=cyan!10,inner sep=0pt,minimum size=0.35cm] at (3-0.2+1.2-0.4,0.6-4) {\scriptsize\color{black}$x_4$}; 58 | \node[circle,fill=cyan!10,inner sep=0pt,minimum size=0.35cm] at (3-0.2+1.6-0.4,1.8-4) {\scriptsize\color{black}$x_4$}; 59 | \node[circle,fill=cyan!70,inner sep=0pt,minimum size=0.35cm] at (3-0.2+1.6-0.4,1.4-4) {\scriptsize\color{black}$x_1$}; 60 | \node[circle,fill=cyan!50,inner sep=0pt,minimum size=0.35cm] at (3-0.2+1.6-0.4,1-4) {\scriptsize\color{black}$x_2$}; 61 | \node[circle,fill=cyan!30,inner sep=0pt,minimum size=0.35cm] at (3-0.2+1.6-0.4,0.6-4) {\scriptsize\color{black}$x_3$}; 62 | \node[circle,fill=cyan!30,inner sep=0pt,minimum size=0.35cm] at (3.4-0.2+1.6-0.4,1.8-4) {\scriptsize\color{black}$x_3$}; 63 | \node[circle,fill=cyan!10,inner sep=0pt,minimum size=0.35cm] at (3.4-0.2+1.6-0.4,1.4-4) {\scriptsize\color{black}$x_4$}; 64 | \node[circle,fill=cyan!70,inner sep=0pt,minimum size=0.35cm] at (3.4-0.2+1.6-0.4,1-4) {\scriptsize\color{black}$x_1$}; 65 | \node[circle,fill=cyan!50,inner sep=0pt,minimum size=0.35cm] at (3.4-0.2+1.6-0.4,0.6-4) {\scriptsize\color{black}$x_2$}; 66 | \node[circle,fill=cyan!50,inner sep=0pt,minimum size=0.35cm] at (3.8-0.2+1.6-0.4,1.8-4) {\scriptsize\color{black}$x_2$}; 67 | \node[circle,fill=cyan!30,inner sep=0pt,minimum size=0.35cm] at (3.8-0.2+1.6-0.4,1.4-4) {\scriptsize\color{black}$x_3$}; 68 | \node[circle,fill=cyan!10,inner sep=0pt,minimum size=0.35cm] at (3.8-0.2+1.6-0.4,1-4) {\scriptsize\color{black}$x_4$}; 69 | \node[circle,fill=cyan!70,inner sep=0pt,minimum size=0.35cm] at (3.8-0.2+1.6-0.4,0.6-4) {\scriptsize\color{black}$x_1$}; 70 | 71 | \draw (4.5+1.2-0.2,1.2-4) node {\large{\color{gray}$\times$}}; 72 | 73 | \filldraw [fill=orange!70] (5.2+0.8,0.8-4) rectangle (5.6+0.8,2-4); 74 | \filldraw [fill=orange!50] (5.2+0.8,1.2-4) rectangle (5.6+0.8,1.6-4); 75 | \filldraw [fill=orange!30] (5.2+0.8,0.8-4) rectangle (5.6+0.8,1.2-4); 76 | \filldraw [fill=orange!10] (5.2+0.8,0.4-4) rectangle (5.6+0.8,0.8-4); 77 | \draw [step=0.4, very thick, color=white] (5.2+0.4,0.8-4) grid (5.6+0.8,2-4); 78 | \draw [thick] (5.2+0.8,0.4-4) rectangle (5.6+0.8,2-4); 79 | \draw (5.4+0.8,3-4-0.6) node {\footnotesize{\color{black}$\boldsymbol{\theta}$}}; 80 | 81 | \draw (5.4+0.8,1.8-4) node {\scriptsize{\color{black}$1$}}; 82 | % \draw (5.4+0.8,1.4-4) node {\scriptsize{\color{black}$w_2$}}; 83 | % \draw (5.4+0.8,1.0-4) node {\scriptsize{\color{black}$w_3$}}; 84 | 85 | \end{tikzpicture} 86 | 87 | \end{document} -------------------------------------------------------------------------------- /matrix/linear_regression_w_conv.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/matrix/linear_regression_w_conv.pdf -------------------------------------------------------------------------------- /matrix/linear_regression_w_conv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/matrix/linear_regression_w_conv.png -------------------------------------------------------------------------------- /matrix/linear_regression_w_conv.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=1mm, convert = false]{standalone} 2 | \usepackage{amsmath, amssymb, amsfonts} 3 | \usepackage{tikz} 4 | \usepackage{helvet} 5 | \renewcommand{\familydefault}{\sfdefault} 6 | 7 | \begin{document} 8 | 9 | \begin{tikzpicture}[domain=0:4] 10 | \newcommand{\posx}{4} 11 | \newcommand{\posy}{3.8} 12 | 13 | \draw [step=0.4, very thick, color=white] (0+0.8,0.4-4) grid (0.4+0.8,2-4); 14 | \draw [thick] (0+0.8,0.4-4) rectangle (0.4+0.8,2-4); 15 | \draw (1,3-4-0.6) node {\footnotesize{\color{black}$\boldsymbol{x}$}}; 16 | \node[circle,fill=cyan!70,inner sep=0pt,minimum size=0.35cm] at (1,1.8-4) {\scriptsize\color{black}$x_1$}; 17 | \node[circle,fill=cyan!50,inner sep=0pt,minimum size=0.35cm] at (1,1.4-4) {\scriptsize\color{black}$x_2$}; 18 | \node[circle,fill=cyan!30,inner sep=0pt,minimum size=0.35cm] at (1,1-4) {\scriptsize\color{black}$x_3$}; 19 | \node[circle,fill=cyan!10,inner sep=0pt,minimum size=0.35cm] at (1,0.6-4) {\scriptsize\color{black}$x_4$}; 20 | 21 | \draw (2-0.6,1.2-4) node {\large{\color{gray}$\star$}}; 22 | 23 | \filldraw [fill=orange!70] (5.2-3.6,0.4-4) rectangle (5.6-3.6,2-4); 24 | \filldraw [fill=orange!50] (5.2-3.6,1.2-4) rectangle (5.6-3.6,1.6-4); 25 | \filldraw [fill=orange!30] (5.2-3.6,0.8-4) rectangle (5.6-3.6,1.2-4); 26 | \filldraw [fill=orange!10] (5.2-3.6,0.4-4) rectangle (5.6-3.6,0.8-4); 27 | \draw [step=0.4, very thick, color=white] (5.2-3.6,0.8-4) grid (5.6-3.6,2-4); 28 | \draw [thick] (5.2-3.6,0.4-4) rectangle (5.6-3.6,2-4); 29 | \draw (5.4-3.6,3-4-0.6) node {\footnotesize{\color{black}$\boldsymbol{\theta}$}}; 30 | 31 | \draw (5.4-3.6,1.8-4) node {\scriptsize{\color{black}$1$}}; 32 | \draw (5.4-3.6,1.4-4) node {}; 33 | \draw (5.4-3.6,1.0-4) node {}; 34 | \draw (5.4-3.6,0.6-4) node {}; 35 | 36 | \draw (5.4-3.25,0.6-3.6) node[rotate = 90] {{\color{gray!65}$\underbrace{\hspace{1.2cm}}$}}; 37 | \draw (5.4-3,0.6-3.6) node[rotate = 90] {\scriptsize{\color{black}$-\boldsymbol{w}$}}; 38 | 39 | \draw (2-0.2+1,1.2-4) node {\large{\color{gray}$=$}}; 40 | 41 | \draw [step=0.4, very thick, color=white] (0+0.8+2.4,0.4-4) grid (0.4+0.8+2.4,2-4); 42 | \draw [thick] (0+0.8+2.4,0.4-4) rectangle (0.4+0.8+2.4,2-4); 43 | \draw (1+2.4,3-4-0.6) node {\footnotesize{\color{black}$\boldsymbol{x}$}}; 44 | \node[circle,fill=cyan!70,inner sep=0pt,minimum size=0.35cm] at (1+2.4,1.8-4) {\scriptsize\color{black}$x_1$}; 45 | \node[circle,fill=cyan!50,inner sep=0pt,minimum size=0.35cm] at (1+2.4,1.4-4) {\scriptsize\color{black}$x_2$}; 46 | \node[circle,fill=cyan!30,inner sep=0pt,minimum size=0.35cm] at (1+2.4,1-4) {\scriptsize\color{black}$x_3$}; 47 | \node[circle,fill=cyan!10,inner sep=0pt,minimum size=0.35cm] at (1+2.4,0.6-4) {\scriptsize\color{black}$x_4$}; 48 | 49 | \draw (4.5-0.6,1.2-4) node {\large{\color{gray}$-$}}; 50 | 51 | \draw [step=0.4, very thick, color=white] (2.8-0.2+1.6,0.4-4) grid (4-0.2+1.6,2-4); 52 | \draw [thick] (2.8-0.2+1.6,0.4-4) rectangle (4-0.2+1.6,2-4); 53 | \draw (3.4-0.2+1.6,3-4-0.6) node {\footnotesize{\color{black}$\boldsymbol{A}$}}; 54 | \node[circle,fill=cyan!10,inner sep=0pt,minimum size=0.35cm] at (3-0.2+1.6,1.8-4) {\scriptsize\color{black}$x_4$}; 55 | \node[circle,fill=cyan!70,inner sep=0pt,minimum size=0.35cm] at (3-0.2+1.6,1.4-4) {\scriptsize\color{black}$x_1$}; 56 | \node[circle,fill=cyan!50,inner sep=0pt,minimum size=0.35cm] at (3-0.2+1.6,1-4) {\scriptsize\color{black}$x_2$}; 57 | \node[circle,fill=cyan!30,inner sep=0pt,minimum size=0.35cm] at (3-0.2+1.6,0.6-4) {\scriptsize\color{black}$x_3$}; 58 | \node[circle,fill=cyan!30,inner sep=0pt,minimum size=0.35cm] at (3.4-0.2+1.6,1.8-4) {\scriptsize\color{black}$x_3$}; 59 | \node[circle,fill=cyan!10,inner sep=0pt,minimum size=0.35cm] at (3.4-0.2+1.6,1.4-4) {\scriptsize\color{black}$x_4$}; 60 | \node[circle,fill=cyan!70,inner sep=0pt,minimum size=0.35cm] at (3.4-0.2+1.6,1-4) {\scriptsize\color{black}$x_1$}; 61 | \node[circle,fill=cyan!50,inner sep=0pt,minimum size=0.35cm] at (3.4-0.2+1.6,0.6-4) {\scriptsize\color{black}$x_2$}; 62 | \node[circle,fill=cyan!50,inner sep=0pt,minimum size=0.35cm] at (3.8-0.2+1.6,1.8-4) {\scriptsize\color{black}$x_2$}; 63 | \node[circle,fill=cyan!30,inner sep=0pt,minimum size=0.35cm] at (3.8-0.2+1.6,1.4-4) {\scriptsize\color{black}$x_3$}; 64 | \node[circle,fill=cyan!10,inner sep=0pt,minimum size=0.35cm] at (3.8-0.2+1.6,1-4) {\scriptsize\color{black}$x_4$}; 65 | \node[circle,fill=cyan!70,inner sep=0pt,minimum size=0.35cm] at (3.8-0.2+1.6,0.6-4) {\scriptsize\color{black}$x_1$}; 66 | 67 | \draw (4.5+1.2,1.2-4) node {\large{\color{gray}$\times$}}; 68 | 69 | \filldraw [fill=orange!50] (5.2+0.8,0.8-4) rectangle (5.6+0.8,2-4); 70 | \filldraw [fill=orange!30] (5.2+0.8,1.2-4) rectangle (5.6+0.8,1.6-4); 71 | \filldraw [fill=orange!10] (5.2+0.8,0.8-4) rectangle (5.6+0.8,1.2-4); 72 | \draw [step=0.4, very thick, color=white] (5.2+0.8,0.8-4) grid (5.6+0.8,2-4); 73 | \draw [thick] (5.2+0.8,0.8-4) rectangle (5.6+0.8,2-4); 74 | \draw (5.4+0.8,3-4-0.6) node {\footnotesize{\color{black}$\boldsymbol{w}$}}; 75 | 76 | \draw (5.4+0.8,1.8-4) node {\scriptsize{\color{black}$w_1$}}; 77 | \draw (5.4+0.8,1.4-4) node {\scriptsize{\color{black}$w_2$}}; 78 | \draw (5.4+0.8,1.0-4) node {\scriptsize{\color{black}$w_3$}}; 79 | 80 | \end{tikzpicture} 81 | 82 | \end{document} -------------------------------------------------------------------------------- /matrix/mode3_prod.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/matrix/mode3_prod.pdf -------------------------------------------------------------------------------- /matrix/mode3_prod.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/matrix/mode3_prod.png -------------------------------------------------------------------------------- /matrix/prob.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/matrix/prob.pdf -------------------------------------------------------------------------------- /matrix/prob.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/matrix/prob.png -------------------------------------------------------------------------------- /matrix/prob.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=0.2cm, 12pt]{standalone} 2 | \usepackage{amsmath, amssymb} % Only necessary math packages 3 | \usepackage{tikz} % For drawing 4 | \usepackage{helvet} % Helvetica font 5 | \renewcommand{\familydefault}{\sfdefault} % Sans-serif as default 6 | 7 | \begin{document} 8 | \begin{tikzpicture}[ 9 | % Define styles for consistent formatting 10 | boxfill/.style={fill=#1, draw=green!40!black, thick}, 11 | gridline/.style={step=0.5, very thick, color=white}, 12 | smalllabel/.style={font=\footnotesize, color=black}, 13 | datalabel/.style={font=\small, color=black}, 14 | question/.style={color=black!60}, 15 | arrowlabel/.style={font=\small, color=gray} 16 | ] 17 | 18 | % Define coordinates for better maintainability 19 | \newcommand{\locone}{0} 20 | \newcommand{\loctwo}{4} 21 | \newcommand{\boxwidth}{2} 22 | \newcommand{\forecastwidth}{1.5} 23 | \newcommand{\boxheight}{3} 24 | \newcommand{\textoffset}{0.5} 25 | 26 | % Main data box 27 | \filldraw [boxfill=cyan!30] (\locone,-\textoffset) rectangle (\locone+\boxwidth,\boxheight-\textoffset); 28 | 29 | % Missing data cells (gray) 30 | \foreach \x/\y in { 31 | 0/0, 0/1, 0.5/1.5, 1/0.5, 1.5/2 32 | } { 33 | \filldraw [fill=gray!30] (\locone+\x,\y) rectangle (\locone+\x+0.5,\y+0.5); 34 | } 35 | 36 | % Grid and border 37 | \draw [gridline] (\locone,-\textoffset) grid (\locone+\boxwidth,\boxheight-\textoffset); 38 | \draw [thick] (\locone,-\textoffset) rectangle (\locone+\boxwidth,\boxheight-\textoffset); 39 | 40 | % Data labels 41 | \node [smalllabel] at (\locone+0.25,\boxheight-\textoffset+0.3) {$\boldsymbol{y}_1$}; 42 | \node [smalllabel] at (\locone+0.75,\boxheight-\textoffset+0.3) {$\boldsymbol{y}_2$}; 43 | \node [smalllabel] at (\locone+1.25,\boxheight-\textoffset+0.3) {$\cdots$}; 44 | \node [smalllabel] at (\locone+1.75,\boxheight-\textoffset+0.3) {$\boldsymbol{y}_T$}; 45 | \node [datalabel] at (\locone+\boxwidth/2,-\textoffset-0.4) {Data}; 46 | 47 | % Missing value indicators 48 | \foreach \x/\y in { 49 | 0.25/0.25, 0.25/1.25, 0.75/1.75, 1.25/0.75, 1.75/2.25 50 | } { 51 | \node [question] at (\locone+\x,\y) {?}; 52 | } 53 | 54 | % Arrow and model indicator 55 | \node [font=\Large, color=gray] at (\locone+3,1) {$\Rightarrow$}; 56 | \node [arrowlabel] at (\locone+3,1.5) {Model}; 57 | 58 | % Forecast box 59 | \filldraw [boxfill=red!25] (\loctwo,-\textoffset) rectangle (\loctwo+\forecastwidth,\boxheight-\textoffset); 60 | \draw [gridline] (\loctwo,-\textoffset) grid (\loctwo+\forecastwidth,\boxheight-\textoffset); 61 | \draw [thick] (\loctwo,-\textoffset) rectangle (\loctwo+\forecastwidth,\boxheight-\textoffset); 62 | 63 | % Forecast labels 64 | \node [datalabel] at (\loctwo+\forecastwidth/2,-\textoffset-0.4) {Forecasts}; 65 | \node [smalllabel] at (\loctwo,\boxheight-\textoffset+0.3) {$\hat{\boldsymbol{y}}_{T+1}$}; 66 | \node [smalllabel] at (\loctwo+0.75,\boxheight-\textoffset+0.3) {$\cdots$}; 67 | \node [smalllabel] at (\loctwo+1.5,\boxheight-\textoffset+0.3) {$\hat{\boldsymbol{y}}_{T+\delta}$}; 68 | 69 | \end{tikzpicture} 70 | \end{document} -------------------------------------------------------------------------------- /matrix/sparse_reg.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/matrix/sparse_reg.pdf -------------------------------------------------------------------------------- /matrix/sparse_reg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/matrix/sparse_reg.png -------------------------------------------------------------------------------- /matrix/sparse_reg.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=1mm, convert = false]{standalone} 2 | \usepackage{amsmath, amssymb, amsfonts} 3 | \usepackage{tikz} 4 | \usepackage{helvet} 5 | \renewcommand{\familydefault}{\sfdefault} 6 | 7 | \begin{document} 8 | 9 | \begin{tikzpicture}[domain=0:4] 10 | \newcommand{\posx}{4} 11 | \newcommand{\posy}{3.8} 12 | 13 | \filldraw [fill=cyan!25] (0.8,0-4) rectangle (0.4+0.8,2-4); 14 | \draw [step=0.4, very thick, color=white] (0+0.8,0-4) grid (0.4+0.8,2-4); 15 | \draw [very thick] (0+0.8,0-4) rectangle (0.4+0.8,2-4); 16 | \draw (1,3-4-0.6) node {\footnotesize{\color{black}$\boldsymbol{x}\in\mathbb{R}^{m}$}}; 17 | 18 | \draw (2,-3) node {\Large{\color{gray}$\approx$}}; 19 | 20 | \filldraw [fill=red!25] (2.8,0-4) rectangle (4.4,2-4); 21 | \draw [step=0.4, very thick, color=white] (2.8,0-4) grid (4.4,2-4); 22 | \draw [very thick] (2.8,0-4) rectangle (4.4,2-4); 23 | \draw (3.6,3-4-0.6) node {\footnotesize{\color{black}$\boldsymbol{A}\in\mathbb{R}^{m\times n}$}}; 24 | 25 | \draw (5,-3) node {\Large{\color{gray}$\times$}}; 26 | 27 | \filldraw [fill=orange!25] (5.2+0.4,0.4-4) rectangle (5.6+0.4,2-4); 28 | \filldraw [fill=gray!25] (5.2+0.4,0.8-4) rectangle (5.6+0.4,1.6-4); 29 | \draw [step=0.4, very thick, color=white] (5.2+0.4,0.4-4) grid (5.6+0.4,2-4); 30 | \draw [very thick] (5.2+0.4,0.4-4) rectangle (5.6+0.4,2-4); 31 | \draw (5.8,3-4-0.6) node {\footnotesize{\color{black}$\boldsymbol{w}\in\mathbb{R}^{n}$}}; 32 | 33 | \draw (6.2,-2.8) node[rotate = 90] {{\color{gray!50}$\underbrace{\hspace{1.6cm}}$}}; 34 | \draw (7,-2.8) node {\scriptsize{\color{orange!80!black}$\|\boldsymbol{w}\|_0\leq\tau$}}; 35 | 36 | \draw (1,-4.4) node {\scriptsize{\color{gray}Signal vector}}; 37 | \draw (3.6,-4.4) node {\scriptsize{\color{gray}Dictionary matrix}}; 38 | \draw (5.8,-4.25) node {\scriptsize{\color{gray}$\tau$-sparse}}; 39 | \draw (5.8,-4.5) node {\scriptsize{\color{gray}representation}}; 40 | 41 | \end{tikzpicture} 42 | 43 | \end{document} -------------------------------------------------------------------------------- /matrix/sparse_reg_time_series.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/matrix/sparse_reg_time_series.pdf -------------------------------------------------------------------------------- /matrix/sparse_reg_time_series.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/matrix/sparse_reg_time_series.png -------------------------------------------------------------------------------- /matrix/sparse_reg_time_series.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=1mm, convert = false]{standalone} 2 | \usepackage{amsmath, amssymb, amsfonts} 3 | \usepackage{tikz} 4 | \usepackage{helvet} 5 | \renewcommand{\familydefault}{\sfdefault} 6 | 7 | \begin{document} 8 | 9 | \begin{tikzpicture}[domain=0:4] 10 | \newcommand{\posx}{4} 11 | \newcommand{\posy}{3.8} 12 | 13 | \draw [step=0.4, very thick, color=white] (0+0.8,0-4) grid (0.4+0.8,2-4); 14 | \draw [very thick] (0+0.8,0-4) rectangle (0.4+0.8,2-4); 15 | \draw (1,3-4-0.6) node {\footnotesize{\color{black}$\boldsymbol{x}$}}; 16 | \node[circle,fill=cyan!90,inner sep=0pt,minimum size=0.35cm] at (1,1.8-4) {}; 17 | \node[circle,fill=cyan!70,inner sep=0pt,minimum size=0.35cm] at (1,1.4-4) {}; 18 | \node[circle,fill=cyan!50,inner sep=0pt,minimum size=0.35cm] at (1,1-4) {}; 19 | \node[circle,fill=cyan!30,inner sep=0pt,minimum size=0.35cm] at (1,0.6-4) {}; 20 | \node[circle,fill=cyan!10,inner sep=0pt,minimum size=0.35cm] at (1,0.2-4) {}; 21 | 22 | \draw (2,-3) node {\Large{\color{gray}$\approx$}}; 23 | 24 | \draw [step=0.4, very thick, color=white] (2.8,0-4) grid (4.4,2-4); 25 | \draw [very thick] (2.8,0-4) rectangle (4.4,2-4); 26 | \draw (3.6,3-4-0.6) node {\footnotesize{\color{black}$\boldsymbol{A}$}}; 27 | \node[circle,fill=cyan!10,inner sep=0pt,minimum size=0.35cm] at (3,1.8-4) {}; 28 | \node[circle,fill=cyan!90,inner sep=0pt,minimum size=0.35cm] at (3,1.4-4) {}; 29 | \node[circle,fill=cyan!70,inner sep=0pt,minimum size=0.35cm] at (3,1-4) {}; 30 | \node[circle,fill=cyan!50,inner sep=0pt,minimum size=0.35cm] at (3,0.6-4) {}; 31 | \node[circle,fill=cyan!30,inner sep=0pt,minimum size=0.35cm] at (3,0.2-4) {}; 32 | 33 | \node[circle,fill=cyan!30,inner sep=0pt,minimum size=0.35cm] at (3.4,1.8-4) {}; 34 | \node[circle,fill=cyan!10,inner sep=0pt,minimum size=0.35cm] at (3.4,1.4-4) {}; 35 | \node[circle,fill=cyan!90,inner sep=0pt,minimum size=0.35cm] at (3.4,1-4) {}; 36 | \node[circle,fill=cyan!70,inner sep=0pt,minimum size=0.35cm] at (3.4,0.6-4) {}; 37 | \node[circle,fill=cyan!50,inner sep=0pt,minimum size=0.35cm] at (3.4,0.2-4) {}; 38 | 39 | \node[circle,fill=cyan!50,inner sep=0pt,minimum size=0.35cm] at (3.8,1.8-4) {}; 40 | \node[circle,fill=cyan!30,inner sep=0pt,minimum size=0.35cm] at (3.8,1.4-4) {}; 41 | \node[circle,fill=cyan!10,inner sep=0pt,minimum size=0.35cm] at (3.8,1-4) {}; 42 | \node[circle,fill=cyan!90,inner sep=0pt,minimum size=0.35cm] at (3.8,0.6-4) {}; 43 | \node[circle,fill=cyan!70,inner sep=0pt,minimum size=0.35cm] at (3.8,0.2-4) {}; 44 | 45 | \node[circle,fill=cyan!70,inner sep=0pt,minimum size=0.35cm] at (4.2,1.8-4) {}; 46 | \node[circle,fill=cyan!50,inner sep=0pt,minimum size=0.35cm] at (4.2,1.4-4) {}; 47 | \node[circle,fill=cyan!30,inner sep=0pt,minimum size=0.35cm] at (4.2,1-4) {}; 48 | \node[circle,fill=cyan!10,inner sep=0pt,minimum size=0.35cm] at (4.2,0.6-4) {}; 49 | \node[circle,fill=cyan!90,inner sep=0pt,minimum size=0.35cm] at (4.2,0.2-4) {}; 50 | 51 | \draw (5,-3) node {\Large{\color{gray}$\times$}}; 52 | 53 | \filldraw [fill=orange!25] (5.2+0.4,0.4-4) rectangle (5.6+0.4,2-4); 54 | \filldraw [fill=gray!25] (5.2+0.4,0.8-4) rectangle (5.6+0.4,1.6-4); 55 | \draw [step=0.4, very thick, color=white] (5.2+0.4,0.4-4) grid (5.6+0.4,2-4); 56 | \draw [very thick] (5.2+0.4,0.4-4) rectangle (5.6+0.4,2-4); 57 | \draw (5.8,3-4-0.6) node {\footnotesize{\color{black}$\boldsymbol{w}$}}; 58 | 59 | \draw (6.2,-2.8) node[rotate = 90] {{\color{gray!50}$\underbrace{\hspace{1.6cm}}$}}; 60 | \draw (7,-2.8) node {\scriptsize{\color{orange!80!black}$\|\boldsymbol{w}\|_0\leq\tau$}}; 61 | 62 | \draw (1,-4.4) node {\scriptsize{\color{gray}Time series}}; 63 | \draw (3.6,-4.4) node {\scriptsize{\color{gray}Dictionary matrix}}; 64 | \draw (5.8,-4.25) node {\scriptsize{\color{gray}$\tau$-sparse}}; 65 | \draw (5.8,-4.5) node {\scriptsize{\color{gray}representation}}; 66 | 67 | \end{tikzpicture} 68 | 69 | \end{document} -------------------------------------------------------------------------------- /norms/ell1_norm.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/norms/ell1_norm.pdf -------------------------------------------------------------------------------- /norms/ell1_norm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/norms/ell1_norm.png -------------------------------------------------------------------------------- /norms/ell1_norm.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border = 0.2cm, 12pt]{standalone} 2 | \usepackage{amsmath, amssymb, amsfonts} 3 | \usepackage{color} 4 | \usepackage{tikz, pgfplots} 5 | \pgfplotsset{compat=newest} 6 | \usetikzlibrary{shapes,snakes} 7 | \tikzset{>=latex} 8 | \usetikzlibrary{angles,quotes} 9 | \usepackage{tkz-euclide} 10 | 11 | \begin{document} 12 | 13 | \begin{tikzpicture}[scale=1.5] 14 | 15 | \draw[->,line width=0.7] (-1.4,0)--(1.4,0) node[above]{$x$}; 16 | \draw[->,line width=0.7] (0,-1.4)--(0,1.4) node[right]{$y$}; 17 | 18 | \draw[arrows=->, line width=1.2] (0,0)--(0.4,0.6); 19 | \draw[dashed, color=gray, thin] (0.4,0)--(0.4,0.6); 20 | \draw[dashed, color=gray, thin] (0,0.6)--(0.4,0.6); 21 | \draw[color=blue, line width=1.2] (1,0)--(0,1)--(-1,0)--(0,-1)--(1,0); 22 | 23 | \node at (0.4,-0.15) {$x_1$}; 24 | \node at (-0.15,0.6) {$x_2$}; 25 | \node at (0.5,0.7) {$\boldsymbol{x}$}; 26 | 27 | \node at (1,-0.2) {$1$}; 28 | \node at (-1.05,-0.2) {$-1$}; 29 | \node at (-0.2,1) {$1$}; 30 | \node at (-0.25,-1) {$-1$}; 31 | 32 | \end{tikzpicture} 33 | 34 | \end{document} -------------------------------------------------------------------------------- /norms/ell2_norm.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/norms/ell2_norm.pdf -------------------------------------------------------------------------------- /norms/ell2_norm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/norms/ell2_norm.png -------------------------------------------------------------------------------- /norms/ell2_norm.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border = 0.2cm, 12pt]{standalone} 2 | \usepackage{amsmath, amssymb, amsfonts} 3 | \usepackage{color} 4 | \usepackage{tikz, pgfplots} 5 | \pgfplotsset{compat=newest} 6 | \usetikzlibrary{shapes,snakes} 7 | \tikzset{>=latex} 8 | \usetikzlibrary{angles,quotes} 9 | \usepackage{tkz-euclide} 10 | 11 | \begin{document} 12 | 13 | \begin{tikzpicture}[scale=1.5] 14 | 15 | \draw[->,line width=0.7] (-1.4,0)--(1.4,0) node[above]{$x$}; 16 | \draw[->,line width=0.7] (0,-1.4)--(0,1.4) node[right]{$y$}; 17 | 18 | \draw[arrows=->, line width=1.2] (0,0)--(0.6,0.8); 19 | \draw[dashed, color=gray, thin] (0.6,0)--(0.6,0.8); 20 | \draw[dashed, color=gray, thin] (0,0.8)--(0.6,0.8); 21 | \draw[fill=none, color=blue, line width=1.2](0,0) circle (1); 22 | 23 | \node at (0.6,-0.15) {$x_1$}; 24 | \node at (-0.15,0.8) {$x_2$}; 25 | \node at (0.7,0.9) {$\boldsymbol{x}$}; 26 | 27 | \node at (1.1,-0.2) {$1$}; 28 | \node at (-1.15,-0.2) {$-1$}; 29 | \node at (-0.2,1.1) {$1$}; 30 | \node at (-0.25,-1.1) {$-1$}; 31 | 32 | \end{tikzpicture} 33 | 34 | \end{document} -------------------------------------------------------------------------------- /norms/ell2_xy.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/norms/ell2_xy.pdf -------------------------------------------------------------------------------- /norms/ell2_xy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/norms/ell2_xy.png -------------------------------------------------------------------------------- /norms/ell2_xy.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border = 0.2cm, 12pt]{standalone} 2 | \usepackage{amsmath, amssymb, amsfonts} 3 | \usepackage{color} 4 | \usepackage{tikz, pgfplots} 5 | \pgfplotsset{compat=newest} 6 | \usetikzlibrary{shapes,snakes} 7 | \tikzset{>=latex} 8 | \usetikzlibrary{angles,quotes} 9 | \usepackage{tkz-euclide} 10 | 11 | \begin{document} 12 | 13 | \begin{tikzpicture}[scale=2] 14 | 15 | \draw[->,line width=0.7] (-0.2,0)--(1.6,0) node[above]{$x$}; 16 | \draw[->,line width=0.7] (0,-0.2)--(0,2) node[right]{$y$}; 17 | 18 | \draw[arrows=->, line width=1.2] (0,0)--(1,1.6); 19 | \draw[dashed, color=gray, thin] (1,0)--(1,1.6); 20 | \draw[dashed, color=gray, thin] (0,1.6)--(1,1.6); 21 | 22 | \node[text width=3cm] at (1.1,1.8) {\footnotesize $\|\boldsymbol{x}\|_2=\sqrt{x_1^2+x_2^2}$}; 23 | 24 | \node at (1,-0.15) {$x_1$}; 25 | \node at (-0.15,1.6) {$x_2$}; 26 | 27 | \end{tikzpicture} 28 | 29 | \end{document} -------------------------------------------------------------------------------- /norms/ell2_xyz.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/norms/ell2_xyz.pdf -------------------------------------------------------------------------------- /norms/ell2_xyz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/norms/ell2_xyz.png -------------------------------------------------------------------------------- /norms/ell2_xyz.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border = 0.2cm, 12pt]{standalone} 2 | \usepackage{amsmath, amssymb, amsfonts} 3 | \usepackage{color} 4 | \usepackage{tikz, pgfplots, tikz-3dplot} 5 | \pgfplotsset{compat=newest} 6 | \usetikzlibrary{shapes,snakes} 7 | \tikzset{>=latex} 8 | \usetikzlibrary{angles,quotes} 9 | \usepackage{tkz-euclide} 10 | 11 | \begin{document} 12 | 13 | \tdplotsetmaincoords{60}{120} 14 | \begin{tikzpicture} 15 | [scale=3,tdplot_main_coords, axis/.style={->,black,line width=0.7}, vector/.style={-stealth,black,line width=1.2}, vector guide/.style={dashed,gray,thin}] 16 | 17 | %standard tikz coordinate definition using x, y, z coords 18 | \coordinate (O) at (0,0,0); 19 | 20 | %tikz-3dplot coordinate definition using r, theta, phi coords 21 | \tdplotsetcoord{P}{.8}{55}{60} 22 | 23 | %draw axes 24 | \draw[axis] (0,0,0) -- (1,0,0) node[anchor=north east]{$x$}; 25 | \draw[axis] (0,0,0) -- (0,1,0) node[anchor=north west]{$y$}; 26 | \draw[axis] (0,0,0) -- (0,0,1) node[anchor=south]{$z$}; 27 | 28 | %draw a vector from O to P 29 | \draw[vector] (O) -- (P); 30 | 31 | %draw guide lines to components 32 | \draw[vector guide] (O) -- (Pxy); 33 | \draw[vector guide] (Pxy) -- (P); 34 | \draw[vector guide] (0,0,0.45) -- (P); 35 | \draw[vector guide] (Pxy) -- (0.25,0,0); 36 | \draw[vector guide] (Pxy) -- (0,0.5,0); 37 | 38 | \node[text width=3.5cm] at (0,0.95,0.55) {\footnotesize $\|\boldsymbol{x}\|_2=\sqrt{x_1^2+x_2^2+x_3^2}$}; 39 | \node at (0.2,-0.1,0) {$x_1$}; 40 | \node at (-0.1,0.5,0) {$x_2$}; 41 | \node at (-0.05,-0.12,0.4) {$x_3$}; 42 | 43 | \end{tikzpicture} 44 | 45 | \end{document} -------------------------------------------------------------------------------- /norms/ell_infty_norm.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/norms/ell_infty_norm.pdf -------------------------------------------------------------------------------- /norms/ell_infty_norm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/norms/ell_infty_norm.png -------------------------------------------------------------------------------- /norms/ell_infty_norm.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border = 0.2cm, 12pt]{standalone} 2 | \usepackage{amsmath, amssymb, amsfonts} 3 | \usepackage{color} 4 | \usepackage{tikz, pgfplots} 5 | \pgfplotsset{compat=newest} 6 | \usetikzlibrary{shapes,snakes} 7 | \tikzset{>=latex} 8 | \usetikzlibrary{angles,quotes} 9 | \usepackage{tkz-euclide} 10 | 11 | \begin{document} 12 | 13 | \begin{tikzpicture}[scale=1.5] 14 | 15 | \draw[->,line width=0.7] (-1.4,0)--(1.4,0) node[above]{$x$}; 16 | \draw[->,line width=0.7] (0,-1.4)--(0,1.4) node[right]{$y$}; 17 | 18 | \draw[arrows=->, line width=1.2] (0,0)--(0.6,1); 19 | \draw[dashed, color=gray, thin] (0.6,0)--(0.6,1); 20 | \draw[color=blue, line width=1.2] (1,0)--(1,1)--(-1,1)--(-1,-1)--(1,-1)--(1,0); 21 | 22 | \node at (0.6,-0.15) {$x_1$}; 23 | \node at (0.15,1.12) {$x_2$}; 24 | \node at (0.7,1.15) {$\boldsymbol{x}$}; 25 | 26 | \node at (1.1,-0.2) {$1$}; 27 | \node at (-1.2,-0.2) {$-1$}; 28 | \node at (-0.2,1.12) {$1$}; 29 | \node at (-0.25,-1.15) {$-1$}; 30 | 31 | \end{tikzpicture} 32 | 33 | \end{document} -------------------------------------------------------------------------------- /norms/manhattan_distance.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/norms/manhattan_distance.pdf -------------------------------------------------------------------------------- /norms/manhattan_distance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/norms/manhattan_distance.png -------------------------------------------------------------------------------- /norms/manhattan_distance.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=0.2cm, 10pt]{standalone} 2 | \usepackage{amsmath, amssymb} 3 | \usepackage{tikz, pgfplots} 4 | \pgfplotsset{compat=newest} 5 | \usetikzlibrary{shapes, snakes, angles, quotes, arrows.meta} 6 | 7 | \begin{document} 8 | 9 | \begin{tikzpicture}[ 10 | scale=1, 11 | line/.style={draw=gray!30, fill=gray!30}, 12 | point/.style={fill=black, circle, inner sep=1.5pt}, 13 | arrow/.style={-{Latex[length=2mm]}, line width=1.0pt, black}, 14 | bluearrow/.style={-{Latex[length=2.5mm]}, line width=1.2pt, blue!50}, 15 | endpoint/.style={fill=gray, circle, inner sep=2.5pt} 16 | ] 17 | 18 | % Draw horizontal lines using a loop 19 | \foreach \y in {0,0.6,1.2,1.8,2.4} { 20 | \draw[line] (0,\y) rectangle ++(8,0.2); 21 | } 22 | 23 | % Draw vertical lines using a loop 24 | \foreach \x in {0.2,1.4,2.6,3.8,5,6.2,7.4} { 25 | \draw[line] (\x,-0.2) rectangle ++(0.2,3); 26 | } 27 | 28 | % Define coordinates for the path points 29 | \coordinate (A) at (1.5,0.1); 30 | \coordinate (B) at (2.7,0.1); 31 | \coordinate (C) at (2.7,0.7); 32 | \coordinate (D) at (3.9,0.7); 33 | \coordinate (E) at (3.9,1.3); 34 | \coordinate (F) at (3.9,1.9); 35 | \coordinate (G) at (5.1,1.9); 36 | \coordinate (H) at (5.1,2.5); 37 | 38 | % Draw the black path with arrows 39 | \draw[arrow] (A) -- node[below, sloped] {$x_1$} (B); 40 | \draw[arrow] (B) -- node[left] {$x_2$} (C); 41 | \draw[arrow] (C) -- node[below, sloped] {$x_3$} (D); 42 | \draw[arrow] (D) -- node[left] {$x_4$} (E); 43 | \draw[arrow] (E) -- node[left] {$x_5$} (F); 44 | \draw[arrow] (F) -- node[below, sloped] {$x_6$} (G); 45 | \draw[arrow] (G) -- node[left] {$x_7$} (H); 46 | 47 | % Draw the blue path 48 | \draw[bluearrow] (A) -- node[below, sloped, blue] {$x_1+x_3+x_6$} (5.1,0.06); 49 | \draw[bluearrow] (5.1,0.06) -- node[right, pos=0.5, blue] {$x_2+x_4+x_5+x_7$} (H); 50 | 51 | % Add points at each turn 52 | \foreach \p in {B,C,D,E,F,G} { 53 | \node[point] at (\p) {}; 54 | } 55 | 56 | % Add endpoints 57 | \node[endpoint, label=below:{$A$}] at (A) {}; 58 | \node[endpoint, label=above:{$B$}] at (H) {}; 59 | 60 | % Add blue endpoint 61 | \node[blue!50, circle, fill, inner sep=2pt] at (5.1,0.06) {}; 62 | 63 | \end{tikzpicture} 64 | 65 | \end{document} 66 | -------------------------------------------------------------------------------- /norms/unit_vector_black.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/norms/unit_vector_black.pdf -------------------------------------------------------------------------------- /norms/unit_vector_black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/norms/unit_vector_black.png -------------------------------------------------------------------------------- /norms/unit_vector_black.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border = 0.2cm, 12pt]{standalone} 2 | \usepackage{amsmath, amssymb, amsfonts} 3 | \usepackage{xcolor} 4 | \usepackage{tikz, pgfplots} 5 | \pgfplotsset{compat=newest} 6 | \usetikzlibrary{shapes, snakes, angles, quotes, arrows.meta} 7 | 8 | \usepackage{helvet} 9 | \renewcommand{\familydefault}{\sfdefault} 10 | \usepackage[eulergreek]{sansmath} 11 | 12 | % Dark theme setup 13 | \pagecolor{black!85} % Slightly softer black 14 | \color{white} % Default text color 15 | 16 | \begin{document} 17 | 18 | \begin{tikzpicture}[scale=1.5, >=Stealth, every node/.style={font=\sffamily}] 19 | 20 | % Axes with labels 21 | \draw[->, line width=0.8, white] (-1.5,0) -- (2,0) node[right] {$x$}; 22 | \draw[->, line width=0.8, white] (0,-1.5) -- (0,2) node[above] {$y$}; 23 | 24 | % Unit circle (drawn first to be in background) 25 | \draw[fill=none, color=cyan!60, line width=1.3] (0,0) circle (1); 26 | 27 | % Main vector and projections 28 | \draw[arrows=->, line width=1.2, white] (0,0)--(1.5,1.5); 29 | \draw[dashed, color=gray!60, thin] (1.5,0) -- (1.5,1.5) node[pos=0.5, right, color=white] {$x_2$}; 30 | \draw[dashed, color=gray!60, thin] (0,1.5) -- (1.5,1.5) node[pos=0.5, above, color=white] {$x_1$}; 31 | \node[color=white] at (1.6,1.6) {$\boldsymbol{x}$}; 32 | 33 | % Normalized vector and projections 34 | \draw[arrows=->, line width=1.4, color=red] (0,0)--(0.71,0.71); 35 | \draw[dashed, color=red!50, thin] (0.71,0)--(0.71,0.71); 36 | \draw[dashed, color=red!50, thin] (0,0.71)--(0.71,0.71); 37 | \node[color=red!80] at (0.71,-0.25) {$\frac{x_1}{\|\boldsymbol{x}\|_2}$}; 38 | \node[color=red!80] at (-0.25,0.71) {$\frac{x_2}{\|\boldsymbol{x}\|_2}$}; 39 | 40 | \node[color=cyan!50] at (1.1,-0.2) {$1$}; 41 | \node[color=cyan!50] at (-1.15,-0.2) {$-1$}; 42 | \node[color=cyan!50] at (-0.2,1.1) {$1$}; 43 | \node[color=cyan!50] at (-0.25,-1.12) {$-1$}; 44 | 45 | % Angle arc 46 | \draw[color=orange, thick, ->] (0.5,0) arc (0:45:0.5) node[midway, right, color=orange] {$\theta$}; 47 | 48 | \end{tikzpicture} 49 | 50 | \end{document} 51 | -------------------------------------------------------------------------------- /norms/unit_vector_white.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/norms/unit_vector_white.pdf -------------------------------------------------------------------------------- /norms/unit_vector_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/norms/unit_vector_white.png -------------------------------------------------------------------------------- /norms/unit_vector_white.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border = 0.2cm, 12pt]{standalone} 2 | \usepackage{amsmath, amssymb, amsfonts} 3 | \usepackage{xcolor} 4 | \usepackage{tikz, pgfplots} 5 | \pgfplotsset{compat=newest} 6 | \usetikzlibrary{shapes, snakes, angles, quotes, arrows.meta} 7 | 8 | \usepackage{helvet} 9 | \renewcommand{\familydefault}{\sfdefault} 10 | \usepackage[eulergreek]{sansmath} 11 | 12 | \begin{document} 13 | 14 | \begin{tikzpicture}[scale=1.5, >=Stealth, every node/.style={font=\sffamily}] 15 | 16 | % Axes with labels 17 | \draw[->, line width=0.8] (-1.5,0) -- (2,0) node[right] {$x$}; 18 | \draw[->, line width=0.8] (0,-1.5) -- (0,2) node[above] {$y$}; 19 | 20 | % Unit circle (drawn first to be in background) 21 | \draw[fill=none, color=cyan!60, line width=1.3] (0,0) circle (1); 22 | 23 | % Main vector and projections 24 | \draw[arrows=->, line width=1.2] (0,0)--(1.5,1.5); 25 | \draw[dashed, color=gray!60, thin] (1.5,0) -- (1.5,1.5) node[pos=0.5, right] {$x_2$}; 26 | \draw[dashed, color=gray!60, thin] (0,1.5) -- (1.5,1.5) node[pos=0.5, above] {$x_1$}; 27 | \node at (1.6,1.6) {$\boldsymbol{x}$}; 28 | 29 | % Normalized vector and projections 30 | \draw[arrows=->, line width=1.4, color=red] (0,0)--(0.71,0.71); 31 | \draw[dashed, color=red!50, thin] (0.71,0)--(0.71,0.71); 32 | \draw[dashed, color=red!50, thin] (0,0.71)--(0.71,0.71); 33 | \node[color=red!80] at (0.71,-0.25) {$\frac{x_1}{\|\boldsymbol{x}\|_2}$}; 34 | \node[color=red!80] at (-0.25,0.71) {$\frac{x_2}{\|\boldsymbol{x}\|_2}$}; 35 | 36 | \node[color=cyan!50] at (1.1,-0.2) {$1$}; 37 | \node[color=cyan!50] at (-1.15,-0.2) {$-1$}; 38 | \node[color=cyan!50] at (-0.2,1.1) {$1$}; 39 | \node[color=cyan!50] at (-0.25,-1.12) {$-1$}; 40 | 41 | % Angle arc 42 | \draw[color=orange, thick, ->] (0.5,0) arc (0:45:0.5) node[midway, right, color=orange] {$\theta$}; 43 | 44 | \end{tikzpicture} 45 | 46 | \end{document} 47 | -------------------------------------------------------------------------------- /pgfplots-function/bilognormal_pdf.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/pgfplots-function/bilognormal_pdf.pdf -------------------------------------------------------------------------------- /pgfplots-function/bilognormal_pdf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/pgfplots-function/bilognormal_pdf.png -------------------------------------------------------------------------------- /pgfplots-function/bilognormal_pdf.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=2mm]{standalone} 2 | \usepackage{pgfplots} 3 | \usepackage[scaled]{helvet} 4 | \usepackage[T1]{fontenc} 5 | \renewcommand\familydefault{\sfdefault} 6 | \usepackage[eulergreek]{sansmath} 7 | \pgfplotsset{ 8 | tick label style = {font=\sansmath\sffamily}} 9 | 10 | \pgfkeys{/pgf/number format/fixed} 11 | \pgfplotsset{compat=newest} 12 | 13 | \begin{document} 14 | 15 | \pgfplotsset{ 16 | colormap={whitered}{color(0cm)=(white); color(1cm)=(orange!75!red)}} 17 | 18 | \begin{tikzpicture}[ 19 | declare function={mu1=-1.2;}, 20 | declare function={mu2=3.1;}, 21 | declare function={sigma1=sqrt(0.25);}, 22 | declare function={sigma2=sqrt(0.9);}, 23 | declare function={bivar(\ma,\sa,\mb,\sb)=1/(2*pi*x*y*\sa*\sb) * exp(-((ln(x)-\ma)^2/\sa^2+(ln(y)-\mb)^2/\sb^2))/2;}] 24 | \begin{axis}[ 25 | view={45}{45}, 26 | enlargelimits=false, 27 | grid=major, 28 | domain=0:0.6, 29 | y domain=2:60, 30 | samples=200, 31 | xlabel=$u$, 32 | ylabel=$k$, 33 | zlabel={$f(u,k)$}, 34 | scaled z ticks=false, 35 | colorbar, 36 | colorbar style={ 37 | at={(1.1,0.4)}, 38 | anchor=south west, 39 | height=0.25*\pgfkeysvalueof{/pgfplots/parent axis height}, scaled ticks=false, 40 | title={$f(u,k)$} 41 | } 42 | ] 43 | \addplot3 [surf, opacity=0.8,fill opacity=0.9,colormap={whitered}{color(0cm)=(white); color(1cm)=(orange!75!red)}, samples=50] {bivar(mu1,sigma1,mu2,sigma2)}; 44 | 45 | \draw [black!50] (axis cs:-1,0,0) -- (axis cs:4,0,0); 46 | \draw [black!50] (axis cs:0,-1,0) -- (axis cs:0,4,0); 47 | 48 | \end{axis} 49 | \end{tikzpicture} 50 | \end{document} -------------------------------------------------------------------------------- /pgfplots-function/conj_grad_example_1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/pgfplots-function/conj_grad_example_1.pdf -------------------------------------------------------------------------------- /pgfplots-function/conj_grad_example_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/pgfplots-function/conj_grad_example_1.png -------------------------------------------------------------------------------- /pgfplots-function/conj_grad_example_1.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border = 0.2cm, 12pt]{standalone} 2 | \usepackage{amsmath, amssymb, amsfonts} 3 | \usepackage{color} 4 | \usepackage{tikz, pgfplots} 5 | \pgfplotsset{compat=newest} 6 | 7 | \begin{document} 8 | 9 | \begin{tikzpicture} 10 | \begin{axis}[axis lines=middle, line width=0.7, enlargelimits=upper, domain=-2:3, ymin=-1.5, ymax=3, xlabel=$x_1$, ylabel=$x_2$, legend entries={{$4x_1+x_2=1$}, {$x_1+3x_2=2$}}] 11 | \addplot [smooth, color=blue, line width = 2] {1-4*x}; 12 | \addplot [smooth, color=red, line width = 2] {(2-x)/3}; 13 | \end{axis} 14 | \end{tikzpicture} 15 | 16 | \end{document} 17 | -------------------------------------------------------------------------------- /pgfplots-function/conj_grad_example_2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/pgfplots-function/conj_grad_example_2.pdf -------------------------------------------------------------------------------- /pgfplots-function/conj_grad_example_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/pgfplots-function/conj_grad_example_2.png -------------------------------------------------------------------------------- /pgfplots-function/conj_grad_example_2.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border = 0.2cm, 12pt]{standalone} 2 | \usepackage{amsmath, amssymb, amsfonts} 3 | \usepackage{color} 4 | \usepackage{tikz, pgfplots} 5 | \pgfplotsset{compat=newest} 6 | 7 | \begin{document} 8 | 9 | \begin{tikzpicture} 10 | \begin{axis}[axis lines=middle, line width=0.7, enlargelimits=upper, domain=-0.2:0.8, ymin=-0.5, ymax=1, xlabel=$x_1$, ylabel=$x_2$, legend entries={{$4x_1+x_2=1$}, {$x_1+3x_2=2$}}] 11 | \addplot [smooth, color=blue, line width = 2] {1-4*x}; 12 | \addplot [smooth, color=red, line width = 2] {(2-x)/3}; 13 | \addplot[only marks, mark size=4, color=orange!20, draw=black] (0,0); 14 | \addplot[only marks, mark size=4, color=orange!20, draw=black] (0.25,0.5); 15 | \addplot[only marks, mark size=4, color=orange!20, draw=black] (0.09090909,0.63636364); 16 | \addplot[color=orange, dashed, line width = 2] coordinates {(0,0) (0.25,0.5) (0.09090909,0.63636364)}; 17 | \end{axis} 18 | \end{tikzpicture} 19 | 20 | \end{document} 21 | -------------------------------------------------------------------------------- /pgfplots-function/erlang_cdf.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/pgfplots-function/erlang_cdf.pdf -------------------------------------------------------------------------------- /pgfplots-function/erlang_cdf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/pgfplots-function/erlang_cdf.png -------------------------------------------------------------------------------- /pgfplots-function/erlang_cdf.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=2mm]{standalone} 2 | \usepackage{pgfplots} 3 | \usepackage[scaled]{helvet} 4 | \usepackage[T1]{fontenc} 5 | \renewcommand\familydefault{\sfdefault} 6 | \usepackage[eulergreek]{sansmath} 7 | \pgfplotsset{ 8 | legend style={at={(1,0.8)},anchor=east}, 9 | tick label style = {font=\sansmath\sffamily}, 10 | compat=newest} 11 | \pgfkeys{/pgf/number format/fixed} 12 | 13 | \begin{document} 14 | 15 | \begin{tikzpicture} 16 | \begin{axis}[ 17 | scaled ticks=false, 18 | axis lines=left, 19 | enlargelimits=upper, 20 | line width=0.5, 21 | legend entries={$\lambda_1=\frac{35}{6\times 12}\quad k_1=3$}, 22 | xlabel = Time (in month), 23 | ylabel = {$F(t;\lambda,k)=1-\sum_{h=0}^{k-1}\frac{(\lambda t)^{h}}{h!}e^{-\lambda t}$} 24 | ] 25 | \addplot + [smooth, mark=none, domain=0:30, samples=100, color=red, line width=1.5] { 26 | 1-exp(-35/(6*12)*x)*(1/factorial(0)+35/(6*12)*x/factorial(1)+(35/(6*12)*x)^2/factorial(2))}; 27 | \end{axis} 28 | \end{tikzpicture} 29 | \end{document} 30 | -------------------------------------------------------------------------------- /pgfplots-function/erlang_pdf.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/pgfplots-function/erlang_pdf.pdf -------------------------------------------------------------------------------- /pgfplots-function/erlang_pdf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/pgfplots-function/erlang_pdf.png -------------------------------------------------------------------------------- /pgfplots-function/erlang_pdf.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=2mm]{standalone} 2 | \usepackage{pgfplots} 3 | \usepackage[scaled]{helvet} 4 | \usepackage[T1]{fontenc} 5 | \renewcommand\familydefault{\sfdefault} 6 | \usepackage[eulergreek]{sansmath} 7 | \pgfplotsset{ 8 | tick label style = {font=\sansmath\sffamily}, 9 | compat=newest} 10 | \pgfkeys{/pgf/number format/fixed} 11 | 12 | \begin{document} 13 | 14 | \begin{tikzpicture} 15 | \begin{axis}[ 16 | scaled ticks=false, 17 | axis lines=left, 18 | enlargelimits=upper, 19 | line width=0.5, 20 | legend entries={$\lambda_1=\frac{35}{6\times 12}\quad k_1=3$}, 21 | xlabel = Time (in month), 22 | ylabel = {$f(t;\lambda,k)=\frac{\lambda(\lambda t)^{k-1}}{(k-1)!}e^{-\lambda t}$} 23 | ] 24 | \addplot + [smooth, mark=none, domain=0:30, samples=100, color=red, line width=1.5] { ((35/(6*12)*(35/(6*12)*x)^(3-1))*exp(-35/(6*12)*x)/factorial(3-1)}; 25 | \end{axis} 26 | \end{tikzpicture} 27 | \end{document} 28 | -------------------------------------------------------------------------------- /pgfplots-function/forecasting.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/pgfplots-function/forecasting.pdf -------------------------------------------------------------------------------- /pgfplots-function/forecasting.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/pgfplots-function/forecasting.png -------------------------------------------------------------------------------- /pgfplots-function/forecasting.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=0.2cm]{standalone} 2 | \usepackage{amsmath, amssymb} % Removed unused amsthm, amsfonts 3 | \usepackage{pgfplots} 4 | \pgfplotsset{compat=newest} % Set compatibility to newest version 5 | \usepackage{helvet} 6 | \renewcommand{\familydefault}{\sfdefault} 7 | \usepackage[eulergreek]{sansmath} 8 | 9 | % Consistent tick label style 10 | \pgfplotsset{ 11 | every tick label/.append style={font=\sansmath\sffamily}, 12 | every axis label/.append style={font=\sansmath\sffamily} 13 | } 14 | 15 | \begin{document} 16 | \begin{tikzpicture}[ 17 | % Define reusable styles 18 | cyanmark/.style={only marks, mark size=5, color=cyan!60, draw=black}, 19 | redmark/.style={only marks, mark size=5, color=red!35, draw=black}, 20 | dashline/.style={dashed, color=gray!30, mark=none} 21 | ] 22 | \begin{axis}[ 23 | axis lines=left, 24 | enlargelimits=upper, 25 | domain=0:2, 26 | xmin=0, ymin=0, ymax=3.5, 27 | xtick={1,...,9}, 28 | xticklabels={ 29 | $\boldsymbol{y}_{1}$, $\boldsymbol{y}_{2}$, $\boldsymbol{y}_{3}$, 30 | $\boldsymbol{y}_{4}$, $\boldsymbol{y}_{5}$, $\boldsymbol{y}_{6}$, 31 | $\boldsymbol{y}_{7}$, $\boldsymbol{y}_{8}$, $\boldsymbol{y}_{9}$ 32 | }, 33 | legend pos=outer north east, 34 | width=8.5cm, 35 | height=3.5cm, 36 | xlabel=Snapshot, 37 | ylabel=Rolling window, 38 | xlabel near ticks, 39 | ylabel near ticks, 40 | tick label style={font=\small}, 41 | label style={font=\small} 42 | ] 43 | 44 | % Add plots using defined styles 45 | \addplot[cyanmark] coordinates{(1,1) (2,1) (3,1)}; 46 | \addplot[redmark] coordinates{(4,1) (5,1)}; 47 | \addplot[cyanmark] coordinates{(1,2) (2,2) (3,2) (4,2) (5,2)}; 48 | \addplot[redmark] coordinates{(6,2) (7,2)}; 49 | \addplot[cyanmark] coordinates{(1,3) (2,3) (3,3) (4,3) (5,3) (6,3) (7,3)}; 50 | \addplot[redmark] coordinates{(8,3) (9,3)}; 51 | 52 | % Dashed lines 53 | \addplot[dashline] coordinates{(0,1) (3,1)}; 54 | \addplot[dashline] coordinates{(0,2) (7,2)}; 55 | \addplot[dashline] coordinates{(0,3) (9,3)}; 56 | 57 | \end{axis} 58 | \end{tikzpicture} 59 | \end{document} 60 | -------------------------------------------------------------------------------- /pgfplots-function/lognormal_pdf.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/pgfplots-function/lognormal_pdf.pdf -------------------------------------------------------------------------------- /pgfplots-function/lognormal_pdf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/pgfplots-function/lognormal_pdf.png -------------------------------------------------------------------------------- /pgfplots-function/lognormal_pdf.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=2mm]{standalone} 2 | \usepackage{pgfplots} 3 | \usepackage[scaled]{helvet} 4 | \usepackage[T1]{fontenc} 5 | \renewcommand\familydefault{\sfdefault} 6 | \usepackage[eulergreek]{sansmath} 7 | \pgfplotsset{ 8 | tick label style = {font=\sansmath\sffamily}} 9 | 10 | \pgfkeys{/pgf/number format/fixed, /pgf/number format/precision=5, /pgf/number format/.cd, 1000 sep = {}} 11 | \pgfplotsset{compat=newest} 12 | \begin{document} 13 | \pgfmathdeclarefunction{lognormal}{2}{\pgfmathparse{1/(x*#2*sqrt(2*pi))*exp(-((ln(x)-#1)^2)/(2*#2^2))}% 14 | } 15 | 16 | \begin{tikzpicture} 17 | \begin{axis}[ 18 | scaled ticks=false, 19 | axis lines=left, 20 | enlargelimits=upper, 21 | line width=0.5, 22 | ymin=0, 23 | xlabel = {$x$}, 24 | ylabel = {$f(x)$} 25 | ] 26 | \addplot + [smooth, mark=none, domain=0:30, samples=100, color=red, line width=1.5] {lognormal(1.9, 1.0724)}; 27 | \node at (20,0.06) {$\ln\mathcal{N}(1.9,1.0724^2)$}; 28 | \end{axis} 29 | \end{tikzpicture} 30 | \end{document} -------------------------------------------------------------------------------- /pgfplots-function/normal_pdf.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/pgfplots-function/normal_pdf.pdf -------------------------------------------------------------------------------- /pgfplots-function/normal_pdf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/pgfplots-function/normal_pdf.png -------------------------------------------------------------------------------- /pgfplots-function/normal_pdf.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=2mm]{standalone} 2 | \usepackage{pgfplots} 3 | \usepackage[scaled]{helvet} 4 | \usepackage[T1]{fontenc} 5 | \renewcommand\familydefault{\sfdefault} 6 | \usepackage[eulergreek]{sansmath} 7 | \pgfplotsset{ 8 | tick label style = {font=\sansmath\sffamily}} 9 | 10 | \pgfkeys{/pgf/number format/fixed, /pgf/number format/precision=5, /pgf/number format/.cd, 1000 sep = {}} 11 | \pgfplotsset{compat=newest} 12 | \begin{document} 13 | \pgfmathdeclarefunction{gauss}{2}{\pgfmathparse{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)/(2*#2^2))}% 14 | } 15 | 16 | \begin{tikzpicture} 17 | \begin{axis}[ 18 | scaled ticks=false, 19 | axis lines=left, 20 | enlargelimits=upper, 21 | line width=0.5, 22 | legend entries={a: {$\mathcal{N}(1072,184^2)$}, b: {$\mathcal{N}(1012,176^2)$}, c: {$\mathcal{N}(1085,141^2)$}}, 23 | xlabel = {$x_1$}, 24 | ylabel = {$f(x_1)$} 25 | ] 26 | \addplot + [smooth, mark=none, domain=400:2000, samples=100, color=red, line width=1.5] {gauss(1072, 183.74)}; 27 | \addplot + [smooth, mark=none, domain=400:2000, samples=100, color=blue, line width=1.5] {gauss(1012, 176.34)}; 28 | \addplot + [smooth, mark=none, domain=400:2000, samples=100, color=cyan, line width=1.5] {gauss(1085, 141.37)}; 29 | \end{axis} 30 | \end{tikzpicture} 31 | \end{document} -------------------------------------------------------------------------------- /pgfplots-function/normal_pdf_1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/pgfplots-function/normal_pdf_1.pdf -------------------------------------------------------------------------------- /pgfplots-function/normal_pdf_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/pgfplots-function/normal_pdf_1.png -------------------------------------------------------------------------------- /pgfplots-function/normal_pdf_1.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=2mm]{standalone} 2 | \usepackage{pgfplots} 3 | \usepackage[scaled]{helvet} 4 | \usepackage[T1]{fontenc} 5 | \renewcommand\familydefault{\sfdefault} 6 | \usepackage[eulergreek]{sansmath} 7 | \pgfplotsset{ 8 | tick label style = {font=\sansmath\sffamily}} 9 | 10 | \pgfkeys{/pgf/number format/fixed, /pgf/number format/precision=5, /pgf/number format/.cd, 1000 sep = {}} 11 | \pgfplotsset{compat=newest} 12 | 13 | \begin{document} 14 | 15 | \pgfmathdeclarefunction{gauss}{2}{\pgfmathparse{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)/(2*#2^2))}% 16 | } 17 | \begin{tikzpicture} 18 | \begin{axis}[ 19 | width=10cm, % Set the width of the axis 20 | height=6cm, % Set the height of the axis 21 | scaled ticks=false, 22 | axis lines=center, 23 | enlargelimits=upper, 24 | line width=0.8, 25 | xlabel = {$x$}, 26 | ylabel = {$f(x)$}, 27 | yticklabel = \empty, 28 | xmin = -5, xmax = 4.5, 29 | ymin = -0.05, ymax = 0.45, 30 | every axis x label/.style={at={(ticklabel* cs:1.02)}, anchor=west,}, every axis y label/.style={at={(ticklabel* cs:1.02)}, anchor=south} 31 | ] 32 | \addplot + [smooth, mark=none, domain=-4:4, samples=100, color=red, line width=1.5] {gauss(0,1)}; 33 | 34 | \node at (-2.8,0.3) {\color{red!90!black}$f(x)=\frac{1}{\sqrt{2\pi}}e^{-\frac{1}{2}x^2}$}; 35 | 36 | \node at (-0.5,0.4) {0.4}; 37 | 38 | \end{axis} 39 | \end{tikzpicture} 40 | 41 | \end{document} -------------------------------------------------------------------------------- /pgfplots-function/normal_pdf_2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/pgfplots-function/normal_pdf_2.pdf -------------------------------------------------------------------------------- /pgfplots-function/normal_pdf_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/pgfplots-function/normal_pdf_2.png -------------------------------------------------------------------------------- /pgfplots-function/normal_pdf_2.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=2mm]{standalone} 2 | \usepackage{pgfplots} 3 | \usepackage{amsmath} 4 | \usepackage[scaled]{helvet} 5 | \usepackage[T1]{fontenc} 6 | \renewcommand\familydefault{\sfdefault} 7 | \usepackage[eulergreek]{sansmath} 8 | \pgfplotsset{ 9 | tick label style = {font=\sansmath\sffamily}} 10 | 11 | \pgfkeys{/pgf/number format/fixed, /pgf/number format/precision=5, /pgf/number format/.cd, 1000 sep = {}} 12 | \pgfplotsset{compat=newest} 13 | 14 | \begin{document} 15 | 16 | \pgfmathdeclarefunction{gauss}{2}{\pgfmathparse{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)/(2*#2^2))}% 17 | } 18 | \begin{tikzpicture} 19 | 20 | \begin{axis}[ 21 | width=10cm, % Set the width of the axis 22 | height=6cm, % Set the height of the axis 23 | scaled ticks=false, 24 | axis lines=center, 25 | enlargelimits=upper, 26 | line width=0.8, 27 | xlabel = {$x$}, 28 | ylabel = {$f(x)$}, 29 | yticklabel = \empty, 30 | xmin = -5, xmax = 4.5, 31 | ymin = -0.05, ymax = 0.45, 32 | every axis x label/.style={at={(ticklabel* cs:1.02)}, anchor=west,}, every axis y label/.style={at={(ticklabel* cs:1.02)}, anchor=south} 33 | ] 34 | 35 | \begin{scope} 36 | \clip (1.96,0) rectangle (4,1); 37 | \fill[red!40, opacity=0.6] plot[domain=-4:4, smooth] (\x, {1/sqrt(2*pi)*exp(-\x*\x/2)}) -- (4, 0) -- (-4, 0) -- cycle; 38 | \end{scope} 39 | 40 | \begin{scope} 41 | \clip (-1.96,0) rectangle (-4,1); 42 | \fill[red!40, opacity=0.6] plot[domain=-4:4, smooth] (\x, {1/sqrt(2*pi)*exp(-\x*\x/2)}) -- (-4, 0) -- (4, 0) -- cycle; 43 | \end{scope} 44 | 45 | \addplot + [smooth, mark=none, domain=-4:4, samples=100, color=red, line width=1.5] {gauss(0,1)}; 46 | 47 | \node at (-2.8,0.3) {\color{red!90!black}$f(x)=\frac{1}{\sqrt{2\pi}}e^{-\frac{1}{2}x^2}$}; 48 | 49 | \node at (3,0.45) {\small\color{gray}$95\%$ confidence interval}; 50 | 51 | \node at (3,0.35) {\small\color{gray}$\mu\pm \underbrace{1.96}_{\text{two-tailed}}\sigma$}; 52 | 53 | \draw[arrows=<-, thick, color=red!70] (1.96,0.02)--(1.96,0.13); 54 | \node at (2,0.16) {\footnotesize\color{red!90!black}$1.96$}; 55 | 56 | \draw[arrows=<-, thick, color=red!70] (2.2,0.015)--(3,0.075); 57 | \node at (3.4,0.1) {\footnotesize\color{red!90!black}Area = $0.025$}; 58 | 59 | \node at (-0.5,0.4) {0.4}; 60 | 61 | \end{axis} 62 | \end{tikzpicture} 63 | 64 | \end{document} -------------------------------------------------------------------------------- /pgfplots-function/normal_pdf_3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/pgfplots-function/normal_pdf_3.pdf -------------------------------------------------------------------------------- /pgfplots-function/normal_pdf_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/pgfplots-function/normal_pdf_3.png -------------------------------------------------------------------------------- /pgfplots-function/normal_pdf_3.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=2mm]{standalone} 2 | \usepackage{pgfplots} 3 | \usepackage{amsmath} 4 | \usepackage[scaled]{helvet} 5 | \usepackage[T1]{fontenc} 6 | \renewcommand\familydefault{\sfdefault} 7 | \usepackage[eulergreek]{sansmath} 8 | \pgfplotsset{ 9 | tick label style = {font=\sansmath\sffamily}} 10 | 11 | \pgfkeys{/pgf/number format/fixed, /pgf/number format/precision=5, /pgf/number format/.cd, 1000 sep = {}} 12 | \pgfplotsset{compat=newest} 13 | 14 | \begin{document} 15 | 16 | \pgfmathdeclarefunction{gauss}{2}{\pgfmathparse{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)/(2*#2^2))}% 17 | } 18 | \begin{tikzpicture} 19 | 20 | \begin{axis}[ 21 | width=10cm, % Set the width of the axis 22 | height=6cm, % Set the height of the axis 23 | scaled ticks=false, 24 | axis lines=center, 25 | enlargelimits=upper, 26 | line width=0.8, 27 | xlabel = {$x$}, 28 | ylabel = {$f(x)$}, 29 | yticklabel = \empty, 30 | xmin = -5, xmax = 4.5, 31 | ymin = -0.05, ymax = 0.45, 32 | every axis x label/.style={at={(ticklabel* cs:1.02)}, anchor=west,}, every axis y label/.style={at={(ticklabel* cs:1.02)}, anchor=south} 33 | ] 34 | 35 | \begin{scope} 36 | \clip (1.96,0) rectangle (4,1); 37 | \fill[red!40, opacity=0.6] plot[domain=-4:4, smooth] (\x, {1/sqrt(2*pi)*exp(-\x*\x/2)}) -- (4, 0) -- (-4, 0) -- cycle; 38 | \end{scope} 39 | 40 | \begin{scope} 41 | \clip (-1.96,0) rectangle (-4,1); 42 | \fill[red!40, opacity=0.6] plot[domain=-4:4, smooth] (\x, {1/sqrt(2*pi)*exp(-\x*\x/2)}) -- (-4, 0) -- (4, 0) -- cycle; 43 | \end{scope} 44 | 45 | \begin{scope} 46 | \clip (-1.96,0) rectangle (1.96,0.4); 47 | \fill[green!20, opacity=0.6] plot[domain=-1.96:1.96, smooth] (\x, {1/sqrt(2*pi)*exp(-\x*\x/2)}) -- (1.96, 0.1) -- (1.96, 0) -- (-1.96, 0) -- (-1.96, 0.1) -- cycle; 48 | \end{scope} 49 | 50 | \draw[draw=gray!60, line width=0.1, fill=green!20] (1.3,0.38) rectangle (1.8,0.40); 51 | \draw[right] (2,0.39) node {\scriptsize\color{gray}Fail to reject $H_0$}; 52 | \draw[draw=gray!60, line width=0.1, fill=red!40] (1.3,0.32+0.01) rectangle (1.8,0.34+0.01); 53 | \draw[right] (2,0.33+0.01) node {\scriptsize\color{gray}Reject $H_0$}; 54 | 55 | \addplot + [smooth, mark=none, domain=-4:4, samples=100, color=red, line width=1.5] {gauss(0,1)}; 56 | 57 | \node at (-2.8,0.3) {\color{red!90!black}$f(x)=\frac{1}{\sqrt{2\pi}}e^{-\frac{1}{2}x^2}$}; 58 | 59 | % \node at (3,0.45) {\small\color{gray}$95\%$ confidence interval}; 60 | 61 | % \node at (3,0.35) {\small\color{gray}$\mu\pm \underbrace{1.96}_{\text{two-tailed}}\sigma$}; 62 | 63 | \draw[arrows=<-, thick, color=red!70] (1.96,0.02)--(1.96,0.13); 64 | \node at (2,0.16) {\footnotesize\color{red!90!black}$1.96$}; 65 | 66 | \draw[arrows=<-, thick, color=red!70] (2.2,0.015)--(3,0.075); 67 | \node at (3.4,0.1) {\footnotesize\color{red!90!black}Area = $0.025$}; 68 | 69 | \draw[arrows=<-, thick, color=green!70] (-1.2,0.1)--(-2,0.15); 70 | \node at (-2.6,0.18) {\footnotesize\color{green!70!black}Area = $0.95$}; 71 | 72 | \node at (-0.5,0.4) {0.4}; 73 | 74 | \end{axis} 75 | \end{tikzpicture} 76 | 77 | \end{document} -------------------------------------------------------------------------------- /pgfplots-function/sin_cos_functions.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/pgfplots-function/sin_cos_functions.pdf -------------------------------------------------------------------------------- /pgfplots-function/sin_cos_functions.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/pgfplots-function/sin_cos_functions.png -------------------------------------------------------------------------------- /pgfplots-function/sin_cos_functions.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=2mm, 12pt]{standalone} 2 | \usepackage{pgfplots} 3 | \usepackage{tikz} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | \begin{axis}[ 9 | axis lines=left, 10 | enlargelimits=upper, 11 | domain=0:2, 12 | legend pos=outer north east, 13 | width=9cm, 14 | height=3.5cm, 15 | thick, 16 | xlabel=$t$, 17 | ylabel=$y$, 18 | ymax=2.5, 19 | legend entries = { 20 | $y=\sin(2\pi t)+0.75$, 21 | $y=\sin(2\pi t)+0.25$, 22 | $y=\cos(2\pi t)-0.25$, 23 | $y=\cos(2\pi t)-0.75$ 24 | } 25 | ] 26 | \addplot [smooth, color=cyan, line width=1.5] {sin(deg(2*pi*x))+0.75}; 27 | \addplot [smooth, color=blue, line width=1.5] {sin(deg(2*pi*x))+0.25}; 28 | \addplot [smooth, color=red, line width=1.5] {cos(deg(2*pi*x))-0.25}; 29 | \addplot [smooth, color=orange, line width=1.5] {cos(deg(2*pi*x))-0.75}; 30 | \end{axis} 31 | \end{tikzpicture} 32 | 33 | \end{document} 34 | -------------------------------------------------------------------------------- /pgfplots-function/student_pdf_1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/pgfplots-function/student_pdf_1.pdf -------------------------------------------------------------------------------- /pgfplots-function/student_pdf_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/pgfplots-function/student_pdf_1.png -------------------------------------------------------------------------------- /pgfplots-function/student_pdf_1.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=2mm]{standalone} 2 | \usepackage{pgfplots} 3 | \usepackage{amsmath} 4 | \usepackage[scaled]{helvet} 5 | \usepackage[T1]{fontenc} 6 | \renewcommand\familydefault{\sfdefault} 7 | \usepackage[eulergreek]{sansmath} 8 | \pgfplotsset{ 9 | tick label style = {font=\sansmath\sffamily}} 10 | 11 | \pgfkeys{/pgf/number format/fixed, /pgf/number format/precision=5, /pgf/number format/.cd, 1000 sep = {}} 12 | \pgfplotsset{compat=newest} 13 | 14 | \begin{document} 15 | 16 | \pgfmathdeclarefunction{gauss}{2}{\pgfmathparse{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)/(2*#2^2))}% 17 | } 18 | 19 | \begin{tikzpicture}[ 20 | declare function={gamma(\z)= 21 | 2.506628274631*sqrt(1/\z)+ 0.20888568*(1/\z)^(1.5)+ 0.00870357*(1/\z)^(2.5)- (174.2106599*(1/\z)^(3.5))/25920- (715.6423511*(1/\z)^(4.5))/1244160)*exp((-ln(1/\z)-1)*\z;}, 22 | declare function={student(\x,\n)= gamma((\n+1)/2.)/(sqrt(\n*pi) *gamma(\n/2.)) *((1+(\x*\x)/\n)^(-(\n+1)/2.));} 23 | ] 24 | \begin{axis}[ 25 | width=10cm, % Set the width of the axis 26 | height=6cm, % Set the height of the axis 27 | scaled ticks=false, 28 | axis lines=center, 29 | enlargelimits=upper, 30 | line width=0.8, 31 | xlabel = {$x$}, 32 | ylabel = {$f(x)$}, 33 | yticklabel = \empty, 34 | xmin = -5, xmax = 4.5, 35 | ymin = -0.05, ymax = 0.45, 36 | every axis x label/.style={at={(ticklabel* cs:1.02)}, anchor=west,}, every axis y label/.style={at={(ticklabel* cs:1.02)}, anchor=south} 37 | ] 38 | \addplot + [smooth, mark=none, domain=-4:4, samples=100, color=red, line width=1.5] {gauss(0,1)}; 39 | 40 | \pgfplotsinvokeforeach{1}{ 41 | \addplot [thick, smooth, domain=-5:5, samples=100, color=blue, line width=1.2] {student(x,#1)}; 42 | } 43 | \node at (2.5,0.2) {\color{blue}$\nu=1$}; 44 | \pgfplotsinvokeforeach{5}{ 45 | \addplot [thick, smooth, domain=-5:5, samples=100, color=cyan, line width=1.2] {student(x,#1)}; 46 | } 47 | \node at (2.5,0.25) {\color{cyan}$\nu=5$}; 48 | \pgfplotsinvokeforeach{10}{ 49 | \addplot [thick, smooth, domain=-5:5, samples=100, color=orange, line width=1.2] {student(x,#1)}; 50 | } 51 | \node at (2.5,0.3) {\color{orange}$\nu=10$}; 52 | \node at (2.5,0.35) {\color{red}$\nu\to+\infty$}; 53 | \node at (2.5,0.4) {\footnotesize\color{gray}Normal distribution}; 54 | 55 | \draw[arrows=->, thick, color=blue!20] (-1,0.41)--(-0.1,0.32); 56 | \node at (-1.5,0.44) {\footnotesize\color{blue!70!black}Lower peaks}; 57 | 58 | \draw[arrows=<-, thick, color=blue!20] (3,0.04)--(3.65,0.10); 59 | \node at (3.9,0.13) {\footnotesize\color{blue!70!black}More areas in tails}; 60 | 61 | \node at (-0.5,0.4) {0.4}; 62 | 63 | \end{axis} 64 | \end{tikzpicture} 65 | 66 | \end{document} -------------------------------------------------------------------------------- /pgfplots-function/student_pdf_2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/pgfplots-function/student_pdf_2.pdf -------------------------------------------------------------------------------- /pgfplots-function/student_pdf_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinychen/awesome-latex-drawing/a11dbbb3796fb279790509fb87e0083f8d11fc96/pgfplots-function/student_pdf_2.png -------------------------------------------------------------------------------- /pgfplots-function/student_pdf_2.tex: -------------------------------------------------------------------------------- 1 | \documentclass[border=2mm]{standalone} 2 | \usepackage{pgfplots} 3 | \usepackage{amsmath} 4 | \usepackage[scaled]{helvet} 5 | \usepackage[T1]{fontenc} 6 | \renewcommand\familydefault{\sfdefault} 7 | \usepackage[eulergreek]{sansmath} 8 | \pgfplotsset{ 9 | tick label style = {font=\sansmath\sffamily}} 10 | 11 | \pgfkeys{/pgf/number format/fixed, /pgf/number format/precision=5, /pgf/number format/.cd, 1000 sep = {}} 12 | \pgfplotsset{compat=newest} 13 | 14 | \begin{document} 15 | 16 | \pgfmathdeclarefunction{gauss}{2}{\pgfmathparse{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)/(2*#2^2))}% 17 | } 18 | 19 | \begin{tikzpicture}[ 20 | declare function={gamma(\z)= 21 | 2.506628274631*sqrt(1/\z)+ 0.20888568*(1/\z)^(1.5)+ 0.00870357*(1/\z)^(2.5)- (174.2106599*(1/\z)^(3.5))/25920- (715.6423511*(1/\z)^(4.5))/1244160)*exp((-ln(1/\z)-1)*\z;}, 22 | declare function={student(\x,\n)= gamma((\n+1)/2.)/(sqrt(\n*pi) *gamma(\n/2.)) *((1+(\x*\x)/\n)^(-(\n+1)/2.));} 23 | ] 24 | \begin{axis}[ 25 | width=10cm, % Set the width of the axis 26 | height=6cm, % Set the height of the axis 27 | scaled ticks=false, 28 | axis lines=center, 29 | enlargelimits=upper, 30 | line width=0.8, 31 | xlabel = {$x$}, 32 | ylabel = {$f(x)$}, 33 | yticklabel = \empty, 34 | xmin = -5, xmax = 4.5, 35 | ymin = -0.05, ymax = 0.45, 36 | every axis x label/.style={at={(ticklabel* cs:1.02)}, anchor=west,}, every axis y label/.style={at={(ticklabel* cs:1.02)}, anchor=south} 37 | ] 38 | % \addplot + [smooth, mark=none, domain=-4:4, samples=100, color=red, line width=1.5] {gauss(0,1)}; 39 | 40 | % \pgfplotsinvokeforeach{1}{ 41 | % \addplot [thick, smooth, domain=-5:5, samples=100, color=blue, line width=1.2] {student(x,#1)}; 42 | % } 43 | % \node at (2.5,0.2) {\color{blue}$\nu=1$}; 44 | \pgfplotsinvokeforeach{5}{ 45 | \addplot [thick, smooth, domain=-5:5, samples=100, color=cyan, line width=1.2] {student(x,#1)}; 46 | } 47 | % \node at (2.5,0.25) {\color{cyan}$\nu=5$}; 48 | 49 | % \node at (-0.5,0.4) {\scriptsize$0.4$}; 50 | 51 | \begin{scope} 52 | \clip (2.571,0) rectangle (4,0.45); 53 | \fill[cyan!40, opacity=0.6] plot[domain=2.571:5, samples=100, smooth] (\x,{student(\x,5)}) -- (5, 0) -- (2.571, 0) -- cycle; 54 | \end{scope} 55 | 56 | \begin{scope} 57 | \clip (-2.571,0) rectangle (-4,0.45); 58 | \fill[cyan!40, opacity=0.6] plot[domain=-5:-2.571, samples=100, smooth] (\x,{student(\x,5)}) -- (-2.571, 0) -- (-5, 0) -- cycle; 59 | \end{scope} 60 | 61 | \begin{scope} 62 | \clip (-2.571,0) rectangle (2.571,0.4); 63 | \fill[green!20, opacity=0.6] plot[domain=-2.571:2.571, smooth] (\x,{student(\x,5)}) -- (2.571, 0.1) -- (2.571, 0) -- (-2.571, 0) -- (-2.571, 0.1) -- cycle; 64 | \end{scope} 65 | 66 | \draw[draw=gray!60, line width=0.1, fill=green!20] (1.3,0.38) rectangle (1.8,0.40); 67 | \draw[right] (2,0.39) node {\scriptsize\color{gray}Fail to reject $H_0$}; 68 | \draw[draw=gray!60, line width=0.1, fill=cyan!40] (1.3,0.32+0.01) rectangle (1.8,0.34+0.01); 69 | \draw[right] (2,0.33+0.01) node {\scriptsize\color{gray}Reject $H_0$}; 70 | 71 | % \addplot [thick, smooth, domain=-5:5, samples=100, color=cyan, line width=1.2] {student(x,1)}; 72 | 73 | \pgfplotsinvokeforeach{5}{ 74 | \addplot [thick, smooth, domain=-5:5, samples=100, color=cyan, line width=1.2] {student(x,#1)}; 75 | } 76 | \node at (2.5,0.25) {\color{cyan}$\nu=5$}; 77 | 78 | \node at (-0.5,0.4) {0.4}; 79 | 80 | \draw[arrows=<-, thick, color=cyan!70] (2.571,0.006)--(2.571,0.14); 81 | \node at (2.5,0.18) {\footnotesize\color{cyan!90!black}$2.571$}; 82 | 83 | % \draw[arrows=<-, thick, color=red!70] (0.816,0.002)--(0.816,0.06); 84 | % \node at (0.816,0.10) {\footnotesize\color{red!90!black}$t\approx 0.816$}; 85 | 86 | \draw[arrows=<-, thick, color=cyan!70] (2.8,0.01)--(3.6,0.07); 87 | \node at (3.99,0.1) {\footnotesize\color{cyan!90!black}Area = $0.025$}; 88 | 89 | \draw[arrows=<-, thick, color=green!70] (-1.2,0.1)--(-2,0.15); 90 | \node at (-2.6,0.18) {\footnotesize\color{green!70!black}Area = $0.95$}; 91 | 92 | \end{axis} 93 | \end{tikzpicture} 94 | 95 | \end{document} -------------------------------------------------------------------------------- /tutorial/README.md: -------------------------------------------------------------------------------- 1 | 技术文档 (LaTeX科技绘图) 2 | ============ 3 | 4 | **基本介绍** 5 | 6 | - **内容介绍**:众所周知,LaTeX是一种极其强大的文档排版系统,利用LaTeX可生成排版精美的文档,同时,因其在生成复杂数学公式方面的出色表现,现已成为众多科研人员在日常科研工作中的“必备神器”。除此之外,LaTeX也提供了非常优秀的绘图功能,常被应用于各类科技论文及项目文档的图形绘制当中,然而,目前介绍LaTeX科技绘图的相关书籍和文档较少且大多晦涩难懂,这直接导致部分读者浅尝辄止,难以灵活应用LaTeX进行有效地科技绘图。因此,本项目致力于开源各类LaTeX科技绘图实例及其源代码,实例包括贝叶斯网络、矩阵/张量分解示意图、算法技术框架图等,以求利用这些实例由浅入深地给读者介绍如何使用LaTeX绘制日常科研所需的各类图形。 7 | 8 | - **用户群体**: 9 | - 理工科本科生、硕士及博士研究生; 10 | - 各类科研工作者,例如,机器学习、人工智能等相关领域的科研人员。 11 | 12 | - **现有基础**:团队成员在GitHub开源社区创建了开源项目awesome-latex-drawing (项目网址为[https://github.com/xinychen/awesome-latex-drawing](https://github.com/xinychen/awesome-latex-drawing)),该项目自2019年1月创建以来,已获得了超过500次标星 (star) 和近百次fork,在LaTeX科技绘图方面得到了开源社区的广泛好评。 13 | 14 | **文档目录** 15 | 16 | - [贝叶斯网络](https://github.com/xinychen/awesome-latex-drawing/blob/master/tutorial/Bayesian_nets.md) 17 | - 绘制贝叶斯网络的基本语句 18 | - 绘制贝叶斯增强张量分解的贝叶斯网络 19 | - 绘制贝叶斯时序矩阵分解的贝叶斯网络 20 | - 图模型 21 | - 技术框架 22 | - 数据可视化 23 | 24 | **贡献者名单** (按姓氏拼音排序): 25 | 26 | - Xinyu Chen (陈新宇) 27 | - Jieling Jin (金杰灵) 28 | - Qionghua Liao (廖琼华) 29 | --------------------------------------------------------------------------------