Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. documentclass[border={10pt 10pt 10pt 10pt}]{standalone}
  2.  
  3. usepackage[dvipsnames]{xcolor}
  4.  
  5. usepackage{listings}
  6.  
  7. % Python style for highlighting
  8. newcommandlatexstyle{lstset{
  9. language=TeX,
  10. basicstyle=scriptsizettfamily,
  11. mathescape=true,
  12. keywordstyle=color{MidnightBlue}bfseries,
  13. morekeywords={begin, addplot, addlegendentry, documentclass, usepackage, usetikzlibrary, usepgfplotslibrary, pgfplotsset, nextlist, coordinate small, draw},
  14. }}
  15.  
  16. % Python environment
  17. lstnewenvironment{latex}[1][mathescape]
  18. {
  19. latexstyle
  20. lstset{#1}
  21. }
  22. {}
  23.  
  24. begin{document}
  25.  
  26. begin{latex}
  27. begin{tikzpicture}
  28. begin{loglogaxis}
  29.  
  30. addplot+ [ultra thick, dotted] table[]{
  31. 10 0.2
  32. 100 0.1
  33. 1000 0.05}
  34. coordinate [pos=0.15] (A)
  35. coordinate [pos=0.25] (B);
  36. addlegendentry{legend 1}
  37. coordinate (A') at ($(A)!3pt!90:(B)$);
  38. coordinate (B') at ($(B)!3pt!270:(A)$);
  39. draw (A')-|(B') node[pos=0.25,above]{$1$}
  40. node[pos=0.75,right]{$alpha$};
  41. draw [shorten <=-3pt,shorten >=-3pt] (A') -- (B');
  42.  
  43. end{loglogaxis}
  44. end{tikzpicture}
  45. end{latex}
  46.  
  47. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement