Stairs not appearing on the plot

2 views (last 30 days)
Peter
Peter on 20 Mar 2015
Commented: Peter on 21 Mar 2015
I am trying to plot a simple stairs function, but when the figure appears, there is just white space meaning no plot (I do not see any lines of the stairs function) (title and anything else is ok)
I tried this for example with the easy command
stairs(1:10)
without success. If I use something like
bar(1:10)
I get the expected picture. The weird thing now is, that if I use the brushtool and go over my white space of the figure, the expected lines are appearing. Moreover if I save the plot in a .jpg file I also see the lines. So it simply seems to be a problem of a setting or something like that, which leads to a white plot. But I don't get how to solve this (perhaps) trivial problem. Thanks in advance for any help.

Accepted Answer

Image Analyst
Image Analyst on 20 Mar 2015
Sounds like some kind of memory or video adapter problem. Sometimes I have the same problem in Windows - nothing related to MATLAB. For me, rebooting solves the problem. Are you using Windows? If so, type control-shift-Escape and look at the Performance tab.
  1 Comment
Peter
Peter on 21 Mar 2015
Thanks, your tip with the video adapter brought me to a solution or at least a partial solution. I am using Windows on a Laptop with a Nvidia Geforce GT 540M and a internal graphics card: Intel® HD Graphics 3000. In fact Matlab was using the internal graphics card. I switched this manually to the Nvidia graphics card, and it is working in the expected way. I will look further if there is also a solution with the internal graphics card.
Anyhow, thanks for the useful tip.

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!