\hypertarget{a00653}{\section{Gnuplot Class Reference}
\label{a00653}\index{Gnuplot@{Gnuplot}}
}


{\ttfamily \#include $<$libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Tools/\+Utils/\+Gnuplot.\+hh$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00653_a6253320f82f18a7a681ccecaac0898b6}{void \hyperlink{a00653_a6253320f82f18a7a681ccecaac0898b6}{cmd} (const char $\ast$\+\_\+cmd,...)}\label{a00653_a6253320f82f18a7a681ccecaac0898b6}

\begin{DoxyCompactList}\small\item\em Send a command to gnuplot (low-\/level function use by all plot functions.) \end{DoxyCompactList}\item 
\hypertarget{a00653_a977e731d99c7a768f8d93eb50e2b8f79}{bool \hyperlink{a00653_a977e731d99c7a768f8d93eb50e2b8f79}{is\+\_\+valid} (void) const }\label{a00653_a977e731d99c7a768f8d93eb50e2b8f79}

\begin{DoxyCompactList}\small\item\em Is {\ttfamily Self} valid? \end{DoxyCompactList}\item 
\hypertarget{a00653_a8e121a09a1de635b3a6752c7dffd4fc3}{bool \hyperlink{a00653_a8e121a09a1de635b3a6752c7dffd4fc3}{is\+\_\+active} (void) const }\label{a00653_a8e121a09a1de635b3a6752c7dffd4fc3}

\begin{DoxyCompactList}\small\item\em Is {\ttfamily Self} active, i.\+e. does it have an active plot? \end{DoxyCompactList}\end{DoxyCompactItemize}
\begin{Indent}{\bf Constructors}\par
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00653_a936d27de7b6f57d1f3d61491dc70f1ae}{\hyperlink{a00653_a936d27de7b6f57d1f3d61491dc70f1ae}{Gnuplot} ()}\label{a00653_a936d27de7b6f57d1f3d61491dc70f1ae}

\begin{DoxyCompactList}\small\item\em Default constructor. \end{DoxyCompactList}\item 
\hypertarget{a00653_ae0395678b8c18a041941b180478c3a55}{\hyperlink{a00653_ae0395678b8c18a041941b180478c3a55}{Gnuplot} (const string \&\+\_\+style)}\label{a00653_ae0395678b8c18a041941b180478c3a55}

\begin{DoxyCompactList}\small\item\em Set a style during construction. \end{DoxyCompactList}\item 
\hypertarget{a00653_a06060d149c16680317bc479d8defc2e5}{\hyperlink{a00653_a06060d149c16680317bc479d8defc2e5}{Gnuplot} (const string \&\+\_\+title, const string \&\+\_\+style, const string \&\+\_\+xlabel, const string \&\+\_\+ylabel, vector$<$ double $>$ \+\_\+x, vector$<$ double $>$ \+\_\+y)}\label{a00653_a06060d149c16680317bc479d8defc2e5}

\begin{DoxyCompactList}\small\item\em Constructor calling \hyperlink{a00653_a5442faded1dc684e3fc1d3a43e0953a2}{plot\+\_\+xy()}. \end{DoxyCompactList}\item 
\hypertarget{a00653_a69e932f3df2490f3c5c7e63892b7633e}{\hyperlink{a00653_a69e932f3df2490f3c5c7e63892b7633e}{Gnuplot} (const string \&\+\_\+title, const string \&\+\_\+style, const string \&\+\_\+xlabel, const string \&\+\_\+ylabel, vector$<$ double $>$ \+\_\+x)}\label{a00653_a69e932f3df2490f3c5c7e63892b7633e}

\begin{DoxyCompactList}\small\item\em Constructor calling \hyperlink{a00653_ab8e2cc098981edc58c82389b53ac3a0a}{plot\+\_\+x()}. \end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf Gnuplot settings}\par
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00653_ad578ceaa5175865aeb7ffece4602c0ab}{void \hyperlink{a00653_ad578ceaa5175865aeb7ffece4602c0ab}{set\+\_\+style} (const string \&\+\_\+style)}\label{a00653_ad578ceaa5175865aeb7ffece4602c0ab}

\begin{DoxyCompactList}\small\item\em set line style \end{DoxyCompactList}\item 
\hypertarget{a00653_afbda5bf606089a736528f4e15a897043}{void \hyperlink{a00653_afbda5bf606089a736528f4e15a897043}{set\+\_\+ylabel} (const string \&\+\_\+ylabel)}\label{a00653_afbda5bf606089a736528f4e15a897043}

\begin{DoxyCompactList}\small\item\em set x axis label \end{DoxyCompactList}\item 
\hypertarget{a00653_a27cbe28fc00b26c917ac624835b04dae}{void \hyperlink{a00653_a27cbe28fc00b26c917ac624835b04dae}{set\+\_\+xlabel} (const string \&\+\_\+xlabel)}\label{a00653_a27cbe28fc00b26c917ac624835b04dae}

\begin{DoxyCompactList}\small\item\em set x axis label \end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf plot functions}\par
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00653_ab8e2cc098981edc58c82389b53ac3a0a}{void \hyperlink{a00653_ab8e2cc098981edc58c82389b53ac3a0a}{plot\+\_\+x} (vector$<$ double $>$ \+\_\+x, const string \&\+\_\+title)}\label{a00653_ab8e2cc098981edc58c82389b53ac3a0a}

