gnuplot_wrapper/commands/clear.rs
use crate::{command::Command, script::Script};
/// http://gnuplot.info/docs_5.5/loc6622.html
pub struct Clear {}
impl Clear {
pub fn new() -> Self {
return Clear {};
}
}
impl Command for Clear {
fn to_raw(&self) -> String {
return "clear".to_string();
}
}
impl Script {
pub fn clear(&mut self) {
self.add_command(Clear::new());
}
}