<div dir="ltr">Thanks Gudni,<div><br></div><div style>I&#39;ve just pushed something to next.</div><div style><br></div><div style><div>commit 89362b00ececb01765ce4683c4b6d40db4164370</div><div>Author: Sebastien Jourdain &lt;<a href="mailto:sebastien.jourdain@kitware.com">sebastien.jourdain@kitware.com</a>&gt;</div>
<div>Date: Â  Mon May 6 15:55:27 2013 -0400</div><div><br></div><div>  Â  Expose CubeAxes Label format to the proxy layer.</div><div>  Â Â </div><div>  Â  Change-Id: I8af3ddf8ca33c8d27332cc5ae052e1e636388725</div><div><br></div>
<div><br></div><div style>You should be able to get it inside the nightly binary by the end the week.</div><div style><br></div><div style>Then you will need to do inside the python shell:</div><div style><br></div><div style>
&gt;&gt;&gt; rep = Show(GetActiveSource())</div><div style>&gt;&gt;&gt; rep.CubeAxesXLabelFormat = &quot;%-#1.4g&quot;</div><div style><br></div><div style>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.</div>
<div style><br></div><div style>Seb</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 6, 2013 at 10:58 AM, Guðni Karl Rosenkjær <span dir="ltr">&lt;<a href="mailto:grosenkj@eos.ubc.ca" target="_blank">grosenkj@eos.ubc.ca</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi<div><br></div><div>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...</div>
<div><br></div>
<div>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?<br>

</div><div><br></div><div>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?</div><div><br></div><div>Thanks for the help,</div>

<div>Gudni </div><div><br></div>
</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 3, 2013 at 1:24 PM, Sebastien Jourdain <span dir="ltr">&lt;<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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++)<div>


<br><div>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.</div><div><br></div><div>Another approach could be to &#39;patch&#39; the <span style="color:rgb(128,0,128)">vtkCubeAxesRepresentation </span>so the default behavior will be what you expect...</div>


<div><br></div><div>There is many way to tackle the current limitation.</div><div><br></div><div>Seb</div><div><br></div>
<div><br></div><div><br></div></div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 3, 2013 at 7:47 AM, Felipe Bordeu <span dir="ltr">&lt;<a href="mailto:felipe.bordeu@ec-nantes.fr" target="_blank">felipe.bordeu@ec-nantes.fr</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>One solution is to change the scale.
      You can subtract the constant part to your coordinates.<br>
      <br>
      Felipe<br>
      Le 03/05/2013 12:58, Guðni Karl Rosenkjær a Ã©crit :<br>
    </div><div><div>
    <blockquote type="cite">
      <div dir="ltr">Hello,
        <div><br>
        </div>
        <div>Thanks for the reply Sebastien. </div>
        <div><br>
        </div>
        <div>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?</div>
        <div><br>
        </div>
        <div>Is there anybody that has been able to deal with
          this problem that can share some idea&#39;s?</div>
        <div><br>
        </div>
        <div>Thanks very much in advance.</div>
        <div><br>
        </div>
        <div>
          Cheers,</div>
        <div>Gudni</div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Thu, May 2, 2013 at 7:15 PM,
          Sebastien Jourdain <span dir="ltr">&lt;<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">This is not something that is currently
              supported.</div>
            <div class="gmail_extra"><br>
              <br>
              <div class="gmail_quote">
                <div>
                  <div>On Thu, May 2, 2013 at 1:26 PM, Guðni
                    Karl Rosenkjær <span dir="ltr">&lt;<a href="mailto:grosenkj@eos.ubc.ca" target="_blank">grosenkj@eos.ubc.ca</a>&gt;</span>
                    wrote:<br>
                  </div>
                </div>
                <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <div>
                    <div>
                      <div dir="ltr">Hello,
                        <div><br>
                        </div>
                        <div>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&#39;t include enough digits for the
                          range my data is in ( as seen on in the figure
                          attached to the email).</div>
                        <div><br>
                        </div>
                        <div>How can I access the string format to be
                          able to change it?</div>
                        <div><br>
                        </div>
                        <div>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&#39;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.</div>
                        <div><br>
                        </div>
                        <div>I am using Paraview 3.98.1 (pre-compiled
                          version) on a 64-bit Fedora 17 system.</div>
                        <div><br>
                        </div>
                        <div>Thanks for the help.</div>
                        <div>Cheers,</div>
                        <div>Gudni </div>
                        <div><br>
                        </div>
                        <div> </div>
                      </div>
                      <br>
                    </div>
                  </div>
                  _______________________________________________<br>
                  Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
                  <br>
                  Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
                  <br>
                  Please keep messages on-topic and check the ParaView
                  Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
                  <br>
                  Follow this link to subscribe/unsubscribe:<br>
                  <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
                  <br>
                </blockquote>
              </div>
              <br>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a>

Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a>

Follow this link to subscribe/unsubscribe:
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a>
</pre>
    </blockquote>
    <br>
    <br>
    </div></div><span><font color="#888888"><pre cols="72">-- 
Felipe Bordeu Weldt
Ingénieur de Recherche
-------------------------------------
Tél. : <a href="tel:33%20%280%292%2040%2037%2016" value="+13302403716" target="_blank">33 (0)2 40 37 16</a> 57
Fax. : <a href="tel:33%20%280%292%2040%2074%2074" value="+13302407474" target="_blank">33 (0)2 40 74 74</a> 06
<a href="mailto:Felipe.Bordeu@ec-nantes.fr" target="_blank">Felipe.Bordeu@ec-nantes.fr</a>
Institut GeM - UMR CNRS 6183
École Centrale Nantes
1 Rue de La Noë, 44321 Nantes, FRANCE
-------------------------------------</pre>
  </font></span></div>

<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>