[vtkusers] Help: How to keep the axis labels in a vtkXYPlotActor from being scaled

Nasos Iliopoulos nasos_i at hotmail.com
Fri Jun 19 10:38:07 EDT 2009


I think there is no vtk-api way to do that. A fast work-around though is by creating a callback when the xyplotactor is modified, then manually set the fontsize of the title, axis labels etc to appropriate scale.

Search for "SetRelativeFontSize", in the implementation of vtkxyplotactor (http://public.kitware.com/cgi-bin/cvsweb.cgi/VTK/Hybrid/vtkXYPlotActor.cxx?rev=1.69;content-type=text%2Fplain) to see how the vtkxyplotactor sizes the fonts and do the inverse to get non-resized fonts.

I may try this in my code in the near future and will send you a response if I get appropriate results.

Best
Nasos

> Date: Thu, 18 Jun 2009 19:24:39 +0200
> From: nundee at gmail.com
> To: vtkusers at vtk.org
> Subject: [vtkusers] Help: How to keep the axis labels in a vtkXYPlotActor from being scaled
> 
> Hi,
> 
> if you resize the render window containing a XYPlotActor the axis labels
> will get also resized. Is there any way to change this behaviour, 
> leaving the  labels unscaled ?
> 
> Thanks in advance
> Nandi
> _______________________________________________
> 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
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers

_________________________________________________________________
Insert movie times and more without leaving Hotmail®.
http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090619/d1c11e20/attachment.htm>


More information about the vtkusers mailing list