in reply to Bioperl Graphics question

Have you installed all needed modules?
i just installed bioperl ( apt-get install bioperl ), copied exactly your code, created the 'data1.txt' file exactly as given in the tutorial (copy paste), ran perl test.pl data1.txt > test.png, and got the proper output, like the example png, including the text.
There seems nothing wrong with your script, it has to be the installation.
ps. i commented out the 'use lib' line.

"We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.