4 Reference 
pgfplot(filename, unit, imagesize, ...);
filename  String. Name of output file to produce. The following file suffixes can be used:

unit  String. Unit used for all dimensions, one from ``bp'', ``cm'', ``mm'', or ``in'' (``inch'' and ``inches'' are equivalent). 
imagesize  Vector of two numeric values. Image width and height in the unit specified above. 
An evennumbered list of further arguments may follow the list
of required arguments. These optional arguments are grouped as
key/value pairs, the keys are texts.
The following keys can be used:
axis.x  Cell array list containing the
configuration for the primary x axis on the bottom side. Recommended. See Axis configuration cell array list below. 
axis.y  Cell array list containing the
configuration for the primary y axis on the left side. Recommended. 
axis.x2  Cell array list containing the
configuration for the secondary x axis on the top side. Optional. 
axis.y2  Cell array list containing the
configuration for the secondary y axis on the right
side. Optional. 
lw.pt lw.bp lw.mm lw.cm lw.in 
Numerical value, base line width in either pt, bp, mm, cm or in. The keys are mutually exclusive. Recommended once. 
box.color  Text, the box color as LaTeX color
definition. Optional, default is ``black''. 
grid.color  Text, the grid line color as LaTeX color
definition. Optional, default is ``black''. 
tics.color  Text, the tics color as LaTeX color
definition. Optional, default is ``black''. 
tics.size  Numerical value, size of tics markers as
multiple of the line width. Optional, default is 3. 
decimal.separator  String containing dot or comma. Optional, default depends on unit ("." for in, "," for cm). 
plot  Cell array list for one item to plot. At least one required, multiple allowed. See Plot configuration cell array list below. 
latex  Cell array list containing configuration for LaTeX. Optional. See LaTeX configuration cell list below. 
The cell array list to configure an axis consists of key/value pairs. Keys are texts, the following keys are allowed:
lin log 
Vector of left/bottom and right/top
value, for linear or logarithmic axis configuration. For a
logarithmic scale the vector contains the integer exponentes of
powers of ten, i.e. ``[3 3]'' for a logarithmic axis in the range
10^{3}...10^{3}. Required, ``lin'' and ``log'' are mutually exclusive. 
grid  Integer, number of grid intervals. Optional, default 0 indicates no grid. A grid is drawn for the primary x and y axis only. 
tics  Integer, number of tics intervals. Optional, default 0 indicates no tics. 
label  Text, the axis label. Optional. 
unit.text  Text, the unit. Optional. 
unit.omit  Integer, number of tics values to omit to
free space for printing the unit. Optional, ignored if no unit defined. 
tics.distance  Numerical value, distance between drawing
area and tics texts. Optional, default 1bp. 
label.distance  Numerical value, distance between drawing
area and label center. Optional, default 2bp. 
border.distance  Numerical value, distance between drawing
area and image border. Optional, default 3bp. 
The cell array list to configure a plot consists of key/value pairs. Keys in bold are used to set the plot type, exactly one of them must be used before any other key. Keys are texts, the following keys are allowed:
function  Function handle, configures an y=f(x) plot or cell array list of two function handles (function and derived function). 
parametric  Cell array list of two function handles
f_{x}(t) and
f_{y}(t), configures a parametric
plot. A cell array list of 4 function handles also includes df_{x}/dt and df_{y}/dt. 
pp  Piecewise polynomial structure. 
points  Configures a data point plot. The value can be one of the following:
NA values are allowed in column 3 to specify dy/dx for some points only. 
pointsparametric  Matrix of two or four columns, configures
a parametric points plot. Each line contains data for one point:
x, y and optionally dx/dt and
dy/dt. NA values are allowed in column 3 and four to specify dx/dt and dy/dt for some points only. When using NA, both third and fourth value must be NA. For a closed curve, first and last point must be equal. 
xspline.open.approximated xspline.closed.approximated xspline.open.interpolated xspline.closed.interpolated 
One of the following:
You can abbreviate xspline.open.approximated to xspline.open or just xspline. You can abbreviate xspline.closed.approximated to xspline.closed. For closed Xsplines do not repeat the first point as last point. 
range  2 elements vector, start and end of plot
range for function plots or parametric plots. Optional for function plots (entire x axis is used if range is omitted), required for parametric plots. 
intervals  Integer, number of intervals for
plotting. Recommended, default 10. 
xspline.intervals  Numeric, number of Bezier segments to draw for each Xspline segment. Optional, default 4. 
at  Vector containing positions (x values for function, t values for parametric) which should be merged into the arguments vector created for the intervals. Optional. 
breakpoints  Vector containing positions (x
values for function, t values for parametric) with
discontinuities in the derivative (break points, corner
points). For function and parametric the positions are specified directly. For points and pointsparametric the value is a boolean vector containing a value for each data point, true for break points. Optional. 
axis  Text or cell array of texts defining the axes to use: ``x1'', ``x2'', ``y1'', ``y2''. Optional, default is ``x1'' and ``y1''. 
style  Text, plot style, one from ``curve'',
``polyline'', or ``markers''. Optional, default ``curve''. Ignored for pp and xspline, which are always drawn as curves. 
lw  Numerical value, multiples of the base
line width for the plot. Optional, default 1. 
color  Text, a LaTeX color definition. Optional, default ``black''. 
marker.type  Text containing the marker type, one from ``+'' (cross), ``x'' (diagonal cross), ``*'' (asterisk), ``c'' (circle), ``s'' (square), or ``d'' (diamond, rotated square). Optional, default ``*''. 
splinetype  Spline type to draw curves, text. Optional, default "notaknot". One from:

label  Cell array list, describes one label to add for the plot. See Label configuration cell array below. Optional, allowed multiple times. 
polyline  Cell array list, description for one polyline to insert. See Polyline configuration cell array list below. Optional, allowed multiple times. 
As the keywords ``function'', ``parametric'', ``points'', ``pointsparametric'', ``xspline.open.approximated'', ``xspline.closed.approximated'', ``xspline.open.interpolated'', and ``xspline.closed.interpolated'' configure the plot type, they are mutually exclusive. The plot type entry must be the first in the list.
The cell array list to configure a label consists of key/value pairs. Keys are texts, the following keys are allowed:
text  Text, the label text. Required. 
position  Vector containing x and y position. Required. 
box  Boolean flag, draw box around label. Optional, default no. 
valign  Text, vertial alignment, one from: "centered" (default), "base", "bottom", or "top". Optional. 
halign  Text, horizontal alignment, one from: "centered" (default), "left", or "right". Optional. 
color  Text, a LaTeX color definition. Optional, default is black. 
points  A 2 column matrix containing the points, one per line. Required. 
color  Text, a LaTeX color definition. Optional, default is black. 
lw  Numerical value, Line width in multiples of the grid line width. Optional, default is the plot line width. 
The LaTeX configuration cell array list is used only when producing a standalone *.tex file.
fontsize  Integer number, document class font size. Optional. 
fontsetup  Matrix of strings, typically "\usepackage" lines to set up fonts. Optional. 
packages  Matrix of strings, "\usepackage" lines for further setup. Optional. 
preamble  Matrix of strings, further setup commands. Optional. 