October 29, 2012
As they say, "A picture is worth a thousand words," so scientific papers contain many graphs and other images. Computationally speaking, there are about 100,000 24-bit words in a multi-megapixel photograph, so this adage needs to be updated.
Programmers use whatever devices are available to them to produce graphic images. The oscilloscope was likely the first such apparatus for producing graphical output from computers, followed by pen plotters and printers. The pen plotters could produce simple images using vector graphics, and printers could produce ASCII art images, such as the figure, below.
The first graphics I did on a computer was printing computed phase diagrams for binary alloys. This was done in the APL programming language, and the diagrams were rendered as huge matrices in which the numbers were replaced by keyboard characters. Very nicely, the APL character set has many Greek characters, which were convenient for labeling alpha phases, etc.
When I finally had a vector graphics terminal in my office, I played with a common program at the time that gave a graphic based on a person's name. The program was extremely simple, just plotting lines between (x,y) points defined in a phase space of characters. The points were defined as (ai,ai+1), where ai is the ordinal value of the character (a=1, b=2, etc.). This is easy to do with a spreadsheet program, as the following example demonstrates.
| ||The Lenna image, rendered as ASCII art.|
Aliasing appears when the image is shrunk to such a small size, since the characters are separated in regular rows and columns.
(Click for larger image without aliasing)
Often, scientific calculations result in aesthetically pleasing images. The reason for this might be that our eyes are drawn to symmetrical vistas, and symmetry abounds in the equations that describe most physical processes. To investigate the possibility of generating "art" from a very basic physical process, I wrote a program (source code available, here) to display the trajectory of an object under the influence of a basic inverse square (1/r2) force from a random set of ten other objects in a plane.
This is like the gravitational attraction experienced by a strange asteroid entering a strange planetary system. The asteroid is strange, since it's initially at rest, and the planetary system is strange because there is no star, all the planets have the same mass, and a planet will disappear when it appears that the asteroid will impact. This last condition allows the asteroid to enter a somewhat stable orbit, since all the disastrous (pun intended) paths have been removed.
This disappearing planet case is reminiscent of the episode, "Collision Course," of the television series, Space: 1999. The story line of that series is that the far side of the Moon was used as a dumping ground for Earth's nuclear waste, and the waste erupts into an explosion that pulls the Moon, with several hundred people living there, out of its orbit and into deep space.
This series was unlike other space adventure series, since the scripts often had a surreal character. The "Collision Course" episode revolved around the idea that the Moon was on course to collide with an alien planet, Atheria. As foretold by the Queen of Atheria, the planet disappeared at the point of collision. I must admit that since I'm a fan of "hard" science fiction, I never enjoy this type of story.
The following is a gallery of obits from my program, chosen for their aesthetic value. You can rerun these, perhaps with minor modification of the positions to see what happens; or, modify the program to give different results. Since this is "art," any physics errors you may find in the source code were strictly intentional (LOL).
|"George Washington" rendered in alphabetic phase space.|
The points are (ai,ai+1), where ai is the ordinal value of the character.
Graph rendered using Gnumeric.
|A gallery of some calculated orbits. Click images to see positions of the ten random objects in the plane. The test object starts at (0,0)|
- Space:1999 page on the Internet Movie Database.
Permanent Link to this article
Linked Keywords: A picture is worth a thousand words; scientific literature; scientific paper; plot; graph; computation; word computer architecture; megapixel; digital photography; adage; programmer; oscilloscope; computer; pen plotter; printer; vector graphics; ASCII art; Lenna image; aliasing; character; phase diagram; binary alloy; APL programming language; matrix mathematics; Greek language; alpha; phase; computer terminal; phase space; ordinal; spreadsheet; Gnumeric; aesthetics; symmetry; physics; orbit.c; trajectory; inverse square law; randomness; random; plane; gravitation; gravitational attraction; asteroid; planetary system; star; planet; mass; impact event; orbit; disastrous etymology; List of Space: 1999 episodes; Collision Course; television series; Space: 1999; far side of the Moon; Earth; nuclear waste; Moon; interstellar travel; deep space; surrealism; surreal; "hard" science fiction; Internet Movie Database.
Latest Books by Dev Gualtieri
Thanks to Cory Doctorow of BoingBoing for his favorable review of Secret Codes!
Blog Article Directory on a Single Page
- J. Robert Oppenheimer and Black Holes - April 24, 2017
- Modeling Leaf Mass - April 20, 2017
- Easter, Chicks and Eggs - April 13, 2017
- You, Robot - April 10, 2017
- Collisions - April 6, 2017
- Eugene Garfield (1925-2017) - April 3, 2017
- Old Fossils - March 30, 2017
- Levitation - March 27, 2017
- Soybean Graphene - March 23, 2017
- Income Inequality and Geometrical Frustration - March 20, 2017
- Wireless Power - March 16, 2017
- Trilobite Sex - March 13, 2017
- Freezing, Outside-In - March 9, 2017
- Ammonia Synthesis - March 6, 2017
- High Altitude Radiation - March 2, 2017
- C.N. Yang - February 27, 2017
- VOC Detection with Nanocrystals - February 23, 2017
- Molecular Fountains - February 20, 2017
- Jet Lag - February 16, 2017
- Highly Flexible Conductors - February 13, 2017
- Graphene Friction - February 9, 2017
- Dynamic Range - February 6, 2017
- Robert Boyle's To-Do List for Science - February 2, 2017
- Nanowire Ink - January 30, 2017
- Random Triangles - January 26, 2017
- Torricelli's law - January 23, 2017
- Magnetic Memory - January 19, 2017
- Graphene Putty - January 16, 2017
- Seahorse Genome - January 12, 2017
- Infinite c - January 9, 2017
- 150 Years of Transatlantic Telegraphy - January 5, 2017
- Cold Work on the Nanoscale - January 2, 2017
- Holidays 2016 - December 22, 2016
- Ballistics - December 19, 2016
- Salted Frogs - December 15, 2016
- Negative Thermal Expansion - December 12, 2016
- Verbal Cues and Stereotypes - December 8, 2016
- Capacitance Sensing - December 5, 2016
- Gallium Nitride Tribology - December 1, 2016
- Lunar Origin - November 27, 2016
- Pumpkin Propagation - November 24, 2016
- Math Anxiety - November 21, 2016
- Borophene - November 17, 2016
- Forced Innovation - November 14, 2016
- Combating Glare - November 10, 2016
- Solar Tilt and Planet Nine - November 7, 2016
- The Proton Size Problem - November 3, 2016
- Coffee Acoustics and Espresso Foam - October 31, 2016
- SnIP - An Inorganic Double Helix - October 27, 2016
- Seymour Papert (1928-2016) - October 24, 2016
- Mapping the Milky Way - October 20, 2016
- Electromagnetic Shielding - October 17, 2016
- The Lunacy of the Cows - October 13, 2016
- Random Coprimes and Pi - October 10, 2016
- James Cronin (1931-2016) - October 6, 2016
- The Ubiquitous Helix - October 3, 2016
- The Five-Second Rule - September 29, 2016
- Resistor Networks - September 26, 2016
- Brown Dwarfs - September 22, 2016
- Intrusion Rheology - September 19, 2016
- Falsifiability - September 15, 2016
- Fifth Force - September 12, 2016
- Renal Crystal Growth - September 8, 2016
- The Normality of Pi - September 5, 2016
- Metering Electrical Power - September 1, 2016
Deep Archive 2006-2008