visualdatatools.com Forum Index visualdatatools.com
Discussion for DataTank and DataGraph
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bug: Filling between curves with different x values

 
Post new topic   Reply to topic    visualdatatools.com Forum Index -> Bug Report
View previous topic :: View next topic  
Author Message
boyfarrell



Joined: 26 Jan 2010
Posts: 10

PostPosted: Thu Jul 29, 2010 9:14 am    Post subject: Bug: Filling between curves with different x values Reply with quote



Fill doesn't work when filling between lines which have different x-values. Here the top curve has about 40 x-points between 0.4 and 3, and the lower curve has about 20. The fill appears to map to the element's index rather than the value.

Here you can download the datagraph file the generated the image above.

Best regards,

Dan
Back to top
View user's profile Send private message
David
Site Admin


Joined: 25 Nov 2006
Posts: 1023
Location: Chapel Hill, NC

PostPosted: Thu Jul 29, 2010 8:47 pm    Post subject: Reply with quote

This is because the x numbers are different. The fill will use the same x column as the main data.

Here is a workaround
1 - Take the second pair of xy data and reverse the rows in those columns (in the Data menu)
2 - Copy those columns, select the last row and paste. Only append the first pair of x,y columns.
3 - Draw this new pair of columns using a standard fill.

What happens is that the plot contains the entire shape. If you fill it normally, and not between two plots. You also need to copy the first row to the last row, so that the plot starts and ends at the same point.

Here is the workaround

David
Back to top
View user's profile Send private message Send e-mail
boyfarrell



Joined: 26 Jan 2010
Posts: 10

PostPosted: Wed Aug 11, 2010 5:53 am    Post subject: Reply with quote

Hi David,

As always I'm amazed by how attentive you are to the DataGraph community - when I get by first grant I'm sure to upgrade to it's bigger brother!

OK, not a bug, I get what you have done here.

I would point out that the average user wants software to behave in the way they think. For example, if I had two curves printed on paper and asked someone to fill the space between them, this action should be independent of the number of data point in each curve. Furthermore, different x-spacings are chosen all the time in science (i.e. different experiments and simulations). Is there a strong case for changing the way DataGraph behaves here?

Best regards,

Dan
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    visualdatatools.com Forum Index -> Bug Report All times are GMT - 3 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group