PLOTTABNAME$
The PlotTabName$ function requires one parameter (the tab number) and returns the name of the Plot window (which is shown on the tab at the top of the window) for the specified tab number. The first tab is tab 1. If 0 is supplied, the function will return the name of the plot that is foremost. If the specified plot table does not exist, PlotTabName$ will return an empty string.
Example:
p=1
P$=PlotTabName$(p) "P$ is a string variable that holds the name of the first Plot window "
See also: LookupTabName$