MCPcopy Create free account
hub / github.com/cpmech/plotpy / options

Method options

src/fill_between.rs:143–158  ·  view source on GitHub ↗

Returns the options

(&self)

Source from the content-addressed store, hash-verified

141
142 /// Returns the options
143 fn options(&self) -> String {
144 let mut opt = String::new();
145 if self.facecolor != "" {
146 write!(&mut opt, ",facecolor='{}'", self.facecolor).unwrap();
147 }
148 if self.where_condition != "" {
149 write!(&mut opt, ",where={}", self.where_condition).unwrap();
150 }
151 if self.interpolate {
152 write!(&mut opt, ",interpolate=True").unwrap();
153 }
154 if self.extra != "" {
155 write!(&mut opt, ",{}", self.extra).unwrap();
156 }
157 opt
158 }
159}
160
161impl GraphMaker for FillBetween {

Callers 1

drawMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected