error saving to pdf (cannot take log of nonpositive value)

matplotlib-0.91

I got a nice semilog plot on the screen. Trying to save it to pdf fails, saying 'cannot take log of nonpositive value'.