Issue with Incorrect Graphs Displayed in MATLAB on Linux Mint 22incorrect graph outputs
Show older comments
Hi everyone,
I’ve encountered an issue where the graphs plotted in MATLAB on my system appear incorrect, both in the desktop version and MATLAB Online. However, when I export these graphs to a PDF, the output is correct. I tested the same code on a different machine, and the graphs were displayed correctly without any issues.
Here are some details about my setup:
- Operating System: Linux Mint 22
- MATLAB version: [Include your MATLAB version here]
- The problem occurs in both desktop MATLAB and MATLAB Online.
- Exported graphs (e.g., to PDF) show the correct output.
I suspect the issue could be related to my laptop or some specific settings, but I’m not sure where to start. Has anyone experienced a similar issue or have suggestions on how to resolve this?
Thank you in advance for your help!

3 Comments
Walter Roberson
on 19 Jan 2025
You posted an image of the code rather than the code itself, so we are unable to test the code.
You did not explain how the graphs appear to be incorrect.
MATLAB version: [Include your MATLAB version here]
Ummm, presumably a MATLAB version was intended to be included at that location.
Satwik
on 22 Jan 2025
Hi Bilawal,
I suspect this is a low-level graphics rendering issue pottentially caused due to old graphics hardware or outdated graphics drivers.
Please refer to the existing MATLAB answer post for workarounds to resolve the issue:
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!



