enter image description here

I have the graph to the left. I want the graph to the right, or else I can't see the difference between the two lower ones.

\usepackage{tikz} \usetikzlibrary{trees}
\sisetup{per=slash, load=abbr}

\pgfplotsset{width=7cm, height=10cm, compat=1.4, every axis/.append style={thick}}
    scaled y ticks=false,
    scale only axis,
    legend style={at={(0,0.8)}, anchor=west, font=\tiny},
  \begin{tikzpicture} [scale=0.7, font=\Large]
        title=Size of search tree linear scale,
    xlabel=xlabel ]
  \addplot[smooth,mark=square*, mark options={solid},red, dashed]
  coordinates{ (7,29788) (8,16760) (9,8770) (10,14248) (11,11456) (12,14602) (13,17456) (14,13112)
  }; \label{ie_plot} \addlegendentry{IntPairExact}
  \addplot[smooth,mark=square*, mark options={solid},blue, dotted]
  coordinates{ (7,30142) (8,16836) (9,8960) (10,14390) (11,11584) (12,14694) (13,17634) (14,13242)
  }; \label{ia_plot} \addlegendentry{IntPairApprox}
  \addplot[smooth,mark=*,mark options={solid},black]
  coordinates{ (7,256300) (8,254888) (9,144484) (10,194390) (11,135874) (12,233684) (13,243624) (14,221408)
  }; \label{int_plot} \addlegendentry{Integer}

  • 1
    Have you tried anything yet? If you have any code so far please post it.
    – Null
    Commented Mar 15, 2016 at 1:42
  • Welcome to TeX.SE. It would be helpful if you composed a fully compilable MWE including \documentclass and the appropriate packages that sets up the problem -- the minimum code that produces the graph on the left would suffice. While solving problems can be fun, setting them up is not. Then, those trying to help can simply cut and paste your MWE and get started on solving the problem. This will also help to make sure that the solution actually works for you. Commented Mar 15, 2016 at 1:58
  • 6
    Maybe tex.stackexchange.com/questions/46422/axis-break-in-pgfplots is a duplicate (firt hit in Google for pgfplots broken axis)
    – Rmano
    Commented Mar 15, 2016 at 6:55
  • You are loading TikZ three times. And you are using a very old version of pgfplots. You should update your system and use compat=1.13 then. Everything you need for your broken axis has been described in the post linked by Rmano
    – LaRiFaRi
    Commented Mar 15, 2016 at 8:35


Browse other questions tagged .