ParaMonte MATLAB 3.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation.
SubplotEllipse.m
Go to the documentation of this file.
1%> \brief
2%> This is the SubplotEllipse class for generating
3%> instances of 2-dimensional Ellipse [Subplot visualizations](@ref Subplot)
4%> based on the relevant MATLAB intrinsic functions.<br>
5%>
6%> \note
7%> See the documentation of the constructor of the class
8%> [pm.vis.SubplotEllipse](@ref SubplotEllipse::SubplotEllipse) for example usage.<br>
9%>
10%> \note
11%> See the documentation of the attributes
12%> of the superclass [pm.vis.SubplotEllipse3](@ref SubplotEllipse3).<br>
13%>
14%> \see
15%> [pm.vis.Cascade](@ref Cascade)<br>
16%> [pm.vis.Subplot](@ref Subplot)<br>
17%> [pm.vis.Figure](@ref Figure)<br>
18%> [pm.vis.Corner](@ref Corner)<br>
19%> [pm.vis.Plot](@ref Plot)<br>
20%> [pm.vis.Tile](@ref Tile)<br>
21%>
22%> \final
23%>
24%> \author
25%> \JoshuaOsborne, May 21 2024, 6:05 PM, University of Texas at Arlington<br>
26%> \FatemehBagheri, May 20 2024, 1:25 PM, NASA Goddard Space Flight Center (GSFC), Washington, D.C.<br>
27%> \AmirShahmoradi, May 16 2016, 9:03 AM, Oden Institute for Computational Engineering and Sciences (ICES), UT Austin<br>
28classdef SubplotEllipse < pm.vis.SubplotEllipse3
29
30 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
31
32 methods(Access = public)
33
34 %> \brief
35 %> Construct and return an object of class [pm.vis.SubplotEllipse](@ref SubplotEllipse).<br>
36 %>
37 %> \details
38 %> In the following documentation,
39 %> <ol>
40 %> <li> The variable ``ndim`` represents the number of ellipsoids in the input data.<br>
41 %> The value of ``ndim`` is inferred from the shapes of the input ``gramian`` and
42 %> ``center`` arguments as ``max([2, size(gramian, 1), size(center, 1)])``.<br>
43 %>
44 %> <li> The variable ``nell`` represents the number of ellipsoids in the input data.<br>
45 %> The value of ``nell`` is inferred from the shapes of the input ``gramian``, ``center``,
46 %> and ``cval`` arguments as ``max([size(gramian, 3), size(center, 2), size(cval, 2)])``.<br>
47 %> If the above expression yields zero, then ``nell`` is set to ``75``.<br>
48 %>
49 %> <li> The variable ``npnt`` represents the number of points used in visualizing each ellipsoid.<br>
50 %> The value of ``npnt`` is inferred from the shapes of the input argument ``cval`` as ``size(cval, 1)``.<br>
51 %> If the above expression yields zero or one, then ``npnt`` is set to ``100``.<br>
52 %>
53 %> </ol>
54 %>
55 %> \note
56 %> This class is merely a simple extension of the superclass [pm.vis.SubplotEllipse3](@ref SubplotEllipse3).<br>
57 %> The only difference is that all ``zval`` values for all points of all coordinates are set to default values.<br>
58 %> The only tangible action this class performs is to adjust the camera view to a 2D axis.<br>
59 %>
60 %> \param[in] gramian : See the corresponding input argument to the constructor of the parent object.<br>
61 %> \param[in] center : See the corresponding input argument to the constructor of the parent object.<br>
62 %> \param[in] cval : See the corresponding input argument to the constructor of the parent object.<br>
63 %> \param[in] varargin : Any ``property, value`` pair of the object.<br>
64 %> If the property is a ``struct()``, then its value must be given as a cell array,
65 %> with consecutive elements representing the struct ``property-name, property-value`` pairs.<br>
66 %> Note that all of these property-value pairs can be also directly set via the
67 %> parent object attributes, before calling the ``make()`` method.<br>
68 %>
69 %> \return
70 %> ``self`` : The output object of class [pm.vis.SubplotEllipse](@ref SubplotEllipse).<br>
71 %>
72 %> \interface{SubplotEllipse}
73 %> \code{.m}
74 %>
75 %> s = pm.vis.SubplotEllipse();
76 %> s = pm.vis.SubplotEllipse(gramian);
77 %> s = pm.vis.SubplotEllipse(gramian, center);
78 %> s = pm.vis.SubplotEllipse(gramian, center, cval);
79 %> s = pm.vis.SubplotEllipse(gramian, center, cval, varargin);
80 %>
81 %> \endcode
82 %>
83 %> \note
84 %> See also the documentation of the attributes
85 %> of the superclass [pm.vis.SubplotEllipse3](@ref SubplotEllipse3).<br>
86 %>
87 %> \example{SubplotEllipse}
88 %> \include{lineno} example/vis/SubplotEllipse/main.m
89 %> \vis{SubplotEllipse}
90 %> <br>\image html example/vis/SubplotEllipse/SubplotEllipse.1.png width=700
91 %>
92 %> \final{SubplotEllipse}
93 %>
94 %> \author
95 %> \JoshuaOsborne, May 21 2024, 10:21 AM, University of Texas at Arlington<br>
96 %> \FatemehBagheri, May 20 2024, 1:25 PM, NASA Goddard Space Flight Center (GSFC), Washington, D.C.<br>
97 %> \AmirShahmoradi, May 16 2016, 9:03 AM, Oden Institute for Computational Engineering and Sciences (ICES), UT Austin<br>
98 function self = SubplotEllipse(gramian, center, cval, varargin)
99
100 %%%% Define the missing optional values as empty with the right rank.
102 if nargin < 3
103 cval = zeros(0, 0);
104 end
105 if nargin < 2
106 center = zeros(0, 0);
107 end
108 if nargin < 1
109 gramian = zeros(0, 0, 0);
110 end
111 self = self@pm.vis.SubplotEllipse3(gramian, center, [], cval, varargin{:})
112
113 end
114 end
115
116 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
117
118 methods(Access = public)
119
120 %> \brief
121 %> Generate a plot from the selected dimensions
122 %> of the input ellipsoid data to the object constructor.<br>
123 %>
124 %> \param[inout] self : The input/output parent object of class [pm.vis.SubplotEllipse](@ref SubplotEllipse)
125 %> which is **implicitly** passed to this dynamic method (not by the user).<br>
126 %> \param[in] varargin : Any ``property, value`` pair of the parent object.<br>
127 %> If the property is a ``struct()``, then its value must be given as a cell array,
128 %> with consecutive elements representing the struct ``property-name, property-value`` pairs.<br>
129 %> Note that all of these property-value pairs can be also directly set via the
130 %> parent object attributes, before calling the ``make()`` method.<br>
131 %>
132 %> \interface{make}
133 %> \code{.m}
134 %> \endcode
135 %>
136 %> pm.vis.SubplotEllipse.make(varargin);
137 %>
138 %> \endcode
139 %>
140 %> \example{make}
141 %> \include{lineno} example/vis/SubplotEllipse/main.m
142 %> \vis{make}
143 %> <br>\image html example/vis/SubplotEllipse/SubplotEllipse.1.png width=700
144 %>
145 %> \final{make}
146 %>
147 %> \note
148 %> This method is pure, except for the changes in ``fout`` component.<br>
149 %>
150 %> \author
151 %> \JoshuaOsborne, May 21 2024, 10:23 AM, University of Texas at Arlington<br>
152 %> \FatemehBagheri, May 20 2024, 1:25 PM, NASA Goddard Space Flight Center (GSFC), Washington, D.C.<br>
153 %> \AmirShahmoradi, May 16 2016, 9:03 AM, Oden Institute for Computational Engineering and Sciences (ICES), UT Austin<br>
154 function make(self, varargin)
155
156 make@pm.vis.SubplotEllipse3(self, varargin{:});
157
158 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
159 %%%% RULE 0: No component of ``self`` is allowed to appear to the left of assignment operator, except ``fout``.
160 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
161
162 view(2);
163
164 end
165
166 end
167
168 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
169
170end
function name(in vendor)
Return the MPI library name as used in naming the ParaMonte MATLAB shared libraries.
This is the abstract class for generating instances of objects that contain the specifications of a c...
Definition: Cascade.m:32
This is the base class for generating instances of figures containing a symmetric square grid or corn...
Definition: Corner.m:19
This is the abstract class for generating instances of objects that contain the specifications of var...
Definition: Figure.m:27
This is the base class for generating instances of objects that contain the specifications of various...
Definition: Plot.m:29
This is the SubplotEllipse3 class for generating instances of 3-dimensional Ellipse Subplot visualiza...
This is the SubplotEllipse class for generating instances of 2-dimensional Ellipse Subplot visualizat...
function SubplotEllipse(in gramian, in center, in cval, in varargin)
Construct and return an object of class pm.vis.SubplotEllipse.
function make(in self, in varargin)
Generate a plot from the selected dimensions of the input ellipsoid data to the object constructor.
This is the abstract class for generating instances of axes with various types of plots from one or m...
Definition: Subplot.m:188
This is the abstract class for generating instances of objects that contain the specifications of var...
Definition: Tile.m:9
function which(in vendor)
Return the a MATLAB string containing the path to the first mpiexec executable binary found in system...