Fix rwt plot

avoid to make function in a loop.
this is mentioned at https://github.com/tork-a/visualization_rwt/pull/31#issuecomment-51855176