Thanks for the clarification. The code you wrote is correct, I think, and everything behaves normally when I run it (I am using Sim4Life V8.2.2.18061). I do get the squiggly line when the provided values are different (like numpy.array([50.0, 10.0, -900.0])). I get a straight line automatically when the values are all identical (like numpy.array([50.0, 50.0, 50.0])).
Some questions for you, so that I can try to reproduce your issue:
which version of Sim4Life are you using?
which type of simulation are you trying to setup? (it is possible that there is a bug in the API only for some simulation flavours...)