Home > FA-MVEMD > 3D > TIMF_plot.m

TIMF_plot

PURPOSE ^

default plot attributes

SYNOPSIS ^

function TIMF_plot(signal,Colour,nslice,imf,name1,name2)

DESCRIPTION ^

 default plot attributes

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function TIMF_plot(signal,Colour,nslice,imf,name1,name2)
0002 
0003 % default plot attributes
0004 set(groot,'defaultaxesfontname','times');
0005 set(groot,'defaultaxesfontsize',12);
0006 set(groot,'defaulttextInterpreter','latex');
0007 set(groot,'defaultLineLineWidth',2);
0008 
0009 [Nx, Ny, Nz] = size(signal);
0010 
0011 figure
0012     xslice = linspace(1,Nx,nslice);
0013     yslice = linspace(1,Ny,nslice);
0014     zslice = linspace(1,Nz,nslice);
0015     volume = slice(signal,xslice,yslice,zslice);
0016     axis equal;
0017     xlabel('x');
0018     ylabel('y');
0019     zlabel('z');
0020     switch(name1)
0021         case 'IMF'
0022             title(sprintf('%s %d %s',name1,imf,name2));
0023         case 'Signal'
0024             title(sprintf('%s %s',name1,name2));
0025         case 'Residue'
0026             title(sprintf('%s %s',name1,name2));
0027     end
0028     colorbar;
0029 %     caxis([c(1) c(2)]);
0030     set(volume,'EdgeColor','none',...
0031         'FaceColor','interp',...
0032         'FaceAlpha','interp')
0033     alpha('color')
0034     view(30,30);
0035     alphamap('rampup')
0036     alphamap('decrease',.1)
0037     colormap(Colour);

Generated on Thu 18-Apr-2019 12:22:00 by m2html © 2005