gnuplot_wrapper/commands/clear.rs
1use crate::{command::Command, script::Script};
2
3/// http://gnuplot.info/docs_5.5/loc6622.html
4pub struct Clear {}
5
6impl Clear {
7 pub fn new() -> Self {
8 return Clear {};
9 }
10}
11
12impl Command for Clear {
13 fn to_raw(&self) -> String {
14 return "clear".to_string();
15 }
16}
17
18impl Script {
19 pub fn clear(&mut self) {
20 self.add_command(Clear::new());
21 }
22}