File: interval-vs-normal-plot.m.texinfo

package info (click to toggle)
octave-interval 3.2.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,564 kB
  • sloc: ansic: 31,664; sh: 4,401; cpp: 2,985; objc: 1,662; makefile: 246; xml: 58; sed: 8
file content (27 lines) | stat: -rw-r--r-- 612 bytes parent folder | download | duplicates (3)
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
@c This is part of the GNU Octave Interval Package Manual.
@c Copyright 2015 Oliver Heimlich.
@c See the file manual.texinfo for copying conditions.
@documentencoding UTF-8

@example
@group
@c doctest: +SKIP
hold on
blue = [38 139 210] ./ 255;
shade = [238 232 213] ./ 255;
@end group
@group
## Interval plotting
x = mince (2*infsup (0, "pi"), 6);
plot (x, sin (x), shade)
@end group
@group
## Classical plotting
x = linspace (0, 2*pi, 7);
plot (x, sin (x), 'linewidth', 2, 'color', blue)
@end group
@group
set (gca, 'XTick', 0 : pi : 2*pi)
set (gca, 'XTickLabel', @{'0', 'pi', '2 pi'@})
@end group
@end example