Change plot transparency
Line series objects do not support transparency (alpha) values.
Read this for a hint about a workaround.
Hope it helps!
Sameh K. Mohamed
Works in machine learning R&D. My research is focused on knowledge graphs, representation learning, applications of AI/ML in the biological domain. I am also interested in the end-to-end AI/ML process and the tools used in it, how to deploy/manage them. I have experience with Tensorflow, Pytorch, PySpark and some other AI/ML tools.
Updated on June 04, 2022Comments
-
Sameh K. Mohamed almost 2 years
If we have two image objects
imageObj1
andimageObj2
and we've plotted them on one axes like the following:figure; hAxes = axes(); imageHandle1 = imshow(imageObj1); hold(hAxes,'on'); imageHandle2 = imshow(imageObj2);
Then I can change the transparency of any of the two plotted images on the axes by changing the
AlphaData
property like the following:set( imageHandle2, 'AlphaData', 0.6 ); %// Change transparency to 0.6
All this previous codes and methods are for images, but I need some way to change he transparency of plots not images.
The question: if I've a plot handle called
pHandle
, How can I edit the transparency of the plot of this handle ? -
Sameh K. Mohamed over 11 yearsBut this method is too slow !, is there any other faster method of doing so ?