Is there a way to come up with an abstract representation of the data that does not depend on the details of how the packages work or the nature of what they produce. E.g., is there a generic way to represent the output data (lists of coordinates, key-value pairs for various types of metadata - possibly to be turned into labels, type of plot, things like that) that you can directly produce or transform to, so that the plotting library can draw it without having to know what it is (with the ability to potentially style the plot on the plotting library side)?
↧