vtsuperdarn/davitpy — pull request #107 by cmeeren (2014-09-26 13:08:46+00:00)
Title: make overlayMapFitVel keep track of all plotted vectors

overlayMapFitVel is currently storing scatters and lines in two attributes ``self.mapFitPltStrt`` and ``self.mapFitPltVec``, but these are overwritten for each iteration of the plotting loop and thus only contain references to a few of the plotted objects.

This branch makes the two attributes lists instead, appending plotted objects throughout the loop. This makes it possible to e.g. remove all the plotted objects (which is useful if iterating and making an animation or similar). The two attributes are not used for anything else throghout the davitpy codebase.

Note that since the type/structure of the attributes change, this will break backwards compatibility if anyone was ever using these for anything. Fixing this is as simple as what I've done on the last edited line (adding an index referencing any single element in the list - or specifically the last one, ``[-1]``, if one's really picky).