Showing posts with label Graphics. Show all posts
Showing posts with label Graphics. Show all posts

Monday, March 24, 2008

Data Visualization for US Politics

With the end of the primary season coming up this summer, I expect a resurgence of the talk about "red and blue states" that dominated the 2004 election as we approach the direct engagement of the Republican and Democratic parties. This morning, I stumbled on a great site by Michael Gastner, Cosma Shalizi, and Mark Newman from the University of Michigan that uses very nice cartographic representations of the last election results to better visualize the electorate.

Popular publications such as USA today published many maps of this sort showing the winner's party by county.



But this graphical representation fails to take into account either the population density, electoral votes by county, or how close the vote was. If you process the map topology and scale each county to represent electoral votes, and color the vote results as a continuous scale from red to blue with even results represented as a mixed color of purple, the result is much more interesting.



Rather than the stark red/blue divide of the trivial map above, a more representative view of our nation deemphasizes sparsely-populated geographies with little economic impact and highlights those regions driving tomorrow's economy. We also look like a much more homogeneous purple nation in this view.

Interestingly enough, in the economic-political view, the most politically homogeneous regions are the blue counties where economic development is the strongest.

Check out the whole site here.

Friday, March 07, 2008

Live 3D Graphics With Excel

Every time I get a chance to watch one of our finance folks over at MobiTV wield a spreadsheet, I learn some new tricks. Those financial analysis folks steeped in the arcane features of Excel seem to be able to make the software package produce ever more astounding and useful models of increasingly complex systems.

But this one takes the cake. Check out this really cool implementation of a 3D graphics rendering engine. IN EXCEL! Peter Rakos over at Gamasutra outdid himself.


This image and video pair shows the rendering system using a simple display that colors the native Excel spreadsheet cells as the calculations are being performed.





This image and video pair shows the same program using the Microsoft Office Graphics Abstraction Layer to do the rendering instead of using writes to the spreadsheet cell.




Even better, some of the spatial layout and cell computation models of spreadsheets turn out to be very useful in designing and presenting very compact and elegant representations of the rendering pipeline. This design and layout in the 2-D spreadsheet grid is massively easier to see and understand than all the simple linear text files that I coded up in my college graphics course. It also makes the interrelationships and cell/function dependencies immediately obvious, and debugging is trivial with live previews of the calculations while the program is running. High cool.



