# Adding custom markers

**URL:** <https://root-forum.cern.ch/t/adding-custom-markers/24506>\
**Category:** Evolution Proposals, Apps & Ideas\
**Created:** [April 21, 2017, 12:56pm UTC](https://root-forum.cern.ch/t/adding-custom-markers/24506 "2017-04-21T12:56:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ysy05](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/y/e68b1a/32.png) [@ysy05](https://root-forum.cern.ch/u/ysy05)\
**Post date:** [April 21, 2017, 12:56pm UTC](https://root-forum.cern.ch/t/adding-custom-markers/24506/1 "2017-04-21T12:56:49Z")

</div>

I used to comparing many experiment data (several years ago). At that time, I added some custom markers by modifying some source files. (Originally I started modifying from ROOT 5.)  
Modified files are in the attached file, marker.tar.gz, which was based on root-6.09.02.  
I confirmed that added markers were saved properly as ps, pdf, gif, pgn format in Linux and Mac, but I haven’t tested on other systems like Windows.

I don’t think most people need that many markers, but I hope it helps people who need more markers or like to modifying markers.

![](https://root-forum.cern.ch/uploads/default/original/2X/2/2d64b732c05f683d12ab01232fbd9bc683b894a6.gif)

[marker.tar.gz](https://root-forum.cern.ch/uploads/default/original/2X/a/ad3174f7c76d9cccfb06625184462f8e98d27736.gz) (182.9 KB)  
[marker\_addition.patch.gz](https://root-forum.cern.ch/uploads/default/original/2X/2/2b85b5f205109ff2de44712d18d732b2ffaa841a.gz) (11.1 KB)

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [April 21, 2017, 1:14pm UTC](https://root-forum.cern.ch/t/adding-custom-markers/24506/2 "2017-04-21T13:14:56Z")

</div>

Many thanks for this contribution ! I will look at it and try to include it in the ROOT master

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [April 21, 2017, 1:39pm UTC](https://root-forum.cern.ch/t/adding-custom-markers/24506/3 "2017-04-21T13:39:30Z")

</div>

I just tried your patch on my Mac. It nicely works ! I only had to remove some unused variables in graf3d/gl/src/TGLPadUtils.cxx.

Now the ROOT sources are on GitHub … Could it be possible that you submit a Pull Request to the ROOT GitHub instead of sending a patch ?

That will have the advantage that your name will appear automatically as author of this nice extension. Also the code checker will be run etc … etc …

If you do not want to go via this procedure we can stick with the old “patch” way. Let me know.

---

<div class="post-metadata">

**Author:** ![ysy05](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/y/e68b1a/32.png) [@ysy05](https://root-forum.cern.ch/u/ysy05)\
**Post date:** [April 23, 2017, 6:35pm UTC](https://root-forum.cern.ch/t/adding-custom-markers/24506/4 "2017-04-23T18:35:18Z")

</div>

I haven’t use GitHub, but I like to try it.  
Can you tell me where I can find the instruction or how to do it?

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [April 24, 2017, 12:44pm UTC](https://root-forum.cern.ch/t/adding-custom-markers/24506/5 "2017-04-24T12:44:51Z")

</div>

You should make a GitHub account and attached the root project:

> **[root-project/root](https://github.com/root-project/root)**
>
> The official repository for ROOT: analyzing, storing and visualizing big data, scientifically - root-project/root

and submit a pull request to it.

As I said if you prefer I can use the diff file you sent.

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [April 26, 2017, 12:15pm UTC](https://root-forum.cern.ch/t/adding-custom-markers/24506/6 "2017-04-26T12:15:40Z")

</div>

Did you manage with GitHub ? if not I am willing to applied your patch with the file you sent me. Let me know.

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [April 28, 2017, 11:48am UTC](https://root-forum.cern.ch/t/adding-custom-markers/24506/7 "2017-04-28T11:48:28Z")

</div>

I am now adding your contributions. I did already some fixes.  
PS output was not working (fixed) , TGX11 and TSVG are wrong order and shape), OpenGL one gives weird result …  
I will let you know when it will be in.

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [May 2, 2017, 3:00pm UTC](https://root-forum.cern.ch/t/adding-custom-markers/24506/8 "2017-05-02T15:00:44Z")

</div>

Your patch is now applied. Thanks.