\begin{DoxyCompactList}\small\item\em Plot a single vector. \end{DoxyCompactList}\item 
\hypertarget{a00653_a5442faded1dc684e3fc1d3a43e0953a2}{void \hyperlink{a00653_a5442faded1dc684e3fc1d3a43e0953a2}{plot\+\_\+xy} (vector$<$ double $>$ \+\_\+x, vector$<$ double $>$ \+\_\+y, const string \&\+\_\+title)}\label{a00653_a5442faded1dc684e3fc1d3a43e0953a2}

\begin{DoxyCompactList}\small\item\em Plot x,y pairs. \end{DoxyCompactList}\item 
void \hyperlink{a00653_a538309f9db7cb199030d5d75912f9ab8}{plot\+\_\+slope} (double \+\_\+a, double \+\_\+b, const string \&\+\_\+title)
\item 
\hypertarget{a00653_afb72ee2b5e6d7d777f1953ebf110947a}{void \hyperlink{a00653_afb72ee2b5e6d7d777f1953ebf110947a}{plot\+\_\+equation} (const string \&\+\_\+equation, const string \&\+\_\+title)}\label{a00653_afb72ee2b5e6d7d777f1953ebf110947a}

\begin{DoxyCompactList}\small\item\em Plot an equation supplied as a string. \end{DoxyCompactList}\item 
\hypertarget{a00653_ad54976652afe30231a850dd31e1ca70f}{void \hyperlink{a00653_ad54976652afe30231a850dd31e1ca70f}{reset\+\_\+plot} (void)}\label{a00653_ad54976652afe30231a850dd31e1ca70f}

\begin{DoxyCompactList}\small\item\em If multiple plots are present it will clear the plot area. \end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00653_ab7029621e54e985b6f10fab353a2facb}{bool {\bfseries get\+\_\+program\+\_\+path} (const string \&)}\label{a00653_ab7029621e54e985b6f10fab353a2facb}

\item 
\hypertarget{a00653_a08d1e4ec069ec1cb82bb96427d1e0d7f}{void {\bfseries init} ()}\label{a00653_a08d1e4ec069ec1cb82bb96427d1e0d7f}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00653_a93e59138d3e192ffa2a4f0d7c310d61d}{F\+I\+L\+E $\ast$ {\bfseries gnucmd}}\label{a00653_a93e59138d3e192ffa2a4f0d7c310d61d}

\item 
\hypertarget{a00653_ab9026ca6c25109ab78f82c34b2442da9}{string {\bfseries pstyle}}\label{a00653_ab9026ca6c25109ab78f82c34b2442da9}

\item 
\hypertarget{a00653_a6326ff7aa2076001a4c2cf9c44b0e3db}{vector$<$ string $>$ {\bfseries to\+\_\+delete}}\label{a00653_a6326ff7aa2076001a4c2cf9c44b0e3db}

\item 
\hypertarget{a00653_acceb0a453297bb0ec7b26ec1dafbcec2}{int {\bfseries nplots}}\label{a00653_acceb0a453297bb0ec7b26ec1dafbcec2}

\item 
\hypertarget{a00653_a0155f4026915ed9b05b18c1e89ba9757}{bool {\bfseries valid}}\label{a00653_a0155f4026915ed9b05b18c1e89ba9757}

\end{DoxyCompactItemize}
\subsection*{Static Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00653_acf9bb59ee87066f5e35b7fb885eb0f3f}{static string {\bfseries gnuplot\+\_\+executable\+\_\+} = \char`\"{}gnuplot\char`\"{}}\label{a00653_acf9bb59ee87066f5e35b7fb885eb0f3f}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Utility class interfacing with \hyperlink{a00653}{Gnuplot}.

\begin{DoxyNote}{Note}
The plot will be visible as long as the object is not destructed.
\end{DoxyNote}
\begin{DoxyAuthor}{Author}
Rajarshi Guha (C++ A\+P\+I based on the C A\+P\+I by Nicolas Devillard)
\end{DoxyAuthor}
\begin{DoxySeeAlso}{See also}
\href{http://ndevilla.free.fr/gnuplot/}{\tt http\+://ndevilla.\+free.\+fr/gnuplot/} more information. 
\end{DoxySeeAlso}


Definition at line 92 of file Gnuplot.\+hh.



\subsection{Member Function Documentation}
\hypertarget{a00653_a538309f9db7cb199030d5d75912f9ab8}{\index{Gnuplot@{Gnuplot}!plot\+\_\+slope@{plot\+\_\+slope}}
\index{plot\+\_\+slope@{plot\+\_\+slope}!Gnuplot@{Gnuplot}}
\subsubsection[{plot\+\_\+slope}]{\setlength{\rightskip}{0pt plus 5cm}void Gnuplot\+::plot\+\_\+slope (
\begin{DoxyParamCaption}
\item[{double}]{\+\_\+a, }
\item[{double}]{\+\_\+b, }
\item[{const string \&}]{\+\_\+title}
\end{DoxyParamCaption}
)}}\label{a00653_a538309f9db7cb199030d5d75912f9ab8}
Plot an equation of the form\+: y = ax + b You supply a and b 

Definition at line 305 of file Gnuplot.\+cc.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Tools/\+Utils/Gnuplot.\+hh\item 
libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Tools/\+Utils/Gnuplot.\+cc\end{DoxyCompactItemize}
