swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: EZDistribution problem


From: J. McKenzie Alexander
Subject: RE: EZDistribution problem
Date: Wed, 5 Dec 2001 20:35:09 -0800

Suppose I think your collection is not working right. You use a Set, not
a List, for example.  If I change your ez_dist code to just take an
empty collection, then the model does not crash:  

This is the right thing to do -- when I change the underlying collection from a Set to a List, and populate it accordingly, everything works wonderfully.  However, I found that I did need to add a few more actions to get it to display properly.  I.e.,

if ( show_graph ) {
    [displayActions createActionTo: ez_graph  message: M(step)];
    [displayActions createActionTo: ez_distribution  message: M(reset)];   
    [displayActions createActionTo: ez_distribution  message: M(update)];
    [displayActions createActionTo: ez_distribution  message: M(output)];
  }

My next question is this: I'd like to change the colors of the histogram to conform to the colors used in the model.  I see that this can be done via setColors.  However, it says that the argument to setColors needs to be a "custom vector of colors".  What, exactly, is that?  Is that like an array of strings containing X color names?

Cheers,

Jason

--
J. McKenzie Alexander
Co-ordinator, MSc Philosophy of the Social Sciences
Department of Philosophy, Logic and Scientific Method
London School of Economics and Political Science
Houghton Street
London WC2A 2AE


reply via email to

[Prev in Thread] Current Thread [Next in Thread]