When I use \path plot function {x^2};
in tikz, it plots it left-to-right (the default domain is -5:5
). This is annoying, because, for example, one cannot pile on -- plot function {x^2 + 1} -- cycle;
and then fill the whole thing; it doesn't fill the obvious cycle, but rather the self-intersecting one going between opposite corners as it "returns carriage", so to speak.
Is there some way to get plot function
to generate points in the reverse order? Alternatively, is there some way of getting tikz to draw a path in the reverse order the points were specified? (This last one is of more general utility, since the orientation of a path is used a lot.)
5:-5
?