@@ -37,7 +37,7 @@ impl Axes {
3737 /// # Example
3838 ///
3939 /// ```
40- /// use matplotlib::{self as plt, colors};
40+ /// use matplotlib::{pyplot as plt, colors};
4141 /// let (fig, [[mut ax]]) = plt::subplots()?;
4242 /// let x = [1., 2., 3., 4.];
4343 /// let y = [1., 4., 2., 3.];
@@ -68,7 +68,7 @@ impl Axes {
6868 /// # Example
6969 ///
7070 /// ```
71- /// use matplotlib as plt;
71+ /// use matplotlib::pyplot as plt;
7272 /// let (fig, [[mut ax]]) = plt::subplots()?;
7373 /// ax.y(&[1., 4., 2., 3.]).plot();
7474 /// fig.save().to_file("target/Y_plot.pdf")?;
@@ -90,13 +90,15 @@ impl Axes {
9090 /// # Example
9191 ///
9292 /// ```
93- /// use matplotlib as plt;
93+ /// use matplotlib::pyplot as plt;
9494 /// let (fig, [[mut ax]]) = plt::subplots()?;
9595 /// ax.xy_from(&[(1., 2.), (4., 2.), (2., 3.), (3., 4.)]).plot();
9696 /// ax.xy_from([(1., 0.), (2., 3.), (3., 1.), (4., 3.)]).plot();
9797 /// fig.save().to_file("target/XY_from_plot.pdf")?;
9898 /// # Ok::<(), matplotlib::Error>(())
9999 /// ```
100+ // FIXME: show an example combining iterators using `zip`. The
101+ // `covid` research project may serve as a source of inspiration.
100102 pub fn xy_from < ' a , I > ( & ' a mut self , xy : I ) -> XYFrom < ' a , I >
101103 where
102104 I : IntoIterator ,
@@ -114,7 +116,7 @@ impl Axes {
114116 ///
115117 /// # Example
116118 /// ```
117- /// use matplotlib as plt;
119+ /// use matplotlib::pyplot as plt;
118120 /// let (fig, [[mut ax]]) = plt::subplots()?;
119121 /// ax.fun(|x| x * x, 0., 1.).plot();
120122 /// fig.save().to_file("target/Fun_plot.pdf")?;
@@ -142,7 +144,7 @@ impl Axes {
142144 /// # Example
143145 ///
144146 /// ```
145- /// use matplotlib::{self as plt, colors::Tab};
147+ /// use matplotlib::{pyplot as plt, colors::Tab};
146148 /// use ndarray::{Array1, Array2};
147149 /// let x: Array1<f64> = Array1::linspace(-1., 1., 30);
148150 /// let y: Array1<f64> = Array1::linspace(-1., 1., 30);
@@ -180,7 +182,7 @@ impl Axes {
180182 /// # Example
181183 ///
182184 /// ```
183- /// use matplotlib as plt;
185+ /// use matplotlib::pyplot as plt;
184186 /// let (fig, [[mut ax]]) = plt::subplots()?;
185187 /// ax.contour_fun([-1., 1.], [-1., 1.], |x, y| {
186188 /// (0.5 * x).powi(2) + y.powi(2)
0 commit comments