Write the subplot grid to an HTML file.
(&self, path: impl Into<String>)
| 147 | |
| 148 | /// Write the subplot grid to an HTML file. |
| 149 | pub fn write_html(&self, path: impl Into<String>) { |
| 150 | let html = self.to_html(); |
| 151 | std::fs::write(path.into(), html).expect("Failed to write HTML file"); |
| 152 | } |
| 153 | |
| 154 | /// Serialize the subplot grid to a JSON string. |
| 155 | pub fn to_json(&self) -> Result<String, serde_json::Error> { |