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


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

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classGnuplot_a6253320f82f18a7a681ccecaac0898b6}\label{classGnuplot_a6253320f82f18a7a681ccecaac0898b6}} 
void \hyperlink{classGnuplot_a6253320f82f18a7a681ccecaac0898b6}{cmd} (const char $\ast$\+\_\+cmd,...)
\begin{DoxyCompactList}\small\item\em Send a command to gnuplot (low-\/level function use by all plot functions.) \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classGnuplot_a24abcb95740bffac41022227187748e4}\label{classGnuplot_a24abcb95740bffac41022227187748e4}} 
bool \hyperlink{classGnuplot_a24abcb95740bffac41022227187748e4}{is\+\_\+valid} (void) const
\begin{DoxyCompactList}\small\item\em Is {\ttfamily Self} valid? \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classGnuplot_ae8a8d7046bef986dd36922bdfb8ae179}\label{classGnuplot_ae8a8d7046bef986dd36922bdfb8ae179}} 
bool \hyperlink{classGnuplot_ae8a8d7046bef986dd36922bdfb8ae179}{is\+\_\+active} (void) const
\begin{DoxyCompactList}\small\item\em Is {\ttfamily Self} active, i.\+e. does it have an active plot? \end{DoxyCompactList}\end{DoxyCompactItemize}
\begin{Indent}\textbf{ Constructors}\par
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classGnuplot_a936d27de7b6f57d1f3d61491dc70f1ae}\label{classGnuplot_a936d27de7b6f57d1f3d61491dc70f1ae}} 
\hyperlink{classGnuplot_a936d27de7b6f57d1f3d61491dc70f1ae}{Gnuplot} ()
\begin{DoxyCompactList}\small\item\em Default constructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classGnuplot_ae0395678b8c18a041941b180478c3a55}\label{classGnuplot_ae0395678b8c18a041941b180478c3a55}} 
\hyperlink{classGnuplot_ae0395678b8c18a041941b180478c3a55}{Gnuplot} (const string \&\+\_\+style)
\begin{DoxyCompactList}\small\item\em Set a style during construction. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classGnuplot_a06060d149c16680317bc479d8defc2e5}\label{classGnuplot_a06060d149c16680317bc479d8defc2e5}} 
\hyperlink{classGnuplot_a06060d149c16680317bc479d8defc2e5}{Gnuplot} (const string \&\+\_\+title, const string \&\+\_\+style, const string \&\+\_\+xlabel, const string \&\+\_\+ylabel, vector$<$ double $>$ \+\_\+x, vector$<$ double $>$ \+\_\+y)
\begin{DoxyCompactList}\small\item\em Constructor calling \hyperlink{classGnuplot_a5442faded1dc684e3fc1d3a43e0953a2}{plot\+\_\+xy()}. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classGnuplot_a69e932f3df2490f3c5c7e63892b7633e}\label{classGnuplot_a69e932f3df2490f3c5c7e63892b7633e}} 
\hyperlink{classGnuplot_a69e932f3df2490f3c5c7e63892b7633e}{Gnuplot} (const string \&\+\_\+title, const string \&\+\_\+style, const string \&\+\_\+xlabel, const string \&\+\_\+ylabel, vector$<$ double $>$ \+\_\+x)
\begin{DoxyCompactList}\small\item\em Constructor calling \hyperlink{classGnuplot_ab8e2cc098981edc58c82389b53ac3a0a}{plot\+\_\+x()}. \end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}\textbf{ Gnuplot settings}\par
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classGnuplot_ad578ceaa5175865aeb7ffece4602c0ab}\label{classGnuplot_ad578ceaa5175865aeb7ffece4602c0ab}} 
void \hyperlink{classGnuplot_ad578ceaa5175865aeb7ffece4602c0ab}{set\+\_\+style} (const string \&\+\_\+style)
\begin{DoxyCompactList}\small\item\em set line style \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classGnuplot_afbda5bf606089a736528f4e15a897043}\label{classGnuplot_afbda5bf606089a736528f4e15a897043}} 
void \hyperlink{classGnuplot_afbda5bf606089a736528f4e15a897043}{set\+\_\+ylabel} (const string \&\+\_\+ylabel)
\begin{DoxyCompactList}\small\item\em set x axis label \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classGnuplot_a27cbe28fc00b26c917ac624835b04dae}\label{classGnuplot_a27cbe28fc00b26c917ac624835b04dae}} 
void \hyperlink{classGnuplot_a27cbe28fc00b26c917ac624835b04dae}{set\+\_\+xlabel} (const string \&\+\_\+xlabel)
\begin{DoxyCompactList}\small\item\em set x axis label \end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}\textbf{ plot functions}\par
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classGnuplot_ab8e2cc098981edc58c82389b53ac3a0a}\label{classGnuplot_ab8e2cc098981edc58c82389b53ac3a0a}} 
void \hyperlink{classGnuplot_ab8e2cc098981edc58c82389b53ac3a0a}{plot\+\_\+x} (vector$<$ double $>$ \+\_\+x, const string \&\+\_\+title)
\begin{DoxyCompactList}\small\item\em Plot a single vector. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classGnuplot_a5442faded1dc684e3fc1d3a43e0953a2}\label{classGnuplot_a5442faded1dc684e3fc1d3a43e0953a2}} 
void \hyperlink{classGnuplot_a5442faded1dc684e3fc1d3a43e0953a2}{plot\+\_\+xy} (vector$<$ double $>$ \+\_\+x, vector$<$ double $>$ \+\_\+y, const string \&\+\_\+title)
\begin{DoxyCompactList}\small\item\em Plot x,y pairs. \end{DoxyCompactList}\item 
void \hyperlink{classGnuplot_a538309f9db7cb199030d5d75912f9ab8}{plot\+\_\+slope} (double \+\_\+a, double \+\_\+b, const string \&\+\_\+title)
\item 
\mbox{\Hypertarget{classGnuplot_afb72ee2b5e6d7d777f1953ebf110947a}\label{classGnuplot_afb72ee2b5e6d7d777f1953ebf110947a}} 
void \hyperlink{classGnuplot_afb72ee2b5e6d7d777f1953ebf110947a}{plot\+\_\+equation} (const string \&\+\_\+equation, const string \&\+\_\+title)
\begin{DoxyCompactList}\small\item\em Plot an equation supplied as a string. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classGnuplot_ad54976652afe30231a850dd31e1ca70f}\label{classGnuplot_ad54976652afe30231a850dd31e1ca70f}} 
void \hyperlink{classGnuplot_ad54976652afe30231a850dd31e1ca70f}{reset\+\_\+plot} (void)
\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 
\mbox{\Hypertarget{classGnuplot_ab7029621e54e985b6f10fab353a2facb}\label{classGnuplot_ab7029621e54e985b6f10fab353a2facb}} 
bool {\bfseries get\+\_\+program\+\_\+path} (const string \&)
\item 
\mbox{\Hypertarget{classGnuplot_a08d1e4ec069ec1cb82bb96427d1e0d7f}\label{classGnuplot_a08d1e4ec069ec1cb82bb96427d1e0d7f}} 
void {\bfseries init} ()
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classGnuplot_a93e59138d3e192ffa2a4f0d7c310d61d}\label{classGnuplot_a93e59138d3e192ffa2a4f0d7c310d61d}} 
F\+I\+LE $\ast$ {\bfseries gnucmd}
\item 
\mbox{\Hypertarget{classGnuplot_ab9026ca6c25109ab78f82c34b2442da9}\label{classGnuplot_ab9026ca6c25109ab78f82c34b2442da9}} 
string {\bfseries pstyle}
\item 
\mbox{\Hypertarget{classGnuplot_a6326ff7aa2076001a4c2cf9c44b0e3db}\label{classGnuplot_a6326ff7aa2076001a4c2cf9c44b0e3db}} 
vector$<$ string $>$ {\bfseries to\+\_\+delete}
\item 
\mbox{\Hypertarget{classGnuplot_acceb0a453297bb0ec7b26ec1dafbcec2}\label{classGnuplot_acceb0a453297bb0ec7b26ec1dafbcec2}} 
int {\bfseries nplots}
\item 
\mbox{\Hypertarget{classGnuplot_a0155f4026915ed9b05b18c1e89ba9757}\label{classGnuplot_a0155f4026915ed9b05b18c1e89ba9757}} 
bool {\bfseries valid}
\end{DoxyCompactItemize}
\subsection*{Static Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classGnuplot_acf9bb59ee87066f5e35b7fb885eb0f3f}\label{classGnuplot_acf9bb59ee87066f5e35b7fb885eb0f3f}} 
static string {\bfseries gnuplot\+\_\+executable\+\_\+} = \char`\"{}gnuplot\char`\"{}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Utility class interfacing with \hyperlink{classGnuplot}{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\+PI based on the C A\+PI 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}
\mbox{\Hypertarget{classGnuplot_a538309f9db7cb199030d5d75912f9ab8}\label{classGnuplot_a538309f9db7cb199030d5d75912f9ab8}} 
\index{Gnuplot@{Gnuplot}!plot\+\_\+slope@{plot\+\_\+slope}}
\index{plot\+\_\+slope@{plot\+\_\+slope}!Gnuplot@{Gnuplot}}
\subsubsection{\texorpdfstring{plot\+\_\+slope()}{plot\_slope()}}
{\footnotesize\ttfamily void Gnuplot\+::plot\+\_\+slope (\begin{DoxyParamCaption}\item[{double}]{\+\_\+a,  }\item[{double}]{\+\_\+b,  }\item[{const string \&}]{\+\_\+title }\end{DoxyParamCaption})}

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 
Open\+Flipper/libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Tools/\+Utils/Gnuplot.\+hh\item 
Open\+Flipper/libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Tools/\+Utils/Gnuplot.\+cc\end{DoxyCompactItemize}
