author | anand |
Mon, 08 Nov 2010 01:36:47 +0530 | |
changeset 455 | f5b7d0b693d9 |
parent 328 | 9ab73cbdd5a8 |
permissions | -rw-r--r-- |
328
9ab73cbdd5a8
embellishing_a_plot is complete
Nishanth <nishanth@fossee.in>
parents:
235
diff
changeset
|
1 |
Plot with a specific color. Ex: RED :\\ |
9ab73cbdd5a8
embellishing_a_plot is complete
Nishanth <nishanth@fossee.in>
parents:
235
diff
changeset
|
2 |
{\ex \lstinline| plot(x, f(x), "r")|} |
9ab73cbdd5a8
embellishing_a_plot is complete
Nishanth <nishanth@fossee.in>
parents:
235
diff
changeset
|
3 |
|
9ab73cbdd5a8
embellishing_a_plot is complete
Nishanth <nishanth@fossee.in>
parents:
235
diff
changeset
|
4 |
Plot with a specific style. Ex: DASHED :\\ |
9ab73cbdd5a8
embellishing_a_plot is complete
Nishanth <nishanth@fossee.in>
parents:
235
diff
changeset
|
5 |
{\ex \lstinline| plot(x, f(x), "--")|} |
235
80e4016d747a
Converted the embellishing_a_plot to new template form
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
6 |
|
328
9ab73cbdd5a8
embellishing_a_plot is complete
Nishanth <nishanth@fossee.in>
parents:
235
diff
changeset
|
7 |
Plot with specific color and style. Ex: RED DASHED :\\ |
9ab73cbdd5a8
embellishing_a_plot is complete
Nishanth <nishanth@fossee.in>
parents:
235
diff
changeset
|
8 |
{\ex \lstinline| plot(x, f(x), "r--")|} |
9ab73cbdd5a8
embellishing_a_plot is complete
Nishanth <nishanth@fossee.in>
parents:
235
diff
changeset
|
9 |
|
9ab73cbdd5a8
embellishing_a_plot is complete
Nishanth <nishanth@fossee.in>
parents:
235
diff
changeset
|
10 |
Plot with a specific line thickness:\\ |
9ab73cbdd5a8
embellishing_a_plot is complete
Nishanth <nishanth@fossee.in>
parents:
235
diff
changeset
|
11 |
{\ex \lstinline| plot(x, f(x), linewidth=3)|} |
9ab73cbdd5a8
embellishing_a_plot is complete
Nishanth <nishanth@fossee.in>
parents:
235
diff
changeset
|
12 |
|
9ab73cbdd5a8
embellishing_a_plot is complete
Nishanth <nishanth@fossee.in>
parents:
235
diff
changeset
|
13 |
Adding title:\\ |
9ab73cbdd5a8
embellishing_a_plot is complete
Nishanth <nishanth@fossee.in>
parents:
235
diff
changeset
|
14 |
{\ex \lstinline| title("Plot of sin(x)")|} |
235
80e4016d747a
Converted the embellishing_a_plot to new template form
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
15 |
|
328
9ab73cbdd5a8
embellishing_a_plot is complete
Nishanth <nishanth@fossee.in>
parents:
235
diff
changeset
|
16 |
labelling the axes:\\ |
9ab73cbdd5a8
embellishing_a_plot is complete
Nishanth <nishanth@fossee.in>
parents:
235
diff
changeset
|
17 |
{\ex \lstinline| xlabel("x")|} |
9ab73cbdd5a8
embellishing_a_plot is complete
Nishanth <nishanth@fossee.in>
parents:
235
diff
changeset
|
18 |
{\ex \lstinline| ylabel("f(x)")|} |
9ab73cbdd5a8
embellishing_a_plot is complete
Nishanth <nishanth@fossee.in>
parents:
235
diff
changeset
|
19 |
|
9ab73cbdd5a8
embellishing_a_plot is complete
Nishanth <nishanth@fossee.in>
parents:
235
diff
changeset
|
20 |
Adding annotations:\\ |
9ab73cbdd5a8
embellishing_a_plot is complete
Nishanth <nishanth@fossee.in>
parents:
235
diff
changeset
|
21 |
{\ex \lstinline| annotate("localmax", xy=(1, 2))|} |
9ab73cbdd5a8
embellishing_a_plot is complete
Nishanth <nishanth@fossee.in>
parents:
235
diff
changeset
|
22 |
|
9ab73cbdd5a8
embellishing_a_plot is complete
Nishanth <nishanth@fossee.in>
parents:
235
diff
changeset
|
23 |
Using LaTeX typesetting on any text:\\ |
9ab73cbdd5a8
embellishing_a_plot is complete
Nishanth <nishanth@fossee.in>
parents:
235
diff
changeset
|
24 |
{\ex \lstinline| title("Plot of $sin(x)$")|} |
235
80e4016d747a
Converted the embellishing_a_plot to new template form
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
25 |
|
328
9ab73cbdd5a8
embellishing_a_plot is complete
Nishanth <nishanth@fossee.in>
parents:
235
diff
changeset
|
26 |
Getting the axes limits:\\ |
9ab73cbdd5a8
embellishing_a_plot is complete
Nishanth <nishanth@fossee.in>
parents:
235
diff
changeset
|
27 |
{\ex \lstinline| xlim()|} |
9ab73cbdd5a8
embellishing_a_plot is complete
Nishanth <nishanth@fossee.in>
parents:
235
diff
changeset
|
28 |
{\ex \lstinline| ylim()|} |
9ab73cbdd5a8
embellishing_a_plot is complete
Nishanth <nishanth@fossee.in>
parents:
235
diff
changeset
|
29 |
|
9ab73cbdd5a8
embellishing_a_plot is complete
Nishanth <nishanth@fossee.in>
parents:
235
diff
changeset
|
30 |
Setting the axes limits:\\ |
9ab73cbdd5a8
embellishing_a_plot is complete
Nishanth <nishanth@fossee.in>
parents:
235
diff
changeset
|
31 |
{\ex \lstinline| xlim(x_min, x_max)|} |
9ab73cbdd5a8
embellishing_a_plot is complete
Nishanth <nishanth@fossee.in>
parents:
235
diff
changeset
|
32 |
{\ex \lstinline| ylim(y_min, y_max)|} |
9ab73cbdd5a8
embellishing_a_plot is complete
Nishanth <nishanth@fossee.in>
parents:
235
diff
changeset
|
33 |
|
9ab73cbdd5a8
embellishing_a_plot is complete
Nishanth <nishanth@fossee.in>
parents:
235
diff
changeset
|
34 |