<div dir="ltr">Hello all,<div><br></div><div>I am having two problems:</div><div>1) I am unable to control the width of the bar in vtkPlotBar</div><div>2) I cannot set the axis to invisible<br><div><br></div><div><br></div>
<div style>There is a previous plot in corner 0 that behaves the same way</div><div>------------------</div><div><div> vtkPlotBar* plot = chart_->AddPlot(vtkChart::BAR);</div><div> chart_->SetPlotCorner(plot, 2);</div>
<div> plot->SetWidth( 50 ); // No effect</div><div> plot->SetInputData(table,1,2);</div><div><br></div><div> vtkAxis *x_axis = chart_->GetAxis(vtkAxis::TOP);</div><div> x_axis->SetVisible(false); // No effect<br>
</div><div><br></div><div> vtkAxis *y_axis = chart_->GetAxis(vtkAxis::RIGHT);</div><div> y_axis->SetVisible(false); // No effect<br></div></div></div><div>----------------------</div><div><br></div><div style>1) Whatever I put to SetWidth the plot is unchanged Looking at the code this should change the width of the bar since it is passed to the PaintSegments functions.</div>
<div style><br></div><div style>2) The vtkAxis::SetVisible(false) has not effect</div><div style><br></div><div style>Anyone has any hints of what I am doing wrong?</div><div style><br></div><div style>Thanks,</div><div style>
Alex</div><div style><br></div></div>