Labels and Titles

You can add labels and titles to your plots by using the title tag inside the plot or the axis declarations. 

Example 1

You can copy this example into your document as-is.

<xyPlot name="myPlot">
  <title>Parabola</title>
  <axis dim="x" auto="fixed" min="-1" max="1">
    <title>Time</title>
  </axis>
  <axis dim="y">
    <title>Amplitude</title>
  </axis>
  <series name="mySeries" />
</xyPlot>

<script>
  local x,y
  local myPointer = myPlot.mySeries
  
  for x=-1,1,0.01 do
  y = -2*x*x
  myPointer:Add(x,y)
  end
</script>
 
plot-labels.jpg