Add support for plotting.