All figures are just black solid boxs
Show older comments
Whenever I try and plot somethingno mater what it is I just get a black box. 

2 Comments
Answer from AI:
A black box or blank screen when plotting in MATLAB is usually caused by a graphics driver incompatibility or a failing OpenGL hardware acceleration setting. [1, 2]
Here are the fastest ways to fix it:
1. Switch to Software OpenGL
Test if your hardware acceleration is causing the crash by forcing MATLAB to render using software instead of your GPU. Type this command in the MATLAB Command Window and press Enter: [1]
opengl software
After running it, try a basic plot command like plot(1:10). If the black box disappears, your graphics card drivers are incompatible or outdated. You should then update your computer's GPU drivers from the manufacturer's website (NVIDIA, AMD, or Intel). [1, 2, 3]
2. Check OpenGL Status
opengl info
If it reports a low-level graphics error or says hardware support is disabled, sticking to opengl software or updating your system display drivers is your best immediate workaround. [1, 2]
3. Reset Figure Properties or Restart
- Dock and Undock: Sometimes the UI window fails to refresh. Try docking the blank figure window into the MATLAB desktop environment and then undocking it. [1, 2]
- Clear Preferences: Corrupted layout or graphics preferences can freeze rendering. Restart MATLAB or reset your preferences if the issue persists.
For more help, contact support together with your OS and what
opengl info
reports:
dpb
about 1 hour ago
The forum is remiss in not having place to indicate OS and platform as well as just the product/version. Beyond the GPU issues, seems as though there have been far more oddities with the non-Windows implementations and the new UI.
Answers (0)
Categories
Find more on Graphics Performance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!