ts_data_figureproperties
Figure properties
Contents
Properties:
NAME | DESCRIPTION | TYPE | |
title | Figure title | character string | |
bottomoffset | Offset of bottom plot from figure bottom (points) [0] | numeric | |
overlay | If/how to overlay plots: 0=no overlay -1=overlay with common scale | numeric | |
yscale | One of: 'default', 'linear', 'log', 'db' | character string | |
fontsize | Font size [10] | integer | |
xticks | Specify x ticks, empty uses default | numeric vector | |
xticklabels | Specify x tick labels, empty uses default | cell vector of strings | |
xlabel | x label, empty uses default | character string | |
plotasmatrix | Organize plots in a matrix (COHERENCY ONLY) | boolean | |
nSubplots | Number of subplots | integer | |
subplot | Subplot properties | ts_figureproperties_subplot vector |
Methods:
ts_figureproperties - Creator addtitle - Add a title to the plot (called by plot routines) calcplotpos - Calculate the position for a subplot
Examples
fp=ts_figureproperties
fp = title: '' bottomoffset: 0 overlay: 0 xticks: 0 elements xticklabels: 0 elements xlabel: '' yscale: 'default' fontsize: 10 plotasmatrix: 0 nSubplots: 1 subplot: ts_figureproperties_subplot object 1 grid: xy xmin: NaN xmax: NaN ymin: NaN ymax: NaN linetype: - marker: none yrange: NaN removegain: off demultiplex: 0
fp.nSubplots=5
fp = title: '' bottomoffset: 0 overlay: 0 xticks: 0 elements xticklabels: 0 elements xlabel: '' yscale: 'default' fontsize: 10 plotasmatrix: 0 nSubplots: 5 subplot: ts_figureproperties_subplot object 1 2 3 4 5 grid: xy xy xy xy xy xmin: NaN NaN NaN NaN NaN xmax: NaN NaN NaN NaN NaN ymin: NaN NaN NaN NaN NaN ymax: NaN NaN NaN NaN NaN linetype: - - - - - marker: none none none none none yrange: NaN NaN NaN NaN NaN removegain: off off off off off demultiplex: 0 0 0 0 0
fp.calcplotpos(fp.nSubplots,1)
ans = 0.1301 0.6473 0.3348 0.2590

fp.calcplotpos(fp.nSubplots,2)
ans = 0.5949 0.6473 0.3348 0.2590
fp.calcplotpos(fp.nSubplots,2,'allrows')
ans = 0.1301 0.5928 0.7996 0.1502