The problem for me is I need to remove all the contour tags all at once.
The plot I have contains 20 contour lines which means it has too many contour tags.
Instead of delete them one by one, I wonder if there is anyway to delete/hide them all at once.
Thanks!
Go to modify contour dialog.
Label Tweaks:
Set background to transparent
Select font color and pick a new color and set the alpha to 0. This will make the text transparent.
Thank you for the reply.
How to set the alpha to 0 ?
I did not find this option under the Contour Labels tap.
hegedus wrote:
Hi,
One way to do this.
Go to modify contour dialog.
Label Tweaks:
Set background to transparent
Select font color and pick a new color and set the alpha to 0. This will make the text transparent.
The problem for me is I need to remove all the contour tags all at once.
The plot I have contains 20 contour lines which means it has too many contour tags.
Instead of delete them one by one, I wonder if there is anyway to delete/hide them all at once.
Thanks!
In the Modify Contour dialog, set the Labels popup to "none".
Right to the point!
I really should have tried that first.
Thanks.
JimProuty wrote:
igornoob2017 wrote:
The problem for me is I need to remove all the contour tags all at once.
The plot I have contains 20 contour lines which means it has too many contour tags.
Instead of delete them one by one, I wonder if there is anyway to delete/hide them all at once.
Thanks!
In the Modify Contour dialog, set the Labels popup to "none".
I have noticed that the labels are always displayed when the graph is saved as PDF in both, RGB and CMYK encodings. In the MWE below, png works just fine but I cannot manage to get rid of the labels in the PDF even if I disable the automatic update.
Just in case it were useful, I have also notice that if you duplicate the contour plot (Ctrl+D) the labels appear in the duplicated one no matter whether the automatic update was enabled or not.
FUNCTION Test() Make/D/O/N=(101,101) WTest=p+q// create contour Display AppendMatrixContour WTest // display contour ModifyContour WTest labelBkg=1,labelRGB=(0,0,0,0)// make labels transparent ModifyContour WTest update=0// avoid automatic update, just in case // SavePICT/E=-5/RES=750// save png SavePICT/E=-8/EF=2// save pdf END
One way to do this.
Go to modify contour dialog.
Label Tweaks:
Set background to transparent
Select font color and pick a new color and set the alpha to 0. This will make the text transparent.
Click ok.
Andy
April 2, 2018 at 07:17 pm - Permalink
How to set the alpha to 0 ?
I did not find this option under the Contour Labels tap.
April 2, 2018 at 08:58 pm - Permalink
In the label tweaks and select font color, uncheck the the box opaque to reveal the alpha value level.
Andy
April 3, 2018 at 05:52 am - Permalink
The version of Igor I have is 6.37 for Windows.
There is no option about opaque box, see attached screenshot.
Below is the script generated when I change the tag background to transparent and set the font color to be Red.
•ModifyContour FFT_05 labelBkg=1,labelRGB=(52224,0,0)
Could you please do the same thing plus unchecked the opaque box and set the alpha to zero? The script you generated might be useful in my file too.
Thank you!
April 3, 2018 at 06:40 am - Permalink
In the Modify Contour dialog, set the Labels popup to "none".
--Jim Prouty
Software Engineer, WaveMetrics, Inc.
April 3, 2018 at 09:11 am - Permalink
I really should have tried that first.
Thanks.
April 3, 2018 at 11:03 am - Permalink
Hi,
I have noticed that the labels are always displayed when the graph is saved as PDF in both, RGB and CMYK encodings. In the MWE below, png works just fine but I cannot manage to get rid of the labels in the PDF even if I disable the automatic update.
Just in case it were useful, I have also notice that if you duplicate the contour plot (Ctrl+D) the labels appear in the duplicated one no matter whether the automatic update was enabled or not.
Make/D/O/N=(101,101) WTest=p+q // create contour
Display
AppendMatrixContour WTest // display contour
ModifyContour WTest labelBkg=1,labelRGB=(0,0,0,0) // make labels transparent
ModifyContour WTest update=0 // avoid automatic update, just in case
//
SavePICT/E=-5/RES=750 // save png
SavePICT/E=-8/EF=2 // save pdf
END
December 17, 2019 at 07:13 am - Permalink
that test code isn't removing the labels, it is only preventing them from rearranging themselves.
Turn labels off with ModifyContour WTest labels=0
December 17, 2019 at 10:29 am - Permalink
In reply to that test code isn't… by JimProuty
I wasn't aware of that option sorry, it worked perfectly!
December 17, 2019 at 10:34 am - Permalink