Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dseries
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
dseries
Commits
e2d2f85e
Verified
Commit
e2d2f85e
authored
3 months ago
by
Stéphane Adjemian
Browse files
Options
Downloads
Patches
Plain Diff
Fix issue
#59
.
Dates were only shown on the x-axis for yearly data.
parent
c4668b5a
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#11338
passed
3 months ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/@dseries/plot.m
+4
-18
4 additions, 18 deletions
src/@dseries/plot.m
with
4 additions
and
18 deletions
src/@dseries/plot.m
+
4
−
18
View file @
e2d2f85e
...
...
@@ -55,23 +55,9 @@ switch ndseries
hh
=
plot
(
o
.
data
);
end
axis
tight
;
id
=
get
(
gca
,
'XTick'
);
if
isequal
(
id
(
1
),
0
)
dates
=
strings
([
o
.
dates
(
1
)
-
1
,
o
.
dates
(
id
(
2
:
end
))]);
skip_relabeling
=
0
;
else
ID
=
id
(
find
(
isint
(
id
)));
if
any
(
ID
<
o
.
dates
(
1
)
.
double
)
||
any
(
ID
>
o
.
dates
(
end
)
.
double
)
skip_relabeling
=
1
;
%hold on was used so that axis tight did not restrict current xlim to dseries used.
else
set
(
gca
,
'XTick'
,
ID
);
dates
=
strings
(
o
.
dates
(
ID
));
skip_relabeling
=
0
;
end
end
if
~
skip_relabeling
set
(
gca
,
'XTickLabel'
,
dates
);
end
id
=
get
(
gca
,
'XTick'
);
Dates
=
strings
(
o
.
dates
(
id
));
set
(
gca
,
'XTickLabel'
,
Dates
);
case
2
[
o0
,
o1
]
=
align
(
o
,
varargin
{
1
});
if
isequal
(
nvariables
,
1
)
...
...
@@ -89,4 +75,4 @@ end
if
nargout
h
=
hh
;
end
\ No newline at end of file
end
This diff is collapsed.
Click to expand it.
Stéphane Adjemian
@stepan-a
mentioned in commit
c7fb0bd5
·
3 months ago
mentioned in commit
c7fb0bd5
mentioned in commit c7fb0bd5177ecf5c7df00bd2d821a576b4e43127
Toggle commit list
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