Skip to content

Commit dcae882

Browse files
committed
Use plt::subplots for the example "circle"
1 parent 02128f4 commit dcae882

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

examples/circle.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ fn main() -> Result<(), Box<dyn error::Error>> {
1212

1313
mpl::rc_params().set("axes.linewidth", 0.65)?;
1414
mpl::rc_params().set("lines.linewidth", 0.8)?;
15-
let fig = plt::figure()?;
16-
let [[mut ax]] = fig.subplots()?;
15+
let (_, [[mut ax]]) = plt::subplots()?;
1716
ax.grid().set_xlabel("$x$");
1817
ax.xy_from(x.clone().zip(y1))
1918
.fmt("ob-")

0 commit comments

Comments
 (0)