[vtkusers] multiple charts/plots in one window

Zoltan Takacs zozonmr at gmail.com
Sat Apr 14 17:59:21 EDT 2018


Works great thanks!


On 12/04/18 23:47, Marcus D. Hanwell wrote:
> On Sat, Apr 7, 2018 at 5:52 PM, Zoltan Takacs <zozonmr at gmail.com> wrote:
>> 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?
>>
> By default charts fill a full view, as pointed out you can try
> vtkChartMatrix, or you can borrow some of that code to make the charts
> a fixed size. You would then need to manage where they are placed, and
> how big they are when the widget they are in resizes. You can have as
> many charts as you wish in one widget/context view. The bulk of
> vtkChartMatrix just manages resizing when the window size is changed.



More information about the vtkusers mailing list