02-16-2016 06:48 AM
Hi all,
I use a XY graph to plot a bar graph (an histogram). Then, I want to fit this histogram with a Gaussian Peak and superimpose the result of the fit on top of the histogram. When I do this (see the picture below), the Gaussian peak is always hidden behind the histogram (see the second picture). Is there a way to force the histogram in the background and the result of the fit on top of it ?
Thanks for your help !
02-16-2016 07:17 AM
02-16-2016 08:05 AM
Hi GerdW,
That's the first thing I tried, actually, but it's a mess with the different styles (lines, colors, etc.) I want to have for the histogram and for the fitted Gaussian...
When I put the fitted Gaussian at the beginning of the array, it takes the style of the histogram which was previously in the table and the histogram takes the style I wanted to have for the Gaussian...
I'll think a little bit more.
Thanks for your answer !
02-16-2016 08:07 AM
Hi tycho,
point 1: Z order in the graph is provided by array index of the plot data
point 2: you need to set each plot's properties
There' s no way around it when you want to have a graph display according to your requirements…
02-16-2016 08:14 AM
Hi Gerd,
Ok.
Is there a way to programmatically set the style for each graph ?
Cheers
02-16-2016 08:16 AM - edited 02-16-2016 08:17 AM
Hi tycho,
yes, there is.
02-16-2016 08:30 AM
Hi Gerd,
Ok, but when there are several graphs, which one is modified by the property node ? The one on top ?
Cheers
02-16-2016 08:31 AM