Commit 55160f285daa47d05dc4749fab64438edeb583f8
1 parent
78adc5c5
made min/max CMC lines optional
Showing
1 changed file
with
1 additions
and
1 deletions
openbr/core/plot.cpp
| ... | ... | @@ -496,7 +496,7 @@ bool Plot(const QStringList &files, const br::File &destination, bool show) |
| 496 | 496 | QString("\nggsave(\"%1\")\n\n").arg(p.subfile("SD")))); |
| 497 | 497 | |
| 498 | 498 | p.file.write(qPrintable(QString("ggplot(CMC, aes(x=X, y=Y%1%2)) + xlab(\"Rank\") + ylab(\"Retrieval Rate\")").arg(p.major.size > 1 ? QString(" ,colour=factor(%1)").arg(p.major.header) : QString(), p.minor.size > 1 ? QString(", linetype=factor(%1)").arg(p.minor.header) : QString()) + |
| 499 | - ((p.major.smooth || p.minor.smooth) ? " + stat_summary(geom=\"line\", fun.y=min, aes(linetype=\"Min/Max\")) + stat_summary(geom=\"line\", fun.y=max, aes(linetype=\"Min/Max\")) + stat_summary(geom=\"line\", fun.y=mean, aes(linetype=\"Mean\")) + scale_linetype_manual(\"Legend\", values=c(\"Mean\"=1, \"Min/Max\"=2))" : " + geom_line()") + | |
| 499 | + ((p.major.smooth || p.minor.smooth) ? (destination.getBool("minimalist") ? " + stat_summary(geom=\"line\", fun.y=mean)" : " + stat_summary(geom=\"line\", fun.y=min, aes(linetype=\"Min/Max\")) + stat_summary(geom=\"line\", fun.y=max, aes(linetype=\"Min/Max\")) + stat_summary(geom=\"line\", fun.y=mean, aes(linetype=\"Mean\")) + scale_linetype_manual(\"Legend\", values=c(\"Mean\"=1, \"Min/Max\"=2))") : " + geom_line()") + | |
| 500 | 500 | QString(" + theme_minimal() + scale_x_log10(labels=c(1,5,10,50,100), breaks=c(1,5,10,50,100)) + annotation_logticks(sides=\"b\")") + |
| 501 | 501 | (p.major.size > 1 ? getScale("colour", p.major.header, p.major.size) : QString()) + |
| 502 | 502 | (p.minor.size > 1 ? QString(" + scale_linetype_discrete(\"%1\")").arg(p.minor.header) : QString()) + | ... | ... |