If -7< x <-2 only:

That means x is "between" -7 and -2, but -7 and -2 are not parts of the x-values, so,

draw a horizontal number line,

put holes or small circles at -7 and -2,

define or mark with heavy line the distance between the two holes.

That is the graph of -7 < x < -2.

----------------

If -7 < x < -2, xEI

Since I don't understand what you mean by xEI, I don't know how to graph that.