[Matplotlib-users] making multi panel figures

2012-01-12 Thread Michael Rawlins
I have about 140 lines of code that makes a map. I'd like to turn it into a program which makes a multiple panel (map) figure. I understand that subplot will help to do this. Ideally I would like the 140 lines to be like a subroutine called in a loop. In the current code there are two

Re: [Matplotlib-users] making multi panel figures

2012-01-12 Thread Benjamin Root
Just a quick suggestion for cleaning up your code, please look into the argparse module to make command-line parsing so much easier to use. http://docs.python.org/dev/library/argparse.html Ben Root -- RSA(R) Conference

Re: [Matplotlib-users] making multi panel figures

2012-01-12 Thread Michael Rawlins
On 01/12/12 Ben Root wrote: Just a quick suggestion for cleaning up your code, please look into the argparse module to make command-line parsing so much easier to use. http://docs.python.org/dev/library/argparse.html Ben Root Command line parsing?  I'm new to python and matplotlib and

Re: [Matplotlib-users] making multi panel figures

2012-01-12 Thread Benjamin Root
On Thu, Jan 12, 2012 at 2:20 PM, Michael Rawlins rawlin...@yahoo.comwrote: On 01/12/12 Ben Root wrote: Just a quick suggestion for cleaning up your code, please look into the argparse module to make command-line parsing so much easier to use. http://docs.python.org/dev/library/argparse.html

Re: [Matplotlib-users] making multi panel figures

2012-01-12 Thread Michael Rawlins
On 01/12/12 Ben Root wrote: On Thu, Jan 12, 2012 at 2:20 PM, Michael Rawlins rawlin...@yahoo.com wrote: On 01/12/12 Ben Root wrote: Just a quick suggestion for cleaning up your code, please look into the argparse module to make command-line parsing so much easier to use.

Re: [Matplotlib-users] making multi panel figures

2012-01-12 Thread Benjamin Root
On Thu, Jan 12, 2012 at 4:00 PM, Michael Rawlins rawlin...@yahoo.comwrote: On 01/12/12 Ben Root wrote: On Thu, Jan 12, 2012 at 2:20 PM, Michael Rawlins rawlin...@yahoo.comwrote: On 01/12/12 Ben Root wrote: Just a quick suggestion for cleaning up your code, please look into the argparse

Re: [Matplotlib-users] making multi panel figures

2012-01-12 Thread Michael Rawlins
On 01/12/12 Ben Root wrote: On Thu, Jan 12, 2012 at 4:00 PM, Michael Rawlins rawlin...@yahoo.com wrote: On 01/12/12 Ben Root wrote: On Thu, Jan 12, 2012 at 2:20 PM, Michael Rawlins rawlin...@yahoo.com wrote: On 01/12/12 Ben Root wrote: Just a quick suggestion for cleaning up your code,

Re: [Matplotlib-users] making multi panel figures

2012-01-12 Thread Benjamin Root
On Thu, Jan 12, 2012 at 4:32 PM, Michael Rawlins rawlin...@yahoo.comwrote: On 01/12/12 Ben Root wrote: On Thu, Jan 12, 2012 at 4:00 PM, Michael Rawlins rawlin...@yahoo.comwrote: On 01/12/12 Ben Root wrote: On Thu, Jan 12, 2012 at 2:20 PM, Michael Rawlins rawlin...@yahoo.comwrote: On