DOSull / weaving-space

tools for making tileable weave units that give the appearance of a woven material for multivariate thematic mapping
MIT License
19 stars 0 forks source link

Make a proper WeaveUnit class #6

Closed DOSull closed 2 years ago

DOSull commented 2 years ago

A WeaveUnit class already exists - it's just a data container though. Change get_weave_unit to its constructor, add a plot function, make it produce some stats (area of coverage, relative areas of different strands, etc.

DOSull commented 2 years ago

When a WeaveUnit is instantiated this would be a good place to catch any issues with the margin and aspect settings -- validate them as consistent and issue warnings or advice (see the R code where this was started). See also #4