Canvas.hpp
138 m_layoutcols = std::max<decltype(m_layoutcols)>(m_layoutcols, row.size()); // m_layoutcols = max number of columns among all rows
145 : m_id(m_counter++), m_scriptfilename("multishow" + internal::str(m_id) + ".plt"), m_figures(figures)
150 m_layoutcols = std::max<decltype(m_layoutcols)>(m_layoutcols, row.size()); // m_layoutcols = max number of columns among all rows
210 gnuplot::palettecmd(script, m_defaultPalette.empty() ? internal::SCIPLOT_DEFAULT_PALETTE : m_defaultPalette);
auto defaultPalette(const std::string &name) -> Canvas &
Set the default palette of colors for all plots that DO NOT have a palette set.
Definition: Canvas.hpp:163
auto size(std::size_t width, std::size_t height) -> Canvas &
Set the output size of the canvas (in unit of points, with 1 inch = 72 points).
Definition: Canvas.hpp:169
The class used to create multiple plots in one canvas. A container for plots.
Definition: Figure.hpp:73
auto autoclean(bool enable=true) -> void
Toggle automatic cleaning of temporary files (enabled by default).
Definition: Canvas.hpp:158
auto fontSize(std::size_t size) -> Canvas &
Set the font size for all the plots on the canvas (e.g., 10, 12, 16).
Definition: Canvas.hpp:182
auto title(const std::string &title) -> Canvas &
Set the title of the canvas.
Definition: Canvas.hpp:188
Canvas(const std::initializer_list< std::initializer_list< Figure >> &figures)
Construct a Canvas object with given figures.
Definition: Canvas.hpp:132
auto saveplotdata() const -> void
Write the current plot data of all figures to the data file(s).
Definition: Canvas.hpp:194
auto show() const -> void
Show the canvas in a pop-up window.
Definition: Canvas.hpp:205
auto cleanup() const -> void
Delete all files used to store plot data or scripts.
Definition: Canvas.hpp:282
The class used to create multiple figures in one canvas. A canvas can be show on screen or output to ...
Definition: Canvas.hpp:40
auto save(const std::string &filename) const -> void
Save the canvas to a file, with its extension defining the file format.
Definition: Canvas.hpp:239
auto fontName(std::string name) -> Canvas &
Set the font name for all the plots on the canvas (e.g., Helvetica, Georgia, Times).
Definition: Canvas.hpp:176
Figure & get(int i, int j)
Get reference to figure object on canvas.
Definition: Canvas.hpp:153