<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">I did the same thing!!!<br>
<br>
I have a home made reader (based on the xdmf reader)<br>
<br>
this is the code to put labels <br>
<br>
vtkFieldData* fd = vtkFieldData::New();<br>
<br>
for (unsigned j=0; j < 3; ++j) {<br>
std::string name;<br>
switch(j) {<br>
case(0) : {<br>
name = "AxisTitleForX";<br>
break;<br>
}<br>
case(1) : {<br>
name = "AxisTitleForY";<br>
break;<br>
}<br>
case(2) : {<br>
name = "AxisTitleForZ";<br>
break;<br>
}<br>
}<br>
vtkStringArray* TitleArray =
vtkStringArray::New();<br>
TitleArray->SetName(name.c_str());<br>
TitleArray->InsertNextValue((this->Internal->NamesOfEachDimension[j]
+" "+ this->Internal->UnitsOfEachDimension[j]).c_str());<br>
fd->AddArray(TitleArray);<br>
TitleArray->Delete();<br>
}<br>
<br>
Outputdata->SetFieldData(fd);<br>
<br>
<br>
Le 04/02/2013 14:54, Nico Kruithof a écrit :<br>
</div>
<blockquote
cite="mid:CA+Zda3jPQdH=0AmCQRaPduzorb1p9-JS6d2wiHPnw-OXXSPm_Q@mail.gmail.com"
type="cite">Hello,
<div><br>
</div>
<div>I've written a loader based on a vtkImageReader2. I can set
the origin and the spacing of the data, but would also like to
annotate the axis (names and units), such that they
automatically show up correctly in the axis. Is this possible?<br
clear="all">
<div><br>
</div>
-- <br>
Nico Kruithof
<div><font size="1"><a moz-do-not-send="true"
href="http://nghk.nl" target="_blank">nghk.nl</a></font></div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the ParaView Wiki at: <a class="moz-txt-link-freetext" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Felipe Bordeu Weldt
Ingénieur de Recherche
-------------------------------------
Tél. : 33 (0)2 40 37 16 57
Fax. : 33 (0)2 40 74 74 06
<a class="moz-txt-link-abbreviated" href="mailto:Felipe.Bordeu@ec-nantes.fr">Felipe.Bordeu@ec-nantes.fr</a>
Institut GeM - UMR CNRS 6183
École Centrale Nantes
1 Rue de La Noë, 44321 Nantes, FRANCE
-------------------------------------</pre>
</body>
</html>