1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
|
# dataplot package
# Matthew Bertucci 2022/06/07 for v2.32
#include:xkeyval
#include:tikz
# loads plotmarks, plothandlers, and calc tikzlibraries
#include:datatool
\DTLplot{db list%special}{settings%keyvals}
\DTLplot[condition]{db list%special}{settings%keyvals}
#keyvals:\DTLplot
x=%<db key%>
y=%<db key%>
markcolors={%<color1,color2,...%>}
linecolors={%<color1,color2,...%>}
colors={%<color1,color2,...%>}
marks={%<mark1,mark2,...%>}
lines={%<linestyle1,linestyle2,...%>}
width=##L
height=##L
style=#both,lines,markers
axes=#both,x,y,none
box#true,false
xtics#true,false
ytics#true,false
xminortics#true,false
yminortics#true,false
xticdir=#in,out
yticdir=#in,out
ticdir=#in,out
bounds={%<min-x,min-y,max-x,max-y%>}
minx=%<decimal%>
miny=%<decimal%>
maxx=%<decimal%>
maxy=%<decimal%>
xticpoints={%<decimal1,decimal2,...%>}
xticgap=##L
yticpoints={%<decimal1,decimal2,...%>}
yticgap=##L
grid#true,false
xticlabels={%<text1,text2,...%>}
yticlabels={%<text1,text2,...%>}
xlabel=%<text%>
ylabel=%<text%>
legend=#none,north,northeast,east,southeast,south,southwest,west,northwest
legendlabels={%<text1,text2,...%>}
#endkeyvals
\DTLplotatbegintikz
\DTLplotatendtikz
\dtlplothandlermark{pgf code}
\DTLaddtoplotlegend{marker}{line style}{text}
\DTLplotwidth#*
\DTLplotheight#*
\DTLticklength#*
\DTLminorticklength#*
\DTLticklabeloffset#*
\DTLmintickgap#*
\DTLlegendxoffset#*
\DTLlegendyoffset#*
\DTLplotmarks#*
\DTLplotmarkcolors#*
\DTLplotlines#*
\DTLplotlinecolors#*
\DTLXAxisStyle#*
\DTLYAxisStyle#*
\DTLmajorgridstyle#*
\DTLminorgridstyle#*
\DTLformatlegend{legend}#*
\DTLplotstream{db%special}{x key}{y key}
\DTLplotstream[condition]{db%special}{x key}{y key}
# not in main documentation
\DTLboxfalse#*
\DTLboxtrue#*
\DTLgridfalse#*
\DTLgridtrue#*
\DTLmaxX#*
\DTLmaxY#*
\DTLminminortickgap#*
\DTLminX#*
\DTLminY#*
\DTLshowlinesfalse#*
\DTLshowlinestrue#*
\DTLshowmarkersfalse#*
\DTLshowmarkerstrue#*
\DTLxaxisfalse#*
\DTLxaxistrue#*
\DTLxminorticsfalse#*
\DTLxminorticstrue#*
\DTLxticsfalse#*
\DTLxticsinfalse#*
\DTLxticsintrue#*
\DTLxticstrue#*
\DTLyaxisfalse#*
\DTLyaxistrue#*
\DTLyminorticsfalse#*
\DTLyminorticstrue#*
\DTLyticsfalse#*
\DTLyticsinfalse#*
\DTLyticsintrue#*
\DTLyticstrue#*
\ifDTLbox#*
\ifDTLgrid#*
\ifDTLshowlines#*
\ifDTLshowmarkers#*
\ifDTLxaxis#*
\ifDTLxminortics#*
\ifDTLxtics#*
\ifDTLxticsin#*
\ifDTLyaxis#*
\ifDTLyminortics#*
\ifDTLytics#*
\ifDTLyticsin#*
\theDTLplotroundXvar#*
\theDTLplotroundYvar#*
|