We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02128f4 commit dcae882Copy full SHA for dcae882
1 file changed
examples/circle.rs
@@ -12,8 +12,7 @@ fn main() -> Result<(), Box<dyn error::Error>> {
12
13
mpl::rc_params().set("axes.linewidth", 0.65)?;
14
mpl::rc_params().set("lines.linewidth", 0.8)?;
15
- let fig = plt::figure()?;
16
- let [[mut ax]] = fig.subplots()?;
+ let (_, [[mut ax]]) = plt::subplots()?;
17
ax.grid().set_xlabel("$x$");
18
ax.xy_from(x.clone().zip(y1))
19
.fmt("ob-")
0 commit comments