namespacecanvas__wrapper.tex 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. \hypertarget{namespacecanvas__wrapper}{}\section{canvas\+\_\+wrapper Namespace Reference}
  2. \label{namespacecanvas__wrapper}\index{canvas\+\_\+wrapper@{canvas\+\_\+wrapper}}
  3. \subsection*{Functions}
  4. \begin{DoxyCompactItemize}
  5. \item
  6. def \hyperlink{namespacecanvas__wrapper_aeba5fd94e005cd99245deb78314af8d1}{canvas} (name=\char`\"{}icanvas\char`\"{}, size=(800, 600))
  7. \item
  8. \hypertarget{namespacecanvas__wrapper_a599964c201b5325978c188bf42a5a6e2}{}\label{namespacecanvas__wrapper_a599964c201b5325978c188bf42a5a6e2}
  9. def {\bfseries \+\_\+display\+\_\+canvas} (\hyperlink{namespacecanvas__wrapper_aeba5fd94e005cd99245deb78314af8d1}{canvas})
  10. \item
  11. \hypertarget{namespacecanvas__wrapper_aeb14ff6dc58ee428879948f1e4cb3093}{}\label{namespacecanvas__wrapper_aeb14ff6dc58ee428879948f1e4cb3093}
  12. def {\bfseries \+\_\+display\+\_\+any} (obj)
  13. \end{DoxyCompactItemize}
  14. \subsection*{Variables}
  15. \begin{DoxyCompactItemize}
  16. \item
  17. \hypertarget{namespacecanvas__wrapper_a67ab2edb7712a9e37cc45faad997f916}{}\label{namespacecanvas__wrapper_a67ab2edb7712a9e37cc45faad997f916}
  18. {\bfseries png\+\_\+formatter} = get\+\_\+ipython().display\+\_\+formatter.\+formatters\mbox{[}\textquotesingle{}image/png\textquotesingle{}\mbox{]}
  19. \end{DoxyCompactItemize}
  20. \subsection{Detailed Description}
  21. \begin{DoxyVerb}Helper module for displaying ROOT canvases in ipython notebooks
  22. Usage example:
  23. # Save this file as rootnotes.py to your working directory.
  24. import rootnotes
  25. c1 = rootnotes.canvas()
  26. fun1 = TF1( 'fun1', 'abs(sin(x)/x)', 0, 10)
  27. c1.SetGridx()
  28. c1.SetGridy()
  29. fun1.Draw()
  30. c1
  31. More examples: http://mazurov.github.io/webfest2013/
  32. @author alexander.mazurov@cern.ch
  33. @author andrey.ustyuzhanin@cern.ch
  34. @date 2013-08-09
  35. \end{DoxyVerb}
  36. \subsection{Function Documentation}
  37. \hypertarget{namespacecanvas__wrapper_aeba5fd94e005cd99245deb78314af8d1}{}\label{namespacecanvas__wrapper_aeba5fd94e005cd99245deb78314af8d1}
  38. \index{canvas\+\_\+wrapper@{canvas\+\_\+wrapper}!canvas@{canvas}}
  39. \index{canvas@{canvas}!canvas\+\_\+wrapper@{canvas\+\_\+wrapper}}
  40. \subsubsection{\texorpdfstring{canvas()}{canvas()}}
  41. {\footnotesize\ttfamily def canvas\+\_\+wrapper.\+canvas (\begin{DoxyParamCaption}\item[{}]{name = {\ttfamily \char`\"{}icanvas\char`\"{}}, }\item[{}]{size = {\ttfamily (800,~600)} }\end{DoxyParamCaption})}
  42. \begin{DoxyVerb}Helper method for creating canvas\end{DoxyVerb}