frame.hpp File Reference
Frame for plots More...
#include <string>
#include <vector>
#include <cairo.h>
#include "vec3d.hpp"
#include "ruler.hpp"
#include "coordmapper.hpp"
#include "graph.hpp"
#include "legend.hpp"
Go to the source code of this file.
Classes | |
class | Frame |
General purpose plotter frame for cairographics surfaces. More... | |
Enumerations | |
enum | PlotFixedMode { PLOT_FIXED_ASPECT_DISABLED = 0 , PLOT_FIXED_ASPECT_EXTEND_RANGE , PLOT_FIXED_ASPECT_INCREASE_MARGIN } |
Fixed aspect ratio setting for frame. More... | |
enum | PlotAxis { PLOT_AXIS_X1 = 0 , PLOT_AXIS_Y1 , PLOT_AXIS_X2 , PLOT_AXIS_Y2 , PLOT_AXIS_Z } |
Axis specification for plots. More... | |
Detailed Description
Frame for plots
Enumeration Type Documentation
◆ PlotAxis
enum PlotAxis |
Axis specification for plots.
PLOT_AXIS_X1 is the bottom axis, PLOT_AXIS_Y1 is the left side axis, PLOT_AXIS_X2 is the top axis, PLOT_AXIS_Y2 is the right side axis and PLOT_AXIS_Z is the depth axis for three dimensional plots or colormap plots.
◆ PlotFixedMode
enum PlotFixedMode |
Fixed aspect ratio setting for frame.
Default mode is PLOT_FIXED_ASPECT_DISABLED, which means that the frame axes are independent of each other. The mode PLOT_FIXED_ASPECT_EXTEND_RANGE has fixed aspect ratio, which is made by preserving the plot margins and extending the range of the smaller axis. The mode PLOT_FIXED_ASPECT_INCREASE_MARGIN fixes the aspect ratio by increasing the margin of the larger axis.