Skip to content

Creating a simple plot

We start by importing the XYPlot Class from cplots

and we can quickly plot any function "on-the-fly" by doing

What this does under the hood is to create an XYPlot() instance and calls the render() method

def plot(x,y,**kwargs):
    return XYPlot(x, y,**kwargs)

The idea behind cplots is that no changes to the function calls are needed to change backends, and make the figure interactive