Serialization and docs for plot legend