how_to_produce_tikz_plots_for_scientific_publications
                Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| how_to_produce_tikz_plots_for_scientific_publications [2016/01/23 23:45] – created samer | how_to_produce_tikz_plots_for_scientific_publications [2016/01/24 00:17] (current) – samer | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== How to Produce TikZ Plots for Scientific Publications? | ====== How to Produce TikZ Plots for Scientific Publications? | ||
| + | |||
| + | Getting nice plots for scientific publications is not optional.  | ||
| + | |||
| + | http:// | ||
| + | |||
| + | <code matlab> | ||
| + | figure; | ||
| + | x=[1: | ||
| + | plot(x, | ||
| + | xlabel(' | ||
| + | ylabel(' | ||
| + | </ | ||
| + |          | ||
| + | <code matlab> | ||
| + | matlab2tikz(sprintf(' | ||
| + |         ' | ||
| + |         ' | ||
| + | </ | ||
| + | |||
| + | <code latex> | ||
| + | \tikzset{font=\footnotesize} | ||
| + | \begin{tikzpicture} | ||
| + | |||
| + | every x tick label/ | ||
| + | every y tick label/ | ||
| + | </ | ||
| + | |||
| + | <code matlab> | ||
| + | f=figure; | ||
| + | boxplot([cum_ee_power_vector_per_user cum_gt_power_vector_per_user cum_maxlog_power_vector_per_user ... | ||
| + |     cum_pmax_power_vector_per_user cum_ee_nointerf_power_vector_per_user], | ||
| + | set(gca,' | ||
| + | ylabel(' | ||
| + | cleanfigure; | ||
| + | print(f,' | ||
| + | savefig(sprintf(' | ||
| + | matlab2tikz(sprintf(' | ||
| + |         ' | ||
| + |         ' | ||
| + | </ | ||
| + | |||
| + | <code latex> | ||
| + | \usepackage{tikz} | ||
| + | \usepackage{pgfplots} | ||
| + | \pgfplotsset{compat=newest} | ||
| + | \usetikzlibrary{plotmarks} | ||
| + | \usepackage{grffile} | ||
| + | |||
| + | \newlength\figureheight | ||
| + | \newlength\figurewidth | ||
| + | |||
| + | \begin{figure}[!h] | ||
| + | \centering | ||
| + | \setlength\figureheight{0.3\textwidth} | ||
| + | \setlength\figurewidth{0.35\textwidth} | ||
| + | 	\input{figures/ | ||
| + | \caption{Energy efficiency of the centralized and distributed approaches} | ||
| + | 	\label{fig: | ||
| + | \end{figure} | ||
| + | </ | ||
how_to_produce_tikz_plots_for_scientific_publications.1453589115.txt.gz · Last modified: 2016/01/23 23:45 by samer