Advertisement
Guest User

Untitled

a guest
May 30th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. documentclass[10pt,a4paper]{article}
  2. renewcommand{sfdefault}{PTSansNarrow-TLF} %Changes the default sans serif font, used for figures.
  3. usepackage{sansmath}
  4. usepackage{pgfplots}
  5. pgfplotsset{compat=1.10}
  6. pgfplotsset{/pgf/number format/assume math mode=true}
  7.  
  8. begin{document}
  9. begin{sansmath}
  10. fontfamily{PTSansNarrow-TLF}{fontsize{11}{11}selectfont
  11. begin{tikzpicture}
  12. begin{axis}[xlabel = Period ($pi$), ylabel = Amplitude ($Omega$)]
  13. addplot {sin(deg(x))};
  14. end{axis}
  15. end{tikzpicture}
  16. }
  17. end{sansmath}
  18. end{document}
  19.  
  20. begin{newenvironment}
  21. begin{axis}[xlabel = Period ($pi$), ylabel = Amplitude ($Omega$)]
  22. addplot {sin(deg(x))};
  23. end{axis}
  24. end{newenvironment}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement