Added forgotten code
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user