Problem with plotting

11 views
Skip to first unread message

Chitnis, Ajay (NIH/NICHD) [E]

unread,
May 8, 2024, 1:32:06 PMMay 8
to netlog...@googlegroups.com

Hi ,

I have what seems to be a trivial problem with plotting speed of a different individuals in a breed but I can’t figure out what I am doing wrong.

 

I have a breed called HCPs  (Hair Cell Precursors)

 

To name individual HCPs I gave them a variable called PNM (ProtoNeuroMast) which I could then specify 1-5

 

ask HCP
  [
   
if xcor  = min-pxcor + ( 1 * inter-PNM-distance )[  set PNM 1 ]
   
if xcor  = min-pxcor + ( 2 * inter-PNM-distance )[  set PNM 2 ]
   
if xcor  = min-pxcor + ( 3 * inter-PNM-distance )[  set PNM 3 ]
   
if xcor  = min-pxcor + ( 4 * inter-PNM-distance )[  set PNM 4 ]
   
if xcor  = min-pxcor + ( 5 * inter-PNM-distance )[  set PNM 5 ]
  ]

 

Now I need to individually plot speed of each of these HCPs whose PNM is set as 1, 2, 3, 3, 4 etc

 

So in the plot window for each pen I have

plot  [dx] of [HCP with [PNM = 1]]

 

But I get the following Runtime error

 

Graphical user interface, text, application, email

Description automatically generated

Chitnis, Ajay (NIH/NICHD) [E]

unread,
May 8, 2024, 1:52:25 PMMay 8
to netlog...@googlegroups.com

Runtime Error: PLOT expected input to be a number but got the list [-0.9659……] instead.

Reply all
Reply to author
Forward
0 new messages