"The yellow color marks the user-defined parameters and green color indicates the engine-calculated values. Numbered areas contain the following data:

  1. Parameters of the perspective projection
  2. 3D coordinates of the objects' points (relative to their center)
  3. Shift and rotation matrix (further details can be found e.g. at http://en.wikipedia.org/wiki/3D_projection)
  4. Parameters of the rotation
  5. 3D absolute coordinates of the points after the shift and rotation
  6. 2D coordinates of the points after the perspective projection
  7. Screen coordinates of the points
  8. End points of the objects' edges
  9. Formula of an element in the shift and rotation matrix. Simplicity and compactness are clearly visible."



    Now I don't think anyone currently expects this to evolve into a real 3D simulation system, but it does point to some very interesting 2D layout programming paradigms that might very well turn out to be VERY useful in developing more complex software. It wouldn't surprise me if the professional code development environments evolve towards this sort of thing within the next few years. And of course, 3D environments are just a step away.

    And I have a whole new animation tool for my next presentation!

    Check out the whole post here.

    Wednesday, November 28, 2007

    Our Conflicted Government

    Sometimes the right picture is worth more than a thousand words. There's a fine art to representing data to clearly illuminate an issue, and this one takes my nomination for the graph of the year. This graphic comparing our government's nutritional recommendations to its actual spending tells the story of money (from lobbyists) over morals.

    Sunday, October 07, 2007

    Fine Art Photoshop Contest

    Yes, my favorites are all irreverent, but I just can't resist. Check out the growing collection at the Fine Art Photoshop Contest posted here, where you can also see the un-retouched originals.

    Following frame

    Wednesday, October 03, 2007

    A Nice Visual Illusion

    No, this one is not animated. All the motion is happening in your head. If you don't believe me, try covering most of the image with your hand or a piece of paper and only looking at a small part. You will see that no individual part of the image moves at all. It is only when you try to see the whole image that you notice motion.



    So can any of you tell me how this works?

    Tuesday, July 17, 2007

    Photoshop at Work

    Apparently, all you need to really look your hottest is Photoshop. Check out this post from Jezebel.

    redbookcoveranime.gif

    And don't miss the annotated step-by-step by-the-numbers summary of all the retouching that was necessary to make Faith hot.

    Friday, January 12, 2007

    Nature and Nanotechnology

    Understanding Nanotechnology has a nice chart that compares the scale and complexity of natural structures as compared to artificial ones we can fabricate.

    Thursday, December 14, 2006

    Ever Wonder Where Your Tax Dollars Are Going?

    Check out the Death and Taxes Poster in this zoomable Flash applet. It's not the easiest interpretation to decipher, but it is packed with visually interesting information, and does attempt to show relative budgets by the circle sizes. (Also note that this just covers the discretionary budget that is voted on, and approved every year, and does not include service on ongoing programs like Social Security).

    http://img163.imageshack.us/img163/6717/thebudgetgraphcom500qw9.jpg

    Here are a couple excerpts related to some of our recent foreign endeavors:

    http://img153.imageshack.us/img153/5653/thebudgetgraphcomarmyprove9.jpg

    The image “http://img370.imageshack.us/img370/2971/thebudgetgraphcomafprone0.jpg” cannot be displayed, because it contains errors.

    http://img90.imageshack.us/img90/3417/thebudgetgraphcomintelor9.jpg


    And on the domestic front:

    http://img90.imageshack.us/img90/3041/thebudgetgraphcomdos800bj8.jpg

    http://img133.imageshack.us/img133/9747/thebudgetgraphcomdoj800bc9.jpg

    http://img246.imageshack.us/img246/8330/thebudgetgraphcomaghh4.jpg

    If all that doesn't already depress you, just note that the circle for the national debt of over $9.3 trillion is larger than the entire chart in its expanded form. Wasn't fiscal discipline supposed to be a fundamental plank of the Republican party? What happened?

    Monday, November 13, 2006

    A Photographic Periodic Table

    I was talking to a friend from MIT a few years back, when she told me about this guy she used to date and what an incredible geek he was. Given her own tenure at MIT and her resultant accrual of a rather high level of nerd pride, it was indeed noteworthy to hear her cast such aspersions.

    She went on to say "...he had even spent years collecting samples of most of the elements in the periodic table, and built a display case to hold them in the same layout." Though I didn't share it at the time, my first thought was "geeky or not, I would love to see it...maybe even build one of my own..." So I guess I'm a geek too.

    What partly set off my imagination at the time, though, was the fact that the elements seemed very abstract to me when we first learned about them in high school chemistry. It wasn't until decades later in my technical career when I had been exposed to all the uses and applications of the different elements that there was any physical grounding for the abstract table. A little extra time studying the applications of the elements, and a physical sample of each one seem like a capital idea!

    I never did manage the meeting or the initiative to build my own collection, but now I can get pretty close with a lot less effort. Check out this photographic table of the elements.

    27x53 Poster
    (click on the image for an enlarged version)

    I particularly like the titanium turbine blade, the hydrogen in the nebula, and the neon bulbs for the noble gases. I'd still like to see more examples per element, including things like integrated circuits for silicon and aluminum and so on. But at least it's a start.

    You can get all the posters and place mats you want here. Every chemistry classroom should have one!

    Friday, October 27, 2006

    A Snowflake Closeup

    I first found this image on Chet Ramo's Science Musings blog, and just stopped to look at it for a while. (click on the image to view a high resolution version.)



    At first glance, it doesn't really look like a snowflake. In actuality, it is an image of several snowflakes of differing conformation (I counted about eight different varieties) that have been sputter coated with platinum at a very low temperature (in order to make them conductive) and then imaged with a Scanning Electron Microscope equipped with a low temperature stage. The resulting gray-scale image formed by the electron beam was then digitally colored just as the old black and white movies have been "colorized" to result in the above "false color" image. Here's a picture of the specific unit that was used to take this image.

    Hitachi S-4100 field emission Scanning Electron Microscope
    Check out more details on the equipment here, and the original source of the snowflake crystals images here, and here.

    Tuesday, October 24, 2006

    Where There's Math, There's Fire

    I'm always on the lookout for a good screensaver. And mathematically-defined flames just seem too good to pass up. These tasty little bits of eye candy are based on the work of Michael Barnsley from Georgia Tech (One of my freshman calculus instructors, incidentally) who invented Iteratted Function System fractals, which were used by Scott Draves in 1992 to make artificial flames. These examples were made by rajah, and you can see many more examples and animations here and here.









    Now you can go and make your own artificial flames with a freeware application called Apophysis that runs on the Windows operating system. Donwload it here. If you'd just like to check out some animations and images, look here.

    Tuesday, September 26, 2006

    If Only My Biology Teacher Had Drawn This Well

    A DaVinci Blackboard Lesson in Multi-Conceptual Anatomy
    Check out this blackboard photo of Caryn Babaian's anatomy lesson at Bucks County Community College.

    Saturday, September 02, 2006

    Living Cell Visualizations

    Harvard University recently commissioned XVIVO's animation studio to develop realistic computer graphics animations of biological processes for instructional purposes. Some of their first work was presented at Siggraph 2006. Check out "The Inner Life of the Cell" In the meantime, here are some stills from the mini-movie. High cool.

    The Inner Life of the Cell (image #1)

    The Inner Life of the Cell (image #2)

    Biomimetic Digital Photography

    Or, How to Make Your Camera Work More Like Your Eyes

    Anyone who has ever tried to snap a few photos with a modern camera has probably felt the frustration that the camera often fails to get the exposure quite right, with things that you can see clearly either washed out and over-exposed, or invisible in the shadows. The intrepid among you may have even gone so far as to turn the switch to manual, only to discover that it is really hard to do too much better than the automatic system. You end up with these types of exposure-bracketed images:


    The sky detail is only visible in the lower exposure (faster shutter speed) and the building detail is only visible in the higher exposure. And yet when you look directly at the scene, everything is clearly visible to the naked eye. The reason for this is that through an amazing combination of the iris' aperture dilation, and the logarithmic response of the photo-receptive neurons in retina, the human eye automatically adapts to an incredibly broad range of illumination intensity as it scans across broad scenes. A camera, on the other hand, must use the same exposure aperture and sensitivity settings across the entire image, and the photo-detectors have a linear response curve.

    As a result, a camera's dynamic range (the number of discrete brightness gradations it can detect) is much more limited, and the same range is applied across the entire field-of-view. This means that in scenes with wide illumination variations, typical photographs fail to capture details on either the bright side, or the dark side.

    But there is a growing field of photography called "High Dynamic-Range Imaging" that combines multiple photos of varying exposure to artificially expand the dynamic range of a final composite image. The technique has demonstrated amazing results. Here is the final photo created using the three exposures above. (examples from this site)




    Here are some other before and after sets that demonstrate the power of this technique.




    This photo shows a great solution to the canonical problem of imaging a bright outdoors from inside a much darker room. Here is an example applied to portraiture:



    There is definitely an art to assembling the images, because if the technique is applied to aggressively, the resulting images look a little surreal. Here are some more examples from a great web site that are on the edge, but still very interesting.

















    And of course, these same techniques are critical to processing photos of astronomical objects. All you need are a few photos and some photo editing software like Photoshop or Paint Shop Pro. And with the great proliferation of interest in these techniques, there is already a large community of web sites hawking the latest techniques and even automated Photoshop plug-in software. Here are a few of my favorites:

    Cybergrain.com
    Modern HDR Photography
    NatureScapes
    Photomatix


    Go forth and process.













    Saturday, August 19, 2006

    Visualizing Our Earth

    I'm always a sucker for nifty data visualization hacks and I particularly enjoyed these globe projections from the San Jose Technology Museum.


    Life Expectancy

    Life expectancy is a core factor in the human development index. With 82 years Japan has the highest life expectancy. All 35 countries at the bottom of this list are located in sub-Saharan Africa; their citizen's average life expectancy is between 52 and 39 years.



    Mountains of Debt



    Pollution
    Dark red circles indicate oil spills and gray-shaded areas indicate sea pollution and land pollution from chemical fertilizers. Shown is only a small part of the entire pollution spectrum in 1988. At an average of every three months this globe becomes obsolete due to yet another major oil spill.



    Satellite Blind Spots

    The public service Landsat System has blind spots over territory and time. However, personal satellites may soon be purchasable for about the price of a Mercedes, and space junk is increasingly hard to track.

    Check the web site above for hundreds more!