How to delete all tag on contour plot at once

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!
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.

Click ok.


Andy
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.

Click ok.


Andy

Hi,

In the label tweaks and select font color, uncheck the the box opaque to reveal the alpha value level.

Andy
Alpha.png (58.94 KB)
Thanks!
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!



hegedus wrote:
Hi,

In the label tweaks and select font color, uncheck the the box opaque to reveal the alpha value level.

Andy

No Opaque.png (71.16 KB)
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".


--Jim Prouty
Software Engineer, WaveMetrics, Inc.
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".


--Jim Prouty
Software Engineer, WaveMetrics, Inc.

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.

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

 

that test code isn't removing the labels, it is only preventing them from rearranging themselves.

Turn labels off with ModifyContour WTest labels=0