Hi Felipe: Thanks for the suggestion. I had thought of this but it means I would have to go through all my data and make these changes. This is a last resort...
Sebastien: I have little experience with VTK it self, but I found that vtkCubeAxesActor has the set*LabelFormat (where * is x,y or z) which are exposed in the Python bindings. I have been playing with an example of a VTK python script, where I have been able setup a problem with similar dimension and changed the label Y to include a the additional number at the end (code in attachment). I used SetYLabelFormat method of the vtkCubeAxesActor to do this. However, I would ultimately like to be able to have the exponent used to condense the label of all the axes the same, both 10³ instead of x as 10³ but y as 10⁶. Is it possible to control that functionality in VTK? As far as I can see some connection to the vtkCubeAxesActor.Set*LabelFormat from Paraview is what I would need. What is the best way to do this? Thanks for the help, Gudni On Fri, May 3, 2013 at 1:24 PM, Sebastien Jourdain < [email protected]> wrote: > Do you know exactly the set of methods that needs to be called on the VTK > objects ? I can certainly try to expose them on the Python layer which > could let you have a wider set of possibilities. (For that just give me a > list of method calls that you would like to be able to do in C++) > > I can somehow guide you on how to get a reference to the VTK objects from > the Python layer but all the methods that you need to access have to be > public. > > Another approach could be to 'patch' the vtkCubeAxesRepresentation so the > default behavior will be what you expect... > > There is many way to tackle the current limitation. > > Seb > > > > > > On Fri, May 3, 2013 at 7:47 AM, Felipe Bordeu > <[email protected]>wrote: > >> One solution is to change the scale. You can subtract the constant part >> to your coordinates. >> >> Felipe >> Le 03/05/2013 12:58, Guðni Karl Rosenkjær a écrit : >> >> Hello, >> >> Thanks for the reply Sebastien. >> >> Is there any way where I can deal with this? I want to make >> a publishable figure from my work in Paraview and this issue with labels is >> the last problem that I need to deal with. Is it possible to mix the >> Paraview script (.py state file of the model) and vtk 5.10.1 method to fix >> the labels and generate the figure I want? >> >> Is there anybody that has been able to deal with this problem that can >> share some idea's? >> >> Thanks very much in advance. >> >> Cheers, >> Gudni >> >> >> On Thu, May 2, 2013 at 7:15 PM, Sebastien Jourdain < >> [email protected]> wrote: >> >>> This is not something that is currently supported. >>> >>> >>> On Thu, May 2, 2013 at 1:26 PM, Guðni Karl Rosenkjær < >>> [email protected]> wrote: >>> >>>> Hello, >>>> >>>> I am using Paraview to visualize data in UTM coordinates. I have a >>>> problem with the labels on the Northing axes, since the label format >>>> doesn't include enough digits for the range my data is in ( as seen on in >>>> the figure attached to the email). >>>> >>>> How can I access the string format to be able to change it? >>>> >>>> I have made some attempts to do this via a the python shell by doing >>>> by accessing the represtation, rep = GetRepresention() and explore the >>>> options there. But I haven't been able to find where I could change the >>>> format. I have found with google and from playing with the vtk 5.10.1 that >>>> vtkCubeAxesActor has get/set*LabelFormat methods that I am not able to find >>>> in Paraview. >>>> >>>> I am using Paraview 3.98.1 (pre-compiled version) on a 64-bit Fedora >>>> 17 system. >>>> >>>> Thanks for the help. >>>> Cheers, >>>> Gudni >>>> >>>> >>>> >>>> _______________________________________________ >>>> 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 >>>> >>>> >>> >> >> >> _______________________________________________ >> 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 >> >> >> >> -- >> Felipe Bordeu Weldt >> Ingénieur de Recherche >> ------------------------------------- >> Tél. : 33 (0)2 40 37 16 57 >> Fax. : 33 (0)2 40 74 74 [email protected] >> Institut GeM - UMR CNRS 6183 >> École Centrale Nantes >> 1 Rue de La Noë, 44321 Nantes, FRANCE >> ------------------------------------- >> >> >> _______________________________________________ >> 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 >> >> > > _______________________________________________ > 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 > >
spare.py
Description: Binary data
_______________________________________________ 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
