pub fn draw_point_coords_2d(ksi_min: f64, ksi_del: f64) -> Plot {
        const N: usize = 11;
        let mut natural_space = Curve::new();
        natural_space.set_line_style("None").set_marker_style("o");
        let mut real_space = Curve::new();
        real_space.set_line_style("None").set_marker_style("o");
        let ksi_max = ksi_min + ksi_del;
        let (ksi_0, ksi_1) = generate2d(ksi_min, ksi_max, ksi_min, ksi_max, N, N);
        let mut x = Vector::new(2);
        natural_space.points_begin();
        real_space.points_begin();
        for i in 0..N {
            for j in 0..N {
                natural_space.points_add(ksi_0[i][j], ksi_1[i][j]);
                map_point_coords(&mut x, &[ksi_0[i][j], ksi_1[i][j]], ksi_min, ksi_del);
                real_space.points_add(x[0], x[1]);
            }
        }
        natural_space.points_end();
        real_space.points_end();
        let mut plot = Plot::new();
        plot.set_subplot(1, 2, 1)
            .add(&real_space)
            .add(&gen_canvas_mapping())
            .set_equal_axes(true)
            .set_range(-0.1, RMAX + 0.1, -0.1, RMAX + 0.1)
            .set_ticks_x(1.0, 0.0, "")
            .set_ticks_y(1.0, 0.0, "")
            .grid_and_labels("x", "y");
        plot.set_subplot(1, 2, 2)
            .add(&natural_space)
            .set_equal_axes(true)
            .set_labels("ξ0", "ξ1");
        plot
    }
/// Draws the points in the natural (right) and real (left) spaces
Draws the points in the natural (right) and real (left) spaces
Draws the points in the natural ( right ) and real ( left ) spaces
pub fn draw_point_coords_2d(ksi_min: f64, ksi_del: f64) -> Plot {
        const N: usize = 11;
        let mut natural_space = Curve::new();
        natural_space.set_line_style("None").set_marker_style("o");
        let mut real_space = Curve::new();
        real_space.set_line_style("None").set_marker_style("o");
        let ksi_max = ksi_min + ksi_del;
        let (ksi_0, ksi_1) = generate2d(ksi_min, ksi_max, ksi_min, ksi_max, N, N);
        let mut x = Vector::new(2);
        natural_space.points_begin();
        real_space.points_begin();
        for i in 0..N {
            for j in 0..N {
                natural_space.points_add(ksi_0[i][j], ksi_1[i][j]);
                map_point_coords(&mut x, &[ksi_0[i][j], ksi_1[i][j]], ksi_min, ksi_del);
                real_space.points_add(x[0], x[1]);
            }
        }
        natural_space.points_end();
        real_space.points_end();
        let mut plot = Plot::new();
        plot.set_subplot(1, 2, 1)
            .add(&real_space)
            .add(&gen_canvas_mapping())
            .set_equal_axes(true)
            .set_range(-0.1, RMAX + 0.1, -0.1, RMAX + 0.1)
            .set_ticks_x(1.0, 0.0, "")
            .set_ticks_y(1.0, 0.0, "")
            .grid_and_labels("x", "y");
        plot.set_subplot(1, 2, 2)
            .add(&natural_space)
            .set_equal_axes(true)
            .set_labels("ξ0", "ξ1");
        plot
    }
pub fn draw_point_coords_2d ( ksi_min : f64 , ksi_del : f64 ) -> Plot { const N : usize = 11 ; let mut natural_space = Curve :: new ( ) ; natural_space . set_line_style ( " " ) . set_marker_style ( " " ) ; let mut real_space = Curve :: new ( ) ; real_space . set_line_style ( " " ) . set_marker_style ( " " ) ; let ksi_max = ksi_min + ksi_del ; let ( ksi_0 , ksi_1 ) = generate2d ( ksi_min , ksi_max , ksi_min , ksi_max , N , N ) ; let mut x = Vector :: new ( 2 ) ; natural_space . points_begin ( ) ; real_space . points_begin ( ) ; for i in 0 .. N { for j in 0 .. N { natural_space . points_add ( ksi_0 [ i ] [ j ] , ksi_1 [ i ] [ j ] ) ; map_point_coords ( & mut x , & [ ksi_0 [ i ] [ j ] , ksi_1 [ i ] [ j ] ] , ksi_min , ksi_del ) ; real_space . points_add ( x [ 0 ] , x [ 1 ] ) ; } } natural_space . points_end ( ) ; real_space . points_end ( ) ; let mut plot = Plot :: new ( ) ; plot . set_subplot ( 1 , 2 , 1 ) . add ( & real_space ) . add ( & gen_canvas_mapping ( ) ) . set_equal_axes ( true ) . set_range ( - 0.1 , RMAX + 0.1 , - 0.1 , RMAX + 0.1 ) . set_ticks_x ( 1.0 , 0.0 , " " ) . set_ticks_y ( 1.0 , 0.0 , " " ) . grid_and_labels ( " " , " " ) ; plot . set_subplot ( 1 , 2 , 2 ) . add ( & natural_space ) . set_equal_axes ( true ) . set_labels ( " , ξ ; plot }
Draws the points in the natural (right) and real (left) spaces
Draws the points in the natural ( right ) and real ( left ) spaces
ksi_min
f64
ksi_del
f64
ksi_min
f64
ksi_del
f64