Search found 9 matches

by Higeath
Tue Nov 22, 2016 2:37 pm
Forum: JFreeChart
Topic: Random bug with XYDifferenceRenderer
Replies: 2
Views: 3793

Re: Random bug with XYDifferenceRenderer

Paradoxoff cheers mate I owe you yet again. Should I increase it more dramatically than 120? to like 200 just for the safety net?
by Higeath
Mon Nov 21, 2016 11:40 pm
Forum: JFreeChart
Topic: Random bug with XYDifferenceRenderer
Replies: 2
Views: 3793

Random bug with XYDifferenceRenderer

I have a graph that displays normal distribution from jfreechart and I shade it using XYDifferenceRenderer to show the user inputted area. For some reason when I input the mean:2 standard deviation:3 and want to shade the area outside of -2 and 6 a weird visual bug occurs even though the values for ...
by Higeath
Fri Oct 28, 2016 6:51 pm
Forum: JFreeChart
Topic: Filling area under normal distribution curve from
Replies: 11
Views: 13840

Re: Filling area under normal distribution curve from

Values do match those requirements, I even tested it out with only one series so going from -infinity to e.g. 4 and then when I change the mean to something different the graph is fully filled out with green and changing the value of X again so from 4 to e.g. 3 doesn't affect the graph anymore. When...
by Higeath
Fri Oct 28, 2016 5:07 pm
Forum: JFreeChart
Topic: Filling area under normal distribution curve from
Replies: 11
Views: 13840

Re: Filling area under normal distribution curve from

Paradoxoff, thank you again, the one issue I've noticed is that if I set the positivePaint to none then clear XYseries and add some more values and change the positivePaint back to green it fills out the entire graph. Edit: The issue must occur because I change the values in series 0, I basically ch...
by Higeath
Fri Oct 28, 2016 4:36 pm
Forum: JFreeChart
Topic: Filling area under normal distribution curve from
Replies: 11
Views: 13840

Re: Filling area under normal distribution curve from

Paradoxoff, thanks one last question if I may what if I wanted to clear the filling, I tried with xyseries.clear() but that makes the whole graph green since we use XYDifferenceRenderer.
by Higeath
Fri Oct 28, 2016 3:34 pm
Forum: JFreeChart
Topic: Filling area under normal distribution curve from
Replies: 11
Views: 13840

Re: Filling area under normal distribution curve from

Paradoxoff, thanks it works great.

I have one question though we are basically making a rectangle that goes over the highest value of Y so it is not visible correct?
by Higeath
Fri Oct 28, 2016 10:00 am
Forum: JFreeChart
Topic: Filling area under normal distribution curve from
Replies: 11
Views: 13840

Filling area under normal distribution curve from

I am trying to fill out area e.g. from -infinity to -2 and from 2 to infinity. I have seen various topics about this but still cannot get this figure out with XYSeries it only works for one area shaded. Other topic suggested using 2 datasets and 2 renderers which I've tried without success as seen b...
by Higeath
Wed Oct 26, 2016 8:37 pm
Forum: JFreeChart
Topic: Standard Deviation domain axis ticks start with mean value
Replies: 2
Views: 4713

Standard Deviation domain axis ticks start with mean value

I am trying to have my ticks start in the middle with whatever is set to mean value and then the next tick would be mean + sd e.g. mean: 5 sd: 2 - -1 1 3 5 7 9 11 mean: 1 sd: 1 - -3 -2 -1 0 1 2 3 4 mean: 3 sd: 3 - -6 -3 0 3 6 9 12 Example image - red numbers on X-axis is how it should look like http...
by Higeath
Sun Oct 23, 2016 3:46 pm
Forum: JFreeChart
Topic: Standard Deviation graph is slightly offset for one value
Replies: 2
Views: 4552

Standard Deviation graph is slightly offset for one value

With mean 3 and standard deviation 1 graph is slightly tilted and looks normal for all other values. It also happens with mean 6 sd 2, mean 9 sd 3 etc. here is an image of that happening http://imgur.com/a/fDP3M does anybody know why is that?