<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Maybe define the callback on one or more of the vtkTextProperties? i.e. <br>vtkTextProperty *tp = xyplotactor-&gt;GetAxisTitleTextProperty();<br>tp-&gt;addObserver(....<br><br>Find a list of them here:<br>http://www.vtk.org/doc/nightly/html/classvtkXYPlotActor.html#8325ce9bc384ba655e595e3dd9a5d6bc<br><br><br><br>&gt; Date: Sat, 20 Jun 2009 23:16:32 +0200<br>&gt; From: nundee@gmail.com<br>&gt; To: nasos_i@hotmail.com<br>&gt; CC: vtkusers@vtk.org<br>&gt; Subject: Re: [vtkusers] Help: How to keep the axis labels in a vtkXYPlotActor from being scaled<br>&gt; <br>&gt; Hi Nasos,<br>&gt; thank you very much for the hint.<br>&gt; I actually tried with  "xyplot-&gt;AddObserver(vtkCommand::ModifiedEvent, <br>&gt; ...)"<br>&gt; but my callback wont get called on resize. Any clue ?<br>&gt; <br>&gt; BR<br>&gt; Nandi<br>&gt; <br>&gt; Nasos Iliopoulos wrote:<br>&gt; &gt; I think there is no vtk-api way to do that. A fast work-around though <br>&gt; &gt; is by creating a callback when the xyplotactor is modified, then <br>&gt; &gt; manually set the fontsize of the title, axis labels etc to appropriate <br>&gt; &gt; scale.<br>&gt; &gt;<br>&gt; &gt; Search for "SetRelativeFontSize", in the implementation of <br>&gt; &gt; vtkxyplotactor <br>&gt; &gt; (http://public.kitware.com/cgi-bin/cvsweb.cgi/VTK/Hybrid/vtkXYPlotActor.cxx?rev=1.69;content-type=text%2Fplain) <br>&gt; &gt; to see how the vtkxyplotactor sizes the fonts and do the inverse to <br>&gt; &gt; get non-resized fonts.<br>&gt; &gt;<br>&gt; &gt; I may try this in my code in the near future and will send you a <br>&gt; &gt; response if I get appropriate results.<br>&gt; &gt;<br>&gt; &gt; Best<br>&gt; &gt; Nasos<br>&gt; &gt;<br>&gt; &gt; &gt; Date: Thu, 18 Jun 2009 19:24:39 +0200<br>&gt; &gt; &gt; From: nundee@gmail.com<br>&gt; &gt; &gt; To: vtkusers@vtk.org<br>&gt; &gt; &gt; Subject: [vtkusers] Help: How to keep the axis labels in a <br>&gt; &gt; vtkXYPlotActor from being scaled<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Hi,<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; if you resize the render window containing a XYPlotActor the axis labels<br>&gt; &gt; &gt; will get also resized. Is there any way to change this behaviour,<br>&gt; &gt; &gt; leaving the labels unscaled ?<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Thanks in advance<br>&gt; &gt; &gt; Nandi<br>&gt; &gt; &gt; _______________________________________________<br>&gt; &gt; &gt; Powered by www.kitware.com<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Visit other Kitware open-source projects at <br>&gt; &gt; http://www.kitware.com/opensource/opensource.html<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Please keep messages on-topic and check the VTK FAQ at: <br>&gt; &gt; http://www.vtk.org/Wiki/VTK_FAQ<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Follow this link to subscribe/unsubscribe:<br>&gt; &gt; &gt; http://www.vtk.org/mailman/listinfo/vtkusers<br>&gt; &gt;<br>&gt; &gt; ------------------------------------------------------------------------<br>&gt; &gt; Insert movie times and more without leaving Hotmail®. See how. <br>&gt; &gt; &lt;http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009&gt;<br>&gt; <br><br /><hr />Hotmail® has ever-growing storage! Don’t worry about storage limits. <a href='http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage_062009' target='_new'>Check it out.</a></body>
</html>