About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
See full specifications

scripts default iconsetFigTransparency - set figure transparency / fading (Scripts) Publisher's description

setFigTransparency sets the figure hFig's transparency value


oldAlpha = setFigTransparency(hFig, alpha, fadeDuration, blockingFlag)

setFigTransparency sets the figure hFig's transparency value. The entire figure window, including all internal menus, toolbars and components, is made transparent according to the alpha value.

oldAlpha = setFigTransparency(...) returns the old transparency value of the specified figure, prior to its modification.

This submission is based on an original idea implemented by Malcolm Lidierth in his MUtilities submission: http://www.mathworks.com/matlabcentral/fileexchange/28326-mutilities

Input parameters: (all parameters are optional)

hFig (default=gcf) - Handle(s) of the modified figure(s). If component handle(s) is/are specified, the containing figure(s) will be inferred and used.

alpha (default=0.5) - Transparency value, between 0.0 (=fully transparent) and 1.0 (=fully opaque). Note that all Matlab figure windows are created opaque. alpha<0 indicates that alpha value should not be modified.

fadeDuration (default=0) - Number of seconds for fade-in/fade-out effect. Note: default value of 0 means immediately (no fading)

blockingFlag - (default=true) Whether or not the function should wait for the fade-in/fade-out effect to complete before returning

oldAlpha = setFigTransparency(hFig,-1); % get hFig's current alpha
oldAlpha = setFigTransparency(hFig); % set hFig's alpha to 0.5 (semi-transparent)
oldAlpha = setFigTransparency(hFig,0.7); % set hFig's alpha to 0.7
oldAlpha = setFigTransparency([hFig1,hFig2],0.7); % set transparency for several figures
oldAlpha = setFigTransparency(hFig,0.3,1.5,false); % non-blocking fade over 1.5 secs

Bugs and suggestions:
Please send to Yair Altman (altmany at gmail dot com)

This code heavily relies on undocumented and unsupported Matlab functionality. It works on Matlab 7.9 (R2009b) and higher, but use at your own risk!

System Requirements:

MATLAB 7.11 (2010b)
Program Release Status: Major Update
Program Install Support: Install and Uninstall

setFigTransparency - set figure transparency / fading (Scripts) Tags:

Click on a tag to find related softwares

Is setFigTransparency - set figure transparency / fading (Scripts) your software?

Manage your software

Most Popular

scripts default icon ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
scripts default icon Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
scripts default icon M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
scripts default icon LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
scripts default icon InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.