# Orientation of plot within vtkChartMatrix

**URL:** <https://discourse.vtk.org/t/orientation-of-plot-within-vtkchartmatrix/1538>\
**Category:** Development\
**Created:** [August 9, 2019, 9:50am UTC](https://discourse.vtk.org/t/orientation-of-plot-within-vtkchartmatrix/1538 "2019-08-09T09:50:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marco.reato](https://discourse.vtk.org/user_avatar/discourse.vtk.org/marco.reato/32/743_2.png) [@marco.reato](https://discourse.vtk.org/u/marco.reato)\
**Post date:** [August 9, 2019, 9:50am UTC](https://discourse.vtk.org/t/orientation-of-plot-within-vtkchartmatrix/1538/1 "2019-08-09T09:50:35Z")

</div>

Hello everyone,

I’m currently building some 2D data visualization tools based on the vtkChartXY and vtkChartMatrix classes. I’ve started by looking at these two examples:

1. [https://lorensen.github.io/VTKExamples/site/Cxx/Plotting/ChartMatrix/](https://lorensen.github.io/VTKExamples/site/Cxx/Plotting/ChartMatrix/)
2. [https://lorensen.github.io/VTKExamples/site/Cxx/Plotting/ScatterPlot/](https://lorensen.github.io/VTKExamples/site/Cxx/Plotting/ScatterPlot/)

What I’m trying to achieve now is to rotate by 90 degrees one of the four charts in the chart matrix.

By looking at the classes documentation I was not able to find a straightforward way to do so.

I found this thread ([https://vtkusers.public.kitware.narkive.com/AcvHUjqH/vtkchartxy-rotate-or-flip-a-2d-chart](https://vtkusers.public.kitware.narkive.com/AcvHUjqH/vtkchartxy-rotate-or-flip-a-2d-chart)), where the issue seems to have been solved, but I was not able to reproduce those results, nor embed them in the vtkChartMatrix. I am currently using VTK version 8.2.0.

A graphical example of what my final goal is can be found in [this image](https://www.researchgate.net/profile/Ithai_Rabinowitch/publication/254045139/figure/fig5/AS:367961417240576@1464740246016/2-Raster-plot-of-synaptic-activation-Raster-plot-of-excitatory-presynaptic-events-over.png), which is a raster plot with frequency histograms on both the axes.

Thank you very much for any help 🙂

Marco

---

<div class="post-metadata">

**Author:** ![avilia60](https://discourse.vtk.org/user_avatar/discourse.vtk.org/avilia60/32/5306_2.png) [@avilia60](https://discourse.vtk.org/u/avilia60)\
**Post date:** [September 30, 2022, 9:18am UTC](https://discourse.vtk.org/t/orientation-of-plot-within-vtkchartmatrix/1538/2 "2022-09-30T09:18:04Z")

</div>

Same quetion here,have you solved this?
