| View previous topic :: View next topic |
| Author |
Message |
boyfarrell
Joined: 26 Jan 2010 Posts: 10
|
Posted: Thu Jul 29, 2010 9:14 am Post subject: Bug: Filling between curves with different x values |
|
|
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 |
|
 |
David Site Admin
Joined: 25 Nov 2006 Posts: 1023 Location: Chapel Hill, NC
|
Posted: Thu Jul 29, 2010 8:47 pm Post subject: |
|
|
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 |
|
 |
boyfarrell
Joined: 26 Jan 2010 Posts: 10
|
Posted: Wed Aug 11, 2010 5:53 am Post subject: |
|
|
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 |
|
 |
|