[vtkusers] How to enable vtkAxis::RIGHT in vtkChartXY (multiple Y-Axis)

Gerrit van Doorn gdoorn at newfieldwireless.com
Wed Jan 18 20:22:31 EST 2012


OK, I figured out the trick was to disable AutoAxis:
   chart->SetAutoAxes(false);

Now I'm still wondering if it is possible to draw a 2nd plot using the
RIGHT Axis. Does anybody know if this is possible?

On Wed, Jan 18, 2012 at 2:24 PM, Gerrit van Doorn <
gdoorn at newfieldwireless.com> wrote:

> Hi,
>
> I'm trying to plot a second Y-Axis on the right side of a line/bar plot by
> enabling  vtkAxis::RIGHT (chart->GetAxis(vtkAxis::RIGHT)->SetVisible(true);)
> However, it doesn't show up. I also tried this on a line plot in ParaView
> (using the settings menu) but here it also doesn't display the Axis on the
> right side. Is there something I'm forgetting to do?
> Is it possible to plot 2 line graphs in the same chart with each their own
> Y-Axis?
>
> I'm using VTK 5.8
>
> Thanks,
> gerrit




-- 
*Gerrit van Doorn*
Software Engineer
*O* +1 510.809.2338  *M* +1 510.859.4618
2855 Telegraph Avenue, Suite 600
Berkeley, CA  94705
www.newfieldwireless.com
[image: Newfield_logo_color.png]
This message, including any attachments, may contain confidential
information intended only for the person(s) named above. Any views
or opinions expressed are solely those of the author and do not
necessarily represent those of Newfield Wireless If you are not the
intended recipient or have received this message in error, please
notify the sender immediately by reply email and permanently delete
the original transmission from the sender, including any attachments,
without making a copy. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120118/4c61d7f6/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 8568 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120118/4c61d7f6/attachment.png>


More information about the vtkusers mailing list