forked from rothos/chebsite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo4.m
34 lines (29 loc) · 850 Bytes
/
demo4.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
% demo4.m
% Hrothgar, 29 May 2016
%
% Generate a plot for the front page.
% This script uses the FileExchange function export_fig.
LW = 'linewidth'; MS = 'markersize';
h = figure;
% Create a chebfun on the interval [-3,3]
x = chebfun('x', [-3 3]);
% Define a potential function
V = abs(x);
% Plot the first 8 eigenstates of
% the Schrodinger operator
quantumstates(V, 8);
hold on
plot(V, 'linewidth', 2, 'color', 'white')
ylim([-.05 1.7])
set(get(gca,'Title'),'Color','White')
set(get(gca,'Title'),'FontSize',16)
set(h, 'Position', [0 0 650 240]) % make it the right size
set(gca,'FontSize',15) % increase tick font size
set(gca,'xcolor','w')
set(gca,'ycolor','w')
set(gca,'color','none')
set(gcf,'color','none')
% axis equal; % honesty
axis off;
export_fig('-m1.2', '-transparent', 'demo4.png')
close all