3%> instances of 2-dimensional Heatmap [
Subplot visualizations](@ref
Subplot)
4%> based on the relevant MATLAB
5%> intrinsic functions.<br>
8%> See the documentation of the constructor of the
class
12%> [pm.vis.Cascade](@ref
Cascade)<br>
13%> [pm.vis.Subplot](@ref
Subplot)<br>
14%> [pm.vis.Triplex](@ref
Triplex)<br>
15%> [pm.vis.Figure](@ref
Figure)<br>
16%> [pm.vis.Plot](@ref
Plot)<br>
17%> [pm.vis.Tile](@ref
Tile)<br>
22%> \JoshuaOsborne, May 21 2024, 6:05 PM, University of Texas at Arlington<br>
23%> \FatemehBagheri, May 20 2024, 1:25 PM, NASA Goddard Space Flight Center (GSFC), Washington, D.C.<br>
24%> \AmirShahmoradi, May 16 2016, 9:03 AM, Oden Institute
for Computational Engineering and Sciences (ICES), UT Austin<br>
27 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
29 methods(Access =
public)
31 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
34 %> Construct and
return an
object of
class [pm.vis.SubplotHeatmap](@ref
SubplotHeatmap).<br>
37 %> This is the constructor of the
class [pm.vis.SubplotHeatmap](@ref
SubplotHeatmap).<br>
39 %> \param[in] dfref : See the documentation of the corresponding input
40 %> argument of the superclass [pm.vis.Subplot](@ref
Subplot).<br>
41 %> \param[in] varargin : Any ``property, value`` pair of the parent
object.<br>
42 %> If the property is a ``
struct()``, then its value must be given as a cell array,
43 %> with consecutive elements representing the
struct ``property-
name, property-value`` pairs.<br>
44 %> Note that all of these
property-value pairs can be also directly set via the
45 %> parent
object attributes, before calling the ``make()`` method.<br>
48 %> ``self`` : The output
object of
class [pm.vis.SubplotHeatmap](@ref
SubplotHeatmap).<br>
54 %> s = pm.vis.SubplotHeatmap(dfref, varargin);
59 %> See also the documentation of the attributes
60 %> of the superclass [pm.vis.Subplot](@ref
Subplot).<br>
70 %> \JoshuaOsborne, May 21 2024, 6:05 PM, University of Texas at Arlington<br>
71 %> \FatemehBagheri, May 20 2024, 1:25 PM, NASA Goddard Space Flight Center (GSFC), Washington, D.C.<br>
72 %> \AmirShahmoradi, May 16 2016, 9:03 AM, Oden Institute
for Computational Engineering and Sciences (ICES), UT Austin<br>
77 self = self@pm.vis.Subplot(
"Heatmap", dfref, varargin{:});
80 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
83 %> Reset the heatmap colormap limits to the user-specified limits ``lb`` and ``ub``.<br>
84 %> If either is empty or missing, keep the existing limit
for the corresponding empty limit.<br>
85 %> If both are empty or missing, symmetrize the existing limits.<br>
86 %> The specified input values will be used to set the ``ColorLimits``
87 %> component of the Heatmap
object as ``ColorLimits = [lb, ub]``.<br>
88 %> If both input values are missing, the current colormap
89 %> range of the Heatmap subplots will be symmetrized.<br>
92 %> This method has side-effects by manipulating
93 %> the existing attributes of the parent
object.<br>
95 %> \param[in] self : The **implicitly-passed** input argument representing the parent
object of the method.<br>
96 %> \param[in] lb : The input MATLAB
object that can be either:<br>
98 %> <li> a scalar of type
double representing the lower bound of the Heatmap colormap range.<br>
99 %> <li> a vector of type
double of size ``2`` representing the lower
100 %> and upper bounds of the Heatmap colormap range.<br>
102 %> (**optional**. If missing, the current value will remain intact.)
104 %> \param[in] ub : The input MATLAB scalar
double representing the upper bound of the Heatmap colormap limits.<br>
105 %> Its value is completely ignored
if the input ``lb`` argument is a vector of size ``2``.<br>
106 %> (**optional**. If missing, the current value will remain intact.)
108 %> \interface{setColorLim}
111 %> h = pm.vis.Subplot.make();
112 %> h = pm.vis.Subplot.make([]);
113 %> h = pm.vis.Subplot.make([], []);
114 %> h = pm.vis.Subplot.make(lb, []);
115 %> h = pm.vis.Subplot.make([], ub);
116 %> h = pm.vis.Subplot.make(lb, ub);
120 %> \example{setColorLim}
126 %> h.setColorLim() % symmetrize the current range.
127 %> h.setColorLim(1) % set the lower bound to 1.
128 %> h.setColorLim([], 1) % set the upper bound to 1.
129 %> h.setColorLim(1, 2) % set the lower and upper bounds to 1 and 2.
130 %> h.setColorLim([1, 2]) % set the lower and upper bounds to 1 and 2.
134 %> \example{setColorLim}
139 %> \final{setColorLim}
142 %> \JoshuaOsborne, May 21 2024, 5:54 PM, University of Texas at Arlington<br>
143 %> \FatemehBagheri, May 20 2024, 1:25 PM, NASA Goddard Space Flight Center (GSFC), Washington, D.C.<br>
144 %> \AmirShahmoradi, May 16 2016, 9:03 AM, Oden Institute
for Computational Engineering and Sciences (ICES), UT Austin<br>
145 function setColorLim(self, lb, ub)
147 if isfield(self.fout,
"heatmap") && isprop(self.fout.heatmap,
"ColorLimits")
153 elseif 1 < length(lb)
157 if isempty(lb) && isempty(ub)
158 % symmetrize the existing range.
159 maxval = max(
abs(self.fout.heatmap.ColorLimits));
160 limits = [-maxval, maxval];
162 limits = self.fout.heatmap.ColorLimits;
170 self.fout.heatmap.ColorLimits = limits;
173 + "There is no component ``fout.heatmap.ColorLimits`` for this
object to adjust the limits." + newline ...
179 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
183 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function name(in vendor)
Return the MPI library name as used in naming the ParaMonte MATLAB shared library directories.
function abs(in path, in style)
Return the Get absolute canonical path of a file or folder.
This is the abstract class for generating instances of objects that contain the specifications of a c...
This is the base class for generating instances of objects that contain the specifications of various...
This is the SubplotHeatmap class for generating instances of 2-dimensional Heatmap Subplot visualizat...
function SubplotHeatmap(in dfref, in varargin)
Construct and return an object of class pm.vis.SubplotHeatmap.
function setColorLim(in self, in lb, in ub)
Reset the heatmap colormap limits to the user-specified limits lb and ub. If either is empty or miss...
This is the abstract class for generating instances of axes with various types of plots from one or m...
This is the abstract class for generating instances of objects that contain the specifications of var...
This is the base class for generating instances of figures containing a square symmetric tiling of su...