[vtkusers] Fwd: Cubical Appearance
Laura Balbastre
laura.balbastre.soler at gmail.com
Wed Jun 12 07:15:38 EDT 2013
Hi,
I'm working with 3D graphs in VTK. I succeeded in generating the graph with
the specified data. What I want to achieve is having the graph occupying as
much space as possible. In capture1.jpg we can see that although the axes X
ranges goes from 0.000 to 1.61, the X values goes from 0.000 to 0.896.
That's because Y's values goes from 0.000 to 1.61, so what I do is looking
for the min and max values from all the data and apply them to all the
axes. Consecuently all of them have the same length.
What I want to achieve, as shown in capture2.jpg is to fill all the
available space with the graph. That means that although axes Y range goes
from 0.000 to 1.61, I want axes X range to go from 0.000 to 0.896 *but
*maintaining
the same length for all of them. Is it possible?
I tried it hard with the functions:
axes.SetBounds(min, max, max, min, min, max);
axes.SetRanges(xmin, xmax, ymin, ymax, zmin, zmax);
But I don't find the way to achieve it. Any idea, comment or suggestion?
Thank you in advance!
--
Laura Balbastre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130612/1b7b58dc/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: capture1.JPG
Type: image/jpeg
Size: 105526 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130612/1b7b58dc/attachment.jpeg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: capture2.JPG
Type: image/jpeg
Size: 108290 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130612/1b7b58dc/attachment-0001.jpeg>
More information about the vtkusers
mailing list