Provide functions/data structures that allow the adding of new graphical elements to a CMA plot.
These must be general enough to deal with patient alignment, resizing, sliding windows etc, but also easy enough.
One idea: plot creates/returns a data structure where for each plotted event we give the (x,y) coordinates of the event start and end + the (x,y) coordinates of the entire plotting are, all of these in the plotting coordinate system.
Provide functions/data structures that allow the adding of new graphical elements to a CMA plot.
These must be general enough to deal with patient alignment, resizing, sliding windows etc, but also easy enough.
One idea:
plot
creates/returns a data structure where for each plotted event we give the (x,y) coordinates of the event start and end + the (x,y) coordinates of the entire plotting are, all of these in the plotting coordinate system.Note: ideally, this should also work for
SVG
.