avee wrote:
>
> Dear users,
> I have been working on a scope based on matplotlib to monitor acquisition
> data. In order to enhance frame per seconds, I have used matplotlib's blit
> capabilities and works ok. No flickering, nice and smooth. Here's how it's
> done, take note that bbox is taken from the figure and not the axes object
> in order to make the scale animated. The problem I have, is that the
> figure is all white because of this.. just a question of esthetics :-) If
> bbox is taken from the axis, the scale will never be drawn. Any
> suggestion?
>
>
This worked for me:
to remove axis temporary and than to take background of the whole picture
but without ticks and labels of this axis:
self.axxaxis = self.ax.get_xaxis()
# store ticker
MJF = self.axxaxis.get_major_formatter()
MJL = self.axxaxis.get_major_locator()
#remove axis
self.axxaxis.set_major_formatter(NullFormatter())
self.axxaxis.set_major_locator(NullLocator())
self.draw()
...
take background for blit
...
# restore ticker
self.axxaxis.set_major_formatter(MJF)
self.axxaxis.set_major_locator(MJL)
--
View this message in context:
http://old.nabble.com/animated-axis-tp26635860p26642470.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users