Reference 〉Function

SpatialPlot.config( str param, str|num val = None )

Sets options for the spatial plot. One argument will return the value; two arguments sets the parameter. Config options are:

  • patchColormap (str): The name of a Matplotlib colormap for coloring the patches. Default: 'blues'
  • patchProperty (str): The name of a property to which the colormap should correspond. For example, The default value of 'mapcolor' for example means that patch color will represent the patch’s value of Patch.mapcolor, which can be set in the patchStep hook. If the string is formatted 'good:goodname', patch colors will represent the patch’s stocks of the good represented by goodname. Default: 'mapcolor'
  • agentMarker (str): a string representing the Matplotlib marker to be used to represent agents on the map. Default: 'o'
  • agentSize (int|str): If an integer, sets the size of the marker used to represent agents. If a string, represents an agent property or the stocks of a good to size the agent by, identically to patchProperty. Default: 5

Parameters

  • param str, required

    The parameter name to set or get, depending on if the second argument is set.

  • val str|num, optional

    The value to set the parameter to.

    Default value: None

Notes and Examples

  1. Contribute a Note

    Your email address will not be published. Required fields are marked *

    You may use limited HTML for formatting. Please embed blocks of code in <pre><code> </code></pre> tags.