Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TSG QC
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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
US191
TSG QC
Commits
3a7dd49b
Commit
3a7dd49b
authored
17 years ago
by
Yves Gouriou
Browse files
Options
Downloads
Patches
Plain Diff
Importation initiale de la nouvelle version Y. Gouriou
parent
046eb1ee
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
22
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tsg_util/zoomAdaptiveDateTicks.m
+43
-0
43 additions, 0 deletions
tsg_util/zoomAdaptiveDateTicks.m
tsgqc_GUI.m
+756
-0
756 additions, 0 deletions
tsgqc_GUI.m
with
799 additions
and
0 deletions
tsg_util/zoomAdaptiveDateTicks.m
0 → 100644
+
43
−
0
View file @
3a7dd49b
function
zoomAdaptiveDateTicks
(
varargin
)
% ZOOMADAPTIVEDATETICKS - Make date ticks adapt to zooming
%
% zoomAdaptiveDateTicks('on')
% Turns on the automatic adaptation of date ticks
% to user zooming for the current figure window
%
% zoomAdaptiveDateTicks('off')
% Turns off the automatic adaptation of date ticks
% to user zooming for the current figure window
%
% zoomAdaptiveDateTicks('demo')
% Opens a demo figure window to play with
if
(
nargin
>
0
)
switch
varargin
{
1
}
case
'demo'
% Create demo values
dates
=
floor
(
now
)
-
linspace
(
1169
,
0
,
15000
)
'
;
values
=
randn
(
15000
,
1
);
% Show data with date ticks
figure
plot
(
dates
,
values
)
datetick
(
'x'
)
zoomAdaptiveDateTicks
(
'on'
)
case
'on'
% Define a post zoom callback
set
(
zoom
(
gcf
),
'ActionPostCallback'
,
@
adaptiveDateTicks
);
case
'off'
% Delete the post zoom callback
set
(
zoom
(
gcf
),
'ActionPostCallback'
,
''
);
otherwise
figure
(
gcf
)
end
end
function
adaptiveDateTicks
(
figureHandle
,
eventObjectHandle
)
% Resetting x axis to automatic tick mark generation
set
(
eventObjectHandle
.
Axes
,
'XTickMode'
,
'auto'
)
% using automaticallly generate date ticks
datetick
(
eventObjectHandle
.
Axes
,
'x'
,
'keeplimits'
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
tsgqc_GUI.m
0 → 100644
+
756
−
0
View file @
3a7dd49b
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
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