Plots Flashcards

0
Q

xlabel(‘string’)

A

Labels the x-axis

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q

plotonepoint(x, y, ‘format’)

A

Plots one point at (x,y) with the format

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

ylabel(‘string’)

A

Labels the y-axis

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

title(‘string’)

A

Gives the plot a title

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

plot(x, y, ‘format’)

A

Plots points on a graph

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

axis([xmin xmax ymin ymax])

A

Set the axes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Plot customization:

b blue m magenta
c cyan r red
g green w white
k black y yellow

A

Plot markers:

o circle * star v down triangle
d diamond s square < left triangle
p pentagon x x-mark > right triangle
+ plus . point ^ up triangle

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Plot Line Types:

– dashed
-. dash dot
: dotted
- solid

A

Default is solid line

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

clf

A

Clears figure window

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

figure

figure(n)

A

Creates a new empty figure

figure(n) is a way of labeling multiple figures

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

hold

hold on

hold off

A

hold is a toggle that enables overlaying figures on one graph

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

grid

grid on

grid off

A

Grid is a toggle that displays graph grid lines

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

legend(‘string1’, ‘string2’, … )

A

Displays a legend identifying different figures on a plot

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

bar(x, y, ‘format’)

A

Creates a bar graph

How well did you know this?
1
Not at all
2
3
4
5
Perfectly