[vtkusers] A Problem About vtkXYPlotActor

LiuNiansheng phenome at live.cn
Sun Jul 11 22:09:24 EDT 2010


Hi Marcus 
Actually, I don't know much about ParaView and the relationship between ParaView and this sample. But I know the fact that the line which start at 0 and end out of the plot area in this sample  is disappeared. And I found out the vtkXYPlotActor clips lines in a correct way after I debugged the relative source. It is a good evidence that the lines which start over 0 and end over plot area had be drawn correctly.
I find a very interested result. If you let the line just pass through the plot area but both endpoint are not in the plot area, you will find a ludicrous line appeared.
Thanks,Elo 

From: marcus.hanwell at kitware.com
Date: Fri, 9 Jul 2010 10:24:39 -0400
Subject: Re: [vtkusers] A Problem About vtkXYPlotActor
To: agagliardi at ara.co.uk
CC: phenome at live.cn; vtkusers at vtk.org

On Fri, Jul 9, 2010 at 4:44 AM, Adriano Gagliardi <agagliardi at ara.co.uk> wrote:









Hi 
Elo,
 
So, you have 
set your y-axis range to be between 0 and 8, you then plot a curve where some of 
those y-values are out of this range, so it doesn't plot them (it clips them 
out). This appears to be normal behaviour in my opinion. If you want to see all 
your curves, then you'll have to rescale your y-axis to fit them in by setting 
the y-axis range from 0 to 15. Were you assuming it would automatically fit the 
axes to the data, as within ParaView? This option may still be there, but I've 
never used it.

The charts in ParaView use the new Charts in the VTK/Charts directory. The vtkXYPlotActor has not been used in ParaView for quite some time (I am not sure if/when it was used in ParaView). The new charts were written largely by me to replace the Qt based charts in GUISupport/Qt. The behavior of the new charts is to clip the lines, i.e. a partial line would be drawn, ending where the line leaves the plot area.


Is there any reason you are not using the new charts in your work? These are being actively developed, and I would be interested in feedback on any lacking features/bugs (have some I am currently working on).


Thanks,
Marcus 		 	   		  
_________________________________________________________________
想知道明天天气如何?必应告诉你!
http://cn.bing.com/search?q=%E5%A4%A9%E6%B0%94%E9%A2%84%E6%8A%A5&form=MICHJ2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100712/fff313f8/attachment.htm>


More information about the vtkusers mailing list