Example: dental hygienist

Package PGFPLOTS manual - SourceForge

manual for PackagePgfplotsTableComponent ofpgfplots, Version Christian Feuers (2021/05/08)AbstractThis Package reads tab-separated numerical tables from input and generates code for pretty-printedLATEX-tabulars. It rounds to the desired precision and prints it in different number formatting Introduction22 Loading and Displaying Text Table Input Format.. Selecting Columns and their Appearance Styles.. Configuring Row Appearance: Styles.. Configuring Single Cell Appearance: Styles.. Customizing and Getting the Tabular Code.. Defining Column Types fortabular.. Number Formatting Options.. Changing Number Format Display Styles..323 From Input Data To Output Tables: Data Loading the table.

# Convergence results # fictional source generated 2008 level,dof,error1,error2,info,{grad(log(dof),log(error2))},quot(error1) 1,9,2.50000000e-01,7.57858283e-01,48,0,0

Tags:

  Quot

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Transcription of Package PGFPLOTS manual - SourceForge

1 manual for PackagePgfplotsTableComponent ofpgfplots, Version Christian Feuers (2021/05/08)AbstractThis Package reads tab-separated numerical tables from input and generates code for pretty-printedLATEX-tabulars. It rounds to the desired precision and prints it in different number formatting Introduction22 Loading and Displaying Text Table Input Format.. Selecting Columns and their Appearance Styles.. Configuring Row Appearance: Styles.. Configuring Single Cell Appearance: Styles.. Customizing and Getting the Tabular Code.. Defining Column Types fortabular.. Number Formatting Options.. Changing Number Format Display Styles..323 From Input Data To Output Tables: Data Loading the table.

2 Typesetting Cell Content.. Preprocessing Cell Content.. Postprocessing Cell Content..454 Generating Data in New Tables or Creating New Tables From Scratch.. Creating New Columns From Existing Ones.. Predefined Column Generation Methods.. Acquiring Data Somewhere.. Mathematical Operations..525 Writing (Modified) Tables To Disk.. Miscellaneous Keys.. A summary of how to define and use styles and keys.. Plain TEX and ConTEXt support.. Basic Level Table Access and Modification.. Repeating Things: Loops..66 Index6811 IntroductionPgfplotsTableis a lightweight sub- Package ofpgfplotswhich employs its table input methods and thenumber formatting techniques to convert tab-separated tables into input is a text file containing space-separated rows, possibly starting with column names.

3 Its outputis a LATEX tabular1which contains selected columns of the text table, rounded to the desired precision,printed in the desired number format (fixed point, integer, scientific etc.). The output is LATEX code, andthat code is finally typeset by other words,PgfplotsTableis nothing but a more-or-less smart code generator which spits outsomething like\begin{tabular}..\end{tabular}. Use it if you d like to customize row or column depen-dent styles or if you have numerical data for which you want to have automatically formatted is used with\usepackage{pgfplotstable}% recommended:%\usepackage{booktabs}%\usep ackage{array}%\usepackage{colortbl}and requirespgfplotsandpgf \pgfplotstableset{ key-value-options }The user interface of this Package is based on key-value-options.

4 They determine what to display, howto format and what to value pairs can be set in two ways:1. As default settings for the complete document (or maybe a part of the document), using\pgfplotstableset{ options }. For example, the document s preamble may contain\pgfplotstableset{fixed zerofill,precision=3}to configure a precision of3digits after the period, including zeros to get exactly3digits for allfixed point As option which affects just a single table. This is provided as optional argument to the respectivetable typesetting command, for example\pgfplotstabletypeset[ options ]{ file }.Both ways are shown in the examples ofpgfkeysis useful for a deeper insight into this Package , as/.style,/.append styleetc.

5 Are specific topgfkeys. Please refer to thepgfmanual [2, Section pgfkeys ] or the shorterintroduction [3] to learn more aboutpgfkeys. Otherwise, simply skip over to the examples provided inthis will find key prefixes/ PGFPLOTS /table/and/pgf/number format/. These prefixes can be skippedif they are used inPgfplotsTable; they belong to the default key path Loading and Displaying Text Table Input FormatPgfplotsTableworks with plain text file tables in which entries ( cells ) are separated by a separationcharacter. The initial separation character is white space which means at least one space or tab (seeoptioncol sepbelow). Those tables can have a header line which contains column names and most othercolumns typically contain numerical following listing is used often throughout this see the remarks in for plain TEX and # Convergence results# fictional source, generated 2008level doferror1error2 infograd(log(dof),log(error2)) quot (error1) 4716384 4865536 +009262144 +00101048576 +00 Lines starting with % or # are considered to be comment lines and are ignored.

