Different Symbols For Line and Fill to Zero Pattern

Hi, I have 4 curves, two of which are filled to zero. I would like 6 symbols on a legend: 4 for the lines and 2 for the fill-to-zero pattern. Is this doable?
HJDrescher
My aproach would be (if the amount of data is not too large), to append the fill to zero traces twice: Once with no line and filling. The other time with line and no filling.

make tst=cos(p/10)
display tst, tst
ModifyGraph lsize(tst)=2,rgb(tst)=(0,0,65535)
ModifyGraph mode(tst#1)=7,lsize(tst#1)=0,hbFill(tst#1)=8
Legend/C/N=text0/A=MC/J "\\Z16\\s(tst) tst\r\\s(tst#1) tst#1"

HJ
geologic
That's a good response, thank you! I'm halfway there now...For a particular wave, I have different patterns for fill-to-zero from positive numbers and fill-to-zero from negative numbers. The default is that the "from positive" pattern is used in the legend. Can I switch to the "from negative" pattern? In the end, I could do this piecewise, using different waves for the positive and negative portions, but is there a simpler way?
HJDrescher
I'm afraid "easy" corresponds to botched from here on...

Another approach would be to draw the legend manually. Have a look at
displayhelptopic "Fill Patterns"

Open the IPF-file of the mentioned sample experiment ("......\Igor Pro 7 Folder\Examples\Feature Demos 2\ColorsMarkersLinesPatterns.pxp") and study WMDrawFillPatternNumbers (Line 271ff).

HJ
wings
geologic wrote: That's a good response, thank you! I'm halfway there now...For a particular wave, I have different patterns for fill-to-zero from positive numbers and fill-to-zero from negative numbers. The default is that the "from positive" pattern is used in the legend. Can I switch to the "from negative" pattern? In the end, I could do this piecewise, using different waves for the positive and negative portions, but is there a simpler way?

I think your method is simple enough.
Another way, you can draw a pattern using the drawtool of the graph.
sjr51
Another cheat is as follows:

Assuming you will put your graph into a layout you can make another graph with the missing lines, add both to the layout and annotate the layout to have all 6 symbols on the legend. Export and chop off the graph you don't want.
geologic
I think I'll do it manually (add piecewise waves). I've only got one graph to do this for, and that solution will be fast enough.

Thanks for the suggestions.
JimProuty
geologic wrote: That's a good response, thank you! I'm halfway there now...For a particular wave, I have different patterns for fill-to-zero from positive numbers and fill-to-zero from negative numbers. The default is that the "from positive" pattern is used in the legend. Can I switch to the "from negative" pattern? In the end, I could do this piecewise, using different waves for the positive and negative portions, but is there a simpler way?


At least in Igor 7.05 you can choose a particular point of the trace for the legend to represent, as in this example:


Make/O data=p-64;display data
ModifyGraph lsize=0,useNegRGB=1,negRGB=(1,16019,65535),usePlusRGB=1
Legend/C/N=text0/J "\\s(data[0]) data[0]\r\\s(data) data"


The legend for data[0] shows the fill color that point actually has.

--Jim Prouty
Software Engineer, WaveMetrics, Inc.