Matplotlib GUI doesn't allow printing in save box?

I have been using matplotlib in python for some time, and I finally started asking this question about a problem on my mac. When a graph appears (after the plot() , draw() or show() command), I have all the features I might want; I can move, scale, etc., which I did not do in the code.

When I go to save the shape with the view, because I want the Save As window to open and ask for the file name. Everything I type appears in the terminal that I used to execute the command! Select X11, and then enter the same result. It seems that nothing displays the keyboard in this box, but I can paste it into the field with the mouse-> Insert action, and I can select the files in the menu to overwrite, and it works fine.

What's up with that?

Update:

The problem has been beautifully described, and now it contains solutions : Why does the save button not work on the matplotlib chart?

+4
source share
1 answer

Just installed matplotlib 0.99.1 on Python 2.6.2 on Snow Leopard and executed the following code:

 from pylab import * plot([1,2,3]) show() 

Then I played a little with the plot and hit the save button. The save dialog box appeared normally and allowed me to save (and enter) in order. It used the TkAgg backend. However, I got this error:

 2009-12-08 00:40:18.772 Python[728:60f] -deltaZ is deprecated for NSEventTypeMagnify. Please use -magnification. 

This seems to be due to Snow Leopard changing some APIs.

Sorry for using this as a message instead of a comment, but code tags are not allowed in the comments :(

+1
source

All Articles