numerics 0.1.0
Loading...
Searching...
No Matches
plot.hpp File Reference

Matplotlib-style plotting via a gnuplot pipe. More...

#include "fields/scalar_field_2d.hpp"
#include <cstdio>
#include <stdexcept>
#include <string>
#include <utility>
#include <vector>

Go to the source code of this file.

Classes

struct  num::Series
 
class  num::Gnuplot
 

Namespaces

namespace  num
 
namespace  num::plt
 
namespace  num::plt::detail
 

Typedefs

using num::Point = std::pair< double, double >
 

Functions

Series num::row_slice (const Vector &u, int N, double h, int row)
 Extract one row as \((x_j,u_j)\) plot data.
 
Series num::col_slice (const Vector &u, int N, double h, int col)
 Extract one column as \((y_i,u_i)\) plot data.
 
Series num::row_slice (const ScalarField2D &g, int row)
 
Series num::col_slice (const ScalarField2D &g, int col)
 
void num::apply_siam_style (Gnuplot &gp)
 Apply SIAM-style theme to a raw Gnuplot pipe.
 
void num::set_loglog (Gnuplot &gp)
 
void num::set_logx (Gnuplot &gp)
 
void num::save_png (Gnuplot &gp, const std::string &filename, int w=900, int h=600)
 

Detailed Description

Matplotlib-style plotting via a gnuplot pipe.

Definition in file plot.hpp.