<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi,</p>
<p>I manged to display the plots by using using the renderer of the
view rather the setting the renderer of the view:</p>
<p>//view2->SetRenderer(leftRenderer);<br>
leftRenderer = view2->GetRenderer();</p>
<p>The plots are now displayed nex to each other! <br>
</p>
<p>Thansk<br>
</p>
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 13/04/18 06:08, Todd Martin wrote:<br>
</div>
<blockquote type="cite"
cite="mid:1042245899.1694314.1523596126040@mail.yahoo.com">
<div style="font-family:Helvetica Neue, Helvetica, Arial,
sans-serif;font-size:16px;">
<div>
<div>The simplest solution might be just to add multiple
viewports to the render window and render a different chart
in each.<br>
</div>
<div><br>
</div>
<div class="ydpd7ba7c2csignature">
<div style="font-size:16px;">
<div>Todd Martin, Ph.D.<br>
</div>
<div>Freelance Engineer/Software Architect.</div>
<br>
</div>
</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div id="yahoo_quoted_3678297117" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial,
sans-serif;font-size:13px;color:#26282a;">
<div> On Friday, April 13, 2018, 10:48:11 AM GMT+12, Marcus
D. Hanwell <a class="moz-txt-link-rfc2396E" href="mailto:marcus.hanwell@kitware.com"><marcus.hanwell@kitware.com></a> wrote: </div>
<div><br>
</div>
<div><br>
</div>
<div>
<div dir="ltr">On Sat, Apr 7, 2018 at 5:52 PM, Zoltan
Takacs <<a shape="rect"
ymailto="mailto:zozonmr@gmail.com"
href="mailto:zozonmr@gmail.com" moz-do-not-send="true">zozonmr@gmail.com</a>>
wrote:<br clear="none">
><br clear="none">
> I am trying to get 4 charts (vtkChartXY) into a
window (multiple contextviews in a window I guess). I
have looked at the examples for lineplot and scatterplot
however if I add a chart2 to view they are displayed on
the top each other. What is the best way to achieve
this?<br clear="none">
><br clear="none">
By default charts fill a full view, as pointed out you
can try<br clear="none">
vtkChartMatrix, or you can borrow some of that code to
make the charts<br clear="none">
a fixed size. You would then need to manage where they
are placed, and<br clear="none">
how big they are when the widget they are in resizes.
You can have as<br clear="none">
many charts as you wish in one widget/context view. The
bulk of<br clear="none">
vtkChartMatrix just manages resizing when the window
size is changed.
<div class="yqt9442880103" id="yqtfd38925"><br
clear="none">
_______________________________________________<br
clear="none">
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a><br clear="none">
<br clear="none">
Visit other Kitware open-source projects at <a
shape="rect"
href="http://www.kitware.com/opensource/opensource.html"
target="_blank" moz-do-not-send="true">http://www.kitware.com/opensource/opensource.html</a><br
clear="none">
<br clear="none">
Please keep messages on-topic and check the VTK FAQ
at: <a shape="rect"
href="http://www.vtk.org/Wiki/VTK_FAQ"
target="_blank" moz-do-not-send="true">http://www.vtk.org/Wiki/VTK_FAQ</a><br
clear="none">
<br clear="none">
Search the list archives at: <a shape="rect"
href="http://markmail.org/search/?q=vtkusers"
target="_blank" moz-do-not-send="true">http://markmail.org/search/?q=vtkusers</a><br
clear="none">
<br clear="none">
Follow this link to subscribe/unsubscribe:<br
clear="none">
<a shape="rect"
href="https://vtk.org/mailman/listinfo/vtkusers"
target="_blank" moz-do-not-send="true">https://vtk.org/mailman/listinfo/vtkusers</a><br
clear="none">
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<br>
</body>
</html>