Home > atmlab > randomize > iaaft > plot_3d_surrogate.m

plot_3d_surrogate

PURPOSE ^

SYNOPSIS ^

function plot_3D_surrogate(xaxis, yaxis, zaxis, surrogate_field, title_str)

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

plot_3d_surrogate.m

SOURCE CODE ^

0001 function plot_3D_surrogate(xaxis, yaxis, zaxis, surrogate_field, title_str)
0002 
0003 figure
0004 [no_values_y, no_values_x,no_values_z] = size(surrogate_field);
0005 
0006 xscale = 1;
0007 yscale = 1;
0008 zscale = 1;
0009 
0010 width1  = 0.7*no_values_x*xscale/(no_values_x*xscale+no_values_z*zscale);
0011 height1 = 0.7*no_values_y*yscale/(no_values_y*yscale+no_values_z*zscale);
0012 left1   = 0.1;
0013 bottom1 = 0.9-height1;
0014 
0015 width2  = 0.7*no_values_z*zscale/(no_values_x*xscale+no_values_z*zscale);
0016 height2 = 0.7*no_values_y*yscale/(no_values_y*yscale+no_values_z*zscale);
0017 left2   = 0.1+0.1+width1;
0018 bottom2 = 0.9-height1;
0019 
0020 width3  = width1;
0021 height3 = 0.7*no_values_z*zscale/(no_values_y*yscale+no_values_z*zscale);
0022 left3   = 0.1;
0023 bottom3 = 0.1;
0024 
0025 % top view
0026 subplot('Position',[left1 bottom1 width1 height1])
0027 imagesc(xaxis, yaxis, sum(surrogate_field,3)) 
0028 set(gca,'YDir','normal')
0029 title(title_str)
0030 axis tight
0031 
0032 % side view
0033 subplot('Position',[left2 bottom2 width2 height2])
0034 field_2d = squeeze(sum(surrogate_field,2));
0035 imagesc(zaxis, yaxis, field_2d) 
0036 set(gca,'YAxisLocation','right')
0037 set(gca,'YDir','normal')
0038 axis tight
0039 
0040 % front view
0041 subplot('Position',[left3 bottom3 width3 height3])
0042 imagesc(xaxis, zaxis, squeeze(sum(surrogate_field,1))') 
0043 set(gca,'YDir','normal')
0044 axis tight

Generated on Mon 15-Sep-2014 13:31:28 by m2html © 2005