-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfm_author.m
65 lines (59 loc) · 1.73 KB
/
fm_author.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
function fig = fm_author(enter)
% FM_AUTHOR create a splash window with the author's pic
%
% FM_AUTHOR(CODE)
%
%Author: Federico Milano
%Date: 11-Nov-2002
%Version: 1.0.0
%
%E-mail: [email protected]
%Web-site: faraday1.ucd.ie/psat.html
%
% Copyright (C) 2002-2019 Federico Milano
global Settings Fig Path Theme
if ishandle(Fig.author), figure(Fig.author), return, end
if enter ~= 3280, return, end
h0 = figure('Units','normalized', ...
'Color',Theme.color02, ...
'Colormap',[], ...
'CreateFcn','Fig.author = gcf;', ...
'DeleteFcn','Fig.author = -1;', ...
'KeyPressFcn','close(gcf)', ...
'FileName','fm_author(3280)', ...
'MenuBar','none', ...
'Name','The author!', ...
'NumberTitle','off', ...
'PaperPosition',[18 180 576 432], ...
'PaperUnits','points', ...
'Position',sizefig(0.4,0.4*1.578), ...
'Resize','on', ...
'ResizeFcn','doresize(gcbf)', ...
'ToolBar','none', ...
'WindowButtonDownFcn','close(gcf)');
h1 = axes('Parent',h0, ...
'Box','on', ...
'CameraUpVector',[0 1 0], ...
'Color',Theme.color04, ...
'ColorOrder',Settings.color, ...
'Layer','top', ...
'Position',[0.1 0.1 0.8 0.8], ...
'Tag','Axes1', ...
'XColor',[0 0 0.5], ...
'XLim',[0.5 700.5], ...
'XLimMode','manual', ...
'XTickLabelMode','manual', ...
'XTickMode','manual', ...
'YColor',[0 0 0.5], ...
'YDir','reverse', ...
'YLim',[0.5 101.5], ...
'YLimMode','manual', ...
'YTickLabelMode','manual', ...
'YTickMode','manual', ...
'ZColor',[0 0 0]);
h2 = image('Parent',h1, ...
'CData',imread([Path.images,'misc_view.jpg'],'jpg'), ...
'Tag','Axes1Image1', ...
'XData',[1 700], ...
'YData',[1 101]);
if nargout > 0, fig = h0; end