Quantcast
Channel: OxyPlot (moved to GitHub)
Viewing all articles
Browse latest Browse all 2061

Commented Feature: Support colour coding on scatter plots [9042]

$
0
0
- colour code by value of each scatter item.
- set Palette and min/max for the colour coding.
- render the color-value scale (horizontal or vertical)
Comments: I have a problem related with this subject. The points have same color. The C# code is given below; var model = new PlotModel("Diagonal matrix"); var colorAxis = new LinearColorAxis { Position = AxisPosition.Right, Palette = OxyPalettes.Jet(500), Minimum = 0, Maximum = 5, HighColor = OxyColors.Gray, LowColor = OxyColors.Black }; model.Axes.Add(colorAxis); var s4 = new ScatterSeries { Title = "Deneme", ColorAxis = colorAxis }; s4.MarkerType = MarkerType.Circle; s4.Points.Add(new ScatterPoint(3, 5, 5,0)); s4.Points.Add(new ScatterPoint(5, 5, 7,0)); s4.Points.Add(new ScatterPoint(2, 4, 5,0)); s4.Points.Add(new ScatterPoint(3, 3, 8,0)); s4.Points.Add(new ScatterPoint(3, 2, 5,0)); s4.Points.Add(new ScatterPoint(3, 5, 8,1)); s4.Points.Add(new ScatterPoint(2, 2, 3, 1)); s4.Points.Add(new ScatterPoint(1, 4, 4, 1)); s4.Points.Add(new ScatterPoint(4, 3, 5, 1)); s4.Points.Add(new ScatterPoint(0, 0, 1, 1)); s4.Points.Add(new ScatterPoint(8, 8, 1, 1)); model.Series.Add(s4); plot1.Model = model;

Viewing all articles
Browse latest Browse all 2061

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>