Skip to content

Screenshot produces black image #111

@liwei46

Description

@liwei46

Hello,

I am using the following code to plot. How do I save the plot to image like JPG? Thanks.

    v = vv.volshow(volRGB, renderStyle="iso")
    v.transformations[1].sz = 0.5  # Z was twice as deep during training

    l0 = vv.gca()
    l0.light0.ambient = 0.9  # 0.2 is default for light 0
    l0.light0.diffuse = 1.0  # 1.0 is default

    a = vv.gca()
    a.camera.fov = 0  # orthographic

    vv.use().Run()

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions