Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add colors corresponding to cores/node

  • Loading branch information...
commit a10c4f2c30c2f8a9d9e0eec76803ef9bea183e8c 1 parent 2560809
Peter Bailey pyrovski authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 plot_scripts/testPlot.R
6 plot_scripts/testPlot.R
View
@@ -33,10 +33,13 @@ plot(a$nodes[sel1],
log='x',
col=colors[1],
xlim=range(a$nodes[sel]),
- ylim=range(a$totalEnergy[sel])
+ ylim=c(0, max(a$totalEnergy[sel]))
)
axis(1, at=unique(a$nodes[sel]))
+legend(x='bottomleft', legend=paste(coresPerNode, 'cores/node'),
+ col=colors, lty=1)
+
for(i in 2:length(coresPerNode)){
sel1 = intersect(sel, which(a$coresPerNode == coresPerNode[i]))
points(a$nodes[sel1],
@@ -45,3 +48,4 @@ for(i in 2:length(coresPerNode)){
col=colors[i]
)
}
+
Please sign in to comment.
Something went wrong with that request. Please try again.