Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Thank you for your answer... just as a note for future reference, I just tested and it also works if you replace (\x^2) with pow(\x,2)... such a weird little 'bug'. Just one more question, would this be possible using pgfplots' \addplot? Commented Nov 18, 2022 at 0:49
  • Well, it would be a bit more complicated, but it could probably be done in a similar manner as this example. Commented Nov 18, 2022 at 0:50
  • @NoobNoob Correction: it can be done, as long as the paths you want to combine intersect. See my edit. Commented Nov 18, 2022 at 0:56
  • @NoobNoob Correction 2: The paths only intersect in one point and TikZ has sometimes problems to identify such things due to rounding errors. But we still can use this approach and just define the sequence in such a way that the whole paths are selected. Commented Nov 18, 2022 at 1:08