Skip to content

Commit

Permalink
fixed mfield draw structure and >2 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross Hatton committed Oct 19, 2018
1 parent 99aed50 commit db8b1b1
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions ProgramFiles/sys_draw_fcns/mfield_draw.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
% Get the number of dimensions
n_dim = numel(s.grid.eval);

%Ensure that there are figure axes to plot into, and create new windows
%for those axes if necessary
plot_info = ensure_figure_axes(plot_info);


if n_dim==2

%Vector field list
Expand All @@ -19,9 +24,6 @@
% Get the number of dimensions
% n_dim = numel(s.grid.eval);

%Ensure that there are figure axes to plot into, and create new windows
%for those axes if necessary
plot_info = ensure_figure_axes(plot_info);

%%%%%%%
% Get the vector field and interpolate into the specified grid
Expand Down Expand Up @@ -226,7 +228,13 @@

end
else
text(0.1,0.5,'Illustration of metric field not implemented for >2 shape variables')
for i = 1:length(plot_info.axes)

%call up the relevant axis
ax = plot_info.axes(i);
text(0.1,0.5,'Illustration of metric field not implemented for >2 shape variables','Parent',ax)

end
end

end

0 comments on commit db8b1b1

Please sign in to comment.