vendredi 8 mai 2015

Plot 2d line diagram in mayavi

I have a dataset of a tennis game. This dataset contains the ball positions in each rally and the current score. I already 3d-visualized the game and ball positions in mayavi.

Now I want to plot 2d line diagrams in mayavi that visualizes the score developement after specific events (such as after: a break, a set-win, set-loss,...).

I came up with some ideas, but none of them are satisfying:

  • I could use imshow and "draw" the diagram
  • I could use points3d to plot the diagram
  • Maybe I can somehow use pyplot to plot the diagram, then make a screenshot und then plot this screenshot in mayavi... Any idea if this is possible?

Do you have any other idea how I could plot a 2d line diagram in mayavi?

Aucun commentaire:

Enregistrer un commentaire