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?
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.
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'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).
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.
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.
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.
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
October 5, 2017 at 01:11 am - Permalink
October 5, 2017 at 03:47 am - Permalink
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
October 5, 2017 at 05:05 am - Permalink
I think your method is simple enough.
Another way, you can draw a pattern using the drawtool of the graph.
October 6, 2017 at 05:47 am - Permalink
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.
October 6, 2017 at 07:34 am - Permalink
Thanks for the suggestions.
October 6, 2017 at 07:35 am - Permalink
At least in Igor 7.05 you can choose a particular point of the trace for the legend to represent, as in this example:
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.
October 6, 2017 at 09:33 am - Permalink