Skip to content

plotpp::Figure

Public Functions

Name
Figure() =default
Figure(const Figure & ) =delete
Figure(Figure && ) =default
Figure(std::string title_str)
Figure(Text title, Text xlabel, Text ylabel)
~Figure()
Figure & title(const Text & title)
Figure & title(Text && title)
Figure & xLabel(const Text & xlabel)
Figure & xLabel(Text && xlabel)
Figure & yLabel(const Text & ylabel)
Figure & yLabel(Text && ylabel)
Figure & xMin(float v)
Figure & xMax(float v)
Figure & yMin(float v)
Figure & yMax(float v)
Figure & xLim(float x_min, float x_max)
Figure & yLim(float y_min, float y_max)
Figure & lim(float x_min, float x_max, float y_min, float y_max)
Figure & xLog(bool b =true)
Figure & yLog(bool b =true)
Figure & xLogBase(float base)
Figure & yLogBase(float base)
Figure & xReverse(bool b =true)
Figure & yReverse(bool b =true)
Figure & xAutoscale(bool b =true)
Figure & yAutoscale(bool b =true)
Figure & autoscale(bool b =true)
Figure & xGrid(bool b =true)
Figure & yGrid(bool b =true)
Figure & grid(bool b =true)
Figure & showLegend(bool b =true)
FILE * get_gnuplot_pipe()
void close_gnuplot_pipe()
template <class T >
Figure &
add(std::shared_ptr< T > plot)
template <class T >
Figure &
add(T && plot)
Figure & add(std::shared_ptr< IPlot > plot)
Figure & xtics(std::vector< std::string > tic_labels)
template <class T >
Figure &
xtics(const T & tic_labels)
Figure & xtics(std::vector< std::string > tic_labels, std::vector< double > values)
template <ForwardRange T>
Figure &
xtics(const T & tic_labels, std::vector< double > values)
Figure & clear_xtics()
Figure & save(std::string filename ="", OutputFileType filetype =OutputFileType::NONE, TerminalType terminalType =TerminalType::NONE)
Figure & show(OutputFileType filetype)
Figure & show(TerminalType terminalType =TerminalType::NONE)
const Figure & plot(FILE * fptr, TerminalType terminalType =TerminalType::NONE, std::string saveAs ="") const
Figure & plot(FILE * fptr, TerminalType terminalType =TerminalType::NONE, std::string saveAs ="")

Public Functions Documentation

function Figure

Figure() =default

function Figure

Figure(
    const Figure & 
) =delete

function Figure

Figure(
    Figure && 
) =default

function Figure

Figure(
    std::string title_str
)

function Figure

Figure(
    Text title,
    Text xlabel,
    Text ylabel
)

function ~Figure

~Figure()

function title

Figure & title(
    const Text & title
)

function title

Figure & title(
    Text && title
)

function xLabel

Figure & xLabel(
    const Text & xlabel
)

function xLabel

Figure & xLabel(
    Text && xlabel
)

function yLabel

Figure & yLabel(
    const Text & ylabel
)

function yLabel

Figure & yLabel(
    Text && ylabel
)

function xMin

Figure & xMin(
    float v
)

function xMax

Figure & xMax(
    float v
)

function yMin

Figure & yMin(
    float v
)

function yMax

Figure & yMax(
    float v
)

function xLim

inline Figure & xLim(
    float x_min,
    float x_max
)

function yLim

inline Figure & yLim(
    float y_min,
    float y_max
)

function lim

inline Figure & lim(
    float x_min,
    float x_max,
    float y_min,
    float y_max
)

function xLog

Figure & xLog(
    bool b =true
)

function yLog

Figure & yLog(
    bool b =true
)

function xLogBase

Figure & xLogBase(
    float base
)

function yLogBase

Figure & yLogBase(
    float base
)

function xReverse

Figure & xReverse(
    bool b =true
)

function yReverse

Figure & yReverse(
    bool b =true
)

function xAutoscale

Figure & xAutoscale(
    bool b =true
)

function yAutoscale

Figure & yAutoscale(
    bool b =true
)

function autoscale

inline Figure & autoscale(
    bool b =true
)

function xGrid

Figure & xGrid(
    bool b =true
)

function yGrid

Figure & yGrid(
    bool b =true
)

function grid

Figure & grid(
    bool b =true
)

function showLegend

Figure & showLegend(
    bool b =true
)

function get_gnuplot_pipe

FILE * get_gnuplot_pipe()

function close_gnuplot_pipe

void close_gnuplot_pipe()

function add

template <class T >
inline Figure & add(
    std::shared_ptr< T > plot
)

function add

template <class T >
inline Figure & add(
    T && plot
)

function add

Figure & add(
    std::shared_ptr< IPlot > plot
)

function xtics

Figure & xtics(
    std::vector< std::string > tic_labels
)

function xtics

template <class T >
inline Figure & xtics(
    const T & tic_labels
)

function xtics

Figure & xtics(
    std::vector< std::string > tic_labels,
    std::vector< double > values
)

function xtics

template <ForwardRange T>
inline Figure & xtics(
    const T & tic_labels,
    std::vector< double > values
)

function clear_xtics

Figure & clear_xtics()

function save

Figure & save(
    std::string filename ="",
    OutputFileType filetype =OutputFileType::NONE,
    TerminalType terminalType =TerminalType::NONE
)

function show

Figure & show(
    OutputFileType filetype
)

function show

Figure & show(
    TerminalType terminalType =TerminalType::NONE
)

function plot

const Figure & plot(
    FILE * fptr,
    TerminalType terminalType =TerminalType::NONE,
    std::string saveAs =""
) const

function plot

inline Figure & plot(
    FILE * fptr,
    TerminalType terminalType =TerminalType::NONE,
    std::string saveAs =""
)

Updated on 2025-03-02 at 14:13:16 +0100