In this recipe, we will learn how to create a curvilinear grid with its own coordinate system, within a rectangular axis that uses the Cartesian coordinate system. We will plot a simple line graph between two points represented by curvilinear coordinates.
This is essentially a custom-developed curvilinear coordinate system, for which we have to define the functions that map from curvilinear coordinates to Cartesian coordinates and in reverse direction. In subsequent recipes, we will learn about the predefined transformations provided by the axistartist class.