Mercurial > hg > ltpda
diff m-toolbox/test/test_plotters.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/m-toolbox/test/test_plotters.m Wed Nov 23 19:22:13 2011 +0100 @@ -0,0 +1,100 @@ +mc; + +%% Single plots + +ts = ao(plist('tsfcn', 'randn(size(t))', 'fs', 10, 'nsecs', 10, 'yunits', 'V')); +fs = ts.psd(plist('scale', 'asd')); +xy = ao(1:10, 1:10, plist('yunits', 'm', 'xunits', 'V')); + +%% aoplotter + +ap = aoplotter(ts,fs,xy); +ap.singlePlots + +%% axisFontSize + +ap = aoplotter(ts,fs,xy, plist('axis fontsize', 8)); +ap.singlePlots; + +%% axis font weight + +ap = aoplotter(ts,fs,xy, plist('axis fontweight', 'light')); +ap.singlePlots; + +%% label font size + +ap = aoplotter(ts,fs,xy, plist('label fontsize', 8)); +ap.singlePlots; + + +%% axis font name + +ap = aoplotter(ts,fs,xy, plist('axis fontname', 'monaco')); +ap.singlePlots; + +%% axis linewidth + +ap = aoplotter(ts,fs,xy, plist('axis linewidth', 4)); +ap.singlePlots; + +%% grid linestyle + +ap = aoplotter(ts,fs,xy, plist('grid linestyle', ':')); +ap.singlePlots; + +%% minor grid linestyle + +ap = aoplotter(ts,fs,xy, plist('minor grid linestyle', '-')); +ap.singlePlots; + +%% show x grid + +ap = aoplotter(ts,fs,xy, plist('show x grid', false)); +ap.singlePlots; + +%% show x minor grid +ap = aoplotter(ts,fs,xy, plist('show x minor grid', false)); +ap.singlePlots; + +%% show y grid + +ap = aoplotter(ts,fs,xy, plist('show y grid', false)); +ap.singlePlots; + +%% show y minor grid +ap = aoplotter(ts,fs,xy, plist('show y minor grid', false)); +ap.singlePlots; + +%% linestyle +ap = aoplotter(ts,fs,xy, plist('linestyle', '--')); +ap.singlePlots; + +%% linewidth +ap = aoplotter(ts,fs,xy, plist('linewidth', 4)); +ap.singlePlots; + +%% markersize +ap = aoplotter(ts,fs,xy, plist('marker size', 14, 'marker', 'o')); +ap.singlePlots; + + +%% plotinfoOverride + +ts.setPlotinfo(plist('color', 'g')); +ap = aoplotter(ts,fs,xy, plist('plotinfo override', true)); +ap.singlePlots; + +%% Legend font size + +ap = aoplotter(ts,fs,xy, plist('legend fontsize', 8)); +ap.singlePlots; + +%% Legend location +ap = aoplotter(ts,fs,xy, plist('legend location', 'best', 'include legend', false)); +ap.singlePlots; + +%% Legend location +ts.setDescription('my nice ao'); +ap = aoplotter(ts,fs,xy, plist('include description', true)); +ap.singlePlots; +