Added forgotten code

This commit is contained in:
2019-05-01 10:45:53 +02:00
parent a7be6b8d62
commit b99d519aa7
8 changed files with 467 additions and 516 deletions

View File

@@ -508,6 +508,18 @@ public:
gp.flush();
}
void saveSVG(const std::experimental::filesystem::path& filePath) {
std::ofstream stream;
stream.open(filePath);
stream << "set terminal svg size 2000,1500\n";
stream << "set output '" + filePath.filename().replace_extension("svg").string() + "'\n";
gp.draw(splot);
stream << gp.getBuffer();
stream.close();
}
void saveToFile(std::ofstream& stream){
gp.draw(splot);
stream << "set terminal x11 size 2000,1500\n";