Jump to content

Plot two lists simultaneously


Recommended Posts

I'm guessing this is a simple one but it has me stuck for almost an hour now.
I have two different velocity vectors:

(setf dynamic-rh (vector-to-velocity 0.55 0.62 (gen-white-noise 10 :seed 122) :type :midi))
(setf dynamic-lh (vector-to-velocity 0.33 0.41 (gen-white-noise 10 :seed 67) :type :midi))

Which I want to combine/merge and plot, I've tried all sorts of stuff like this:

 

(velocity-list-plot '(dynamic-lh dynamics-rh) :point-radius 2)
(velocity-list-plot '((dynamic-lh) (dynamics-rh)) :point-radius 2)
(velocity-list-plot (list(dynamic-lh dynamics-rh)) :point-radius 2)

It's probably quite obvious, but I couldn't write Lisp to save my life..
Thank you in advance!

Link to comment
Share on other sites

There is an error in your code: the variable dynamics-rh should be dynamic-rh

 

Example:

(setf dynamic-rh (vector-to-velocity 0.55 0.62 (gen-white-noise 10 :seed 122) :type :midi))
(setf dynamic-lh (vector-to-velocity 0.33 0.41 (gen-white-noise 10 :seed 67) :type :midi))
(velocity-list-plot (list dynamic-lh dynamic-rh) :point-radius 2)

Screen Shot 2018-04-08 at 21.55.36.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Terms of Use Privacy Policy