X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=heatmapsim.cpp;h=62965f9a3291d0052b6c216b6a800d6c97072f46;hp=18043c98ba28e8c6d9cd11779646efeab79a148b;hb=1a20e24ee786195ab0e1cccd4f5aede7a88f3f4e;hpb=55386dddad84cc1140d736cabaf4dd0ae16f2e01 diff --git a/heatmapsim.cpp b/heatmapsim.cpp index 18043c9..62965f9 100644 --- a/heatmapsim.cpp +++ b/heatmapsim.cpp @@ -20,7 +20,7 @@ #include "sharedbraycurtis.h" //********************************************************************************************************************** -HeatMapSim::HeatMapSim(string dir, string i) : outputDir(dir), inputfile(i) { +HeatMapSim::HeatMapSim(string dir, string i, int f) : outputDir(dir), inputfile(i), fontSize(f) { m = MothurOut::getInstance(); } //********************************************************************************************************************** @@ -35,7 +35,7 @@ vector HeatMapSim::getPic(vector lookup, vectorcontrol_pressed) { return outputNames; } - string filenamesvg = outputDir + m->getRootName(m->getSimpleName(inputfile)) + lookup[0]->getLabel() + calcs[k]->getName() + ".heatmap.sim.svg"; + string filenamesvg = outputDir + m->getRootName(m->getSimpleName(inputfile)) + lookup[0]->getLabel() + "." + calcs[k]->getName() + ".heatmap.sim.svg"; m->openOutputFile(filenamesvg, outsvg); outputNames.push_back(filenamesvg); @@ -45,12 +45,12 @@ vector HeatMapSim::getPic(vector lookup, vector"; - outsvg << "Heatmap at distance " + lookup[0]->getLabel() + "\n"; + outsvg << "Heatmap at distance " + lookup[0]->getLabel() + "\n"; //column labels for (int h = 0; h < lookup.size(); h++) { - outsvg << "getGroup().length() / 2)) + "\" y=\"50\">" + lookup[h]->getGroup() + "\n"; - outsvg << "getGroup().length() / 2)) + "\" x=\"50\">" + lookup[h]->getGroup() + "\n"; + outsvg << "getGroup().length() / 2)) + "\" y=\"50\">" + lookup[h]->getGroup() + "\n"; + outsvg << "getGroup().length() / 2)) + "\" x=\"50\">" + lookup[h]->getGroup() + "\n"; } sims.clear(); @@ -122,12 +122,12 @@ string HeatMapSim::getPic(vector< vector > dists, vector groups) //white backround outsvg << ""; - outsvg << "Heatmap for " + inputfile + "\n"; + outsvg << "Heatmap for " + inputfile + "\n"; //column labels for (int h = 0; h < groups.size(); h++) { - outsvg << "" + groups[h] + "\n"; - outsvg << "" + groups[h] + "\n"; + outsvg << "" + groups[h] + "\n"; + outsvg << "" + groups[h] + "\n"; } double biggest = -1; @@ -206,7 +206,7 @@ void HeatMapSim::printLegend(int y, float maxSim) { label /= 1000.0; string text = toString(label, 1); - outsvg << "" + text + "\n"; + outsvg << "" + text + "\n"; x += 153; } }