views:

262

answers:

1

I've been using matplotlib in python for some time now and I've finally gotten around to asking this question about an issue on my mac. When a plot shows up (after the plot() command, draw(), or show()), I have all the functionality I could want; I can move, zoom, etc. that I didn't do in the code.

When I go to save a figure with the view as I desire the save as box opens up and prompts for a filename. Anything I type appears in the terminal I used to execute the command! Selecting X11 and then typing has same result. Nothing seems to put the keyboards output into that box, but I can paste into the box using the mouse->Paste action and I can select files in the menu to overwrite and it works fine.

What's up with this?

+1  A: 

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

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

Then, I fiddled around with the plot for a while and clicked the save button. The save dialog box popped up normally and allowed me to save (and type) fine. This was using the TkAgg backend. However, I did get this error:

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

Which seems to be something to do with Snow Leopard changing some APIs.

Sorry for using typing this as a post instead of a comment, but code tags aren't allowed in comments :(

Chinmay Kanchi