Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dynare
reporting
Commits
b464eb12
Commit
b464eb12
authored
May 22, 2014
by
Houtan Bastani
Browse files
reporting: bug fix for graphHline
parent
8319399b
Changes
2
Hide whitespace changes
Inline
Side-by-side
@graph/writeGraphFile.m
View file @
b464eb12
...
...
@@ -145,6 +145,7 @@ if isempty(o.yrange)
else
fprintf
(
fid
,
'ymin=%f,\nymax=%f,\n'
,
o
.
yrange
(
1
),
o
.
yrange
(
2
));
end
fprintf
(
fid
,
'xmin = 1,\nxmax = %d,\n'
,
length
(
dd
));
if
o
.
showLegend
fprintf
(
fid
,
'legend style={'
);
...
...
@report_series/writeSeriesForGraph.m
View file @
b464eb12
...
...
@@ -86,11 +86,11 @@ if ~isempty(o.graphVline)
x
,
x
);
end
if
~
isempty
(
o
.
graphHline
)
fprintf
(
fid
,
'%%Horizontal Line\n\\begin{pgfonlayer}{background1}\n\\
draw
'
);
fprintf
(
fid
,
'%%Horizontal Line\n\\begin{pgfonlayer}{background1}\n\\
addplot
'
);
writeLineOptions
(
o
,
fid
);
fprintf
(
fid
,
[
'
(axis cs:
\\pgfkeysvalueof{/pgfplots/xmin},%f)
-- (axis
'
...
'
cs:
\\pgfkeysvalueof{/pgfplots/xmax},%f);\n\\end{pgfonlayer}\n'
],
...
o
.
graphHline
,
o
.
graphHline
);
fprintf
(
fid
,
[
'
coordinates {(
\\pgfkeysvalueof{/pgfplots/xmin},%f)'
...
'
(
\\pgfkeysvalueof{/pgfplots/xmax},%f)
}
;\n\\end{pgfonlayer}\n'
],
...
o
.
graphHline
,
o
.
graphHline
);
end
if
~
isempty
(
o
.
graphVline
)
||
~
isempty
(
o
.
graphHline
)
% return since the code below assumes that o.data exists
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment