[vtkusers] Change vtkChartXY grid opacity
Eric E. Monson
emonson at cs.duke.edu
Fri Aug 12 12:53:37 EDT 2011
Hey Jothy,
That should basically be the right way to do it. If you're feeding the opacity call a float, you should be using ->SetOpacityF(0.6), but that basic method works for me...
Are you using VTK dev or 5.6?
-Eric
· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·
Eric E Monson
Duke Visualization Technology Group
On Aug 12, 2011, at 9:37 AM, Jothy wrote:
> Hi all,
>
> How could I change grid opacity in vtkChartXY?
>
> I tried chart->GetAxis(vtkAxis::BOTTOM)->GetGridPen()->SetOpacity(0.6);
>
> But no effect.
>
> Thanks
>
> Jothy
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110812/bfe1cdcb/attachment.htm>
More information about the vtkusers
mailing list