Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. documentclass[12pt,a4paper]{article}
  2. usepackage{pgf,tikz,tkz-euclide,pgfplots}
  3. usepackage{listings,float,amsmath,amssymb,amsfonts,amsthm}
  4. usetikzlibrary{calc,patterns,angles,quotes,patterns,arrows}
  5. usetikzlibrary{decorations.pathmorphing,intersections,through,backgrounds,fit,arrows.meta}
  6. usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
  7. begin{document}
  8. begin{tikzpicture}[scale=0.95]tiny
  9. coordinate (O) at (0,0);
  10. draw [-latex,very thick] (-1,0)--(6,0)coordinate(X) node[right]{$x$};
  11. draw [-latex,very thick] (0,-1)--(0,5)coordinate(Y) node[left]{$y$};
  12. node at (O) [below left]{$O$};
  13. fill (1,1)coordinate (q1) circle (2pt)node[left]{$q_1$};
  14. fill (2,3)coordinate (q2) circle (2pt)node[left]{$q_2$};
  15. fill (3,4)coordinate (q3) circle (2pt)node[left]{$q_3$};
  16. fill (5,3.5)coordinate (qn) circle (2pt)node[left]{$q_n$};
  17. fill (4,1.25)coordinate (P) circle (2pt)node[above=1.5mm, right=1mm]{$P$};
  18. draw [shorten >=0.4cm,shorten <=0.4cm,dotted,thick] (q3) to [bend left=6](qn);
  19. foreach i in {1,2,3,n}{
  20. draw [-latex, shorten >= -0.7500cm](qi)--(P)node[midway,sloped,above]{$mathbf{D}_{i}$};}
  21. end{tikzpicture}
  22. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement