[vtkusers] Names of the axes of the graph
kenichiro yoshimi
rccm.kyoshimi at gmail.com
Sun Sep 24 06:30:51 EDT 2017
Hi Simakov,
For equation rendering as shown in attached figure, you need to
introduce MathText markup, which is a subset of LaTeX. To compile VTK
with support for MathText, you must turn on VTK_WRAP_PYTHON and
Module_vtkRenderingMatplotlib during configuration with CMake.
In coding, a pair of "$" symbols surrounding a MathType expression
gives the results you desire. For example:
-----
vtkSmartPointer<vtkChartXY> chart =
vtkSmartPointer<vtkChartXY>::New();
vtkAxis *axis = chart->GetAxis(vtkAxis::BOTTOM);
axis->SetTitle("$\\omega_X$");
-----
Thanks
2017-09-23 21:58 GMT+09:00 Met at ll <simakov.w at gmail.com>:
> Hi!
> Сan I somehow make the names of the axes of the graph as shown in the
> figure?
> Thank you!
> <http://vtk.1045678.n5.nabble.com/file/t342088/%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA.png>
>
>
>
> --
> Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list