It seems I can’t show markers.
I loaded the sample data:
# Get a volume from SampleData and compute its histogram
import numpy as np
volumeNode = SampleData.SampleDataLogic().downloadMRHead()
histogram = np.histogram(arrayFromVolume(volumeNode), bins=50)
chartNode = slicer.util.plot(histogram, xColumnIndex = 1)
But can’t remember how to hide line and show markers?
Slicer: 5.0.2 r30822 / a4420c3
It seems only
square marker styles works even they both represented as circles.
diamond doesn’t work at all.
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?
In the Series tab you need to change Data series from PlotSeries to Y first.
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
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
square and they are shown as
@muratmaga thank you for the post.
The proposition from the post works.
If I set
$Env:SLICER_OPENGL_PROFILE = "core" then it works fine.