summaryrefslogtreecommitdiff
path: root/saving_plots
diff options
context:
space:
mode:
authorJovina2011-05-13 17:23:16 +0530
committerJovina2011-05-13 17:23:16 +0530
commit44842fb6915eadadc087047a15be33f4635ed8cc (patch)
tree3fbdc8c0b1ffde89f31f59c4826786be6ced82a3 /saving_plots
parentb828875c90590e5c2c222bc5907c1e5010c65d83 (diff)
downloadst-scripts-44842fb6915eadadc087047a15be33f4635ed8cc.tar.gz
st-scripts-44842fb6915eadadc087047a15be33f4635ed8cc.tar.bz2
st-scripts-44842fb6915eadadc087047a15be33f4635ed8cc.zip
Minor changes to scripts and slides of the 1st two modules.
Diffstat (limited to 'saving_plots')
-rw-r--r--saving_plots/slides.org41
1 files changed, 32 insertions, 9 deletions
diff --git a/saving_plots/slides.org b/saving_plots/slides.org
index e0d3a05..26febd2 100644
--- a/saving_plots/slides.org
+++ b/saving_plots/slides.org
@@ -32,14 +32,18 @@
*
#+begin_latex
\begin{center}
-\textcolor{blue}{Saving Plots}
+\vspace{12pt}
+\textcolor{blue}{\huge Saving Plots}
\end{center}
+\vspace{18pt}
\begin{center}
-\includegraphics[scale=0.25]{../images/iitb-logo.png}\\
-Developed by FOSSEE Team, IIT-Bombay. \\
-Funded by National Mission on Education through ICT
-
-MHRD, Govt. of India
+\vspace{10pt}
+\includegraphics[scale=0.95]{../images/fossee-logo.png}\\
+\vspace{5pt}
+\scriptsize Developed by FOSSEE Team, IIT-Bombay. \\
+\scriptsize Funded by National Mission on Education through ICT\\
+\scriptsize MHRD,Govt. of India\\
+\includegraphics[scale=0.30]{../images/iitb-logo.png}\\
\end{center}
#+end_latex
* Objectives
@@ -74,9 +78,9 @@ MHRD, Govt. of India
~vector graphics~
*** .png - Portable Network Graphics
~supports transparency~
-* Exercise 1
+* Question 1
Save the sine plot in the format EPS which can be embedded in LaTeX documents.
-* Exercise 2
+* Question 2
Save the sine plot in PDF, PS and SVG formats.
* Summary
@@ -89,7 +93,26 @@ MHRD, Govt. of India
- svg
- eps
- Locate files in the file system.
-* Acknowledgement
+* Evaluation
+ 1. Which command is used to save a plot.
+
+ - saveplot()
+ - savefig()
+ - savefigure()
+ - saveplt()
+
+ 2. ``savefig('sine.png')`` saves the plot in,
+
+ - The root directory ``/`` (on GNU/Linux, Unix based systems),
+ ``c:\`` (on windows).
+ - Will result in an error as full path is not supplied.
+ - The current working directory.
+ - Predefined directory like ``/documents``.
+* Solutions
+ 1. savefig()
+
+ 2. The current working directory
+*
#+begin_latex
\begin{block}{}
\begin{center}