Cheng-Kong Wu wrote: > Dear all, > > I am working on sending vibration results to two > plots: subplot(211) and subplot(212). I have the > following questions: > > 1. How to define the size of the figure? I will > eventually import the figure into Microsoft Word, and > I hope I can fit the figure into one page.
fig = pylab.figure(figsize=(6,10), dpi=96) [...] pylab.savefig("filename.eps", dpi=96) ,where figsize in the figure size in inches. > 2. If I want to make both the subplots square sized, > how do I achieve it? xylims = (-10,10) # set your axis limits here pylab.gca().set_xlim(xylims) pylab.gca().set_ylim(xylims) pylab.gca().set_aspect('equal') That's the quick-and-easy way. If the limits differ, you can create your own new axes instance, have a look at axes_demo.py in the examples. Manuel > Thanks! > Cheng-Kong > > > > ____________________________________________________________________________________ > Never miss a thing. Make Yahoo your home page. > http://www.yahoo.com/r/hs > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users