SHARE
TWEET

Untitled

a guest Jun 24th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. documentclass[a4paper, 12pt, fleqn]{report}
  2. usepackage[left=25mm,right=25mm,top=30mm,bottom=30mm]{geometry}
  3. usepackage[dvipsnames]{xcolor}
  4. usepackage{tikz}
  5. usetikzlibrary{calc,intersections}
  6. usepackage{pgfplots}
  7. pgfplotsset{width=0.95textwidth,compat=1.13}
  8. newcommand{vertLineFromPoint}[1]{
  9.     draw[dashed]
  10.         (#1) -- (#1|-{rel axis cs:0,0})
  11.     }
  12. newcommand{horLineFromPoint}[1]{
  13.     draw[dashed]
  14.         (#1) -- (#1-|{rel axis cs:0,0})
  15.     }
  16.  
  17.  begin{document}
  18.  begin{center}
  19.     begin{tikzpicture}
  20.     begin{semilogyaxis}[
  21.         extra x ticks={173.819},
  22.         extra x tick labels={$L_e$},
  23.         extra y ticks={8.5,24.033},
  24.         extra y tick labels={$P_c$,$F_{UTS}$},
  25.         extra tick style={grid=none},
  26.         xlabel={Length [mm]},
  27.         ylabel={Load [kN]},
  28.         xmin=0, xmax=300,
  29.         ymax=1000,
  30.         xtick={0,50,100,150,200,250,300},
  31.         legend pos=north east]
  32.  
  33.         addplot[color=blue, mark=square, thick]
  34.             coordinates{
  35.             (300,2.847)(225,4.416)(175,8.267)(125,16.402)(75,45.56)(50,102.51)(25,410.041)
  36.             };
  37.  
  38.         addplot[color=BurntOrange, mark=o, thick]
  39.             coordinates{
  40.             (300,2.438)(225,3.898)(175,5.603)(125,8.339)(75,12.261)(50,14.555)(25,16.29)
  41.             };
  42.  
  43.         addplot[color=Green, mark=x, thick]
  44.             coordinates {
  45.             (250,3.55)(200,5.4)(150,9.45)(100,13.9)(65,15.6)
  46.             };
  47.  
  48.  
  49.         vertLineFromPoint{173.819,8.5};
  50.         horLineFromPoint{173.819,8.5};
  51.         horLineFromPoint{300,24.033};
  52.     end{semilogyaxis}
  53.     end{tikzpicture}
  54.     end{center}
  55.  
  56. end{document}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top