# Plotting data points

**URL:** <https://root-forum.cern.ch/t/plotting-data-points/27623>\
**Category:** ROOT\
**Created:** [January 18, 2018, 5:57pm UTC](https://root-forum.cern.ch/t/plotting-data-points/27623 "2018-01-18T17:57:54Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![ksmith](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ksmith/32/12567_2.png) [@ksmith](https://root-forum.cern.ch/u/ksmith)\
**Post date:** [January 18, 2018, 7:39pm UTC](https://root-forum.cern.ch/t/plotting-data-points/27623/8 "2018-01-18T19:39:34Z")

</div>

```auto
#include <TGraph.h>
#include <TMultiGraph.h>
//...
auto mg = new TMultiGraph();
mg->Add(g);
mg->Add(g1);
mg->Draw("AP");
//...

```

FYI:

> [@Getting the same histograms after cuts](https://root-forum.cern.ch/t/getting-the-same-histograms-after-cuts/24719/2):
>
> Remark on the way to post code snippets: When you post pieces of code on the forum enclose it with ``` . That makes your post much more readable (I systematically edit your posts that way) . So do: ``` // this is a C++ piece of code. ``` And it will display as: // this is a C++ piece of code.

---

_[View the full topic](https://root-forum.cern.ch/t/plotting-data-points/27623)._
