For an example, open Derivita - Authoring Examples > 3D Plotting.
Plots one or more 3D renderers
Named Arguments:
x_min
x_max
y_min
y_max
z_min
z_max
width
height
angle
altitude
x_label
y_label
z_label
Sets default values for plotting
Named Arguments:
width
height
foreground
background
foreground_alpha
background_alpha
plot_line_width
tick_size
font_size
font_face
font_family
legend_anchor
legend_box_alpha
bounds_cube
x_axis
y_axis
x_far_axis
y_far_axis
x_origin_axis
y_origin_axis
z_axis
x_tick_labels
y_tick_labels
x_far_tick_labels
y_far_tick_labels
x_tick_label_angle
y_tick_label_angle
x_far_tick_label_angle
y_far_tick_label_angle
x_tick_label_anchor
y_tick_label_anchor
x_far_tick_label_anchor
y_far_tick_label_anchor
decorations
samples
angle
altitude
ambient_light
diffuse_light
specular_light
allow_pan
allow_zoom
allow_rotate
title
x_label
y_label
z_label
x_far_label
y_far_label
line_samples
line_color
line_width
line_style
line_alpha
interval_color
interval_style
interval_line1_color
interval_line1_width
interval_line1_style
interval_line2_color
interval_line2_width
interval_line2_style
interval_alpha
point_color
point_size
point_line_width
point_alpha
vector_field_samples
vector_field_color
vector_field_line_style
vector_field_scale
vector_field3d_samples
contour_samples
contour_levels
contour_colors
contour_widths
contour_styles
contour_alphas
contour_interval_colors
contour_interval_styles
contour_interval_alphas
x_axis_ticks
y_axis_ticks
x_axis_labels
y_axis_labels
x_axis_alpha
y_axis_alpha
polar_axes_number
polar_axes_ticks
polar_axes_labels
polar_axes_alpha
label_anchor
label_angle
label_alpha
label_point_size
surface_color
surface_style
surface_line_color
surface_line_style
contour_interval_line_colors
contour_interval_line_styles
Plots z = expr
expr an expression in x and y: for example, sin(x) + cos(y)
x_min lower bounds for x axis
x_max upper bounds for x axis
y_min lower bounds for y axis
y_max upper bounds for y axis
Named Arguments:
z_min lower bounds for z axis
z_max upper bounds for z axis
samples Number of samples taken, per axis. Integer >= 2
color See https://docs.racket-lang.org/plot/intro.html#%28part._.Colors_and_.Styles%29
line_style
Plots z = expr with isolines and shades each interval
expr an expression in x and y: for example, sin(x) + cos(y)
x_min lower bounds for x axis
x_max upper bounds for x axis
y_min lower bounds for y axis
y_max upper bounds for y axis
Named Arguments:
z_min lower bounds for z axis
z_max upper bounds for z axis
samples Number of samples taken, per axis. Integer >= 2
levels Either "auto", an integer number of contour levels, or a list of z values to use as contour levels.
surface_colors List of colors to use for the contour intervals. Extra levels will interpolate between these colors if necessary.
surface_line_styles List of styles to use for the lines on the surface, e.g. ["transparent"]. Extra levels will cycle through the list if necessary.
contour_colors List of colors to use for the contour level lines. Extra levels will interpolate between these colors if necessary.
contour_line_widths List of line widths to use for the contour level lines. Extra levels will cycle through the list if necessary.
contour_line_styles List of styles to use for the contour level lines. Extra levels will cycle through the list if necessary.
Returns a renderer that plots the surface of 0 output value of the function f.
Plots expr = 0
expr an expression in x, y, and z: for example, x^2 + y^2 + z^2
x_min lower bounds for x axis
x_max upper bounds for x axis
y_min lower bounds for y axis
y_max upper bounds for y axis
z_min lower bounds for z axis
z_max upper bounds for z axis
Named Arguments:
samples Number of samples taken, per axis. Integer >= 2
color See https://docs.racket-lang.org/plot/intro.html#%28part._.Colors_and_.Styles%29
line_style
Plots a parametrized surface f(s, t) = expressions
expressions a list of three expressions in s and t, representing [x(s, t), y(s, t), z(s, t)]: for example, [sin(s)*(5 + sin(t)), cos(s)*(5 + sin(t)), s + cos(t))]
s_min lower bounds for s
s_max upper bounds for s
t_min lower bounds for t
t_max upper bounds for t
x_min lower bounds for x axis
x_max upper bounds for x axis
y_min lower bounds for y axis
y_max upper bounds for y axis
Named Arguments:
z_min lower bounds for z axis
z_max upper bounds for z axis
s_samples Number of samples taken for s. Integer >= 2
t_samples Number of samples taken for t. Integer >= 2
color See https://docs.racket-lang.org/plot/intro.html#%28part._.Colors_and_.Styles%29
line_style
Plots a parametrized curve f(t) = expressions
expressions a list of three expressions in t, representing [x(t), y(t), z(t)]: for example, [cos(t), sin(2t), sin(3t)]
t_min lower bounds for t
t_max upper bounds for t
x_min lower bounds for x axis
x_max upper bounds for x axis
y_min lower bounds for y axis
y_max upper bounds for y axis
Named Arguments:
z_min lower bounds for z axis
z_max upper bounds for z axis
samples Number of samples taken, per axis. Integer >= 2
color See https://docs.racket-lang.org/plot/intro.html#%28part._.Colors_and_.Styles%29
line_style
Plots a single vector
vector vector to plot: for example, list<1,1,1>
Named Arguments:
origin origin of the vector
color See https://docs.racket-lang.org/plot/intro.html#%28part._.Colors_and_.Styles%29
width
Plots a vector field f(x, y, z) = vector_expr
vector_expr a formula for the vector to plot at each point: for example, list<x, z, y>
x_min lower bounds for x axis
x_max upper bounds for x axis
y_min lower bounds for y axis
y_max upper bounds for y axis
z_min lower bounds for z axis
z_max upper bounds for z axis
Named Arguments:
samples Number of samples taken, per axis. Integer >= 2
scale If scale is a real number, arrow lengths are multiplied by scale. If "auto", the scale is calculated in a way that keeps arrows from overlapping. If "normalized", each arrow is made the same length.
color See https://docs.racket-lang.org/plot/intro.html#%28part._.Colors_and_.Styles%29
line_width