setplot3.m

来自「CLAWPACK is a software package designed 」· M 代码 · 共 49 行

M
49
字号
%  setplot3.m%  called in plotclaw3 before plotting to set various parameterssetviews  % set viewpoints so that view(xSlice), for example, can be used.setopengl;PlotType = 1;                % type of plot to produce:			     % 1 = pcolor on slices (with optional contours)			     % 2 = contour lines in 3d on transparent slices			     % 3 = Schlieren plot on slices			     % 4 = scatter plot of q vs. r			     % 5 = isosurface plot (at given levels)mq = 1;                      % which component of q to plotUserVariable = 0;            % set to 1 to specify a user-defined variableUserVariableFile = ' ';      % name of m-file mapping data to qMappedGrid = 0;              % set to 1 if mapc2p.m exists for nonuniform gridMaxFrames = 1000;            % max number of frames to loop overMaxLevels = 6;               % max number of AMR levelsPlotData =  [1 1 1 0 0 0];       % Data on refinement level k is plotted only			         % if k'th component is nonzeroPlotGrid =  [0 0 0 0 0 0];       % Plot grid lines on each level?PlotGridEdges =  [1 0 0 0 0 0];  % Plot edges of patches of each grid at                                 % this level on slices?PlotCubeEdges = [0 0 0 0 0 0];   % Plot edges of cube of refinement patch at                                 % this level?% ContourValues is a vector of contour lines that can be used with% PlotType = 1,2,3.   Empty ==> no contour lines drawn  ContourValues = .1:.1:.9;% The next three parameters are vectors of x,y,z coordinates of 2d slices% to be displayed for PlotType = 1,2,3.   Empty ==> no slices in that direction.  xSliceCoords = 0.6;  ySliceCoords = 0.6;  zSliceCoords = 0.425;  IsosurfValues    =  [];     % Plot surfaces at q = surfValue(i).  IsosurfAlphas    =  [0.5];     % Transparency of each surface                                          % (0=clear; 1=opaque)                                          % NOTE: Your system must be able to                                          % use the OpenGL Renderer.  IsosurfColors    = 'w';

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?