Thanks Gudni, I've just pushed something to next.
commit 89362b00ececb01765ce4683c4b6d40db4164370 Author: Sebastien Jourdain <sebastien.jourd...@kitware.com> Date: Mon May 6 15:55:27 2013 -0400 Expose CubeAxes Label format to the proxy layer. Change-Id: I8af3ddf8ca33c8d27332cc5ae052e1e636388725 You should be able to get it inside the nightly binary by the end the week. Then you will need to do inside the python shell: >>> rep = Show(GetActiveSource()) >>> rep.CubeAxesXLabelFormat = "%-#1.4g" The only thing that you might need to do, is to invalidate the bounds of the cube axes (by changing your data in some way) to make sure the new label get generated with the newly set format. Seb On Mon, May 6, 2013 at 10:58 AM, Guðni Karl Rosenkjær <grose...@eos.ubc.ca>wrote: > 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 < > sebastien.jourd...@kitware.com> 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 <felipe.bor...@ec-nantes.fr >> > 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 < >>> sebastien.jourd...@kitware.com> wrote: >>> >>>> This is not something that is currently supported. >>>> >>>> >>>> On Thu, May 2, 2013 at 1:26 PM, Guðni Karl Rosenkjær < >>>> grose...@eos.ubc.ca> 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 06felipe.bor...@ec-nantes.fr >>> 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 >> >> >
_______________________________________________ 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