Skip to main content
Best answer by Werner_E

Here is a modified sheet

Hatch routine is basically the same, but shorter and I show a way to use it with a small data matrix utilizing your FIT() function.

5 replies

25-Diamond I
May 30, 2013

There is nothing built in, you would have to write your own routine to do so.

You might want to have a look at Prof. Birkeland's work here

http://communities.ptc.com/docs/DOC-3380

Jbryant611-VisitorAuthor
1-Visitor
May 30, 2013

Ive managed to work out how to find the solution, but not yet do the shading.

Jason

19-Tanzanite
May 30, 2013

Crude method attached.

Alan

12-Amethyst
May 30, 2013

In MathCad 15 if you set up consecutive traces , you can colour an area (see attached)

Capture.PNG

right click on the graph to bring up a pop-up menu , choose format.

On the next menu choose the traces tab & there are many formats you can set for the traces.

in this case setting error on traces 1 & 2.

Regards

Andy

25-Diamond I
May 30, 2013

To limit the shading to the region where the difference between the two functions is greater than a given threshold would require some additional work. One way would be to determine which range of ordinate values the shading should be applied to and limit the first two functions in your plot to that range via a range variable. This is not atomatic and would not work if there are multiple ranges, though.

Also we have tabled functions here with a rather great stepwidth, so we would get four discrete vertical bars only.

But I assume this is a testcase only and that the real application would deal with a much more comprehensive data set with smaller steps.

Assuming that I include a worksheet which seems to do what the poster demands.

Hatch.png

Werner_E25-Diamond IAnswer
25-Diamond I
May 30, 2013

Here is a modified sheet

Hatch routine is basically the same, but shorter and I show a way to use it with a small data matrix utilizing your FIT() function.

Jbryant611-VisitorAuthor
1-Visitor
May 30, 2013

How would you modify the DOTS function to work with my FIT() fucntion, i.e so the area between the curves was shaded with dots?

Thanks

Jason

25-Diamond I
May 30, 2013

Jason Bryant wrote:

How would you modify the DOTS function to work with my FIT() fucntion, i.e so the area between the curves was shaded with dots?

Thanks

Jason

Not sure what you mean -I don't see a function DOTS() in your sheet!?

If you like dots, simply change the line style of the trace.

23-Emerald I
May 30, 2013

I have used error bars to fill the space between curves.

25-Diamond I
May 30, 2013

Fred Kohlhepp wrote:

I have used error bars to fill the space between curves.

Thats what Andy suggested above (http://communities.ptc.com/message/205905#205905)

Doing it only on a selected range as demanded would require some additional work, though.

So for whatever its worth here's another version which allows marking the begin and end of the ranges of interest.

hatch2.png

1-Visitor
February 12, 2014

I have only just came across this thread. superb work guys.