Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. begin{tikzpicture}
  2. begin{groupplot}[group style={group size= 2 by 1},height=6cm,width=6cm,xmin=0.5,ymin=0.5,ymax=1,xmax=1,samples=500,ytick={0.5,1},xtick={0.5,1}, xlabel={$v_1$},
  3. axis lines=left]
  4. nextgroupplot[title={}, ylabel={$x_1$}]
  5. addplot[blue,]{min(1,(x/(2*(1-min(1,x)))))};label{plots:plot1};
  6. addplot[black] {((3*x-1)/(2*x))};label{plots:plot2};
  7. addplot[black, dashed] {(x)};label{plots:plot3};
  8. nextgroupplot[title={}, ylabel={$x_2$}]
  9. addplot[blue]{(max((2-3*x)/(2-2*x),0))};label{plots:plot1}; addplot[black] {(1-x)/(2*x)};label{plots:plot2};
  10. addplot[black, dashed] {(1-x)};label{plots:plot3};
  11. coordinate (top) at (rel axis cs:0,1);% coordinate at top of the first plot
  12. coordinate (bot) at (rel axis cs:1,0);% coordinate at bottom of the last plot
  13. end{groupplot}
  14. path (top-|current bounding box.west)--
  15. node[anchor=south,rotate=90] { }
  16. (bot-|current bounding box.west);
  17. % legend
  18. path (top|-current bounding box.south)--
  19. coordinate(legendpos)
  20. (bot|-current bounding box.south);
  21. matrix[
  22. matrix of nodes,
  23. anchor=north,
  24. draw,
  25. inner sep=0.2em,
  26. draw
  27. ]at([yshift=-1ex, xshift=-17ex]legendpos)
  28. {
  29. ref{plots:plot1}& F(x)&[5pt]
  30. ref{plots:plot2}& G(x)&[5pt]
  31. ref{plots:plot3}& H(x)& \};
  32. end{tikzpicture}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement