divyavamsee / core-plot

Automatically exported from code.google.com/p/core-plot
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Allow linking plots together #358

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Linking two (or even more) plots together (also across plot spaces or even 
graphs) allows to automatically sync their plot range and location so that they 
behave consistent when the user scales or pans a plot. Useful for applications 
that e.g. show a main graph with finanical values over time and a smaller 
subgraph with number of transactions of the same time range.

Original issue reported on code.google.com by mike.lischke on 4 Nov 2011 at 8:27

GoogleCodeExporter commented 9 years ago
It is actually quite trivial just to set the plot space delegates, and sync the 
plots that way. What's more, it is much more flexible. For example, what if one 
graph should show half the range of the other. If you lock them to be the same, 
you have no flexibility. With the delegate approach, you can choose any 
relationship between graphs that you like, including simply making them the 
same.

Original comment by drewmcco...@mac.com on 4 Nov 2011 at 1:20