1 %>@ingroup datasettools
3 %>@brief Draws
"all curves in dataset"
7 %> @param flag_color_per_row=0 If 0, will use one color inside the COLORS global per
class.
8 %> If 1, will use one color inside the COLORS global per data row
9 function data =
data_draw(data, flag_pieces, flag_color_per_row)
10 if nargin < 2 || isempty(flag_pieces)
13 if nargin < 3 || isempty(flag_color_per_row)
14 flag_color_per_row = 0;
26 for i = 1:length(pieces)
28 %eh = zeros(1, size(pieces(i).X, 2));
30 args = {
'LineWidth',
scaled(1)};
31 if ~flag_color_per_row
34 h_temp = f_plot(data.fea_x, pieces(i).X
', args{:});
36 h_temp = cell2mat(h_temp); % plot_curve_pieces returns a cell, which it shouldn't. However, it is too late to change
this,
for compatibility.
39 llabels{end+1} = data.classlabels{i};
function find_color(in i)
function plot_curve_pieces(in x, in y, in varargin)
function data_split_classes(in data, in hierarchy)
function data_draw(in data, in flag_pieces, in flag_color_per_row)