Skip to content

Plotting routines for Hilbert curve based huge tree model integration paper.

License

Notifications You must be signed in to change notification settings

ijm/hilbert-trees-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hilbert-trees-model

Plotting routines for Hilbert curve based huge tree model integration paper.

TODO - clean up this readme!

This is the Python and Matplotlib code used to produce the figure fors (futurelink). For example Example plot

Issues

Parts of this code were ported from OCaml and C++ with the purpose of producing the correct figures. It is not intended to be nice, portable, and reusable code! (Maybe at some point I'll port the core concepts to a nice open-source library, but not today.)

A 2D location is encoded either at (X, Y, 1<<W) with X, Y, and Z as integers, or as a float pair (x, y) with x and y in the range (-1, 1). A 1D curve index is encoded either as (I, 1<<N) or a float in the range [0, 1). In all cases, these are dyadic fractions. In C++, moving between the two is trivial as it's really just how the structure is packed, and the format that is needed can be inferred from the context. In Python, well, not so much. Python really wants me to pick a lane, and I really ought to tidy that up.

Lastly, the factoring of when things are plotted is a bit messed up: It's threaded all through figure.py. This is partly from having to debug code that was ported from something that was never intended to produce plots, again I ought to tidy that up, or at least disentangle them.

About

Plotting routines for Hilbert curve based huge tree model integration paper.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published