NCCOOS Trac Projects: Top | Web | Platforms | Processing | Viz | Sprints | Sandbox | (Wind)

root/gliderproc/trunk/MATLAB/plots/ctdplotx.m

Revision 495 (checked in by cbc, 11 years ago)

Initial import of Stark code.

Line 
1 % CTDplotX  plot CTD parameters vs depth
2 % =========================================================================
3 % CTDplotX  Version 1.0 18-May-1999
4 %
5 % Usage:
6 %   CTDplotX
7 %
8 % Description:
9 %   This Matlab script plots temperature, salinity, and density versus depth
10 %   on the same figure by having floating x-axes below the plot.
11 %
12 % Input:
13 %   n/a
14 %
15 % Output:
16 %   n/a
17 %
18 % Called by:
19 %   n/a
20 %
21 % Calls:
22 %   floatAxisX.m
23 %
24 % Author:
25 %   Blair Greenan
26 %   Bedford Institute of Oceanography
27 %   18-May-1999
28 %   Matlab 5.2.1
29 %   greenanb@mar.dfo-mpo.gc.ca
30 % =========================================================================
31 %
32
33 load ctd_stn72.mat
34 figure;
35 % plot temperature vs pressure
36 hl1=plot(temp,pres,'b-');
37 % assign current axis handle to variable for later reference if needed
38 ax1=gca;
39 % set properties of the axes
40 set(ax1,'XMinorTick','on','ydir','reverse', 'box','on','xcolor',get(hl1,'color'))
41 % add title to plot
42 htitle = title(['Parizeau 96012  CTD Station ', num2str(Station(1)),'  ', datestr(now)]);
43 xlabel('Temperature (solid)')
44 ylabel('Depth (m)')
45
46 % add 1st floating axis for the second parameter (salinity) plotted
47 [hl2,ax2,ax3] = floatAxisX(psal,pres,'r:','Salinity (dotted)',[32 34 0 100]);
48 set(ax2,'ydir','reverse')
49
50
51 % add 2nd floating axis for the third parameter (density) plotted
52 [hl3,ax4,ax5] = floatAxisX(sigp,pres,'k--','Density (dashed)');
53 set(ax4,'ydir','reverse')
Note: See TracBrowser for help on using the browser.