|
From: <tom...@gm...> - 2010-03-17 17:20:10
|
Hi everyone, Is there a straightforward way for me to ensure that my data is centered: allways present on the figure? I'm plotting the results from complicated geometrical calculations and I need high dpi so that I can debug the code. I've recorded the session in a log file and I've modified the ipython logfile into a script. The result is here: http://img87.imageshack.us/img87/8306/interfaceprojections.png and the script is here: http://pastebin.com/3dkfNDuk As you see, in the image, a part of the rectangle is missing. It is actually sort of a rectangle shaped set of finite volumes. What I'm looking for is to have the whole rectangle (or any other shape) visible on the axes of the figure, with a properly scaled axes ratio ('equal' in the script). And to reduce the output, could it be possible to plot just the diagram, without the remaining whitespace? It seems that when I use figureOne.set_figheight(number) figureOne.set_figwidth(number) it stands for the figure, but not for the axes. I'm interested just in the axes since it's the only subplot. Any advice? I looked in the user guide but I didn't find anything so far... I'll keep looking. Thank you in advance, Tomislav |