Is there an easy way to draw the discontinuity symbol with tikz?
It is the symbol shown at the y axis in the following picture (taken from the pgfplots documentation.
I can always draw it manually but it is not always easy especially if the line has an angle. I tried to do it with a style, but I couldn't figure it out.
Optimally I would like to just specify the start and the end point of a line segment and the sign should be drawn in the center.
Jake solution is nice, but it doesn't work nicely with filling. Is there a way to draw the symbol while filling continues to work?
Leo Liu's answer works with filling but you have to tweak the parameters each time you use it.