FOR NUMERICAL POSTPROCESSING AND RESULT VISUALIZATION USING PGFPLOTS AND PGFPLOTSTABLE. Christian Feuersänger

Size: px
Start display at page:

Download "FOR NUMERICAL POSTPROCESSING AND RESULT VISUALIZATION USING PGFPLOTS AND PGFPLOTSTABLE. Christian Feuersänger"

Transcription

1 A COMPLETE WORK-FLOW FOR NUMERICAL POSTPROCESSING AND RESULT VISUALIZATION USING PGFPLOTS AND PGFPLOTSTABLE Christian Feuersänger Institute for Numerical Simulation University of Bonn Seminar Technische Numerik 2009

2 OUTLINE INTRODUCTION Computer Experiments and Postprocessing Installation of PGFPLOTS 2 A SAMPLE WORK FLOW WITH PGFPLOTS Visualizing the plots Table postprocessing 3 CONCLUSION AND OUTLOOK

3 OUTLINE INTRODUCTION Computer Experiments and Postprocessing Installation of PGFPLOTS 2 A SAMPLE WORK FLOW WITH PGFPLOTS Visualizing the plots Table postprocessing 3 CONCLUSION AND OUTLOOK

4 COMPUTER EXPERIMENTS AND POSTPROCESSING Realizes algorithm Visualize result Measures quality and cost Prototype Computer Experiment Detailed cost and errors Produces data for result visualization Visualize data tables Show Measures as Plots Often: log-log scaling Involves number printing Show Measures as Tables Compute gradients Functional relations error = cost α

5 COMPUTER EXPERIMENTS AND POSTPROCESSING Realizes algorithm Visualize result Measures quality and cost Prototype Computer Experiment Detailed cost and errors Produces data for result visualization Visualize data tables Often: log-log scaling Involves number printing Show Measures as Tables Present all results in.tex Showdocument. Two approaches: Measures as Plots External graphics (.eps/.pdf) + \includegraphics 2 Graphics with LAT E X package PGFPLOTS. Compute gradients Functional relations error = cost α

6 WELL-KNOWN PROBLEMS OF EXTERNAL GRAPHICS In External graphics: Font sizes are good relative to the figure. Font sizes are bad relative to the embedding document. Font types need to be adjusted problematic with LAT E X + Matlab, tricky with LAT E X + gnuplot tricky with overlay.eps + LAT E X descriptions Math axis descriptions problematic ( L 2 error ; tick labels 0 5 ) More than one graphics attention for consistency of line styles, colors, markers,...

7 WELL-KNOWN PROBLEMS OF EXTERNAL GRAPHICS fixed. fixed. fixed. fixed. fixed. With PGFPLOTS: Font sizes are good relative to the figure. Font sizes are bad relative to the embedding document. Font types need to be adjusted problematic with LAT E X + Matlab, tricky with LAT E X + gnuplot tricky with overlay.eps + LAT E X descriptions Math axis descriptions problematic ( L 2 error ; tick labels 0 5 ) More than one graphics attention for consistency of line styles, colors, markers,...

8 OUTLINE INTRODUCTION Computer Experiments and Postprocessing Installation of PGFPLOTS 2 A SAMPLE WORK FLOW WITH PGFPLOTS Visualizing the plots Table postprocessing 3 CONCLUSION AND OUTLOOK

9 INSTALLATION OF PGFPLOTS Usage at the INS: set the environment variables export TEXINPUTS=.:~feuersae/share/texmf//: export TEXDOCS=.:~feuersae/share/texmf//: This activates the latest developer versions of PGFPLOTS and TikZ. in MikT E X: \usepackage{pgfplots} uses the latest stable. on Linux: wait for official Ubuntu Package or use inofficial websites for package repositories See the PGFPLOTS manual for installation advice (or use environment variables above)

10 OUTLINE INTRODUCTION Computer Experiments and Postprocessing Installation of PGFPLOTS 2 A SAMPLE WORK FLOW WITH PGFPLOTS Visualizing the plots Table postprocessing 3 CONCLUSION AND OUTLOOK

11 A SAMPLE WORK FLOW WITH PGFPLOTS Example scenario given program prototype which approximates f : [0, ] d R in dimension d up to ɛ../prototype -d 2 --eps visualizeto output --measuresto table_d2.dat --parameters... Output: a table row (append) Dof L2_error rel_l2_error Lmax_error rel_lmax_error eps to table.dat. Iteration convergence table Visualization: output.dat will contain a full grid interpolation a function output_grid.dat will contain the evaluated coordinates a grid

12 THE OUTPUT OF OUR EXPERIMENTS Scenario: fix all input parameters but one, change one (here: ɛ) result output: table.dat of the form dof L2_error rel_l2_error Lmax_error rel_lmax_error eps e e e e e e e e e e e e e e e e e e e e Visualization output: output.dat and output_grid.dat (here: comments; tuples (x 0, x, f (x 0, x )); and more) # ordering=colwise, basis=basis_nodal, number points=4225, (max)level(s): (6,6), domain=[0,]^2 # x_i : coordinates; (l_i,i_i): multiindex coords; scalaridx_i: linearized multiindex coords x_0 x_ f(x) l_0 i_0 scalaridx_0 l_ i_ Goal: visualize table.dat and output.dat

