# pyROOT TMultiGraph Segmentation Fault

**URL:** <https://root-forum.cern.ch/t/pyroot-tmultigraph-segmentation-fault/26263>\
**Category:** ROOT\
**Tags:** python\
**Created:** [September 19, 2017, 5:30pm UTC](https://root-forum.cern.ch/t/pyroot-tmultigraph-segmentation-fault/26263 "2017-09-19T17:30:34Z")\
**Posts on this page:** 1\
**Showing post:** 27

<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:** [October 12, 2017, 10:00pm UTC](https://root-forum.cern.ch/t/pyroot-tmultigraph-segmentation-fault/26263/27 "2017-10-12T22:00:07Z")

</div>

I ran into the issue of “proper” types again and had to reteach myself what was learned above. I wanted to clarify the situation for myself and others who might run into this. At the moment the `dtype` of the two numpy arrays passed to TGraph must match. In addition, only certain `dtype` values produce reasonable output:

| Type | Constructor Chosen | Output |
| --- | --- | --- |
| int32 | int\* | Good |
| int64 | double\* | Bad |
| float32 | int\* | Bad |
| float64 | double\* | Good |

_\* The constructor chosen may not be correct, but is an educated guess based on above discussions._

Therefore the default type for integer arrays on 64-bit machine (int64) will not produce reasonable output.

---

_[View the full topic](https://root-forum.cern.ch/t/pyroot-tmultigraph-segmentation-fault/26263)._
