problem with plotting

Asked by rabea rohana

hii

i'm having a problem with plotting , every time i run a script with plotting function i got the same error ( name 'function' is not defined )

help pleas
rabea

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jan Stránský (honzik) said :
#1

Hello,

please provide us with a minimal working script so we can also try it. Also
please tell us how you run yade (i.e. running python script or writing
commands into IPython console) and what version you are using

thanks
Jan

2014-10-13 12:31 GMT+02:00 rabea rohana <
<email address hidden>>:

> New question #255656 on Yade:
> https://answers.launchpad.net/yade/+question/255656
>
> hii
>
> i'm having a problem with plotting , every time i run a script with
> plotting function i got the same error ( name 'function' is not defined )
>
> help pleas
> rabea
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
rabea rohana (rabi-rohana) said :
#2

hii

im trying to run the second example ( https://yade-dem.org/doc/tutorial-examples.html )
im runnug it from a ".py" script
and im using yade 1.07.0

i got the error " NameError: name 'addPlotData' is not defined "

rabea

Revision history for this message
Jan Stránský (honzik) said :
#3

I just tried it on the newest trunk version and it works without problems..
Could you try it on a newer version than 1.07.0?
cheers
Jan

2014-10-13 12:51 GMT+02:00 rabea rohana <
<email address hidden>>:

> Question #255656 on Yade changed:
> https://answers.launchpad.net/yade/+question/255656
>
> Status: Answered => Open
>
> rabea rohana is still having a problem:
> hii
>
> im trying to run the second example (
> https://yade-dem.org/doc/tutorial-examples.html )
> im runnug it from a ".py" script
> and im using yade 1.07.0
>
> i got the error " NameError: name 'addPlotData' is not defined "
>
> rabea
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
Sway (zhswee) said :
#4

Hi Rabea,

Is the function addPlotData in your script? When you want to continue a simulation by "O.load(yoursimulationdata)", you'd better make sure all functions have been defined in you startup script.

Sway

Can you help with this problem?

Provide an answer of your own, or ask rabea rohana for more information if necessary.

To post a message you must log in.