From: John H. <jdh...@ac...> - 2004-04-28 19:41:51
|
>>>>> "Todd" == Todd Miller <jm...@st...> writes: >> * Well, here is my real problem. I need to generate EPS files >> of my pictures for use with TeX (MiKTeX). I'm having a lot of >> trouble with it (this includes problems with the GS conversion >> tool, but that is beyond the scope of this list). Basically, >> using TkAgg or the savefig method, I can generate a PS file >> with the figure. But the problem is that the figure does not >> show well - it is bigger than the generated page, so a very >> significant part of the figure is cut out. Is there anyway to >> resize the picture or tell matplotlib to fit the picture within >> specified dimensions (like some and some centimeters or inches >> height and width)? Resizing the drawing window _did_ solve the >> problem, but then I can't generate the figures by scripting - I >> would have to manually resize everyone of them. Todd> I'm not sure it's made clear anywhere, but you can generate Todd> EPS by using the extension ".ep" or ".eps". On earlier versions of matplotlib there was a figure sizing issue when you saved from tkagg -> postscript or eps, but I thought this was cleared up. Eg when I run examples/simple_plot.py with TkAgg backend and then save test.eps, I don't see any figure size issues. Are you using the latest version 0.53.1? If so can you post a test script that reproduces the eps figure size problem you describe. In the latter case I can probably fix it pronto. JDH |