<div dir="ltr"><div><div><div><div>I have a little debug widget in which I show a vtkXYPlotActor like this:<br><br>    auto imageAccumulate = vtkSmartPointer<vtkImageAccumulate>::New();<br>    imageAccumulate->SetComponentSpacing(0.01, 0, 0);<br>    imageAccumulate->SetComponentExtent(0, 499, 0, 0, 0, 0);<br>    imageAccumulate->SetInputData(imageData);<br>    imageAccumulate->Update();<br><br>    auto plot = vtkSmartPointer<vtkXYPlotActor>::New();<br>    plot->ExchangeAxesOff();<br>    plot->SetXTitle("");<br>    plot->SetYTitle("");<br>    plot->SetLabelFormat("%g");<br>    plot->SetXValuesToValue();<br>    plot->AddDataSetInputConnection(imageAccumulate->GetOutputPort());<br><br>    renderer()->AddActor(plot);<br>    auto camera = renderer()->GetActiveCamera();<br>    camera->Zoom(3);<br><br></div>The camera->Zoom(3) seems to have no effect (see attached screenshot). My goal is actually to set a zoom level such that the vtkXYPlotActor is as large as it can be without going outside the viewport.<br><br></div>How can this be done?<br><br></div>Thanks,<br></div>Elvis<br></div>