python - How to "switch to one of the Agg backends"? -
I have the same problem, that is, when using matplotlib and networkx on Mac OS X 10.8.5, labels are not displayed Are there.
The solution to that thread should "switch one of the AGG based backend" @ TCswell "should solve the problem by avoiding it" Can anyone tell me what it means / how it is To do?
I'm sorry to start a new thread, but I do not have enough reputation to comment on the previous post or to ask any questions! If someone can merge this post and the last, it would be best
thanks Bobby
This should work (note that use If you search for "agre" or "backend" then other questions have more details, e.g. EDIT: Sorry, maybe I did not understand what you are trying to do. As Sebix explains, should be called before importing a pipeline):
import matplotlib matplotlib.use ('AG') Import as matplotlib.pyplot plt
Agg
has a backend (i.e. non-participating plot) to plot a file, and if you want an interactive plot to come to the screen, use one Please. Like Qt4Agg
(Note that this requires PyQt4).
Comments
Post a Comment