Hi,<br><br>I had the same problem at some stage. I remember that some version (5.6.1 in fact, I think) of the code has the problem with the orientation of the labels, but it got fixed in later updates. (The example with the sine/cosine plots did not render as the example, for example.)<br>
<br>Use the latest release head from git (if you don&#39;t already) and I think you&#39;ll be fine.<br><br>Riku<br><br><br><div class="gmail_quote">On 2 June 2011 15:49, Amitesh Kumar <span dir="ltr">&lt;<a href="mailto:amiteshagarwal@gmail.com">amiteshagarwal@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><span style="border-collapse:collapse;color:rgb(51, 51, 51);font-family:arial, sans-serif;font-size:13px">I am facing a clot of issues in using vtkBarChartActor  to make it render as I want it to do. I wonder if anybody here would help me with these issues and answer my questions?<div>


<br></div><div>vtkBarChartActor *actor = vtkBarChartActor::New();</div><div><div><br></div><div>1.  I wanted to set the property of the labels on the x-axis for the bars to be rendered vertical.  I used <div><br></div><div>


actor-&gt;GetLabelTextProperty()-&gt;SetOrientation(90);</div><div><br></div><div>However no matter what I do, the labels would always be rendered  horizontal. What am I missing?</div><div><br></div><div>2. I want to sent the Title text font size to be of a specific size. It turns out that the font size is set automatically and is based on the number of characters in the Title. If the number of characters in the title is less, then the font size would be bigger and vice versa. <br>


<div><br></div><div><div>actor-&gt;GetTitleTextProperty()-&gt;SetFontSize(30);</div><div><br></div><div>I was trying to use this but it doesn&#39;t work or doesn&#39;t show any effect. What am I missing?</div><div><br></div>


<div>3.  I can set the YTitle but is there a ways to set XTitle as well?</div><div><br></div><div>4. Y title is always rendered horizontally. Anybody who uses plots, knows that this is probably not ideal and a better way would be to rotate the y-axis title by 90 degrees so that it is along  y axis. How can this be done?</div>


<div><br></div><div>5. Y-axis labels are always being show as floats (values.00). My values are all int and I want it to be rendered as such. How can this be done?. I used vtkIntArray as shown in the following but it had no effect in terms of how y-labels are rendered.</div>


</div></div></div></div><div><br></div><div><div>vtkIntArray *qData = vtkIntArray::New();</div><div>qData-&gt;SetNumberOfValues(nPartition);</div></div><div><div>for(int i = 0; i &lt;nPartition; i++)</div><div>    qData-&gt;SetValue(i,output[i]);</div>


</div><div><div>vtkDataObject *dobj = vtkDataObject::New();</div><div>dobj-&gt;GetFieldData()-&gt;AddArray(qData);</div></div><div><div>vtkBarChartActor *actor = vtkBarChartActor::New();</div><div>actor-&gt;SetInput(dobj);</div>


</div><div><br></div><div>6. vtkBarChartActor doesn&#39;t show X and Y-axes by default. Is there a way to switch it on?</div><div><br></div><div>7. Although vtkCharts is probably good step but it lacks so many capabilities when compared with, say, gnuplot. Are there any plans to include a vtk porting of gnuplot which would be something similar to what was done with Sandia&#39;s Verdict?</div>


<div><br></div><div>Thank You</div><div><br></div><font color="#888888"><div>Amitesh</div></font></span>
<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 VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>