daily pastebin goal
26%
SHARE
TWEET

Untitled

a guest Feb 17th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. documentclass[tikz]{standalone}
  2. usepackage{pgfplots}
  3.  
  4. definecolor{RoyalAzure}{rgb}{0.0, 0.22, 0.66}  
  5.  
  6. newcommandrandompath[2]{%
  7. pgfmathsetseed{#1}%
  8. addplot[#2,domain=0:1,samples=5,smooth] {0.02*(x+0.2)^(-0.4) -0.19 + (x+0.2)+rand*(x+0.32)*(1-(x+0.2))};%
  9. }
  10.  
  11.  
  12. pgfplotsset{
  13. /pgfplots/layers/mylayer/.define layer set=
  14. {axis background,axis grid,main,axis ticks,axis lines,axis tick labels,axis descriptions,axis foreground}
  15. {/pgfplots/layers/standard}}
  16.  
  17. begin{document}
  18.  
  19. begin{tikzpicture}
  20.     pgfplotsset{set layers=mylayer}%
  21.     pgfplotsset{/dummy/workaround/.style={/pgfplots/axis on top}}
  22.  
  23.     begin{axis}[width=columnwidth,
  24.         height=0.618columnwidth,
  25.         axis x line=bottom,
  26.         axis y line=left,
  27.         axis line style={line width=1pt},
  28.         /dummy/workaround,
  29.         xlabel style = {font=Large, xshift=31ex,yshift=2.5ex},
  30.         ylabel style = {font=Large, rotate = -90, xshift=3.5ex, yshift=15.5ex},
  31.         xlabel={$theta$},
  32.         ylabel={$langle Mrangle$},    
  33.         xmin=0,
  34.         xmax=1,
  35.         ymin=0,
  36.         ymax=1,
  37.         ticks=none,
  38.         ]
  39.     randompath{19.2}{RoyalAzure!10!white, line width=14pt}  % ERROR FUNCTION
  40.     randompath{19.2}{RoyalAzure, line width=1pt}  % ACTUAL FUNCTION
  41.     end{axis}
  42. end{tikzpicture}
  43. 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