13 RESULT.tex FILE \documentclass[a4paper]{article} 2 \usepackage{pgfplots} 3 \pgfplotsset{compat=newest} 4 5 \title{approximation results} 6 \author{christian Feuers\"anger} 7 8 \begin{document} 9 \maketitle 0 \tableofcontents 2 \section{first set of parameters} 3 We use routine XYZ with parameters a-b-c. 4 5 \begin{tikzpicture} 6 \begin{loglogaxis}[ 7 title=xyz with a-b-c, 8 ylabel=relative $L_2$ error, 9 xlabel=\textsc{dof}, 20 ] 2 \addplot table[x=dof,y=rel_l2_error] {XYZ_abc/d2/table.dat}; 22 \end{loglogaxis} 23 \end{tikzpicture} 24 \end{document}

14 RESULT.tex FILE Approximation results Christian Feuersänger \documentclass[a4paper]{article} January 4, \usepackage{pgfplots} 3 \pgfplotsset{compat=newest} 4 Contents 5 \title{approximation results} First set of parameters 6 \author{christian Feuers\"anger} 7 8 \begin{document} First set of parameters 9 \maketitle We use routine XYZ with parameters a-b-c. 0 \tableofcontents XYZ with a-b-c 0 2 \section{first set of parameters} 3 We use routine XYZ with parameters a-b-c \begin{tikzpicture} \begin{loglogaxis}[ 0 7 title=xyz with a-b-c, 8 ylabel=relative $L_2$ error, xlabel=\textsc{dof}, 20 ] \addplot table[x=dof,y=rel_l2_error] {XYZ_abc/d2/table.dat}; \end{loglogaxis} Dof 23 \end{tikzpicture} 24 \end{document} relative L2 error

15 RESULT.tex FILE Advice: always make Title page \maketitle Approximation results 2 Table of contents 3 One \section for each set of parameters Christian Feuersänger \documentclass[a4paper]{article} January 4, \usepackage{pgfplots} 3 \pgfplotsset{compat=newest} 4 PGFPLOTS: Contents 5 \title{approximation results} First set of parameters 6 \author{christian Feuers\"anger} \usepackage{pgfplots} 7 8 \begin{document} 2 \begin{tikzpicture} First set of parameters... 9 \maketitle \end{tikzpicture} We use routine XYZ with parameters a-b-c. 0 \tableofcontents XYZ with a-b-c 0 2 \section{first set of parameters} 3 We use routine XYZ with parameters4 \addplot... ; a-b-c \begin{tikzpicture} Descriptions with 0 title, xlabel, ylabel 3 0 use, 4 after last option xlabel=\textsc{dof}, so you won t forget it for next option 20 ] \addplot table[x=dof,y=rel_l2_error] {XYZ_abc/d2/table.dat}; \end{loglogaxis} Dof 23 \end{tikzpicture} 24 \end{document} 6 \begin{loglogaxis}[ 7 title=xyz with a-b-c, Advice: 8 ylabel=relative $L_2$ error, 3 \begin{loglogaxis}... \end{loglogaxis} relative L2 error

16 ADDING A FURTHER EXPERIMENT AND A LEGEND 4 5 \begin{tikzpicture} 6 \begin{loglogaxis}[ 7 title=xyz with a-b-c, 8 ylabel=relative $L_2$ error, 9 xlabel=\textsc{dof}, 20 legend entries={$d=2$,$d=3$}, 2 ] 22 \addplot table[x=dof,y=rel_l2_error] {XYZ_abc/d2/table.dat}; 23 \addplot table[x=dof,y=rel_l2_error] {XYZ_abc/d3/table.dat}; 24 \end{loglogaxis} 25 \end{tikzpicture} legend entries={... } a further \addplot

17 ADDING A FURTHER EXPERIMENT AND A LEGEND 4 5 \begin{tikzpicture} Approximation results Christian Feuersänger 6 \begin{loglogaxis}[ 7 title=xyz with a-b-c, January 4, ylabel=relative $L_2$ error, 9 xlabel=\textsc{dof}, 20 legend entries={$d=2$,$d=3$}, Contents 2 ] First set of parameters 22 \addplot table[x=dof,y=rel_l2_error] {XYZ_abc/d2/table.dat}; 23 \addplot table[x=dof,y=rel_l2_error] {XYZ_abc/d3/table.dat}; First set of parameters 24 \end{loglogaxis} We use routine XYZ with parameters a-b-c. 25 \end{tikzpicture} XYZ with a-b-c legend entries={... } a further \addplot relative L2 error d = 2 d = Dof

18 VISUALIZATION FOR THE FUNCTION \begin{tikzpicture} 28 \begin{axis}[ 29 title=the function $f(x)$, 30 xlabel=$x$, 3 ylabel=$y$, 32 zlabel=$f(x)$, 33 ] 34 \addplot3[surf] table {XYZ_abc/d2/output.dat}; 35 \end{axis} 36 \end{tikzpicture} \begin{tikzpicture} 39 \begin{axis}[ 40 title=its grid, 4 enlargelimits=false, 42 xlabel=$x$, 43 ylabel=$y$, 44 ] 45 \addplot[only marks,mark=*,blue] 46 table {XYZ_abc/d2/output_grid.dat}; 47 \end{axis} 48 \end{tikzpicture} 49 \end{document}

19 VISUALIZATION FOR \begin{axis} THE FUNCTION... \end{axis} instead of loglogaxis \begin{tikzpicture} 28 \begin{axis}[ 29 title=the function $f(x)$, 30 xlabel=$x$, 3 ylabel=$y$, 32 zlabel=$f(x)$, 33 ] 34 \addplot3[surf] table {XYZ_abc/d2/output.dat}; 35 \end{axis} 36 \end{tikzpicture} \begin{tikzpicture} 39 \begin{axis}[ 40 title=its grid, 4 enlargelimits=false, 42 xlabel=$x$, 43 ylabel=$y$, 44 ] 45 \addplot[only marks,mark=*,blue] 46 table {XYZ_abc/d2/output_grid.dat}; 47 \end{axis} 48 \end{tikzpicture} 49 \end{document} Styles as \addplot[options] without [options]: cyle list

20 y VISUALIZATION FOR THE FUNCTION \begin{tikzpicture} Approximation results 28 \begin{axis}[ 29 title=the function Christian Feuersänger $f(x)$, 30 xlabel=$x$, January 4, ylabel=$y$, 32 zlabel=$f(x)$, Contents 33 ] 34 First \addplot3[surf] set of parameters table {XYZ_abc/d2/output.dat}; 35 \end{axis} 36 \end{tikzpicture} First set of parameters 37 We use routine XYZ with parameters a-b-c. XYZ with a-b-c 38 \begin{tikzpicture} 39 \begin{axis}[ d = title=its grid, d = 3 4 enlargelimits=false, xlabel=$x$, 0 43 ylabel=$y$, 44 ] \addplot[only marks,mark=*,blue] table {XYZ_abc/d2/output_grid.dat}; 47 \end{axis} \end{tikzpicture} \end{document} Dof relative L2 error f(x) x The function f(x) 0.6 Its grid x y

21 VISUALIZATION READY! Summary: input: data tables styles defined in T E X document key-value options for descriptions / fine tuning output: readily usable plot. Outlook (refer to manual): other input (math expressions,... ) more plot styles (line, scatter, bar, mesh, surf,... ) loops to include files Advice: speed improvement by \usepackage{pgfplots} \usepgfplotslibrary{external} \tikzexternalize{<name-of-tex-file>} % without.tex pdflatex -shell-escape <name-of-tex-file>: auto-generates separate.pdf for each picture

22 VISUALIZATION READY! Summary: input: data tables styles defined in T E X document key-value options for descriptions / fine tuning output: readily Forusable those who plot. are satisfied with Outlook (refer toplots: manual): relax! other input (math Rest of expressions, talk:... ) more plot styles (line, tablescatter, typesetting bar, mesh, (number surf,... ) loops to include formatting files in T E X) Advice: speed improvement compute convergence by rates automatically \usepackage{pgfplots} \usepgfplotslibrary{external} \tikzexternalize{<name-of-tex-file>} % without.tex pdflatex -shell-escape <name-of-tex-file>: auto-generates separate.pdf for each picture

23 OUTLINE INTRODUCTION Computer Experiments and Postprocessing Installation of PGFPLOTS 2 A SAMPLE WORK FLOW WITH PGFPLOTS Visualizing the plots Table postprocessing 3 CONCLUSION AND OUTLOOK

24 TYPESETTING THE DATA TABLES We can simply write \pgfplotstabletypeset{xyz_abc/d2/table.dat} which leads to dof L2 e rror rel L 2 e rror Lmax e rror rel L max e rror eps , , , underscores 2, _ , ,745provide names for2.64 the 0columns , and a lot of Missing $ inserted due to the

25 TYPESETTING THE DATA TABLES \documentclass[a4paper]{article} 2 \usepackage{pgfplots} 3 \usepackage{pgfplotstable} 4 \pgfplotsset{compat=newest} 5 6 % this configures document-wide styles for table typesetting. 7 \pgfplotstableset{ 8 columns={dof,rel_l2_error,rel_lmax_error}, % choose columns 9 columns/rel_l2_error/.style={ % tell how rel_l2_error shall be typeset 0 column name={$l_2$ rel}, }, 2 columns/rel_lmax_error/.style={ % tell how rel_lmax_error shall be typeset 3 column name={$l_\infty$ rel}, 4 }, 5 } 6 7 \title{approximation results} 8 \author{christian Feuers\"anger} 9 20 \begin{document} 2 \maketitle 22 \tableofcontents 39 \pgfplotstabletypeset{xyz_abc/d2/table.dat}

26 TYPESETTING THE DATA TABLES \documentclass[a4paper]{article} Contents 2 \usepackage{pgfplots} First set of parameters 3 \usepackage{pgfplotstable} 4 \pgfplotsset{compat=newest} 5 First set of parameters We use routine XYZ with parameters a-b-c. 6 % this configures document-wide styles for table typesetting. XYZ with a-b-c 7 \pgfplotstableset{ d = 2 8 columns={dof,rel_l2_error,rel_lmax_error}, % choose0 columns 9 columns/rel_l2_error/.style={ d = 3 % tell how rel_l2_error shall be typeset 0 column name={$l_2$ rel}, 0 2 }, columns/rel_lmax_error/.style={ % tell how rel_lmax_error shall be typeset 3 column name={$l_\infty$ rel}, 4 }, 5 } 6 7 \title{approximation results} 8 \author{christian Feuers\"anger} 9 20 \begin{document} 2 \maketitle 22 \tableofcontents 39 \pgfplotstabletypeset{xyz_abc/d2/table.dat} relative L2 error Approximation results Christian Feuersänger January 4, Dof dof L2 rel L rel , , , , , , ,

27 Approximation results TYPESETTING THE DATA TABLES Christian Feuersänger Advice: use preamble config with January 4, 200 \pgfplotstableset \documentclass[a4paper]{article} Contents 2 \usepackage{pgfplots} 3 \usepackage{pgfplotstable} 4 \pgfplotsset{compat=newest} 5 6 % this configures document-wide styles for table typesetting. We use routine XYZ with parameters a-b-c. XYZ with a-b-c 7 \pgfplotstableset{ d = 2 8 columns={dof,rel_l2_error,rel_lmax_error}, preamble% config: choose0 columns d = 3 9 columns/rel_l2_error/.style={ % tell how rel_l2_error shall be typeset 0 column name={$l_2$ rel}, 0 select relevant 2 columns }, columns/rel_lmax_error/.style={ % tell how rel_lmax_error shall be typeset 3 column name={$l_\infty$ rel}, 4 }, 5 } 6 7 \title{approximation results} 8 \author{christian Feuers\"anger} 9 20 \begin{document} 2 \maketitle 22 \tableofcontents 39 \pgfplotstabletypeset{xyz_abc/d2/table.dat} in document: First\pgfplotstabletypeset set of parameters (without [options]) First set of parameters pretty printed tables, consistent format relative L2 error define styles (column names here) Dof dof L2 rel L rel , , , , , , ,

28 CHANGE NUMBER FORMATTING We provide some fine-tuning of the display to the preamble: 6 % this configures document-wide styles for table typesetting. 7 \pgfplotstableset{ 8 columns={dof,rel_l2_error,rel_lmax_error}, % choose columns 9 columns/rel_l2_error/.style={ % tell how rel_l2_error shall be typeset 0 column name={$l_2$ rel}, sci,sci zerofill, % scientific format 2 sci sep align, % align at \cdot 0^ 3 }, 4 columns/rel_lmax_error/.style={ % tell how rel_lmax_error shall be typeset 5 column name={$l_\infty$ rel}, 6 sci,sci zerofill, 7 sci sep align, 8 sci subscript, %... just to demonstrate different sci formats 9 }, 20 } 44 \pgfplotstabletypeset{xyz_abc/d2/table.dat}

29 CHANGE NUMBER FORMATTING Approximation results Christian Feuersänger January 4, 200 Contents First set of parameters We provide some fine-tuning of the First set display of parameters to the We use routine XYZ with parameters a-b-c. preamble: XYZ with a-b-c d = 2 6 % this configures document-wide styles for table typesetting. 0 d = 3 7 \pgfplotstableset{ 8 columns={dof,rel_l2_error,rel_lmax_error}, % choose0 columns 9 columns/rel_l2_error/.style={ % tell how 0 rel_l2_error shall be typeset 0 column name={$l_2$ rel}, sci,sci zerofill, % scientific format sci sep align, % align at \cdot 0^ }, 4 columns/rel_lmax_error/.style={ % tell how 0 rel_lmax_error shall be typeset 5 column name={$l_\infty$ rel}, Dof 6 sci,sci zerofill, dof L2 rel L rel sci sep align, %... just to demonstrate different.0 sci formats sci subscript, 9 }, } , , , \pgfplotstabletypeset{xyz_abc/d2/table.dat} , , , , relative L2 error

30 COMPUTE PIECEWISE GRADIENTS We want postprocessing columns containing piecewise gradients: 6 % this configures document-wide styles for table typesetting. 7 \pgfplotstableset{ 8 columns={dof,rel_l2_error,grad_l2,rel_lmax_error,grad_lmax}, 9 % define how to create grad_l2 : 0 create on use/grad_l2/.style={ create col/gradient loglog={dof}{rel_l2_error} 2 }, 3 % define how to create grad_lmax : 4 create on use/grad_lmax/.style={ 5 create col/gradient loglog={dof}{rel_lmax_error} 6 }, 7 % tell it how to format grad_l2 and grad_lmax 8 columns/grad_lmax/.style={ 9 column name={$l_\infty$ grad}, 20 fixed,fixed zerofill, 2 precision=, 22 multiply with=-, 23 dec sep align, 24 }, 66 \pgfplotstabletypeset{xyz_abc/d2/table.dat}

31 COMPUTE PIECEWISE GRADIENTS We want postprocessing columns containing piecewise Contents gradients: 6 % this configures document-wide styles for table typesetting. First set of parameters 7 \pgfplotstableset{ We use routine XYZ with parameters a-b-c. 8 columns={dof,rel_l2_error,grad_l2,rel_lmax_error,grad_lmax}, XYZ with a-b-c 9 % define how to create grad_l2 : d = 2 0 create on use/grad_l2/.style={ 0 d = 3 create col/gradient loglog={dof}{rel_l2_error} 2 }, % define how to create grad_lmax : create on use/grad_lmax/.style={ 5 create col/gradient loglog={dof}{rel_lmax_error} }, % tell it how to format grad_l2 and grad_lmax 8 columns/grad_lmax/.style={ column name={$l_\infty$ grad}, Dof dof L2 rel L2 grad L rel L grad fixed,fixed zerofill, 2 precision=, 22 multiply with=-, 23 dec sep align, 24 }, 66 \pgfplotstabletypeset{xyz_abc/d2/table.dat} Approximation results Christian Feuersänger January 4, 200 First set of parameters relative L2 error , , , , , , ,

32 COMPUTE PIECEWISE GRADIENTS Approximation results Christian Feuersänger create on use: used for column names January 4, 200 We want postprocessing which columns do not exist. containing piecewise Contents gradients: here: computes First set oflog log parameters gradient 6 % this configures document-widebetween styles for table successive typesetting. First set of parameters rows 7 \pgfplotstableset{ 8 columns={dof,rel_l2_error,grad_l2,rel_lmax_error,grad_lmax}, 9 % define how to create grad_l2 : 0 create on use/grad_l2/.style={ create col/gradient loglog={dof}{rel_l2_error} 2 }, 3 % define how to create grad_lmax : 4 create on use/grad_lmax/.style={ 5 create col/gradient loglog={dof}{rel_lmax_error} 6 }, 7 % tell it how to format grad_l2 and grad_lmax 8 columns/grad_lmax/.style={ 9 column name={$l_\infty$ grad}, 20 fixed,fixed zerofill, 2 precision=, 22 multiply with=-, 23 dec sep align, 24 }, 66 \pgfplotstabletypeset{xyz_abc/d2/table.dat} We use routine XYZ with parameters a-b-c. XYZ with a-b-c relative L2 error d = 2 d = Dof dof L2 rel L2 grad L rel L grad , , , , , , ,

33 PUTTING IT ALL TOGETHER I \documentclass[a4paper]{article} 2 \usepackage{pgfplots} 3 \usepackage{pgfplotstable} 4 \pgfplotsset{compat=newest} 5 \usepgfplotslibrary{clickable} 6 7 \usepackage{booktabs} % to allow nicer tables 8 9 % this configures document-wide styles for table typesetting. 0 \pgfplotstableset{ % select columns: 2 columns={dof,rel_l2_error,grad_l2,rel_lmax_error,grad_lmax}, 3 % define how to create grad_l2 : 4 create on use/grad_l2/.style={ 5 create col/gradient loglog={dof}{rel_l2_error}}, 6 % define how to create grad_lmax : 7 create on use/grad_lmax/.style={ 8 create col/gradient loglog={dof}{rel_lmax_error}}, 9 % we define a new style named gradient style which can be used below: 20 gradient style/.style={ 2 fixed,fixed zerofill, 22 precision=, 23 multiply with=-, 24 dec sep align}, 25 error style/.style={ %... and we define error style for use below

34 PUTTING IT ALL TOGETHER II 26 sci,sci zerofill, 27 sci sep align}, 28 % tell it how to format grad_l2 and grad_lmax 29 columns/grad_lmax/.style={ 30 column name={$l_\infty$ grad}, 3 gradient style}, 32 columns/grad_l2/.style={ 33 column name={$l_2$ grad}, 34 gradient style}, 35 columns/rel_l2_error/.style={ 36 column name={$l_2$ rel}, 37 error style}, 38 columns/rel_lmax_error/.style={ 39 column name={$l_\infty$ rel}, 40 error style}, 4 every head row/.style={ 42 before row=\toprule,after row=\midrule}, 43 every last row/.style={ 44 after row=\bottomrule}, 45 } \title{approximation results} 48 \author{christian Feuers\"anger} 49

35 PUTTING IT ALL TOGETHER III 50 \begin{document} 5 \maketitle 52 \tableofcontents \section{first set of parameters} 55 We use routine XYZ with parameters a-b-c \begin{tikzpicture} 58 \begin{loglogaxis}[ 59 title=xyz with a-b-c, 60 ylabel=relative $L_2$ error, 6 xlabel=\textsc{dof}, 62 legend entries={$d=2$,$d=3$}, 63 ] 64 \addplot table[x=dof,y=rel_l2_error] {XYZ_abc/d2/table.dat}; 65 \addplot table[x=dof,y=rel_l2_error] {XYZ_abc/d3/table.dat}; 66 \end{loglogaxis} 67 \end{tikzpicture} \pgfplotstabletypeset{xyz_abc/d2/table.dat} 70 7 \begin{tikzpicture} 72 \begin{axis}[ 73 title=the function $f(x)$,

36 PUTTING IT ALL TOGETHER IV 74 xlabel=$x$, 75 ylabel=$y$, 76 zlabel=$f(x)$, 77 ] 78 \addplot3[surf] table {XYZ_abc/d2/output.dat}; 79 \end{axis} 80 \end{tikzpicture} 8 82 \begin{tikzpicture} 83 \begin{axis}[ 84 title=its grid, 85 enlargelimits=false, 86 xlabel=$x$, 87 ylabel=$y$, 88 ] 89 \addplot[only marks,mark=*,blue] 90 table {XYZ_abc/d2/output_grid.dat}; 9 \end{axis} 92 \end{tikzpicture} 93 \end{document}

37 y PUTTING IT ALL TOGETHER V Approximation results Christian Feuersänger January 4, 200 Contents First set of parameters First set of parameters We use routine XYZ with parameters a-b-c. XYZ with a-b-c dof L2 rel L2 grad L rel L grad , , , , , , , The function f(x) 0 d = 2 d = 3 relative L2 error f(x) x y Dof 0.8 Its grid

38 CONCLUSION AND SUMMARY Solves old problems with graphics and yields: High Quality output of Graphics High Quality embedding in document Styles consistent document wide no third party tool or script necessary (only T E X) Browse illustrated manual for scatter, line, bar, piece const, mesh plots, math expressions,... Limitations: Increased time for pdflatex or latex. Possibility: compile graphics once and re-use them (\usepgfplotslibrary{external}) The plot complexity should not exceed 0.000

39 Using Coordinate Filters to fix z =.4 φxφy φx φy min load nodes cpus processes 0 7 f(x, y) = x y x y Population Far Near tan(x) 5 l3 3 3 l l π π/2 π/2 3 2 π 5 L2 Error d = 2 d = 3 d = 4 d = 5 d = 6 3,000 model estimate 2,000,000 0, Degrees of freedom 2,000 3, Class Class 2 0. Class 3 Line

40 REFERENCES Chr. Feuersänger PGFPLOTS manual. $ texdoc pgfplots $ texdoc pgfplotstable T. Tantau PGF / TikZ manual. $ texdoc pgfmanual

TikZ & PGF(plots) Daniel Knittl-Frank. May This work is licensed under the Creative Commons Attribution-ShareAlike 3.

TikZ & PGF(plots) Daniel Knittl-Frank. May This work is licensed under the Creative Commons Attribution-ShareAlike 3. TikZ & PGF(plots) Daniel Knittl-Frank May 2015 This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 Austria license (CC-BY-SA) 2D value plot Bitstamp USD 20,000 Weighted Price High

More information

APPM 2460 PLOTTING IN MATLAB

APPM 2460 PLOTTING IN MATLAB APPM 2460 PLOTTING IN MATLAB. Introduction Matlab is great at crunching numbers, and one of the fundamental ways that we understand the output of this number-crunching is through visualization, or plots.

More information

The gnuplottex package

The gnuplottex package The gnuplottex package Lars Kotthoff, Udo Höfel and more contributors December 13, 2015 1 Introduction This package allows you to include gnuplot graphs in your L A TEX documents. The gnuplot code is extracted

More information

Improving figures using TikZ/PGF for LATEX: An Introduction

Improving figures using TikZ/PGF for LATEX: An Introduction Improving figures using TikZ/PGF for LATEX: An Introduction Vincent Darrigrand, Florian Faucher To cite this version: Vincent Darrigrand, Florian Faucher. Improving figures using TikZ/PGF for LATEX: An

More information

Logical Subscripting: This kind of subscripting can be done in one step by specifying the logical operation as the subscripting expression.

Logical Subscripting: This kind of subscripting can be done in one step by specifying the logical operation as the subscripting expression. What is the answer? >> Logical Subscripting: This kind of subscripting can be done in one step by specifying the logical operation as the subscripting expression. The finite(x)is true for all finite numerical

More information

L A TEX E Here s the example of a X

L A TEX E Here s the example of a X When an example needs a special package, I ve put a \usepackage statement in code for the example. The one exception is \usepackage{amsmath}. I always use this, and so should you, if only to get the align

More information

The basics of LaTeX. Cédric Buron. April 25, 2016

The basics of LaTeX. Cédric Buron. April 25, 2016 The basics of LaTeX Cédric Buron April 25, 2016 Hello fellows! Today, I introduce a very important language in my PhD, L A TEX(what a logo!). In this article, I m going to introduce very quickly the purpose,

More information

Basic Graphs. Dmitry Adamskiy 16 November 2011

Basic Graphs. Dmitry Adamskiy 16 November 2011 Basic Graphs Dmitry Adamskiy adamskiy@cs.rhul.ac.uk 16 November 211 1 Plot Function plot(x,y): plots vector Y versus vector X X and Y must have the same size: X = [x1, x2 xn] and Y = [y1, y2,, yn] Broken

More information

L A TEX in the Classroom

L A TEX in the Classroom Introduction Welcome L A TEX in the Classroom Dan Raies The University of Oregon Wednesday, July 20, 2014 Dan Raies (The University of Oregon) LATEX in the Classroom Wednesday, July 20, 2014 1 / 33 Introduction

More information

NAVIGATING UNIX. Other useful commands, with more extensive documentation, are

NAVIGATING UNIX. Other useful commands, with more extensive documentation, are 1 NAVIGATING UNIX Most scientific computing is done on a Unix based system, whether a Linux distribution such as Ubuntu, or OSX on a Mac. The terminal is the application that you will use to talk to the

More information

What is MATLAB? It is a high-level programming language. for numerical computations for symbolic computations for scientific visualizations

What is MATLAB? It is a high-level programming language. for numerical computations for symbolic computations for scientific visualizations What is MATLAB? It stands for MATrix LABoratory It is developed by The Mathworks, Inc (http://www.mathworks.com) It is an interactive, integrated, environment for numerical computations for symbolic computations

More information

Graphics with TikZ. Eastern Illinois University. From the SelectedWorks of Andrew Mertz

Graphics with TikZ. Eastern Illinois University. From the SelectedWorks of Andrew Mertz Eastern Illinois University From the SelectedWorks of Andrew Mertz 2007 Graphics with TikZ Andrew Mertz, Eastern Illinois University William Slough, Eastern Illinois University Available at: https://works.bepress.com/andrew_mertz/3/

More information

An Interactive Introduction to L A TEX. Part 2: Structured Documents & More. Dr John D. Lees-Miller. writel A TEX.

An Interactive Introduction to L A TEX. Part 2: Structured Documents & More. Dr John D. Lees-Miller. writel A TEX. An Interactive Introduction to L A TEX Part 2: Structured Documents & More Dr John D. Lees-Miller writel A TEX February 27, 2013 Outline Structured Documents Title and Abstract Sections Labels and Cross-References

More information

Mechanical Engineering Department Second Year (2015)

Mechanical Engineering Department Second Year (2015) Lecture 7: Graphs Basic Plotting MATLAB has extensive facilities for displaying vectors and matrices as graphs, as well as annotating and printing these graphs. This section describes a few of the most

More information

L A TEX Course at ICT School

L A TEX Course at ICT School L A TEX Course at ICT School Let s add some mathematics Alexandre L École polytechnique, F labrosse@kth.se KTH Royal Institute of Technology Spring 2012 Course overview 1. Basics and tips for your first

More information

An Introduction to LATEX

An Introduction to LATEX An Introduction to LATEX Mathematics 23a, Fall 2012 By: Isabel Vogt, Will Rafey, and Neil Gat Last Updated: 13 September, 2012 1 Introduction The simplest way to learn TeX is by example. Copy the heading

More information

Lecture 1: Short summary of LaTeX basics

Lecture 1: Short summary of LaTeX basics Laura Konstantaki Lecture 1: Short summary of LaTeX basics Feel at ease with LaTeX Unless otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, which means

More information

Introduction to Beamer and TikZ

Introduction to Beamer and TikZ Introduction to Beamer and TikZ Christian Schnell April 7, 2017 In case you forgot today s date... For people with bad memory... Part I Computer presentations with Beamer What is Beamer? Beamer is a L

More information

L A TEX. COMPSCI 111 / 111G Mastering Cyberspace: An introduction to practical computing. LaTeX. Development. Why?

L A TEX. COMPSCI 111 / 111G Mastering Cyberspace: An introduction to practical computing. LaTeX. Development. Why? LaTeX A document preparation system Used to typeset a document COMPSCI 111 / 111G Mastering Cyberspace: An introduction to practical computing LaTeX Compiler L A TEX http://en.wikipedia.org/wiki/latex

More information

Using L A TEX. A numbered list is just that a collection of items sorted and labeled by number.

Using L A TEX. A numbered list is just that a collection of items sorted and labeled by number. Using L A TEX About these notes These notes give some starting tips on using L A TEX to typeset mathematical documents. To learn the system at all fully you ll need a proper L A TEX manual, but you can

More information

Latex Tutorial. CIS400 Senior Design 9/5/2013

Latex Tutorial. CIS400 Senior Design 9/5/2013 1 Latex Tutorial CIS400 Senior Design 9/5/2013 2 Outline Introducing TeX/LaTeX Benefits and potential difficulties Installation and use on Unix/Mac/Windows Compiling PDF documents from LaTeX Basic document

More information

STIPlotDigitizer. User s Manual

STIPlotDigitizer. User s Manual STIPlotDigitizer User s Manual Table of Contents What is STIPlotDigitizer?... 3 Installation Guide... 3 Initializing STIPlotDigitizer... 4 Project GroupBox... 4 Import Image GroupBox... 5 Exit Button...

More information

INSTALLING AND USING L A TEX

INSTALLING AND USING L A TEX INSTALLING AND USING L A TEX DAVID MEREDITH Contents 1. Installing and Running L A TEX with Microsoft Windows 2 1.1. Installing the compiler MikTeX 2 1.2. Installing the editor TeXtudio 2 1.3. Running

More information

Intro to LATEX I. Aaron Erlich POLS/CSSS 510, Why LATEX? Programming Document Structure Floats Tables Lists Math

Intro to LATEX I. Aaron Erlich POLS/CSSS 510, Why LATEX? Programming Document Structure Floats Tables Lists Math Intro to LATEX I 1 1 POLS/CSSS 510, 2012 Intro to LATEX I 1 / 32 Outline 1 Why L A TEX? 2 Programming 3 Document Structure 4 Floats 5 Tables 6 Lists 7 Math Intro to LATEX I 2 / 32 The Complaint This sucks

More information

Introduction to L A T E X

Introduction to L A T E X to L A T E X Ricky Patterson Big Library 21 Sep 2016 Ricky Patterson Intro to LAT E X 21 Sep 2016 1 / 18 Outline A Basic L A T E X Document \documentclass Packages Caveats Formatting Some L A T E X Examples

More information

Scientific Python: matplotlib

Scientific Python: matplotlib Scientific Python: matplotlib 17 July 2014 Introduction and Aims This exercise introduces the matplotlib module of Python. Matplotlib is a versatile plotting library that can be used to produce both quick

More information

INTRODUCTION TO MATLAB PLOTTING WITH MATLAB

INTRODUCTION TO MATLAB PLOTTING WITH MATLAB 1 INTRODUCTION TO MATLAB PLOTTING WITH MATLAB Plotting with MATLAB x-y plot Plotting with MATLAB MATLAB contains many powerful functions for easily creating plots of several different types. Command plot(x,y)

More information

Introduction to L A T E X

Introduction to L A T E X L A T E X R. M. Department of Mathematics University of Kentucky 6 October 2008 / L A T E X Outline T E X T E X was begun by Donald Knuth in 1977 because he did not like the appearance of his book The

More information

A LAT E X Tutorial. Evangelos Milios. March 15, 2004

A LAT E X Tutorial. Evangelos Milios. March 15, 2004 A LAT E X Tutorial Evangelos Milios March 15, 2004 What is LAT E X LAT E X is a typesetter. processor. It is not WYSIWYG. It is not a word Author specifies the structure of the document symbolically (in

More information

An Introduction to. Rado Ivanov CIS400 Senior Design Tutorial September 18, 2014

An Introduction to. Rado Ivanov CIS400 Senior Design Tutorial September 18, 2014 An Introduction to Rado Ivanov CIS400 Senior Design Tutorial September 18, 2014 Today's Outline Introducing TeX/LaTeX Benefits and potential difficulties Installation and use on Unix/Mac/Windows Compiling

More information

Functional METAPOST for L A TEX

Functional METAPOST for L A TEX Functional METAPOST for L A TEX Marco Kuhlmann 2001/11/19 Abstract Functional METAPOST (fmp) is a powerful frontend to the METAPOST language. This package adds basic fmp support to L A TEX, enabling users

More information

My Full-Length Title

My Full-Length Title My Full-Length Title X. Author1 1 Y. Author2 2 1 Department of Mathematics University of Author1 2 Department of Engineering University of Author2 Texas A&M University pre-reu program, 2012 Author1, Author2

More information

Not-So-Frequently Asked Questions for L A TEX

Not-So-Frequently Asked Questions for L A TEX Not-So-Frequently Asked Questions for L A TEX Miles 2010 This document addresses more esoteric issues in L A TEX that have nonetheless actually arisen with the author. We hope that somebody will find it

More information

Math 291: Lecture 2. Justin A James. Minnesota State University Moorhead web.mnstate.edu/jamesju/

Math 291: Lecture 2. Justin A James. Minnesota State University Moorhead web.mnstate.edu/jamesju/ Math 291: Lecture 2 Justin A James Minnesota State University Moorhead web.mnstate.edu/jamesju/ jamesju@mnstate.edu January 23, 2017 Justin A James (MSUM) Math 291: Lecture 2 January 23, 2017 1 / 19 1

More information

Using LaTex and BibTex to Write Academic Documents. Ligang He Department of Computer Science University of Warwick

Using LaTex and BibTex to Write Academic Documents. Ligang He Department of Computer Science University of Warwick Using LaTex and BibTex to Write Academic Documents Ligang He Department of Computer Science University of Warwick Introduction In LaTex, a markup language is used to describe document structure and format,

More information

The wkbeamer theme. Wouter Kager. November 1, /11

The wkbeamer theme. Wouter Kager. November 1, /11 1/11 The wkbeamer theme Wouter Kager November 1, 2009 2/11 Contents Introduction Installation Basic usage Title page Options Footline options Sidebar options Other options Color scheme The wkbeamer theme

More information

An Interactive Introduction to L A TEX

An Interactive Introduction to L A TEX An Interactive Introduction to L A TEX Part 1: The Basics Dr John D. Lees-Miller December 2, 2017 Why L A TEX? It makes beautiful documents Especially mathematics It was created by scientists, for scientists

More information

Effective Programming Practices for Economists

Effective Programming Practices for Economists Effective Programming Practices for Economists 4. A L A T E X primer Hans-Martin von Gaudecker Department of Economics, Universität Bonn The case for plain L A T E X Version control works best with simple

More information

Matlab Tutorial 1: Working with variables, arrays, and plotting

Matlab Tutorial 1: Working with variables, arrays, and plotting Matlab Tutorial 1: Working with variables, arrays, and plotting Setting up Matlab First of all, let's make sure we all have the same layout of the different windows in Matlab. Go to Home Layout Default.

More information

Math 235: Introduction to LaTeX

Math 235: Introduction to LaTeX Math 235: Introduction to LaTeX The LaTeX word processing system was built to do mathematical typesetting. It is different than word processors; in LaTeX you type in text and typesetting commands, then

More information

Become a L A TEX Guru

Become a L A TEX Guru Become a L A TEX Guru 1 Many thanks to Michele, who was my coteacher for this class for Splash 2009 1. Log in using the username sipb2 and the password hsspmonster 2. Once you are logged on, type sudo

More information

Producing graphs with MetaPost

Producing graphs with MetaPost 12 MAPS 31 Maarten Sneep Producing graphs with MetaPost multiple aligned graphs and error bars Keywords MetaPost, graphs, error-bars Abstract MetaPost is an interesting companion for generating figures

More information

Manual for Package pdfmarginpar

Manual for Package pdfmarginpar Manual for Package pdfmarginpar Version 0.92 Christian Feuersänger Institut für Numerische Simulation Universität Bonn, Germany August 5, 2011 Abstract pdfmarginpar provides the \pdfmarginpar command which

More information

Introduction to L A TEX for MCS-236

Introduction to L A TEX for MCS-236 Introduction to L A TEX for MCS-236 Max Hailperin, based on a version by Tom LoFaro September 14, 2011 1 Why L A TEX? L A TEX is a very strange document formatting system. Actually, it is a combination

More information

An Introduction to MATLAB II

An Introduction to MATLAB II Lab of COMP 319 An Introduction to MATLAB II Lab tutor : Gene Yu Zhao Mailbox: csyuzhao@comp.polyu.edu.hk or genexinvivian@gmail.com Lab 2: 16th Sep, 2013 1 Outline of Lab 2 Review of Lab 1 Matrix in Matlab

More information

Overview. Lecture 13: Graphics and Visualisation. Graphics & Visualisation 2D plotting. Graphics and visualisation of data in Matlab

Overview. Lecture 13: Graphics and Visualisation. Graphics & Visualisation 2D plotting. Graphics and visualisation of data in Matlab Overview Lecture 13: Graphics and Visualisation Graphics & Visualisation 2D plotting 1. Plots for one or multiple sets of data, logarithmic scale plots 2. Axis control & Annotation 3. Other forms of 2D

More information

How to L A TEX. George Wong, David Mykytyn. 6 October 2016

How to L A TEX. George Wong, David Mykytyn. 6 October 2016 How to L A TEX George Wong, David Mykytyn 6 October 2016 1 What is L A TEX? Used in textbooks, journal/conference articles, and lab reports! You provide the material and L A TEX renders according to typographical

More information

A Very Brief Introduction to L A T E X MAT 3535

A Very Brief Introduction to L A T E X MAT 3535 A Very Brief Introduction to L A T E X MAT 3535 Wm C Bauldry BauldryWC Spring Semester, 2006 Wm C Bauldry (BauldryWC) A Very Brief Introduction to LAT E X MAT 3535 Spring Semester, 2006 1 / 19 Topics 1

More information

An introduction. C.D. Emmery & M.M. van Zaanen. October 22, Tilburg University

An introduction. C.D. Emmery & M.M. van Zaanen. October 22, Tilburg University LATEX An introduction C.D. Emmery & M.M. van Zaanen Tilburg University October 22, 2013 What is L A TEX? System used to typeset documents. Typesetting: arranging all content in a document in order to achieve

More information

Assessments for CS students:

Assessments for CS students: Assessments for CS students: Two hours per week lectures, Tuesdays 2-4pm. Three in-semester assignments, with feedback de-coupled from assessment: Assignment 1 Generic paper Assignment 2 Literature review

More information

Word Tips (using Word but these work with Excel, PowerPoint, etc) Paul Davis Crosslake Communications

Word Tips (using Word but these work with Excel, PowerPoint, etc) Paul Davis Crosslake Communications Word Tips (using Word but these work with Excel, PowerPoint, etc) Paul Davis Crosslake Communications What tips are we going to discuss? First of all, HELP Fonts Tables Columns Pasting Images Mail Merge

More information

Learn how to [learn] LATEX

Learn how to [learn] LATEX Learn how to [learn] L A TEX November 19, 2010 This document is available at http://web.mit.edu/jgross/ Public/2010cluedump/Slideshow.pdf. Outline Installing L A TEX What is L A TEX? Getting Help Basic

More information

Paul Gartside. March 2, 2013

Paul Gartside. March 2, 2013 SIAM L A TEX Workshop: First Steps Paul Gartside March 2, 2013 1 Introduction Today you are going to take the first steps in learning how to create beautiful mathematical documents using L A TEX (or review

More information

The Honours Dissertation Class for L A TEX2e. Cara MacNish

The Honours Dissertation Class for L A TEX2e. Cara MacNish The Honours Dissertation Class for L A TEX2e Cara MacNish This report is submitted as partial fulfilment of the requirements for the Honours Programme of the School of Computer Science and Software Engineering,

More information

Class #15: Experiment Introduction to Matlab

Class #15: Experiment Introduction to Matlab Class #15: Experiment Introduction to Matlab Purpose: The objective of this experiment is to begin to use Matlab in our analysis of signals, circuits, etc. Background: Before doing this experiment, students

More information

LaTeX and Turing Machines. CS254 Chris Pollett Aug. 30, 2006.

LaTeX and Turing Machines. CS254 Chris Pollett Aug. 30, 2006. LaTeX and Turing Machines CS254 Chris Pollett Aug. 30, 2006. Outline LaTeX Single Tape Turing Machines What is LaTeX? LaTeX is a markup language which can be used to specify how to typeset a document.

More information

Formatting with LaTeX

Formatting with LaTeX Formatting with LaTeX Zuyuan Wang School of Mechanical Engineering Purdue University wang1707@purdue.edu June 23, 2016 Seminar @ SURF 2016 About the SURF GAs Formatting with LaTeX (02/35) 06/23/2016 Purdue

More information

A Tutorial on Matlab Ch. 3 Programming in Matlab

A Tutorial on Matlab Ch. 3 Programming in Matlab Department of Electrical Engineering University of Arkansas A Tutorial on Matlab Ch. 3 Programming in Matlab Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 Plotting M-file Scripts Functions Control Flows Exercises

More information

Matlab Tutorial. The value assigned to a variable can be checked by simply typing in the variable name:

Matlab Tutorial. The value assigned to a variable can be checked by simply typing in the variable name: 1 Matlab Tutorial 1- What is Matlab? Matlab is a powerful tool for almost any kind of mathematical application. It enables one to develop programs with a high degree of functionality. The user can write

More information

MATH36032 Problem Solving by Computer. Publishable Quality Graphics

MATH36032 Problem Solving by Computer. Publishable Quality Graphics MATH36032 Problem Solving by Computer Publishable Quality Graphics Which format of figures (images) do you know? Which format of figures (images) do you know? Raster formats: png, jpeg, tiff, gif, bmp,...

More information

Introduction to MCS 220 and L A TEX

Introduction to MCS 220 and L A TEX Introduction to MCS 220 and L A TEX Tom LoFaro August 28, 2009 1 Introduction to MCS 220 MCS 220, Introduction to Analysis, carries a WRITD (writing in the discipline) designation. What this means to you

More information

L A T E X FOSSEE. Department of Aerospace Engineering IIT Bombay. FOSSEE (IIT Bombay) LAT E X 1 / 58

L A T E X FOSSEE. Department of Aerospace Engineering IIT Bombay. FOSSEE (IIT Bombay) LAT E X 1 / 58 L A T E X FOSSEE Department of Aerospace Engineering IIT Bombay FOSSEE (IIT Bombay) LAT E X 1 / 58 Outline Introduction 1 Introduction 2 Adding Structure 3 Typesetting Text 4 Figures, Tables & Floats 5

More information

L A TEX: Eh? What is it, what isn t it, who cares? Andy Caird. LATEX: Eh? p.1/13

L A TEX: Eh? What is it, what isn t it, who cares? Andy Caird. LATEX: Eh? p.1/13 LATEX: Eh? p.1/13 L A TEX: Eh? What is it, what isn t it, who cares? Andy Caird acaird@umich.edu LATEX: Eh? p.2/13 L A TEX It is not a word-processor. LATEX: Eh? p.2/13 L A TEX It is not a word-processor.

More information

L A TEXInstallation and Introduction

L A TEXInstallation and Introduction L A TEXInstallation and Introduction Andrew McAllister Society of Physics Students September 21st, 2011 Andrew McAllister (SPS) LATEXIntro September 21st, 2011 1 / 22 What is L A TEX? L A TEXis a typesetting

More information

STAT/MATH 395 A - PROBABILITY II UW Winter Quarter Matlab Tutorial

STAT/MATH 395 A - PROBABILITY II UW Winter Quarter Matlab Tutorial STAT/MATH 395 A - PROBABILITY II UW Winter Quarter 2016 Néhémy Lim Matlab Tutorial 1 Introduction Matlab (standing for matrix laboratory) is a high-level programming language and interactive environment

More information

An Interactive Introduction to L A TEX. Part 1: The Basics. John Lees-Miller. writel A TEX

An Interactive Introduction to L A TEX. Part 1: The Basics. John Lees-Miller. writel A TEX An Interactive Introduction to L A TEX Part 1: The Basics John Lees-Miller writel A TEX Why L A TEX? I It makes beautiful documents I Especially mathematics I It was created by scientists, for scientists

More information

XYZ Mesh. Product. Gray Technical, LLC Copyright Gray Technical All Rights Reserved

XYZ Mesh. Product. Gray Technical, LLC  Copyright Gray Technical All Rights Reserved Product XYZ Mesh Company Copyright License Gray Technical, LLC http://www.graytechnical.com/ XYZ Mesh Copyright Copyright 2015-2017 Gray Technical All Rights Reserved SOFTWARE LICENSE SOFTWARE REPRODUCTION:

More information

Introduction to L A TEX

Introduction to L A TEX Introduction to L A TEX Henrik Thostrup Jensen September 29 th 2006 1 About What is L A TEX How does it work Exercises Fetch slides and work from them Not everyone works with same speed/focus First a topic

More information

THIS IS AN INTRODUCTION TO. LaTeX. Introduction to Latex. University of Minnesota, November 7, 2016

THIS IS AN INTRODUCTION TO. LaTeX. Introduction to Latex. University of Minnesota, November 7, 2016 THIS IS AN INTRODUCTION TO LaTeX Introduction to Latex Jimmy Broomfield University of Minnesota, November 7, 2016 1 / Jimmy Broomfield Introduction to LaTeX 1/22 22 Outline Introduction Installation Getting

More information

LaTeX. Information Literacy II EN(IL2) Course

LaTeX. Information Literacy II EN(IL2) Course LaTeX Information Literacy II EN(IL2) Course Previous Lecture Saving plots to file Customizing plots Bar and pie charts Today Introduction to Latex - Basic commands - Structure of the document - Mathematical

More information

Scientific Computing (G /G ) Homework 10 example

Scientific Computing (G /G ) Homework 10 example Homework 10 example When you use the ODE solvers in MATLAB and then write scripts to automatically produce the plots, you use several pieces of software tied neatly together by a common environment. Because

More information

A Short L A TEX Introduction

A Short L A TEX Introduction A Short L A TEX Introduction Dr Will Hossack School of Physics & Astronomy tele: 50-5261 Will.Hossack@ed.ac.uk February 2016 What is L A TEX L A TEX(being Layman s-tex) is a text-formatting mark-up language,

More information

Contents. Implementing the QR factorization The algebraic eigenvalue problem. Applied Linear Algebra in Geoscience Using MATLAB

Contents. Implementing the QR factorization The algebraic eigenvalue problem. Applied Linear Algebra in Geoscience Using MATLAB Applied Linear Algebra in Geoscience Using MATLAB Contents Getting Started Creating Arrays Mathematical Operations with Arrays Using Script Files and Managing Data Two-Dimensional Plots Programming in

More information

Pimp your thesis: a minimal introduction to L A T E X.

Pimp your thesis: a minimal introduction to L A T E X. 1 / 20 Pimp your thesis: a minimal introduction to L A T E X. Maarten Bransen IC/TC, U.S.S. Proton March 20, 2018 2 / 20 What is L A T E X? Most word processors you may be used to (i.e. Microsoft Word,

More information

1 Different Document Classes

1 Different Document Classes 1 Different Document Classes There are several different document classes that can format just about any type of document. This is the very first line of your L A TEX code. It will define what kind of

More information

The Cantor Handbook. Alexander Rieder

The Cantor Handbook. Alexander Rieder Alexander Rieder 2 Contents 1 Introduction 5 2 Using Cantor 6 2.1 Cantor features....................................... 6 2.2 The Cantor backends.................................... 7 2.3 The Cantor Workspace...................................

More information

Introduction to Latex. A workshop by Dr. Ala Eshmawi

Introduction to Latex. A workshop by Dr. Ala Eshmawi Introduction to Latex A workshop by Dr. Ala Eshmawi Introduction TeX is essentially a Markup Language (like HTML, XML and RTF) TeX written by Donald Knuth in 70 s A revolution in typesetting Latex is an

More information

Lecture 5 of AMS 200 LaTeX Typesetting, Writing and

Lecture 5 of AMS 200 LaTeX Typesetting, Writing and Lecture 5 of AMS 200 LaTeX Typesetting, Writing and Hongyun Wang hongwang@soe.ucsc.edu November 3, 2014 1 LaTeX Typesetting LaTeX is a computer program for typesetting journals, manuscripts, reports It

More information

M. R. C. van Dongen. ucc. LaTEX and Friends. Including External Pictures. Marc van Dongen.

M. R. C. van Dongen.  ucc. LaTEX and Friends. Including External Pictures. Marc van Dongen. Including http://csweb.ucc.ie/~dongen/laf/laf.html M. R. C. van Dongen ucc The figure environment creates a floating environment. Figure placement is controlled with an optional argument. Argument can

More information

A Brief Introduction to L A T E X

A Brief Introduction to L A T E X A Brief Introduction to L A T E X Matthew Hunt morfran@gmail.com Perl Mongers Wellington November 14, 2006 Matthew Hunt (Perl Monger) A Brief Introduction to LAT E X November 14, 2006 1 / 14 What is it,

More information

Outline. Installing LaTeX. Opening TeXShop. Intro to LaTeX. Intro to LaTeX interface Working with text Tabbing and tables Figures Math and equations

Outline. Installing LaTeX. Opening TeXShop. Intro to LaTeX. Intro to LaTeX interface Working with text Tabbing and tables Figures Math and equations Outline UCLA Department of Statistics Statistical Consulting Center interface Working with text Tabbing and tables Figures Math and equations April 23, 2009 Installation Installing LaTeX Opening TeXShop

More information

Tutorial 2. Modeling Periodic Flow and Heat Transfer

Tutorial 2. Modeling Periodic Flow and Heat Transfer Tutorial 2. Modeling Periodic Flow and Heat Transfer Introduction: Many industrial applications, such as steam generation in a boiler or air cooling in the coil of an air conditioner, can be modeled as

More information

Learning L A TEX. Patrick Lam

Learning L A TEX. Patrick Lam Learning L A TEX Patrick Lam setting up 1. download a TeX distribution (MiKTeX, MacTeX, etc.) 2. download an editor (Texmaker, WinEDT, XEmacs, etc.) 3. start a.tex file in editor 4. work only in the.tex

More information

Topic 0b Graphics for Science & Engineering

Topic 0b Graphics for Science & Engineering Course Instructor Dr. Raymond C. Rumpf Office: A 337 Phone: (915) 747 6958 E Mail: rcrumpf@utep.edu Topic 0b Graphics for Science & Engineering EE 4386/5301 Computational Methods in EE Outline What are

More information

Square cells: an array cooking lesson

Square cells: an array cooking lesson The PracTEX Journal TPJ 2005 No 02, 2005-04-15 Rev. 2005-03-25 Square cells: an array cooking lesson Will Robertson 1 Square cells in tabular Late last year, there was a question on the Mac OS X TEX mailing

More information

Creating Plots with Gnuplot. May 18, 2017

Creating Plots with Gnuplot. May 18, 2017 Creating Plots with Gnuplot May 18, 2017 What is Gnuplot Gnuplot is a freely available command-line based interactive plotting program. $ gnuplot G N U P L O T Version 4.6 patchlevel 0 last modified 2012-03

More information

Scientific Graphing in Excel 2013

Scientific Graphing in Excel 2013 Scientific Graphing in Excel 2013 When you start Excel, you will see the screen below. Various parts of the display are labelled in red, with arrows, to define the terms used in the remainder of this overview.

More information

PART 1 PROGRAMMING WITH MATHLAB

PART 1 PROGRAMMING WITH MATHLAB PART 1 PROGRAMMING WITH MATHLAB Presenter: Dr. Zalilah Sharer 2018 School of Chemical and Energy Engineering Universiti Teknologi Malaysia 23 September 2018 Programming with MATHLAB MATLAB Environment

More information

L A TEX Tutorial. 1 Introduction. 2 Running L A TEX. J. E. Rice. May 2010

L A TEX Tutorial. 1 Introduction. 2 Running L A TEX. J. E. Rice. May 2010 L A TEX Tutorial J. E. Rice May 2010 Abstract The purpose of this document is to provide a simple example of how to use L A TEX. Examples of tables, figures, citations, references and math are shown, and

More information

An Interactive Introduction to L A TEX. Part 3: Not Just Papers: Presentations & More. John Lees-Miller. writel A TEX

An Interactive Introduction to L A TEX. Part 3: Not Just Papers: Presentations & More. John Lees-Miller. writel A TEX An Interactive Introduction to L A TEX Part 3: Not Just Papers: Presentations & More John Lees-Miller writel A TEX L A TEX Recap I You write your document in plain text with commands that describe its

More information

VERY VERY SHORT GUIDE TO LATEX

VERY VERY SHORT GUIDE TO LATEX - a System VERY VERY SHORT GUIDE TO LATEX School of Mathematics September 2017 - a System Advantages... Disadvantages... The Basics THE BASIC IDEA A word processor allows the user to design the document

More information

Creating Tables and Figures with L A T E X

Creating Tables and Figures with L A T E X Creating and with L A T E X Ricky Patterson bit.ly/latex 5 Oct 2016 Ricky Patterson and in LAT E X 5 Oct 2016 1 / 23 Outline Introduction picture environment Importing Graphics Ricky Patterson and in LAT

More information

TEX Plotter { a program for creating 2D and 3D pictures A.S. Berdnikov and S.B. Turtia Institute for Analytical Instrumentation Rizskii pr. 26 198103 St.Petersburg Russia berd@ianin.spb.su, turtia@ianin.spb.su

More information

arxiv: v1 [cs.oh] 31 Jan 2018

arxiv: v1 [cs.oh] 31 Jan 2018 arxiv:1802.00689v1 [cs.oh] 31 Jan 2018 TikZ-FeynHand: Basic User Guide Max Dohse February 5, 2018 Written at Instituto de Física y Matemáticas (IFM-UMSNH), Universidad Michoacana de San Nicolás de Hidalgo,

More information

Basic statistical operations

Basic statistical operations COSC 6397 Big Data Analytics Fundamental Analytics Edgar Gabriel Spring 2014 Basic statistical operations Calculating minimum, maximum, mean, median, standard deviation Data typically multi-dimensional

More information

CS 189 L A TEX and Linux: Document Layout and Organization

CS 189 L A TEX and Linux: Document Layout and Organization CS 189 L A TEX and Linux: Document Layout and Organization (1) Robert S. Laramee Computer Science Department School of Physical Sciences Swansea University February 14, 2008 (1) Robert S. Laramee CS 189

More information

Dr. Iyad Jafar. Adapted from the publisher slides

Dr. Iyad Jafar. Adapted from the publisher slides Computer Applications Lab Lab 6 Plotting Chapter 5 Sections 1,2,3,8 Dr. Iyad Jafar Adapted from the publisher slides Outline xy Plotting Functions Subplots Special Plot Types Three-Dimensional Plotting

More information

This is the LYX Beamer Template

This is the LYX Beamer Template This is the LYX Beamer Template With Trivial Edits by Paul Johnson F. Author 1 S. Another 2 1 Department of Computer Science University of Somewhere 2 Department of Theoretical Philosophy University of

More information

ECE4703 B Term Laboratory Assignment 2 Floating Point Filters Using the TMS320C6713 DSK Project Code and Report Due at 3 pm 9-Nov-2017

ECE4703 B Term Laboratory Assignment 2 Floating Point Filters Using the TMS320C6713 DSK Project Code and Report Due at 3 pm 9-Nov-2017 ECE4703 B Term 2017 -- Laboratory Assignment 2 Floating Point Filters Using the TMS320C6713 DSK Project Code and Report Due at 3 pm 9-Nov-2017 The goals of this laboratory assignment are: to familiarize

More information

Use 6DOF solver to calculate motion of the moving body. Create TIFF files for graphic visualization of the solution.

Use 6DOF solver to calculate motion of the moving body. Create TIFF files for graphic visualization of the solution. Introduction The purpose of this tutorial is to provide guidelines and recommendations for setting up and solving a moving deforming mesh (MDM) case along with the six degree of freedom (6DOF) solver and

More information