[vtkusers] Area delimited by two curves

Mario Rodriguez biomates at telefonica.net
Tue Aug 30 05:44:33 EDT 2016


Hello,

I am trying to plot the area between two curves in vtkChartXY.

My environment is Python and VTK 6.2.

I have tried this:

area=chart.AddPlot(3)
area.SetInputData(table)
area.SetInputArray(0, "arrayX")
area.SetInputArray(1, "arrayY1")
area.SetInputArray(2, "arrayY2")

But the output is the colored area between arrayY1 and the x-axis.

Changing the argument of AddPlot to 6, throws an error:

     area.SetInputData(table1)
AttributeError: 'NoneType' object has no attribute 'SetInputData'

Could someone direct me in the right direction?

Thanks

-- 

Mario



More information about the vtkusers mailing list