Changeset 651 for trunk/src/plot_field.m
- Timestamp:
- Jun 25, 2013, 12:48:10 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plot_field.m
r644 r651 353 353 354 354 %% set the colors of the successive plots (designed to produce rgb for the three components of color images) 355 ColorOrder=[1 0 0;0 0.50;0 0 1;0 0.75 0.75;0.75 0 0.75;0.75 0.75 0;0.25 0.25 0.25];356 set(h axes,'ColorOrder',ColorOrder)355 ColorOrder=[1 0 0;0 1 0;0 0 1;0 0.75 0.75;0.75 0 0.75;0.75 0.75 0;0.25 0.25 0.25]; 356 set(hfig,'DefaultAxesColorOrder',ColorOrder) 357 357 % if isfield(Coordinates,'NextPlot') 358 358 % set(haxes,'NextPlot',Coordinates.NextPlot) … … 459 459 eval(plotstr) %execute plot (instruction plotstr) 460 460 %%% 461 set(haxes,'tag',tag) 461 set(haxes,'tag',tag)% restitute the axes tag (removed by the command plot) 462 set(haxes,'ColorOrder',ColorOrder)% restitute the plot color order (to get red green blue for histograms or cuts of color images) 462 463 grid(haxes, 'on') 463 464 hxlabel=xlabel(xtitle(1:end-2));% xlabel (removes ', ' at the end)
Note: See TracChangeset
for help on using the changeset viewer.