Function cpplot::to_json(nlohmann::json&, const Axis&)

Function Documentation

void cpplot::to_json(nlohmann::json &j, const Axis &p)

Serialise axis into a valid json string.

Produces json like:

"xaxis": {"title": "x1"}