PlotKit icon indicating copy to clipboard operation
PlotKit copied to clipboard

Animate plots

Open codeOfRobin opened this issue 9 years ago • 3 comments
trafficstars

Like change data points and stuff?

codeOfRobin avatar May 16 '16 09:05 codeOfRobin

Not right now, but that would be a nice feature to have.

alejandro-isaza avatar May 16 '16 16:05 alejandro-isaza

I'm gonna give it a shot, but one thing that really bugs me is that Core Animation in AppKit isn't as fully featured as UIKit. Is there any drop in replacement for

UIView.animate(duration:,delay.....{
// Add final states here in the closure
})

?

Meanwhile, any good resources on Core Animation in OSX?

codeOfRobin avatar May 16 '16 19:05 codeOfRobin

I don't think that would be right approach anyway. PlotView has it's own drawing code and it's own way of specifying plots. I think it would have to be something like

plotView.animate(fromPointSet: a, toPointSet: b)

and then have something that interpolates between points in a and points in b 60 times a second.

alejandro-isaza avatar May 16 '16 19:05 alejandro-isaza