[vtkusers] Positioning titles within vtkAxis

Eric E. Monson emonson at cs.duke.edu
Tue Dec 7 07:53:54 EST 2010


Hey Daniel,

It does seem like SetLineOffset should do something like what you want, but I think they way the label text is applied with VerticalJustification probably nullifies any line offset setting. Line spacing shouldn't matter for a single line of text.

So, the adjustments you want are just not implemented. Marcus, the developer, has worked hard to get the labels right, though, so if you have a use case where the labels are running into the axis ticks maybe you should describe the situation and send a screen shot – it may be something that needs fixing. 

You're right that the charts are still under development, but some of the core functionality has settled down, and as you said, the current implementation is better than the 5.6.1 version.

-Eric

------------------------------------------------------
Eric E Monson
Duke Visualization Technology Group


On Dec 7, 2010, at 3:35 AM, Frese Daniel Dr. wrote:

> Hi all,
>  
> I have a problem positioning an axis title relative to its vtkAxis object.
> Basically, if I draw a horizontal  X-axis, the assigned title is written such that it overlapps with the
> tick labels. Reading through the docs, I got the impression that I should be able to introduce a
> vertical offset between the drawn axis and the titel by using either a call to
> Xaxis->GetTitleProperties()->SetLineOffset(offset_in_pixel)
> or by 
> Xaxis->GetTitleProperties()->SetLineSpacing(scale_factor).
> But neither call seems to have any effect.
> Moving from 5.6.1 to the latest vtk git source tree I noticed that the chart stuff seems to have
> improved greatly (most functions a joy to use !), but it still seems to be a work in progress.
> So am doing something stupid and do I miss something here or is this feature just not
> implemented yet ?
>  
> Daniel
>  
> </PRE><p>
> ------------------------------------------------------------------------------------------------------ <br>
> Registergericht: Traunstein / Registry Court: HRB 275 - Sitz / Head Office: Traunreut <br>
> Aufsichtsratsvorsitzender / Chairman of Supervisory Board: Rainer Burkhard <br>
> Geschäftsführung / Management Board: Thomas Sesselmann (Vorsitzender / Chairman),<br>
> Michael Grimm, Matthias Fauser, Sebastian Tondorf<br><br>
> <a href="http://www.heidenhain.de/disclaimer" target="_blank">E-Mail Haftungsausschluss / E-Mail Disclaimer</a><br><pre>
> _______________________________________________
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101207/2ee38b2f/attachment.htm>


More information about the vtkusers mailing list