Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

enter image description here

In the above image, you can see that there are 4 curves. I have two techniques (black and red). I test them on two different experimental scenarios. So corresponding to each scenario, I get one red and black curve each. I want to point out that one set of black and red curve belong to one experimental scenario. Hope that clears it. While I am familiar with plotting this curves in pgfplots using the given data, I can't figure how to group them as shown in the image. The plot was generated using matlab.

  • How do I group curves in a given pgfplot?
  • In your opinion, are there better ways on grouping curves in a plot?
share|improve this question
2  
By "grouping", do you mean the circles around the plots? –  Jake Sep 27 '13 at 9:32
    
that is one way of looking at it. I have two techniques (black and red). I test them on two different experimental scenarios. So corresponding to each scenario, I get one red and black curve each. I want to point out that one set of black and red curve belong to one experimental scenario. Hope that clears it. –  dineshdileep Sep 28 '13 at 0:41

2 Answers 2

up vote 1 down vote accepted

Since don't have your MWE, I will use two simple curves to illustrate the idea for group annotation. Here, axis cs for annotation is used, where two nodes are defined for ellipse and pin annotation respectively. The actual coordinates are supposed to be determined by the users according to their needs.

\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=1.3}

\tikzstyle{every pin}=[->, fill=white,draw=black,font=\footnotesize]

\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot+ [black]{x};
\addplot+ [blue, mark=square]{x+2};
\node[coordinate] (A) at (axis cs:-2,-1) {};                       % for ellipse
\node[coordinate,pin=above:{N=3, and K=4}] at (axis cs:-2,1.5){};  % for pin
\end{axis}
\draw[red] (A) ellipse (0.3 and 1);                                % draw ellipse
\end{tikzpicture}

\end{document}

enter image description here

share|improve this answer

If you want to make clear that some curves belong together you should consider using different colours and a appropriate legend, or you could use annotations in your plot.

share|improve this answer
2  
With all respect, this is more appropriate as a comment than an answer. –  percusse Sep 27 '13 at 10:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.