# Plot data with Markers and without Line

**URL:** <https://discourse.slicer.org/t/plot-data-with-markers-and-without-line/29071>\
**Category:** Support\
**Created:** [April 23, 2023, 8:21pm UTC](https://discourse.slicer.org/t/plot-data-with-markers-and-without-line/29071 "2023-04-23T20:21:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![keri](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/keri/32/11618_2.png) [@keri](https://discourse.slicer.org/u/keri)\
**Post date:** [April 23, 2023, 8:21pm UTC](https://discourse.slicer.org/t/plot-data-with-markers-and-without-line/29071/1 "2023-04-23T20:21:56Z")

</div>

Hi,

It seems I can’t show markers.  
I loaded the sample data:

```python
# Get a volume from SampleData and compute its histogram
import SampleData
import numpy as np
volumeNode = SampleData.SampleDataLogic().downloadMRHead()
histogram = np.histogram(arrayFromVolume(volumeNode), bins=50)

chartNode = slicer.util.plot(histogram, xColumnIndex = 1)
chartNode.SetYAxisRangeAuto(False)
chartNode.SetYAxisRange(0, 4e5)

```

But can’t remember how to hide line and show markers?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/2/026fdefc8ac258792b448d453571a6a23c62955a.png)

**Slicer: 5.0.2 r30822 / a4420c3**  
**Windows 11**

---

<div class="post-metadata">

**Author:** ![keri](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/keri/32/11618_2.png) [@keri](https://discourse.slicer.org/u/keri)\
**Post date:** [April 23, 2023, 11:37pm UTC](https://discourse.slicer.org/t/plot-data-with-markers-and-without-line/29071/2 "2023-04-23T23:37:32Z")

</div>

It seems only `cross` and `square` marker styles works even they both represented as circles.  
`plus`, `circle`, `diamond` doesn’t work at all.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/e/0e97aa66773053a6afc1d752be6b9f13280832d9.png)

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [April 24, 2023, 12:37am UTC](https://discourse.slicer.org/t/plot-data-with-markers-and-without-line/29071/3 "2023-04-24T00:37:35Z")

</div>

I have attempted to replicate the issue using Slicer 5.0.2 like you and also latest Slicer stable 5.2.2, but I wasn’t able to replicate. Maybe a graphical issue of some sort. Can you replicate on another machine? What type of graphics might you be using (integrated, discrete GPU)? Anything else potentially unique about your setup?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/c/fc7fc1872adfc3ca7f0d17a725074a17677399bb.png)

---

<div class="post-metadata">

**Author:** ![pearsonm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pearsonm/32/18514_2.png) [@pearsonm](https://discourse.slicer.org/u/pearsonm)\
**Post date:** [April 24, 2023, 12:43am UTC](https://discourse.slicer.org/t/plot-data-with-markers-and-without-line/29071/4 "2023-04-24T00:43:21Z")

</div>

In the Series tab you need to change Data series from PlotSeries to Y first.

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [April 24, 2023, 2:26am UTC](https://discourse.slicer.org/t/plot-data-with-markers-and-without-line/29071/5 "2023-04-24T02:26:05Z")

</div>

> [@jamesobutler](#):
>
> r 5.0.2 like you and also latest Slicer stable 5.

We have that issue for a long-while, in GPA plots as well (only square is available). There is also this thread from the old, which doesn’t work for me… [Setting of MarkerStyle does NOT work! - #8 by aiden.zhu](https://discourse.slicer.org/t/setting-of-markerstyle-does-not-work/9073/8)

---

<div class="post-metadata">

**Author:** ![keri](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/keri/32/11618_2.png) [@keri](https://discourse.slicer.org/u/keri)\
**Post date:** [April 24, 2023, 8:32am UTC](https://discourse.slicer.org/t/plot-data-with-markers-and-without-line/29071/6 "2023-04-24T08:32:09Z")

</div>

@jamesobutler hi,

> [@jamesobutler](#):
>
> Can you replicate on another machine? What type of graphics might you be using (integrated, discrete GPU)?

I tried on Ubuntu PC and there was no such error, i.e. everything works as expected.

On Windows 11 laptop I tried both integrated `AMD Radeon(TM) Graphics` and discrete `NVIDIA GeForce RTX 3050 Laptop GPU` but one of them worked. Still able to set only `cross` and `square` and they are shown as `circle`.

@muratmaga thank you for the post.  
The proposition from the post works.  
If I set `$Env:SLICER_OPENGL_PROFILE = "core"` then it works fine.
