Class figure¶
The figure
class implements a container which is able to display data. See Plotting and much more for some examples of use.
-
class castor::figure¶
Container to display 2- or 3-dimensional plots
Data is added to the figure by passing it as an argument to the corresponding functions. Figure are fully interactable.
Constructor
-
figure(int w = 0, int h = 0)¶
Creates a figure object of size (w, h) pixels.
The code below builds a figure of size (w = W/3,h = H/3) where W is the width of the screen and H is its height.
figure fig;
Build a figure with size (300,200)
figure fig(300,200);
-
figure(int w = 0, int h = 0)¶