SHARE
TWEET

Untitled

a guest Feb 19th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. documentclass{minimal}
  2. usepackage{pgfplots}
  3. usepgfplotslibrary{statistics}
  4.  
  5. begin{document}
  6.  
  7.    begin{tikzpicture}
  8.    begin{axis}[y=1cm]
  9.       foreach n in {1,...,8}
  10.       {
  11.       addplot+ [boxplot,draw=black,solid,fill=white] table [row sep=\,y index=0]
  12.          {
  13.          data\
  14.          1\ 2\ 1\ 5\ 20\ 10\
  15.          7\ 10\ 9\ 8\ 9\ 9\
  16.          };
  17.       }
  18.    end{axis}
  19.    end{tikzpicture}
  20. end{document}
  21.      
  22. % used PGFPlots v1.16
  23. documentclass[border=5pt]{standalone}
  24. usepackage{pgfplots}
  25.     usepgfplotslibrary{statistics}
  26.     pgfplotsset{
  27.         compat=1.3,
  28.         % create a custom style for the boxplots
  29.         my boxplot style/.style={
  30.             boxplot,
  31.             draw=black,
  32.             solid,
  33.             fill=white,
  34.             % -------------------------------------------------------------
  35.             % add your desired mark symbol and mark style here
  36.             mark=*,
  37.             every mark/.append style={
  38.                 fill=gray,
  39.             },
  40.             % -------------------------------------------------------------
  41.         },
  42.     }
  43. begin{document}
  44. begin{tikzpicture}
  45.    begin{axis}
  46.         foreach n in {1,...,8} {
  47.             addplot+ [
  48.                 % apply the custom style
  49.                 my boxplot style,
  50.             ] table [row sep=\,y index=0] {
  51.                 data\
  52.                 1\ 2\ 1\ 5\ 20\ 10\
  53.                 7\ 10\ 9\ 8\ 9\ 9\
  54.             };
  55.         }
  56.    end{axis}
  57. end{tikzpicture}
  58. 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