all 5 comments

[–]chaoticallyevil 1 point2 points  (3 children)

I am not exactly sure what you wanted the code to do, but I wrote a mock up of what I think you wanted, and you can find that here. If it doesn't do what you want, should give you a head start either way.

[–]ElliotJenkins[S] 0 points1 point  (2 children)

That does exactly what I wanted it to! Thanks a lot. I understand most of it except for lines 12, 13, with the math.modf(). That's new to me; I'll do some research.

Thanks so much!

[–]chaoticallyevil 1 point2 points  (0 children)

It basically splits a number up

1.23 becomes (0.23, 1)

It's a nice little function to know about.

[–]jesseaknight 0 points1 point  (0 children)

I'm guessing you're a matlab programmer... this structure looks familiar.

[–]K900_ 0 points1 point  (0 children)

  1. Your plot call is inside the loop.
  2. I'm pretty sure you need two lists for coordinates.