From: ozgun.harmanci on
Hello,
I am trying to do a 2D plot in Matlab where there is a break in both x
axis and y axis. I found out some code that can generate breaks in
individual axes but couldnt find anything that breaks both axes.

Specifically my problem is somthing like this: (Im making up arrays to
present just the nature of the problem)
x = [0.1 10.9 10.91 10.92 10.93];
y = [0.1 10.9 10.91 10.92 10.93];

plot(x,y);

I need to get rid of empty region between (0.1,0.1) and (10.90, 10.90)
because otherwise I cannot individually label (10.9x, 10.9x), that is,
the labels and become unreadable.

I was wondering if there is a way to plot it by by getting rid of
empty region, e.g. break both axes between 0.2 and 10.8, and putting
'~' on both axis where the axes are broken and also same type of wave
or zigzag symbol on the plot itself. I hope this is clear. Thanks a
lot.
Oz.