When plotting on a figure in MATLAB, I have noticed that parts of the black box that holds the axes are missing (the left and bottom one):
I have tried issuing:
box off
box on
commands with no success. Do you know what I can do to get the corresponding black lines on the axes?
I am using the OpenGL renderer:
set(0,'DefaultFigureRenderer','opengl');
It looks like you have known issues with OpenGL renderer:
Let us know what you did exactly to create this figure.
Try increasing the line width of the axes a bit:
set(gca, 'LineWidth', 1.2)
Also, switching from hardware (default) to software rendering may solve the problem:
opengl software
However, there may be drawbacks. Increasing the line width, e.g., changes all axes lines, including ticks.
Use the following line of code to make the black lines appear
set(gca,'Layer','top')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With