|
| Visdom (ConnectionParams cparams=ConnectionParams(), std::string env="main", bool send=true) |
|
| ~Visdom () |
|
std::string | save (std::vector< std::string > const &envs) |
| This funciton allows the user to save envs that are alive on the Tornado server. More...
|
|
std::string | close (std::string const &win=std::string(), std::string const &env=std::string()) |
| This function closes a specific window. More...
|
|
std::string | text (std::string const &txt, Options const &opts=Options()) |
| This funciton prints text in a box. More...
|
|
std::string | text (std::string const &txt, std::string const &win, Options const &opts=Options()) |
|
std::string | text (std::string const &txt, std::string const &win, std::string const &env, Options const &opts=Options()) |
|
std::string | heatmap (torch::Tensor tensor, Options const &opts=Options()) |
| This function draws a heatmap. More...
|
|
std::string | heatmap (torch::Tensor tensor, std::string const &win, Options const &opts=Options()) |
|
std::string | heatmap (torch::Tensor tensor, std::string const &win, std::string const &env, Options const &opts=Options()) |
|
std::string | scatter (torch::Tensor X, Options const &opts=Options(), UpdateMethod update=UpdateMethod::None) |
| This function draws a 2D or 3D scatter plot. More...
|
|
std::string | scatter (torch::Tensor X, std::string const &win, Options const &opts=Options(), UpdateMethod update=UpdateMethod::None) |
|
std::string | scatter (torch::Tensor X, std::string const &win, std::string const &env, Options const &opts=Options(), UpdateMethod update=UpdateMethod::None) |
|
std::string | scatter (torch::Tensor X, std::string const &win, std::string const &env, std::string const &name, Options const &opts=Options(), UpdateMethod update=UpdateMethod::None) |
|
std::string | scatter (torch::Tensor X, torch::Tensor Y, Options const &opts=Options(), UpdateMethod update=UpdateMethod::None) |
|
std::string | scatter (torch::Tensor X, torch::Tensor Y, std::string const &win, Options const &opts=Options(), UpdateMethod update=UpdateMethod::None) |
|
std::string | scatter (torch::Tensor X, torch::Tensor Y, std::string const &win, std::string const &env, Options const &opts=Options(), UpdateMethod update=UpdateMethod::None) |
|
std::string | scatter (torch::Tensor X, torch::Tensor Y, std::string const &win, std::string const &env, std::string const &name, Options const &opts=Options(), UpdateMethod update=UpdateMethod::None) |
|
std::string | line (torch::Tensor Y, Options const &opts=Options(), UpdateMethod update=UpdateMethod::None) |
| This function draws a line plot. More...
|
|
std::string | line (torch::Tensor Y, std::string const &win, Options const &opts=Options(), UpdateMethod update=UpdateMethod::None) |
|
std::string | line (torch::Tensor Y, std::string const &win, std::string const &env, Options const &opts=Options(), UpdateMethod update=UpdateMethod::None) |
|
std::string | line (torch::Tensor Y, std::string const &win, std::string const &env, std::string const &name, Options const &opts=Options(), UpdateMethod update=UpdateMethod::None) |
|
std::string | line (torch::Tensor Y, torch::Tensor X, Options const &opts=Options(), UpdateMethod update=UpdateMethod::None) |
|
std::string | line (torch::Tensor Y, torch::Tensor X, std::string const &win, Options const &opts=Options(), UpdateMethod update=UpdateMethod::None) |
|
std::string | line (torch::Tensor Y, torch::Tensor X, std::string const &win, std::string const &env, Options const &opts=Options(), UpdateMethod update=UpdateMethod::None) |
|
std::string | line (torch::Tensor Y, torch::Tensor X, std::string const &win, std::string const &env, std::string const &name, Options const &opts=Options(), UpdateMethod update=UpdateMethod::None) |
|
This function draws a line plot.
It takes in an N
or NxM
tensor Y
that specifies the values of the M
lines (that connect N
points) to plot. It also takes an optional X
tensor that specifies the corresponding x-axis values; X
can be an N
tensor (in which case all lines will share the same x-axis values) or have the same size as Y
.
update
can be used to efficiently update the data of an existing line. Use 'append' to append data, 'replace' to use new data. Update data that is all NaN is ignored (can be used for masking update).
The following opts
are supported:
opts.fillarea
: fill area below line (boolean
)
opts.colormap
: colormap (string
; default = 'Viridis'
)
opts.markers
: show markers (boolean
; default = false
)
opts.markersymbol
: marker symbol (string
; default = 'dot'
)
opts.markersize
: marker size (number
; default = '10'
)
opts.legend
: table
containing legend names
If update
is specified, the figure will be updated without creating a new plot – this can be used for efficient updating.