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

7 views (last 30 days)
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 Comments
Image Analyst
Image Analyst on 21 Aug 2019
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 on 26 Aug 2019
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.

Sign in to comment.

Answers (0)

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Products


Release

R2017b

Community Treasure Hunt

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

Start Hunting!