why color maps become blank or invisible, and how to fix it

조회 수: 6 (최근 30일)
Sharon Aharon
Sharon Aharon 2019년 7월 11일
댓글: Sharon Aharon 2019년 8월 26일
hi all,
i have a GUI-based program that generates many kinds of plots sequentially.
at some point during runtime, color scale ceases from being plotted. this means that CData is not graphically represented (plot disappear), although the data is there in the plot, like if all the dots became white, on a white background.
if you look for the current axes children- the plot and it's CData is there.
when this happens, any color map i try to plot from now on, either by scatter plot or image (etc...), becomes blanc.
  • recently noticed : if I close internet browser (Firefox, in my case), and restart Matlab, while browser is still closed, the problem would disappear. If I open Firefox again, it might happen again after sometime.
might it be some compatibility issue of color mapping with some graphic-related modules (Flash plugin, or OpenGL/ ActiveX, or whatever. I don’t really know…), that is effected by the usage of the browser graphics?
attached are examples of figures generated in this sequence, before and after colorscale (of scatter plot) becomes blank. (i can provide also image plot alike, if needed)
could anyone tell what was the problem, and how to avoid it?
thanks in advance!
  댓글 수: 6
Image Analyst
Image Analyst 2019년 8월 21일
If your code is too big to upload or proprietary, try to whittle it down to just some simple code with random data that will demonstrate the problem. If we don't have any code to reproduce the problem then about all we can say is "It's just you, Sharon", because I've never encountered that.
  1. Does the problem happen randomly at the same place in the program? Like on the call to colormap() or plot() on the same line number?
  2. Does the appearance change on its own, after your program has finished up everything and is just sitting there idle as you interact with other programs? Or it is only exhibited as the program runs?
  3. Does it only happen if you leave your app and MATLAB and switch focus to another app?
Sharon Aharon
Sharon Aharon 2019년 8월 26일
thanks for your response, #Image Analyst!
your point is well understood. i think i have partial (or un-determined) answers to your Qs, so i will try to get to a clear unswers, and follow up with you once ready.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by