ts_data_figureproperties
Data figure properties, a subclass of ts_figureproperties
Contents
Description
This subclass adds time series plot-specific properties
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 -2=overlay, each autoscaled dely=overlay, each autoscaled and offset by dely of full 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 | |
Time series specific | |||
---|---|---|---|
decimtype | 'smart' or 'regular' | character string | |
smartdecim | Plot up to X points | integer | |
regdecim | Plot every X points | integer |
Methods:
ts_data_figureproperties - Creator addtitle - Add a title to the plot (called by plot routines) calcplotpos - Calculate the position for a subplot
Examples
fp=ts_data_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 decimtype: 'smart' smartdecim: 10000 regdecim: 16
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 decimtype: 'smart' smartdecim: 10000 regdecim: 16
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