Skip to content

Surface

The Julia field drawn as a surface whose faces are coloured by height and outlined with thin black edges. In the viewer, drag in rotate mode to change the azimuth and elevation of the view.

Surface

Select the image, or download the PDF, to open the vector figure exported by IronLAB.

Source

The figure is built by the following code. Its data comes from the functions on the data helpers page.

use ironlab::prelude::*;

use crate::fields::*;

pub const TITLE: &str = "Surface";
pub const DESCRIPTION: &str = "The Julia field drawn as a surface whose faces are coloured by height and outlined \
     with thin black edges. In the viewer, drag in rotate mode to change the azimuth and elevation of the view.";

pub fn figure() -> Figure {
    let (x, y, z) = julia_grid(41);

    let mut fig = Figure::new()
        .size_mm(160.0, 100.0)
        .title(r"Surface of $\ln(1 + |z_3|)$");
    let mut ax = fig.axes3(0, 0);
    ax.surf(&x, &y, &z).edge_width(0.25);
    ax.xlabel("$x$")
        .ylabel("$y$")
        .zlabel(r"$\ln(1 + |z_3|)$")
        .view(-37.5, 30.0);
    fig
}

Back to the gallery