Custom Charts w/ Perl and GD 112
An anonymous reader writes "This article describes techniques you can use to create new levels of usefulness in your dynamically generated charts with Perl and GD. Cook up some automatically generated graphs for your organizational meetings or live enterprise directory data. Annotate the charts with readable text that delivers more information than the standard pie chart. Using the power of GD and Perl, you can link various data and images together to create sophisticated charts that will help bring visual interest to your applications."
These charts look like shit (Score:2, Interesting)
ChartDirector (Score:3, Interesting)
Re:Don't get it.. (Score:3, Interesting)
My solution was to use Perl and Win32::OLE to interface with Excel 2003 using VBA scripting within Perl. Sure, it's a Windows-only solution, and it's not open source, but it was an intranet problem that needed to be solved.
Re:Don't get it.. (Score:2, Interesting)
Re:The right tool for the right job (Score:4, Interesting)
Lookup Flex Charts. An open-source Flash library for rendering charts, by Adobe.
It can renders charts if you just feed it the data (in XML format) and what chart type you want.
These charts look like shit? No they don't. (Score:3, Interesting)
). Anti-aliased lines and text
Let's compare this to what I'd get if I asked most professionals for a chart. (These were the first ones from google). The lack of anti-aliasing hurts one's eye, these all look like they're from 1995.
http://support.alphasoftware.com/images/XD_Intera
http://msdn2.microsoft.com/en-us/library/aa192481
(the second one is 3d)
And in response to your comment
> When will open source advocates learn to delegate the graphic design aspect of their work to professionals? if only the programming types in charge of these projects would admit they're better at making code than graphics.
You seem to have missed the point. The article is about free software that can be used by professional and non-professional alike to create some hot graphics. Perhaps you're referring to the ugliness of the original tux logo? It's not 1995, and developers aren't resigned to producing their own graphics. If you look all free software houses pushing their brand use professional designers. Think of the firefox logo (2004)
http://www.hicksdesign.co.uk/journal/branding-fir
or of ubuntu and gnome's curves, and check out the tango project http://tango.freedesktop.org/ [freedesktop.org]
Desktop linux has never looked so sexy.
Why so sour, AC?
Re:wow! (Score:2, Interesting)
> Anyone have better solutions?
Yes.
eZComponents Graph [ez.no], from the developers of the eZpublish CMS. It's FLOSS, easy to use, and works very well for some automatically generated graphs [carroll.org.uk] I made that needed to update every week.
Ah, charts in Perl... (Score:5, Interesting)
There just isn't a general purpose charting package for Perl that would even come close to JFreeChart [jfree.org]. Grace [weizmann.ac.il] can produce some nice results, but the Perl interface to it is just a wrapper around their terrible command line interface (maybe it's improved in the last few years, but when I tried it it was almost entirely undocumented and nigh-unusable).
So, if you want publication quality charts you basically still have to learn gnuplot, which is great, but sometimes just a little too involved.
At least this thread gives a nice summary of what the other languages have to offer: the PHP [aditus.nu] and Ruby [nubyonrails.com] packages aren't faring any better, but Python's matplotlib [sourceforge.net] looks freaking beautiful.
Re:wow! (Score:5, Interesting)
To get you started (there could be errors here, I'm doing this from memory, but Octave code something similar to this:
plot blah
hold on
plot something
plot otherstuff
hold off
gset term postscript eps color 22
gset output someplot.eps
replot
gset output foo %bad shit happens to your plot output if you don't change the output file when setting the term back to X11
gset term x11
Would do the following:
Plot multiple things in a plot to the screen
Output that plot to an EPS file
Reset the output so the next plot would go back to the screen
You could then run the
(There are a lot of details I'm not mentioning here of course, unfortunately there really isn't any single good central HOWTO for doing all sorts of useful stuff in LaTeX.)
Re:wow! (Score:3, Interesting)
And LyX is very convenient. Especially for typesetting those pesky equations. Much less flaky than MS Office, or even OO.org. In fact, I'd classify its equation modes as not flaky at all. Of course, it's convenient that anything they don't support can simply be escaped and typed in pure latex...
My favorite thing about LyX is that even if you have a lot of pictures and included files, when you insert new elements, old elements (like graphics or text-boxes) don't go flying all over the document depending on how you've anchored them.