sys arg

Hi,

I have a very naive question ... howmdo I pass an arg to a matplotlib
script? I need to run MyScript 34 12 67 25 for the script to use those
numbers to multiply quantities for producing a plot... I am using
sysarg[1], 2, 3 but is seems not to work.

thanks

Could you attach your script so that we can see if there is a mistake
of some sort.

Ben Root

···

On Thursday, July 14, 2011, Pau <vim.unix@...982...> wrote:

Hi,

I have a very naive question ... howmdo I pass an arg to a matplotlib
script? I need to run MyScript 34 12 67 25 for the script to use those
numbers to multiply quantities for producing a plot... I am using
sysarg[1], 2, 3 but is seems not to work.

thanks

my problem was fixed with this

var = float(sys.argv[1])

thanks!

···

On 14 July 2011 16:24, Benjamin Root <ben.root@...1304...> wrote:

On Thursday, July 14, 2011, Pau <vim.unix@...982...> wrote:

Hi,

I have a very naive question ... howmdo I pass an arg to a matplotlib
script? I need to run MyScript 34 12 67 25 for the script to use those
numbers to multiply quantities for producing a plot... I am using
sysarg[1], 2, 3 but is seems not to work.

thanks

Could you attach your script so that we can see if there is a mistake
of some sort.

Ben Root