Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
dynare
Commits
7b14bdaf
Commit
7b14bdaf
authored
12 years ago
by
Houtan Bastani
Browse files
Options
Downloads
Patches
Plain Diff
reporting: @series: use graph_* to precede graph-specific options
parent
7068bc4f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
matlab/reporting/@series/display.m
+8
-8
8 additions, 8 deletions
matlab/reporting/@series/display.m
matlab/reporting/@series/getLine.m
+14
-14
14 additions, 14 deletions
matlab/reporting/@series/getLine.m
matlab/reporting/@series/series.m
+4
-4
4 additions, 4 deletions
matlab/reporting/@series/series.m
with
26 additions
and
26 deletions
matlab/reporting/@series/display.m
+
8
−
8
View file @
7b14bdaf
...
...
@@ -50,22 +50,22 @@ disp(' ');
disp
([
'
''
'
o
.
line_width
'
''
'
]);
disp
(
' '
);
disp
([
name
'.marker = '
]);
disp
([
name
'.
graph_
marker = '
]);
disp
(
' '
);
disp
([
'
''
'
o
.
marker
'
''
'
]);
disp
([
'
''
'
o
.
graph_
marker
'
''
'
]);
disp
(
' '
);
disp
([
name
'.marker_edge_color = '
]);
disp
([
name
'.
graph_
marker_edge_color = '
]);
disp
(
' '
);
disp
([
'
''
'
o
.
marker_edge_color
'
''
'
]);
disp
([
'
''
'
o
.
graph_
marker_edge_color
'
''
'
]);
disp
(
' '
);
disp
([
name
'.marker_face_color = '
]);
disp
([
name
'.
graph_
marker_face_color = '
]);
disp
(
' '
);
disp
([
'
''
'
o
.
marker_face_color
'
''
'
]);
disp
([
'
''
'
o
.
graph_
marker_face_color
'
''
'
]);
disp
(
' '
);
disp
([
name
'.marker_size = '
]);
disp
([
name
'.
graph_
marker_size = '
]);
disp
(
' '
);
disp
([
'
''
'
o
.
marker_size
'
''
'
]);
disp
([
'
''
'
o
.
graph_
marker_size
'
''
'
]);
end
\ No newline at end of file
This diff is collapsed.
Click to expand it.
matlab/reporting/@series/getLine.m
+
14
−
14
View file @
7b14bdaf
...
...
@@ -41,21 +41,21 @@ assert(any(strcmp(o.line_style, valid_line_style)), ...
assert
(
isfloat
(
o
.
line_width
),
[
'@series.series: line_width must be a '
...
'positive number'
]);
% Marker
valid_marker
=
{
'+'
,
'o'
,
'*'
,
'.'
,
'x'
,
's'
,
'square'
,
'd'
,
'diamond'
,
...
%
Graph_
Marker
valid_
graph_
marker
=
{
'+'
,
'o'
,
'*'
,
'.'
,
'x'
,
's'
,
'square'
,
'd'
,
'diamond'
,
...
'^'
,
'v'
,
'>'
,
'<'
,
'p'
,
'pentagram'
,
'h'
,
'hexagram'
,
...
'none'
};
assert
(
isempty
(
o
.
marker
)
||
any
(
strcmp
(
o
.
marker
,
valid_marker
)),
...
[
'@series.series: marker must be one of '
strjoin
(
valid_marker
)]);
assert
(
isempty
(
o
.
graph_
marker
)
||
any
(
strcmp
(
o
.
graph_
marker
,
valid_
graph_
marker
)),
...
[
'@series.series:
graph_
marker must be one of '
strjoin
(
valid_
graph_
marker
)]);
assert
(
ischar
(
o
.
marker_edge_color
),
'@series.series: marker_edge_color must be a string'
);
assert
(
ischar
(
o
.
marker_face_color
),
'@series.series: marker_face_color must be a string'
);
assert
(
isfloat
(
o
.
marker_size
),
[
'@series.series: marker_size must be a '
...
assert
(
ischar
(
o
.
graph_
marker_edge_color
),
'@series.series:
graph_
marker_edge_color must be a string'
);
assert
(
ischar
(
o
.
graph_
marker_face_color
),
'@series.series:
graph_
marker_face_color must be a string'
);
assert
(
isfloat
(
o
.
graph_
marker_size
),
[
'@series.series:
graph_
marker_size must be a '
...
'positive number'
]);
% Marker & Line
assert
(
~
(
strcmp
(
o
.
line_style
,
'none'
)
&&
isempty
(
o
.
marker
)),
[
'@series.series: '
...
'you must provide at least one of line_style and marker'
]);
assert
(
~
(
strcmp
(
o
.
line_style
,
'none'
)
&&
isempty
(
o
.
graph_
marker
)),
[
'@series.series: '
...
'you must provide at least one of line_style and
graph_
marker'
]);
% Validate xrange
assert
(
isempty
(
xrange
)
||
isa
(
xrange
,
'dynDates'
));
...
...
@@ -74,11 +74,11 @@ opt = {opt{:}, 'Color', o.color};
opt
=
{
opt
{:},
'LineStyle'
,
o
.
line_style
};
opt
=
{
opt
{:},
'LineWidth'
,
o
.
line_width
};
if
~
isempty
(
o
.
marker
)
opt
=
{
opt
{:},
'Marker'
,
o
.
marker
};
opt
=
{
opt
{:},
'MarkerSize'
,
o
.
marker_size
};
opt
=
{
opt
{:},
'MarkerEdgeColor'
,
o
.
marker_edge_color
};
opt
=
{
opt
{:},
'MarkerFaceColor'
,
o
.
marker_face_color
};
if
~
isempty
(
o
.
graph_
marker
)
opt
=
{
opt
{:},
'Marker'
,
o
.
graph_
marker
};
opt
=
{
opt
{:},
'MarkerSize'
,
o
.
graph_
marker_size
};
opt
=
{
opt
{:},
'MarkerEdgeColor'
,
o
.
graph_
marker_edge_color
};
opt
=
{
opt
{:},
'MarkerFaceColor'
,
o
.
graph_
marker_face_color
};
end
line
(
opt
{:});
...
...
This diff is collapsed.
Click to expand it.
matlab/reporting/@series/series.m
+
4
−
4
View file @
7b14bdaf
...
...
@@ -39,10 +39,10 @@ o.color = 'k';
o
.
line_style
=
'-'
;
o
.
line_width
=
0.5
;
o
.
marker
=
''
;
o
.
marker_edge_color
=
'auto'
;
o
.
marker_face_color
=
'auto'
;
o
.
marker_size
=
6
;
o
.
graph_
marker
=
''
;
o
.
graph_
marker_edge_color
=
'auto'
;
o
.
graph_
marker_face_color
=
'auto'
;
o
.
graph_
marker_size
=
6
;
if
nargin
==
1
assert
(
isa
(
varargin
{
1
},
'series'
),[
'@series.series: with one arg you '
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment