Scatter plot problem after update

18 views
Skip to first unread message

Srirama Bhamidipati

unread,
Jun 30, 2014, 6:38:05 AM6/30/14
to gama-p...@googlegroups.com
Hi,

Earlier I was using 

chart "DataScatter" type:scatter
{
data "people" value:(list(road) collect each.AADT) color: °red line_visible:false;
data "cars" value:(list(road) collect each.AADT)  color: °green line_visible:false;
}

and it worked fine. 

Now I get an error- each point should be a gama-point or a 2-float list. Is something modified in scatter plot syntax ? I wonder how to resolve this.

regards,
Srirama

Alexis Drogoul

unread,
Jun 30, 2014, 6:40:32 AM6/30/14
to gama-p...@googlegroups.com
What is the type of AADT?
> --
> You received this message because you are subscribed to the Google Groups "GAMA" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.
> To post to this group, send email to gama-p...@googlegroups.com.
> Visit this group at http://groups.google.com/group/gama-platform.
> For more options, visit https://groups.google.com/d/optout.

--
Senior Researcher, UMI UMMISCO 209, IRD & UPMC, France.
Invited Researcher, DREAM, Can Tho University, Viet Nam.
--
alexis....@gmail.com | http://tiny.cc/liqemw
[Vietnam] +84915088155 [France] +33608698845
--
GAMA: https://code.google.com/p/gama-platform/

Srirama Bhamidipati

unread,
Jun 30, 2014, 9:24:38 AM6/30/14
to gama-p...@googlegroups.com
Float , but rare cases int. so float I would say. It is number cars/ people moving on a road. 

So it is scatter plot between list of agents and count of agents on it.
You received this message because you are subscribed to a topic in the Google Groups "GAMA" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gama-platform/52AAQM-9LtI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gama-platfor...@googlegroups.com.

Philippe Caillou

unread,
Jun 30, 2014, 5:45:52 PM6/30/14
to gama-p...@googlegroups.com
Hi,
I don't understand what you want to visualize as scatter chart.

If you want one point for the number of cars and one for the number of people, you should use series (and take the length of the list you collect)

If you want one point at each step with (nb of cars, nb of people), something like this:

chart "DataScatter" type:scatter
{
data "people" value:{length(list(road) collect each.AADT),
                                                                length(list(road) collect each.AADT)} color: °green line_visible:false;
}
what did you get when it worked?

Philippe
(I don't think anything was changed in the chart data definition since scatter charts were introduced)



--

Srirama Bhamidipati

unread,
Jul 1, 2014, 1:26:08 AM7/1/14
to gama-p...@googlegroups.com
Hi 

Thanks. It is working on my mac at home. It did not work on windows at work. I will check again today with the same file and report back.

thanks.

Srirama Bhamidipati

unread,
Jul 2, 2014, 6:30:12 AM7/2/14
to gama-p...@googlegroups.com
Hi,

 Same file used on mac and windows were able to draw the scatter plot, but one particular file, I have a problem. I think it is problem with my code, i am looking into it. Thanks for the guidance

regards,
Srirama

Srirama Bhamidipati

unread,
Jul 2, 2014, 6:47:17 AM7/2/14
to gama-p...@googlegroups.com
When It was working I had this output.
scatterCapture.JPG
Reply all
Reply to author
Forward
0 new messages