plot#

k3d.factory.plot(height: int = 512, antialias: int = 3, logarithmic_depth_buffer: bool = True, background_color: int = 16777215, camera_auto_fit: bool = True, grid_auto_fit: bool = True, grid_visible: bool = True, screenshot_scale: float = 2.0, grid: Tuple[float, float, float, float, float, float] = (-1, -1, -1, 1, 1, 1), grid_color: int = 15132390, label_color: int = 4473924, lighting: float = 1.5, menu_visibility: bool = True, voxel_paint_color: int = 0, colorbar_object_id: int = -1, camera_fov: float = 60.0, time: float = 0.0, depth_peels: int = 0, axes: List[str] = None, axes_helper: float = 1.0, axes_helper_colors: List[int] = None, camera_mode: str = 'trackball', snapshot_type: str = 'full', auto_rendering: bool = True, camera_no_zoom: bool = False, camera_no_rotate: bool = False, camera_no_pan: bool = False, camera_rotate_speed: float = 1.0, camera_zoom_speed: float = 1.2, camera_pan_speed: float = 0.3, camera_damping_factor: float = 0.0, camera_up_axis: str = 'none', fps: float = 25.0, minimum_fps: float = -1, fps_meter: bool = False, name: str | None = None, time_speed: float = 1.0, additional_js_code: str = '', custom_data: Dict[str, Any] | None = None) Plot[source]#

Examples#

Coloring#

import k3d

plot = k3d.plot(background_color=0x1e1e1e,
                grid_color=0xd2d2d2,
                label_color=0xf0f0f0)

plot.display()

Axes and bounds#

import k3d

plot = k3d.plot(grid=(0, 0, 0, 60, 20, 50),
                axes=['Time', 'Mass', 'Temperature'])

plot.display()

Static#

import k3d

plot = k3d.plot(camera_no_pan=True,
                camera_no_rotate=True,
                camera_no_zoom=True,
                menu_visibility=False)

plot.display()