pub fn draw<'a, T, U>(&mut self, x: &'a T, y: &'a T, z: &'a T)
    where
        T: AsMatrix<'a, U>,
        U: 'a + std::fmt::Display,
    {
        matrix_to_array(&mut self.buffer, "x", x);
        matrix_to_array(&mut self.buffer, "y", y);
        matrix_to_array(&mut self.buffer, "z", z);
        write!(&mut self.buffer, "maybeCreateAX3D()\n").unwrap();
        if self.with_surface {
            let opt_surface = self.options_surface();
            write!(&mut self.buffer, "sf=AX3D.plot_surface(x,y,z{})\n", &opt_surface).unwrap();
        }
        if self.with_wireframe {
            let opt_wireframe = self.options_wireframe();
            write!(&mut self.buffer, "AX3D.plot_wireframe(x,y,z{})\n", &opt_wireframe).unwrap();
        }
        if self.with_colorbar {
            let opt_colorbar = self.options_colorbar();
            write!(&mut self.buffer, "cb=plt.colorbar(sf{})\n", &opt_colorbar).unwrap();
            if self.colorbar_label != "" {
                write!(&mut self.buffer, "cb.ax.set_ylabel(r'{}')\n", self.colorbar_label).unwrap();
            }
        }
    }
/// Draws a surface, or wireframe, or both
///
/// # Input
///
/// * `x` -- matrix with x values
/// * `y` -- matrix with y values
/// * `z` -- matrix with z values
///
/// # Flags
///
/// The following flags control what features are not to be drawn:
///
/// * `surface` -- draws surface
/// * `wireframe` -- draws wireframe
///
/// # Notes
///
/// * The type `U` of the input matrices must be a number.
///
Draws a surface, or wireframe, or both
Draws a surface or wireframe or both
pub fn draw<'a, T, U>(&mut self, x: &'a T, y: &'a T, z: &'a T)
    where
        T: AsMatrix<'a, U>,
        U: 'a + std::fmt::Display,
    {
        matrix_to_array(&mut self.buffer, "x", x);
        matrix_to_array(&mut self.buffer, "y", y);
        matrix_to_array(&mut self.buffer, "z", z);
        write!(&mut self.buffer, "maybeCreateAX3D()\n").unwrap();
        if self.with_surface {
            let opt_surface = self.options_surface();
            write!(&mut self.buffer, "sf=AX3D.plot_surface(x,y,z{})\n", &opt_surface).unwrap();
        }
        if self.with_wireframe {
            let opt_wireframe = self.options_wireframe();
            write!(&mut self.buffer, "AX3D.plot_wireframe(x,y,z{})\n", &opt_wireframe).unwrap();
        }
        if self.with_colorbar {
            let opt_colorbar = self.options_colorbar();
            write!(&mut self.buffer, "cb=plt.colorbar(sf{})\n", &opt_colorbar).unwrap();
            if self.colorbar_label != "" {
                write!(&mut self.buffer, "cb.ax.set_ylabel(r'{}')\n", self.colorbar_label).unwrap();
            }
        }
    }
pub fn draw < ' a , T , U > ( & mut self , x : & ' a T , y : & ' a T , z : & ' a T ) where T : AsMatrix < ' a , U > , U : ' a + std :: fmt :: Display , { matrix_to_array ( & mut self . buffer , " " , x ) ; matrix_to_array ( & mut self . buffer , " " , y ) ; matrix_to_array ( & mut self . buffer , " " , z ) ; write ! ( mut self buffer " \n " ) . unwrap ( ) ; if self . with_surface { let opt_surface = self . options_surface ( ) ; write ! ( mut self buffer " \n " opt_surface ) . unwrap ( ) ; } if self . with_wireframe { let opt_wireframe = self . options_wireframe ( ) ; write ! ( mut self buffer " \n " opt_wireframe ) . unwrap ( ) ; } if self . with_colorbar { let opt_colorbar = self . options_colorbar ( ) ; write ! ( mut self buffer " \n " opt_colorbar ) . unwrap ( ) ; if self . colorbar_label != " " { write ! ( mut self buffer " \n " self colorbar_label ) . unwrap ( ) ; } } }
Draws a surface, or wireframe, or both
Draws a surface or wireframe or both
&mut self
x
&'a T
y
&'a T
z
&'a T
&mut self
x
&'a T
y
&'a T
z
&'a T
input
`x` -- matrix with x values
`y` -- matrix with y values
`z` -- matrix with z values
` x ` -- matrix with x values ` y ` -- matrix with y values ` z ` -- matrix with z values
flags
The following flags control what features are not to be drawn.

`surface` -- draws surface
`wireframe` -- draws wireframe
The following flags control what features are not to be drawn . ` surface ` -- draws surface ` wireframe ` -- draws wireframe
notes
The type `U` of the input matrices must be a number.
The type ` U ` of the input matrices must be a number .