Commit 1425596b authored by Jakob Gabriel's avatar Jakob Gabriel
Browse files

quantity.Discrete.plot: added xlim and ylim

parent 68d1c5a1
...@@ -1189,11 +1189,14 @@ classdef (InferiorClasses = {?quantity.Symbolic}) Discrete ... ...@@ -1189,11 +1189,14 @@ classdef (InferiorClasses = {?quantity.Symbolic}) Discrete ...
obj(rowIdx, columnIdx, figureIdx).domain(1).grid(:), ... obj(rowIdx, columnIdx, figureIdx).domain(1).grid(:), ...
obj(rowIdx, columnIdx, figureIdx).valueDiscrete, ... obj(rowIdx, columnIdx, figureIdx).valueDiscrete, ...
additionalPlotOptions{:}); additionalPlotOptions{:});
xlim(obj(rowIdx, columnIdx, figureIdx).domain(1).grid([1, end]));
elseif obj.nargin() == 2 elseif obj.nargin() == 2
misc.isurf(obj(rowIdx, columnIdx, figureIdx).domain(1).grid(:), ... misc.isurf(obj(rowIdx, columnIdx, figureIdx).domain(1).grid(:), ...
obj(rowIdx, columnIdx, figureIdx).domain(2).grid(:), ... obj(rowIdx, columnIdx, figureIdx).domain(2).grid(:), ...
obj(rowIdx, columnIdx, figureIdx).valueDiscrete, ... obj(rowIdx, columnIdx, figureIdx).valueDiscrete, ...
additionalPlotOptions{:}); additionalPlotOptions{:});
xlim(obj(rowIdx, columnIdx, figureIdx).domain(1).grid([1, end]));
ylim(obj(rowIdx, columnIdx, figureIdx).domain(2).grid([1, end]));
ylabel(labelHelper(2), 'Interpreter','latex'); ylabel(labelHelper(2), 'Interpreter','latex');
else else
error('number inputs not supported'); error('number inputs not supported');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment