CPlotView:SetCaption


The SetCaption method saves a text caption to a plot series. The caption is the text that appears above the plot.

Syntax

CPlotView:SetCaption( sText )

CPlotView:SetCaption( sText, nSeries )

    sText is the caption string to save.

    nSeries specifies the index of the plot series, starting at 1. If not provided, the current plot series is used.

Example

The following script saves a new caption to plot series 2:

 

P = CPlotView:new()

-- create a new CPlotView

 

-- do something with the plot

P:SetCaption( "My plot", 2 )

-- save a caption to series 2

Related Topics

GetCaption

SetDescription

CPlotView class