summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--matlab_usage_source/index.t2t20
1 files changed, 15 insertions, 5 deletions
diff --git a/matlab_usage_source/index.t2t b/matlab_usage_source/index.t2t
index 4bc5b32..d04efcd 100644
--- a/matlab_usage_source/index.t2t
+++ b/matlab_usage_source/index.t2t
@@ -89,21 +89,28 @@ Now we make a simple plot without error bars to get the basic, text after
```
figure(1) % all plotting output will go to the particular window
-plot(I,V)
+plot(I,V, 'x')
```
-Easy, is not it?
+[simple_unlabeled_plot.png]
-[simple_labeled_plot.png]
+Easy, is not it? Here were mark our data point with crosses and used
+**'''x'''** parameter to specify this. You can do other markers as well.
But **every plot must be present with title, proper axes labels and units**.
Note **'** for the string specifiers
+```
+title('Dependence of voltage on current')
+xlabel('Current (A)')
+ylabel('Voltage (V)')
+```
+
+[simple_labeled_plot.png]
No our plot is nice and pretty.
-[simple_unlabeled_plot.png]
= Fixing the range of the axes =
@@ -129,7 +136,10 @@ Let's open a new window for the plot
Now we make plot with error bars assuming that they are the same for up and down parts
-``` errorbar(I,V,dV)
+```
+errorbar(I,V,dV)
+ylim([0,6])
+```
Yet again we need proper labeling