Revision 495
(checked in by cbc, 12 years ago)
|
Initial import of Stark code.
|
Line | |
---|
1 |
function y2label(string) |
---|
2 |
|
---|
3 |
%Y2LABEL Y-axis label for second y-axis created using PLOTYY |
---|
4 |
% Y2LABEL('text') adds text beside the Y2-axis on the current axis. |
---|
5 |
% |
---|
6 |
% See also PLOTYY |
---|
7 |
% |
---|
8 |
% Calls: none |
---|
9 |
|
---|
10 |
% Written by Samson H. Lee (shl0@lehigh.edu) |
---|
11 |
|
---|
12 |
if isempty(get(gca,'UserData')), |
---|
13 |
error('There is no Y2 axis.'); |
---|
14 |
else, |
---|
15 |
ax2 = get(gca,'UserData'); |
---|
16 |
hy2l = get(ax2,'UserData'); |
---|
17 |
set(hy2l,'String',string); |
---|
18 |
end; |
---|