Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated requirements/docs for colorbrewer addition.

  • Loading branch information...
commit aa303def9b8b5dea25999395de200824ef210ae6 1 parent 20d0e1a
David Zwarg authored
Showing with 15 additions and 1 deletion.
  1. +14 −0 README.markdown
  2. +1 −1  requirements.txt
View
14 README.markdown
@@ -58,6 +58,20 @@ this example, assume that *MySpatialModel* has a foreign key to a model named
sld = generater.as_quantiles(qs, 'route__traffic', 10)
+By default, all the generator methods use a plain black-to-white color ramp.
+The number of classes must match an available color scheme, or the color ramp
+will default to black-to-white. You may specify a colorbrewer ramp name with
+the *colorbrewername* keyword:
+
+ sld = generator.as_quantiles(qs, 'population', 9, colorbrewername='Greys')
+
+You may also reverse the order of the ramp, by specifying the *invertgradient*
+keyword:
+
+ sld = generator.as_quantiles(qs, 'population', 9, colorbrewername='Reds',
+ invertgradient=True)
+
+
Support
=======
View
2  requirements.txt
@@ -2,5 +2,5 @@ lxml>=2.2.6
numpy>=1.6.1
scipy>=0.10.0
pysal>=1.2.0
-python-sld>=1.0.5
+python-sld>=1.0.7
colorbrewer==0.1.1
Please sign in to comment.
Something went wrong with that request. Please try again.