[Paraview] Scale axes in display

Sebastien Jourdain sebastien.jourdain at kitware.com
Fri Jan 27 17:10:34 EST 2012


Hi Daniel,

the changes that I made are not exposed on the UI but can be tweaked
from python through a macro or the interactive shell.

Here is a set of python lines that illustrate how to set custom range
on the cube axis actor.

from paraview.simple import *
>>> c = Cone()
>>> rep = Show()
>>> Render()
>>> rep.CubeAxesEnableCustomAxisRange = 1
>>> rep.CubeAxesXAxisRange = [-2,4]
>>> rep.CubeAxesYAxisRange = [-3,3]
>>> rep.CubeAxesZAxisRange = [0,100]
>>> rep.Scale = [2,3,4]
>>> rep.CubeAxesVisibility = 1
>>> Render()

Enjoy,

Seb



On Fri, Jan 27, 2012 at 4:28 PM, Aashish Chaudhary
<aashish.chaudhary at kitware.com> wrote:
> Hi Daniel,
>
> I want to add that if you want custom range to be displayed, then Sebastien
> pushed a code today in ParaView that will allow you to do so. Probably worth
> checking it out and see if that fulfills your requirement.
>
> Thanks,
>
>
> On Thu, Jan 19, 2012 at 3:45 AM, Daniel Hornung <daniel.hornung at ds.mpg.de>
> wrote:
>>
>> On Wednesday, January 18, 2012 17:00:48 Aashish Chaudhary wrote:
>> > On Wed, Jan 18, 2012 at 9:10 AM, Daniel Hornung
>> > > Is there a way to rescale the displayed size of a dataset, so that
>> > > some
>> > > axis have different scalings than others, while keeping the x,y,z
>> > > _values_ intact?
>> >
>> > As far as I know, at this point this use case is not supported
>> > although I must add that this will be a nice feature to have.
>>
>> Thanks for the quick answer, I will work my way around this somehow.
>>
>> Cheers,
>> Daniel
>>
>> --
>> Max-Planck-Institute for Dynamics and Self-Organization
>> Laboratory for Fluid Dynamics, Pattern Formation and Nanobiocomplexity
>> Biomedical Physics Group
>>
>> Am Fassberg 17
>> D-37077 Goettingen
>>
>> (+49) 551 5176 373
>>
>> _______________________________________________
>> 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 ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>>
>
>
>
> --
> | Aashish Chaudhary
> | R&D Engineer
> | Kitware Inc.
> | www.kitware.com
>
> _______________________________________________
> 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>


More information about the ParaView mailing list