Pi Spiral

119 views
Skip to first unread message

marce...@gmail.com

unread,
Jan 20, 2014, 11:02:18 AM1/20/14
to circos-data-...@googlegroups.com
So I found this:
http://mkweb.bcgsc.ca/pi/art/

And I immediately was captivated by it. I set out to figure out how to create the last idea in the set, which represents each digits 0-9 with a unique colour and displays pi in a spiral:


Can anybody prod me in the right direction with this? It just looks like so much fun.

Martin Krzywinski

unread,
Jan 22, 2014, 6:28:01 PM1/22/14
to circos-data-...@googlegroups.com
Here's the Circos configuration that generates the images.

First, you parse the number with a script that assigns the radial/angular position to each digit

> cat pi.1e6.txt | ./makescatter > scatter.txt

The makescatter.conf script controls the stepping along the spiral, colors and size of each glyph.

Then run circos

> circos

to create the image. Here I'm assuming circos is in your PATH. It will detect the circos.conf file and read all the files.

Essentially the spiral is a scatter plot with each digit represented by a point, whose x-value (angular position) and y-value (radial position) has been computed by makescatter.


Martin Krzywinski
science + art



--
You received this message because you are subscribed to the Google Groups "Circos" group.
To unsubscribe from this group and stop receiving emails from it, send an email to circos-data-visual...@googlegroups.com.
To post to this group, send email to circos-data-...@googlegroups.com.
Visit this group at http://groups.google.com/group/circos-data-visualization.
For more options, visit https://groups.google.com/groups/opt_out.

spiral.tgz
Reply all
Reply to author
Forward
0 new messages