[vtkusers] Change vtkChartXY grid opacity

Jothy jothybasu at gmail.com
Mon Aug 15 10:12:51 EDT 2011


Got it, thanks!

Jothy

On Fri, Aug 12, 2011 at 5:53 PM, Eric E. Monson <emonson at cs.duke.edu> wrote:

> 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/20110815/f386d823/attachment.htm>


More information about the vtkusers mailing list