<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hey Gerrit,<div><br></div><div>You can actually leave AutoAxes on. The way to get the extra axes to show up and use them for plots is to set the "plot corner". This nomenclature is a bit opaque to me, but the idea is that each chart has four possible corners. The default one is 0, which uses the left and bottom axes. Corner 1 uses bottom and right; 2 uses right and top and 3 uses top and left. </div><div><br></div><div>So, after you've added a plot to the chart, you can call</div><div><br></div><div>chart->SetPlotCorner( chart->GetPlot(0), 1);</div><div><br></div><div>and this will switch it to using the bottom and right axes. I would think there would be an enum for the corner integers, but I couldn't fine one offhand. I haven't played around enough to see how this behaves with multiple plots that have different ranges, etc – only tried it out to see that the basic functionality works.</div><div><br></div><div>Talk to you later,</div><div>-Eric</div><div><br></div><div><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·</div><div>Eric E Monson</div><div>Duke Visualization Technology Group</div><div><br class="webkit-block-placeholder"></div></div></span><br></span></div><div><div>On Jan 18, 2012, at 8:22 PM, Gerrit van Doorn wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">OK, I figured out the trick was to disable AutoAxis:<div> chart->SetAutoAxes(false);</div><div><br></div><div>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?<br>
<br><div class="gmail_quote">On Wed, Jan 18, 2012 at 2:24 PM, Gerrit van Doorn <span dir="ltr"><<a href="mailto:gdoorn@newfieldwireless.com">gdoorn@newfieldwireless.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Hi,</div><div><br></div><div>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);)</div><div>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?</div>
<div>Is it possible to plot 2 line graphs in the same chart with each their own Y-Axis?</div><div><br></div><div>I'm using VTK 5.8</div><div><br></div><div>Thanks,</div>gerrit
</blockquote></div><br><br clear="all"><div><br></div>-- <br><b>Gerrit van Doorn</b><div>Software Engineer</div><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><b><span lang="EN-CA" style="font-size:10pt;color:rgb(0,128,255)">O</span></b><span lang="EN-CA" style="font-size:10pt"> +1 510.809.2338 <b><span style="color:rgb(0,128,255)">M</span></b> +1 510.859.4618</span></span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse;line-height:17px"><span lang="EN-CA" style="font-size:10pt">2855 Telegraph Avenue, Suite 600<br>Berkeley, CA 94705 <br></span><a href="http://www.newfieldwireless.com/" style="color:rgb(42,93,176)" target="_blank"><span lang="EN-CA" style="font-size:10pt;color:blue">www.newfieldwireless.com</span></a></span></div>
<div><span><image003.png></span></div><div><span style="font-family:arial,sans-serif;font-size:9px;border-collapse:collapse">This message, including any attachments, may contain confidential <br>
information intended only for the person(s) named above. Any views <br>or opinions expressed are solely those of the author and do not <br>necessarily represent those of Newfield Wireless If you are not the <br>intended recipient or have received this message in error, please <br>
notify the sender immediately by reply email and permanently delete <br>the original transmission from the sender, including any attachments, <br>without making a copy. Thank you.</span></div><br>
</div>
_______________________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></blockquote></div><br></div></body></html>