<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Home-baked graphics</title>
	<atom:link href="http://www.bit-player.org/2010/home-baked-graphics/feed" rel="self" type="application/rss+xml" />
	<link>http://bit-player.org/2010/home-baked-graphics</link>
	<description>An amateur's outlook on computation and mathematics.</description>
	<pubDate>Tue, 07 Feb 2012 08:10:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: 0x69</title>
		<link>http://bit-player.org/2010/home-baked-graphics#comment-3116</link>
		<dc:creator>0x69</dc:creator>
		<pubDate>Mon, 02 Aug 2010 13:06:57 +0000</pubDate>
		<guid isPermaLink="false">http://bit-player.org/?p=593#comment-3116</guid>
		<description>Another option if you really want to control every pixel of graph - is to make PPM image file directly from LISP. PPM format is trivial and can be formated as ASCII text of RGB values:
http://en.wikipedia.org/wiki/Netpbm_format#PPM_example
The only problem i see here that ppm is not popular enough to be supported by browsers. But we can always use some graphics processing program (lets say GIMP) to convert PPM to PNG/JPG /other format.</description>
		<content:encoded><![CDATA[<p>Another option if you really want to control every pixel of graph - is to make PPM image file directly from LISP. PPM format is trivial and can be formated as ASCII text of RGB values:<br />
<a href="http://en.wikipedia.org/wiki/Netpbm_format#PPM_example" rel="nofollow">http://en.wikipedia.org/wiki/Netpbm_format#PPM_example</a><br />
The only problem i see here that ppm is not popular enough to be supported by browsers. But we can always use some graphics processing program (lets say GIMP) to convert PPM to PNG/JPG /other format.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lode</title>
		<link>http://bit-player.org/2010/home-baked-graphics#comment-3056</link>
		<dc:creator>lode</dc:creator>
		<pubDate>Fri, 16 Jul 2010 10:33:49 +0000</pubDate>
		<guid isPermaLink="false">http://bit-player.org/?p=593#comment-3056</guid>
		<description>SVG is definitely worth it. Better still, you can write your data in XML and use an XSLT to transform that into SVG.</description>
		<content:encoded><![CDATA[<p>SVG is definitely worth it. Better still, you can write your data in XML and use an XSLT to transform that into SVG.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andre</title>
		<link>http://bit-player.org/2010/home-baked-graphics#comment-2768</link>
		<dc:creator>Andre</dc:creator>
		<pubDate>Thu, 08 Apr 2010 00:25:20 +0000</pubDate>
		<guid isPermaLink="false">http://bit-player.org/?p=593#comment-2768</guid>
		<description>"But I think the commenters were really asking how I create the graphs rather than why they’re so elegant, and so I’m going to focus here on the practical programming problem."

I'm interested in both aspects of your graphs. Could you make an article about the colors you use, etc?

Thanks!</description>
		<content:encoded><![CDATA[<p>&#8220;But I think the commenters were really asking how I create the graphs rather than why they’re so elegant, and so I’m going to focus here on the practical programming problem.&#8221;</p>
<p>I&#8217;m interested in both aspects of your graphs. Could you make an article about the colors you use, etc?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zach Beane</title>
		<link>http://bit-player.org/2010/home-baked-graphics#comment-2759</link>
		<dc:creator>Zach Beane</dc:creator>
		<pubDate>Mon, 05 Apr 2010 13:14:12 +0000</pubDate>
		<guid isPermaLink="false">http://bit-player.org/?p=593#comment-2759</guid>
		<description>You might enjoy my Common Lisp library Vecto, which is designed to mimic the PDF drawing model but output directly to a PNG. I use it all the time for scratch programs that produce charts or plots. For more a more elaborate use, see http://xach.com/moviecharts/</description>
		<content:encoded><![CDATA[<p>You might enjoy my Common Lisp library Vecto, which is designed to mimic the PDF drawing model but output directly to a PNG. I use it all the time for scratch programs that produce charts or plots. For more a more elaborate use, see <a href="http://xach.com/moviecharts/" rel="nofollow">http://xach.com/moviecharts/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simeon Pilgrim</title>
		<link>http://bit-player.org/2010/home-baked-graphics#comment-2752</link>
		<dc:creator>Simeon Pilgrim</dc:creator>
		<pubDate>Thu, 01 Apr 2010 21:09:31 +0000</pubDate>
		<guid isPermaLink="false">http://bit-player.org/?p=593#comment-2752</guid>
		<description>Making you WordPress theme wider in not that hard. It took me around a hour to find all the places. I even now have a post explaining how todo it.

http://simeonpilgrim.com/blog/2010/04/02/how-to-make-your-wordpress-theme-wider/

Nice graphs by the way.</description>
		<content:encoded><![CDATA[<p>Making you WordPress theme wider in not that hard. It took me around a hour to find all the places. I even now have a post explaining how todo it.</p>
<p><a href="http://simeonpilgrim.com/blog/2010/04/02/how-to-make-your-wordpress-theme-wider/" rel="nofollow">http://simeonpilgrim.com/blog/2010/04/02/how-to-make-your-wordpress-theme-wider/</a></p>
<p>Nice graphs by the way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zvika</title>
		<link>http://bit-player.org/2010/home-baked-graphics#comment-2729</link>
		<dc:creator>Zvika</dc:creator>
		<pubDate>Thu, 25 Mar 2010 10:57:04 +0000</pubDate>
		<guid isPermaLink="false">http://bit-player.org/?p=593#comment-2729</guid>
		<description>What I meant was a larger image size (I guess resolution is an innacurate term). You could keep the images as is, but have them link to a larger image, so that when the user clicks on an image he will see a full-screen version. For example, this is more or less how images are handled in Wikipedia.</description>
		<content:encoded><![CDATA[<p>What I meant was a larger image size (I guess resolution is an innacurate term). You could keep the images as is, but have them link to a larger image, so that when the user clicks on an image he will see a full-screen version. For example, this is more or less how images are handled in Wikipedia.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: crowther</title>
		<link>http://bit-player.org/2010/home-baked-graphics#comment-2693</link>
		<dc:creator>crowther</dc:creator>
		<pubDate>Tue, 16 Mar 2010 03:53:09 +0000</pubDate>
		<guid isPermaLink="false">http://bit-player.org/?p=593#comment-2693</guid>
		<description>All of this talk about SVG and so forth is beyond me, but I wanted to thank you for permitting yourself the immodesty of praising Fig. 1. Now that you've mentioned it, I can appreciate the putty-colored background and white grid lines and may try to imitate those in the future.

On an unrelated note, I gave "Group Theory in the Bedroom" to a relative (a chemistry professor who likes math puzzles and such) a couple of years ago and he really liked it. Now I need to get him another present. Do you have any recommendations based on his enjoyment of that book?</description>
		<content:encoded><![CDATA[<p>All of this talk about SVG and so forth is beyond me, but I wanted to thank you for permitting yourself the immodesty of praising Fig. 1. Now that you&#8217;ve mentioned it, I can appreciate the putty-colored background and white grid lines and may try to imitate those in the future.</p>
<p>On an unrelated note, I gave &#8220;Group Theory in the Bedroom&#8221; to a relative (a chemistry professor who likes math puzzles and such) a couple of years ago and he really liked it. Now I need to get him another present. Do you have any recommendations based on his enjoyment of that book?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate</title>
		<link>http://bit-player.org/2010/home-baked-graphics#comment-2689</link>
		<dc:creator>Nate</dc:creator>
		<pubDate>Fri, 12 Mar 2010 17:36:56 +0000</pubDate>
		<guid isPermaLink="false">http://bit-player.org/?p=593#comment-2689</guid>
		<description>I wonder if the Processing language (processing.org) might be of interest to you.   This is a language with many graphical conveniences that doesn't sacrifice control.  When I first saw your graphics I thought they were created with Processing--it may be worth a look.</description>
		<content:encoded><![CDATA[<p>I wonder if the Processing language (processing.org) might be of interest to you.   This is a language with many graphical conveniences that doesn&#8217;t sacrifice control.  When I first saw your graphics I thought they were created with Processing&#8211;it may be worth a look.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark VandeWettering</title>
		<link>http://bit-player.org/2010/home-baked-graphics#comment-2686</link>
		<dc:creator>Mark VandeWettering</dc:creator>
		<pubDate>Thu, 11 Mar 2010 18:33:24 +0000</pubDate>
		<guid isPermaLink="false">http://bit-player.org/?p=593#comment-2686</guid>
		<description>A long time ago I learned enough PostScript to be dangerous, and about four or five times a year I find some reason to actually code up a diagram or graph using PostScript.   I find ghostscript to be very good at converting PostScript to raster formats, for the web as well.    The ability of GhostScript to read TrueType and PostScript fonts means that you can do some fun things, like typesetting checkerboard positions:

&lt;a href="http://brainwagon.org/wp-content/uploads/2009/05/board6.png" rel="nofollow"&gt;A checkerboard position from my checkers program Milhouse&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>A long time ago I learned enough PostScript to be dangerous, and about four or five times a year I find some reason to actually code up a diagram or graph using PostScript.   I find ghostscript to be very good at converting PostScript to raster formats, for the web as well.    The ability of GhostScript to read TrueType and PostScript fonts means that you can do some fun things, like typesetting checkerboard positions:</p>
<p><a href="http://brainwagon.org/wp-content/uploads/2009/05/board6.png" rel="nofollow">A checkerboard position from my checkers program Milhouse</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc</title>
		<link>http://bit-player.org/2010/home-baked-graphics#comment-2685</link>
		<dc:creator>Marc</dc:creator>
		<pubDate>Thu, 11 Mar 2010 13:18:41 +0000</pubDate>
		<guid isPermaLink="false">http://bit-player.org/?p=593#comment-2685</guid>
		<description>I'm currently learning Lisp. Any chance of getting a look at your code?</description>
		<content:encoded><![CDATA[<p>I&#8217;m currently learning Lisp. Any chance of getting a look at your code?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hyperkinetic</title>
		<link>http://bit-player.org/2010/home-baked-graphics#comment-2683</link>
		<dc:creator>hyperkinetic</dc:creator>
		<pubDate>Thu, 11 Mar 2010 00:58:26 +0000</pubDate>
		<guid isPermaLink="false">http://bit-player.org/?p=593#comment-2683</guid>
		<description>Ahhh, the MX-80. Fine printer.</description>
		<content:encoded><![CDATA[<p>Ahhh, the MX-80. Fine printer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Haugeland</title>
		<link>http://bit-player.org/2010/home-baked-graphics#comment-2682</link>
		<dc:creator>John Haugeland</dc:creator>
		<pubDate>Thu, 11 Mar 2010 00:37:57 +0000</pubDate>
		<guid isPermaLink="false">http://bit-player.org/?p=593#comment-2682</guid>
		<description>In my opinion, the modern dialect of PostScript - PDF - is the way to go.  It provides all of the graphics primitives needed to do the work right, and it's very reliably viewed on a wide variety of platforms, as well as very readily brought to print in both POD and offset printing contexts, and most importantly, the de facto viewer is extremely reliable in terms of rendering what the file presents.

The real problem with SVG is that it's hard to get clients to view it reliably.  To that end, there are a lot of tools which convert from [html/xml]+css to PDF, and some of the better ones (my favorite is PrinceXML) can embed SVG, giving you the expressive notation of SVG with the reliable viewing target of PDF.  Above and beyond that, it gives you the really quite nice pagination of CSS3 and the convenient framing of a full HTML+CSS3 implementation.

It isn't free, but if you want to bail on PostScript, PDF is the place to go.  It's PostScript 2 - it loses the programming language, but it's a direct descendant of the old post-compile format.  Look at the specification some time.</description>
		<content:encoded><![CDATA[<p>In my opinion, the modern dialect of PostScript - PDF - is the way to go.  It provides all of the graphics primitives needed to do the work right, and it&#8217;s very reliably viewed on a wide variety of platforms, as well as very readily brought to print in both POD and offset printing contexts, and most importantly, the de facto viewer is extremely reliable in terms of rendering what the file presents.</p>
<p>The real problem with SVG is that it&#8217;s hard to get clients to view it reliably.  To that end, there are a lot of tools which convert from [html/xml]+css to PDF, and some of the better ones (my favorite is PrinceXML) can embed SVG, giving you the expressive notation of SVG with the reliable viewing target of PDF.  Above and beyond that, it gives you the really quite nice pagination of CSS3 and the convenient framing of a full HTML+CSS3 implementation.</p>
<p>It isn&#8217;t free, but if you want to bail on PostScript, PDF is the place to go.  It&#8217;s PostScript 2 - it loses the programming language, but it&#8217;s a direct descendant of the old post-compile format.  Look at the specification some time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jos Hirth</title>
		<link>http://bit-player.org/2010/home-baked-graphics#comment-2681</link>
		<dc:creator>Jos Hirth</dc:creator>
		<pubDate>Thu, 11 Mar 2010 00:19:25 +0000</pubDate>
		<guid isPermaLink="false">http://bit-player.org/?p=593#comment-2681</guid>
		<description>I used SVG for some graphs. Here is some example:

http://kaioa.com/b/0803/cat_capacity.svgz

It's fairly compact. If you take a look at the response header you can see that it's only 3,422 bytes in size (thanks to gzip compression). It automatically adjusts to the size of the view-port and it works in any semi-recent (non-IE) browser.

One interesting detail is that the graphs contain the raw unaltered data. E.g. "L 8,1614.482" means with an initial capacity of 8 characters it took 1614.482 msecs to run the benchmark.

Also, I made my benchmarks output the path data directly. It's a very simple format. M = move to, L = line to, and X/Y pairs.

"M 0,2130.2948 L 8,1614.482 L , ..."

I only had to copy that stuff and paste it over in Inkscape's XML editor. At the end I flipped and scaled it by applying some matrix.

I mean... I could have generated some CSV and then open it in Calc or Excel, but that's just too boring. ;)</description>
		<content:encoded><![CDATA[<p>I used SVG for some graphs. Here is some example:</p>
<p><a href="http://kaioa.com/b/0803/cat_capacity.svgz" rel="nofollow">http://kaioa.com/b/0803/cat_capacity.svgz</a></p>
<p>It&#8217;s fairly compact. If you take a look at the response header you can see that it&#8217;s only 3,422 bytes in size (thanks to gzip compression). It automatically adjusts to the size of the view-port and it works in any semi-recent (non-IE) browser.</p>
<p>One interesting detail is that the graphs contain the raw unaltered data. E.g. &#8220;L 8,1614.482&#8243; means with an initial capacity of 8 characters it took 1614.482 msecs to run the benchmark.</p>
<p>Also, I made my benchmarks output the path data directly. It&#8217;s a very simple format. M = move to, L = line to, and X/Y pairs.</p>
<p>&#8220;M 0,2130.2948 L 8,1614.482 L , &#8230;&#8221;</p>
<p>I only had to copy that stuff and paste it over in Inkscape&#8217;s XML editor. At the end I flipped and scaled it by applying some matrix.</p>
<p>I mean&#8230; I could have generated some CSV and then open it in Calc or Excel, but that&#8217;s just too boring. ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: klwe</title>
		<link>http://bit-player.org/2010/home-baked-graphics#comment-2680</link>
		<dc:creator>klwe</dc:creator>
		<pubDate>Wed, 10 Mar 2010 21:38:32 +0000</pubDate>
		<guid isPermaLink="false">http://bit-player.org/?p=593#comment-2680</guid>
		<description>SVG works everywhere except crappIE browsers. If you don't care about outdated tech, then there's no problem.</description>
		<content:encoded><![CDATA[<p>SVG works everywhere except crappIE browsers. If you don&#8217;t care about outdated tech, then there&#8217;s no problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oni</title>
		<link>http://bit-player.org/2010/home-baked-graphics#comment-2679</link>
		<dc:creator>Oni</dc:creator>
		<pubDate>Wed, 10 Mar 2010 20:12:33 +0000</pubDate>
		<guid isPermaLink="false">http://bit-player.org/?p=593#comment-2679</guid>
		<description>I think that SVG is the right choice. Not because the format is good per se, but because it can be converted into whatever you want and it's quite easy to traverse it with any language (as long as there is a library that can navigate trough XML).

I've used it extensively for my thesis. I then used a script that passed all text to LaTeX in order to take care of the typesetting (while the original image, with stripped text, was converted in pdf and placed as background).</description>
		<content:encoded><![CDATA[<p>I think that SVG is the right choice. Not because the format is good per se, but because it can be converted into whatever you want and it&#8217;s quite easy to traverse it with any language (as long as there is a library that can navigate trough XML).</p>
<p>I&#8217;ve used it extensively for my thesis. I then used a script that passed all text to LaTeX in order to take care of the typesetting (while the original image, with stripped text, was converted in pdf and placed as background).</p>
]]></content:encoded>
	</item>
</channel>
</rss>

