From Wikipedia, the free encyclopedia

Due to personal circumstances, my editing activities will be decreasing over the next several months. July, 2014

SVG Bar Chart Generating Program

Recently (Feb 2012) I've started to upload some bar chart images to Wikipedia commons. These were generated by a small Python program that's still under development (by myself, of course). The program works as follows: You define a dictionary object that contains parameters to build the graph. One of the parameters is the name of a csv file that contains the data to be plotted. Then you call a function, passing it the dictionary of parameters. It builds the graph as an svg file, and opens the file on a new tab in your browser if you want.

Yes, matplotlib is far more capable, but it has some issues. First, the svg files it generates are about 7 times as large (in spite of the comments and pretty indentation in my own file). Secondly, I can regen the graph easily if either a) I change the data or b) I change the parameters defining the graph. Thirdly, the generated svg file is straightforward enough to edit with a text editor if you need to.

Let me know if you might be interested in using it.

From Wikipedia, the free encyclopedia

Due to personal circumstances, my editing activities will be decreasing over the next several months. July, 2014

SVG Bar Chart Generating Program

Recently (Feb 2012) I've started to upload some bar chart images to Wikipedia commons. These were generated by a small Python program that's still under development (by myself, of course). The program works as follows: You define a dictionary object that contains parameters to build the graph. One of the parameters is the name of a csv file that contains the data to be plotted. Then you call a function, passing it the dictionary of parameters. It builds the graph as an svg file, and opens the file on a new tab in your browser if you want.

Yes, matplotlib is far more capable, but it has some issues. First, the svg files it generates are about 7 times as large (in spite of the comments and pretty indentation in my own file). Secondly, I can regen the graph easily if either a) I change the data or b) I change the parameters defining the graph. Thirdly, the generated svg file is straightforward enough to edit with a text editor if you need to.

Let me know if you might be interested in using it.


Videos

Youtube | Vimeo | Bing

Websites

Google | Yahoo | Bing

Encyclopedia

Google | Yahoo | Bing

Facebook