<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi,</span><div style="font-family:arial,sans-serif;font-size:13px">I am playing around with VTK/python and I wanted to create an animated 2D graph. The basic idea is that I have a data set with values that go through time e.g. 1870 = 20.5, 1925 = 30.5, etc..</div>

<div style="font-family:arial,sans-serif;font-size:13px">I am actually using the World Bank API to get this values for socio-economic indicators (<a href="http://data.worldbank.org/data-catalog/world-development-indicators?cid=GPD_WDI" target="_blank">http://data.worldbank.org/data-catalog/world-development-indicators?cid=GPD_WDI</a>).</div>

<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">What I want to do is to plot this values for different countries but in an animated way. </div><div style="font-family:arial,sans-serif;font-size:13px">

I've been able to plot the values in a 2D graph and I've been playing with animating an object, just simple moving it in a circle motion or from side to side. </div><div style="font-family:arial,sans-serif;font-size:13px">

<br></div><div style="font-family:arial,sans-serif;font-size:13px">My question is regarding on the best way to tackle this. At first I thought, maybe, to graph each point for every country involved at a certain point in time, then after a timer tick graph the next point and re-render the 2d graph. This might give a sense of animation. The other idea I got is to not use a vtkXYGraph object, instead just draw the X and Y axis and use other object class to represent each country, then map the value at a specific point in time to an x, y value in the viewport and move each object accordingly. </div>

<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Which approach do you guys think would be the best?</div><div style="font-family:arial,sans-serif;font-size:13px">

Any other ideas on how to tackle this?</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I think it might be a simple project but I think it's a fun pet project.</div>

<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Thanks.</div>
</div>