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

2014-08-29

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


Here is an example svg file with four squares:
example_squares.svg
"C:\Users\kurtw_000\Documents\kurt\storage\CIM Research Folder\DR\2014\01-18-2014d1351\wikispaces download 01-18-2014d1351\01-18-2014d1513\example_squares.svg"

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
Expression.txt
"C:\Users\kurtw_000\Documents\kurt\storage\CIM Research Folder\DR\2014\01-18-2014d1351\wikispaces download 01-18-2014d1351\01-18-2014d1513\Expression.txt"
HeatmapCreator.txt
"C:\Users\kurtw_000\Documents\kurt\storage\CIM Research Folder\DR\2014\01-19-2014d1132\01-19-2014d1325\HeatmapCreator.txt"

Supporting files for the program
rectangle_svg.txt
first_part_java_svg_heatmap.txt
"C:\Users\kurtw_000\Documents\kurt\storage\CIM Research Folder\DR\2014\01-19-2014d1132\01-19-2014d1201\first_part_java_svg_heatmap.txt"
last_part_java_svg_heatmap.txt
"C:\Users\kurtw_000\Documents\kurt\storage\CIM Research Folder\DR\2014\01-23-2014d2247\01-23-2014d2247\last_part_java_svg_heatmap.txt"

Example data file to play with
data.txt

Example output heatmap svg file
heatmap.svg
"C:\Users\kurtw_000\Documents\kurt\storage\CIM Research Folder\DR\2014\01-19-2014d1132\01-19-2014d1325\heatmap.svg"

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.