Search code examples
matlabgraphpropertiesdistinctaxes

making axes distinct from other grid


Does anyone know how to make x-axis and y-axis look a bit bolder or somehow distinct from other grids? enter image description here

Somehow I want it to look like this enter image description here


Solution

  • The stupidest thing I can think of is drawing a line with LineWidth = 2

    figure();
    plot([0 0],[-200 200],'LineWidth',2,'Color',[0 0 0])
    hold on;plot([-200 200],[0 0],'LineWidth',2,'Color',[0 0 0])

    Though it has some obvious disadvantages, like that it ends at some place.