Guest User

Untitled

a guest
Mar 22nd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. begin{tikzpicture}
  2. fill (0, -1) circle (0.1);
  3. % 1.28 is the approximate zero of the black function
  4. draw[very thick] (0, 0) -- (textwidth*0.4/1.5*1.28, 0);
  5. begin{axis}[
  6. ticks=none,
  7. domain=0:1.5,
  8. xmin=0,
  9. xmax=1.5,
  10. ymin=0,
  11. x=textwidth*0.4/1.5, % I thought this would make it work
  12. axis lines=left,
  13. xlabel={$r$ color{red}$r^2$},
  14. ylabel=$m$,
  15. y label style={at={(axis description cs:0.15, 0.5)}, anchor=south},
  16. x label style={at={(axis description cs:0.5, 0.1)}},
  17. axis equal,
  18. ]
  19. addplot[mark=none, thick] (x, {1 - x^2 + x/2});
  20. addplot[mark=none, color=red] (x^2, {1 - x^2 + x/2});
  21. end{axis}
  22. end{tikzpicture}
Add Comment
Please, Sign In to add comment