Attempt+at+code+to+make+svg+from+data+3-25-12

Here is an example svg file with four squares:

whole svg code 3-25-12

First part of svg code 3-25-12 Rectangle code 3-25-12 End part of svg code 3-25-12

Now I'll write some Java code that takes tab delimited text data, and converts this into the appropriate svg code. It looks like the code works great.

Text for Java classes for Eclipse Useful_Tools

Supporting files for the program

Example data file to play with

Example output heatmap svg file

Instructions for Heatmap program In order to use this HeatmapCreator code just put the HeatmapCreator, UsefulTools, and Expression class into Eclipse. Then save the rectangle_svg.txt, first_part_java_svg_heatmap.txt, and last_part_java_svg_heatmap.txt into a directory that you are aware of. Then just change a few lines of code in the HeatmapCreator code so that the appropriate strings get their data from these files in the correct directory. Also change where the output file and the end goes so that you know where it is. Then create your tab delimited data.txt file, make sure the code in the HeatmapCreator code gets this file in the correct place and run the program. When you are done, the heatmap can be opened up in Inkscape or a web browser.