|
Last change
on this file since 20498 was 20498, checked in by Mathieu Morlighem, 10 years ago |
|
CHG: done with Archive/19101-20495
|
|
File size:
826 bytes
|
| Rev | Line | |
|---|
| [20498] | 1 | Index: ../trunk-jpl/src/m/plot/quiver_colorbar.m
|
|---|
| 2 | ===================================================================
|
|---|
| 3 | --- ../trunk-jpl/src/m/plot/quiver_colorbar.m (revision 20378)
|
|---|
| 4 | +++ ../trunk-jpl/src/m/plot/quiver_colorbar.m (revision 20379)
|
|---|
| 5 | @@ -6,13 +6,16 @@
|
|---|
| 6 |
|
|---|
| 7 | if strcmpi(getfieldvalue(options,'colorbar','on'),'on'),
|
|---|
| 8 |
|
|---|
| 9 | + %Create colorbar
|
|---|
| 10 | + hcb=colorbar('peer',gca,'location','EastOutside');
|
|---|
| 11 | + caxis([1 quivers.numcolors+1]);
|
|---|
| 12 | +
|
|---|
| 13 | %build ticks
|
|---|
| 14 | - hcb=colorbar('peer',gca,'location','EastOutside');
|
|---|
| 15 | ticklabel=cell(1,length(quivers.levels));
|
|---|
| 16 | for i=1:length(quivers.levels),
|
|---|
| 17 | ticklabel{i}=num2str(round_ice(quivers.levels(i),3));
|
|---|
| 18 | end
|
|---|
| 19 | - tickpos=1/(quivers.numcolors+1)*[1:quivers.numcolors+1];
|
|---|
| 20 | + tickpos=1:quivers.numcolors+1;
|
|---|
| 21 |
|
|---|
| 22 | %remove ticks if to many have been created
|
|---|
| 23 | proportion=round(length(quivers.levels)/4);
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.