Commit 4475fed7f60ce309ee51ae74828682ba8c720722
1 parent
ee5f23d4
change iamge size and fix indentation
Showing
1 changed file
with
2 additions
and
2 deletions
openbr/core/plot.cpp
| ... | ... | @@ -198,7 +198,7 @@ struct RPlot |
| 198 | 198 | // Open output device |
| 199 | 199 | file.write(qPrintable(QString("\n" |
| 200 | 200 | "# Open output device\n" |
| 201 | - "%1(\"%2.%1\"%3)\n").arg(suffix, basename, suffix != "pdf" ? ", width=1000, height=1000" : ""))); | |
| 201 | + "%1(\"%2.%1\"%3)\n").arg(suffix, basename, suffix != "pdf" ? ", width=800, height=800" : ""))); | |
| 202 | 202 | |
| 203 | 203 | // Write figures |
| 204 | 204 | file.write("\n" |
| ... | ... | @@ -346,7 +346,7 @@ bool Plot(const QStringList &files, const File &destination, bool show) |
| 346 | 346 | (p.major.size > 1 ? (p.minor.size > 1 ? QString(" + facet_grid(%2 ~ %1, scales=\"free\")").arg((p.flip ? p.major.header : p.minor.header), (p.flip ? p.minor.header : p.major.header)) : QString(" + facet_wrap(~ %1, scales = \"free\")").arg(p.major.header)) : QString()) + |
| 347 | 347 | QString(" + theme(aspect.ratio=1)\n\n"))); |
| 348 | 348 | |
| 349 | - p.file.write(qPrintable(QString("qplot(factor(%1)%2, data=BC, %3").arg(p.major.smooth ? (p.minor.header.isEmpty() ? "Algorithm" : p.minor.header) : p.major.header, (p.major.smooth || p.minor.smooth) ? ", Y" : "", (p.major.smooth || p.minor.smooth) ? "geom=\"boxplot\"" : "geom=\"bar\", position=\"dodge\", weight=Y") + | |
| 349 | + p.file.write(qPrintable(QString("qplot(factor(%1)%2, data=BC, %3").arg(p.major.smooth ? (p.minor.header.isEmpty() ? "Algorithm" : p.minor.header) : p.major.header, (p.major.smooth || p.minor.smooth) ? ", Y" : "", (p.major.smooth || p.minor.smooth) ? "geom=\"boxplot\"" : "geom=\"bar\", position=\"dodge\", weight=Y") + | |
| 350 | 350 | (p.major.size > 1 ? QString(", fill=factor(%1)").arg(p.major.header) : QString()) + |
| 351 | 351 | QString(", xlab=\"False Accept Rate\", ylab=\"True Accept Rate\") + theme_minimal()") + |
| 352 | 352 | (p.major.size > 1 ? getScale("fill", p.major.header, p.major.size) : QString()) + | ... | ... |