[vtkusers] Axis range of vtkchartxy
curator
curator at gmx.de
Mon Aug 19 05:25:53 EDT 2013
Hi all,
I am working for the first time with vtkchartxy, and I already managed
to have multiple graphs shown by using a vtkTable.
For each line, I do
for (all i)
{
m_vtkPoints = m_vtkChart->AddPlot(vtkChart::LINE);
m_vtkPoints->SetInputData(m_vtkTable, 0, i+1);
}
m_vtkPoints->GetXAxis()->SetTitle("axis name"); // that works
m_vtkPoints->GetXAxis()->SetMinimum(0.01f); // that does not work
As written in the code, I can change axis labels, but not minimum and
maximum. Any ideas, why this does not work out of the box?
regards,
curator
More information about the vtkusers
mailing list