Skip to content

Commit

Permalink
stylevalue 'setlinewidth' is deprecated, replaced it together with th…
Browse files Browse the repository at this point in the history
…e whole style argument by 'penwidth'
  • Loading branch information
Tilman Bremer authored and speth committed Jul 11, 2017
1 parent 35ac1ac commit b41038f
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/kinetics/ReactionPath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,16 +266,16 @@ void ReactionPathDiagram::exportToDot(ostream& s)
node(kend)->visible = true;

s << "s" << kbegin << " -> s" << kend;
s << "[fontname=\""+m_font+"\", style=\"setlinewidth(";
s << "[fontname=\""+m_font+"\", penwidth=";

if (arrow_width < 0) {
double lwidth = 1.0 - 4.0
* log10(flxratio/threshold)/log10(threshold) + 1.0;
s << lwidth << ")\"";
s << lwidth;
s << ", arrowsize="
<< std::min(6.0, 0.5*lwidth);
} else {
s << arrow_width << ")\"";
s << arrow_width;
s << ", arrowsize=" << flxratio + 1;
}

Expand Down Expand Up @@ -333,14 +333,13 @@ void ReactionPathDiagram::exportToDot(ostream& s)
if (arrow_width < 0) {
double lwidth = 1.0 - 4.0 * log10(flxratio/threshold)/log10(threshold)
+ 1.0;
s << "[fontname=\""+m_font+"\", style=\"setlinewidth("
<< lwidth
<< ")\"";
s << "[fontname=\""+m_font+"\", penwidth="
<< lwidth;
s << ", arrowsize="
<< std::min(6.0, 0.5*lwidth);
} else {
s << ", style=\"setlinewidth("
<< arrow_width << ")\"";
s << ", penwidth="
<< arrow_width;
s << ", arrowsize=" << flxratio + 1;
}
doublereal hue = 0.7;
Expand Down

0 comments on commit b41038f

Please sign in to comment.