Commit 1fe0a150 authored by aggsol's avatar aggsol 🙉

various fixes, improved graph

parent 48174f35
......@@ -78,15 +78,17 @@ void Graph::createDotFile(const std::map<int, Section>& sections)
throw std::runtime_error("Cannot write dot file");
}
dotfile << "digraph G {\n"
<< "forcelabels=true;\n"
<< " node [style=filled fillcolor=white labelfontname=Arial labelfontsize=10];\n";
<< " forcelabels=true;\n"
<< " graph [fontname = \"Arial\"];\n"
<< " edge [fontname = \"Arial\"];\n"
<< " node [fontname = \"Arial\" style=filled fillcolor=white];\n";
for(auto& s: sections)
{
int sectionNum = s.second.m_number;
std::ostringstream label;
label << " " << sectionNum << " [xlabel=\"";
label << " " << sectionNum << " [xlabel=<<font color=\"#1111ee\" point-size=\"8\">";
unsigned counter = 0;
for(auto& attr: s.second.m_classes)
{
......@@ -120,7 +122,7 @@ void Graph::createDotFile(const std::map<int, Section>& sections)
label << trimLabel(attr);
counter++;
}
label << "\"];\n";
label << "</font>>];\n";
auto labelStr = label.str();
if(counter > 0)
{
......
......@@ -90,7 +90,7 @@ namespace
for(auto& f: final)
{
strm << "[[section-" << f.second.m_number << "]]\n"
<< "== " << f.second.m_number << "\n";
<< "=== " << f.second.m_number << "\n";
for(auto& l: f.second.m_lines)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment