Showing results for 
Search instead for 
Do you mean 
Reply

[Python] Call another script

Hello,

In my app I am trying to call another python script by clicking on a button.

The "click and call" works, but if I call a script which displays a curve with matplotlib, it doesn't work (the script works fine if I call it outside from AMESim)

 

data='my_data.txt'
plt.plotfile(data, delimiter=' ', cols=(0, 1),
             names=('col1', 'col2'), marker='o')
plt.show()

 

I get the error:

[Python] IndexError: list index out of range

 

Any Idea?

Thank you for any tip

Maxime