6 \pgfplotstabletypeset[ optional arguments ]{ file nameor\macroorinline table }Loads (or acquires) a table and typesets it using the current configuration of number formats and case the first argument is a file name, the table will be loaded from disk. If it is an already loadedtable (see\pgfplotstablereador\pgfplotstablene w), it will be used. Otherwise, if it is inline tabledata, this data will be parsed just as if it was found in a file (see\pgfplotstableread).ab5,000 1056,000 1057,000 1059,000 106\pgfplotstabletypeset[sci zerofill]{a b5000 1000000}leveldoferror1error2info grad(log(dof),log(error2)) quot (error1) 10 10 10 , 10 10 222 , 10 10 246 , 10 10 340 ,536 10 10 348 10 10 333 10 10 42 \pgfplotstabletypeset{ }The configuration can be customized with optional arguments.

7 Configuration can be done for thecomplete table or for particular columns (or rows).levelDofe1e2info e2e(n)1e(n 1)114 10 1+ 216 10 1+ 10 1+ 10 1+ 024 10 2+ 096 10 2+ 384 10 3+ 536 10 3+ 144 10 3+ 1 048 576 10 4+ \pgfplotstableset{% global config, for example in the preamble% these columns/<colname>/.style={<options>} things define a style% which applies to <colname> {int detect,column type=r,column name=\textsc{Dof}},columns/error1/.style ={sci,sci zerofill,sci sep align,precision=1,sci superscript,column name=$e_1$,},columns/error2/.style={sci, sci zerofill,sci sep align,precision=2,sci 10e,column name=$e_2$,},columns/{grad(log(dof),log( error2))}/.}

8 Style={string replace={0}{}, % erase '0'column name={$\nabla e_2$},dec sep align,},columns/{ quot (error1)}/.style={s tring replace={0}{}, % erase '0'column name={$\frac{e_1^{(n)}}{e_1^{(n-1)}}$}}, empty cells with={--}, % replace empty cells with '--'every head row/.style={before row=\toprule,after row=\midrule},every last row/.style={after row=\bottomrule}}\pgfplotstabletypeset[ % local config, applies only for this table1000 sep={\,},columns/info/.style={fixed,fixe d zerofill,precision=1,showpos,column type=r,}]{ }All of these options are explained in all detail in the following may also use an input format similar to the tabular 10 10 10 351, 10 464, 10 4716,384 10 5865,536 10 59 10 610 10 7\pgfplotstabletypeset[col sep=&,row sep=\\,sci zerofill]{level & dof & error \\1 &4 & \\2 &16 & \\3 &64 & \\4 &256 & \\5 &1024 & \\6 &4096 & \\7 &16384 & \\8 &65536 & \\9 &262144 & \\10 &1048576 & \\}Technical note: every opened file will be protocolled into your logfile.

9 \pgfplotstabletypesetfile[ optional arguments ]{ file name }Loads the table file name and typesets it. As , this command is an alias to\pgfplotstabletypeset, that means the first argument can be either a file name or an already loadedtable.\pgfplotstableread{ file name }{ \macro }\pgfplotstableread{ inline table }{ \macro }Loads a table into the TEX macro \macro . This macro will store the table as internal structure andcan be used multiple 10 10 10 31, 10 44, 10 416, 10 565,536 10 10 10 , 10 24, 10 216, 10 365,536 10 10 10 4\pgfplotstableread{ }\loadedtable\pgfplotstabletypeset[colum ns={dof,error1}]\loadedtable\hspace{2cm} \pgfplotstabletypeset[columns={dof,error 2}]\loadedtableThe first argument can be a file name as in the example here.

10 It is also possible to provide the tabledata directly:% Alternative: inline table data:\pgfplotstableread{level doferror1 error2 info grad(log(dof),log(error2)) quot (error1) 451024 464096 4716384 4865536 +009262144 +00101048576 +00}\loadedtable% can be used as above:\pgfplotstabletypeset[columns={dof ,error1}]\loadedtable\hspace{2cm}\pgfplo tstabletypeset[columns={dof,error2}]\loa dedtableIt is checked automatically whether the first argument contains inline data or a file check whether the first argument is inline data or a file name works as follows: ifformat=auto, thefirst argument is considered to be a file name unless it contains therow sepcharacter (seerow sep).


Related search queries