Mercurial > hg > octave-nkf
comparison scripts/plot/text.m @ 11272:521f2bb7c443
text.m: Ensure text position property is set after units property.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Thu, 18 Nov 2010 20:14:52 -0500 |
parents | be55736a0783 |
children | 74e285bb61c9 |
comparison
equal
deleted
inserted
replaced
11271:da314c58f0b9 | 11272:521f2bb7c443 |
---|---|
74 tmp = zeros (n, 1); | 74 tmp = zeros (n, 1); |
75 if (n == 1) | 75 if (n == 1) |
76 label = label{1}; | 76 label = label{1}; |
77 for i = 1:nx | 77 for i = 1:nx |
78 tmp(i) = __go_text__ (ca, "string", label, | 78 tmp(i) = __go_text__ (ca, "string", label, |
79 "position", pos(i,:), | 79 varargin{:}, |
80 varargin{:}); | 80 "position", pos(i,:)); |
81 endfor | 81 endfor |
82 __request_drawnow__ (); | 82 __request_drawnow__ (); |
83 elseif (n == nx) | 83 elseif (n == nx) |
84 for i = 1:nx | 84 for i = 1:nx |
85 tmp(i) = __go_text__ (ca, "string", label{i}, | 85 tmp(i) = __go_text__ (ca, "string", label{i}, |
86 "position", pos(i,:), | 86 varargin{:}, |
87 varargin{:}); | 87 "position", pos(i,:)); |
88 endfor | 88 endfor |
89 __request_drawnow__ (); | 89 __request_drawnow__ (); |
90 else | 90 else |
91 error ("text: dimension mismatch for coordinates and label"); | 91 error ("text: dimension mismatch for coordinates and label"); |
92 endif | 92 endif |