LayoutSpecsOf< DerivedSpecs > Class Template Reference
The class used to attach layout options to a type. More...
#include <LayoutSpecs.hpp>
Inheritance diagram for LayoutSpecsOf< DerivedSpecs >:
Collaboration diagram for LayoutSpecsOf< DerivedSpecs >:
Public Member Functions | |
auto | origin (double x, double y) -> DerivedSpecs & |
Set the origin of the figure relative to the canvas (0,0 is bottom left and 1,1 is top right). | |
auto | size (double sx, double sy) -> DerivedSpecs & |
Set the size factor of the figure relative to the canvas (a value of 1 will fill the entire canvas, < 1 will fill only a part, > 1 will make the figure not fit the canvas). | |
auto | marginsAbsolute (double left=-1, double right=-1, double top=-1, double bottom=-1) -> DerivedSpecs & |
Set the absolute margins of the figure to the canvas. A value of -1 will let gnuplot autocalculate the value. | |
auto | repr () const -> std::string |
Set the relative margins of the figure to the canvas as a fraction of the canvas. More... | |
Public Member Functions inherited from Specs< DerivedSpecs > | |
virtual | ~Specs ()=default |
Pure virtual destructor (this class is an abstract base class). | |
operator std::string () const | |
Return a string representation of this object of some class that derives from specs. | |
auto | derived () -> DerivedSpecs & |
Return a reference to the specs object of class derived from this. | |
auto | derived () const -> const DerivedSpecs & |
Return a const reference to the specs object of class derived from this. | |
Detailed Description
template<typename DerivedSpecs>
class sciplot::LayoutSpecsOf< DerivedSpecs >
The class used to attach layout options to a type.
Member Function Documentation
◆ repr()
|
virtual |
Set the relative margins of the figure to the canvas as a fraction of the canvas.
Note that size() and origin() will get ignored if you set this.
- Note
- This does not seem to work for me with gnuplot 5.4 patchlevel 2 Convert this LayoutSpecsOf object into a gnuplot formatted string.
Implements Specs< DerivedSpecs >.
The documentation for this class was generated from the following file:
- sciplot/specs/LayoutSpecs.hpp