/// <summary> /// Create the plot. /// </summary> /// <returns></returns> private ViewResolvingPlotModel CreatePlot() { ViewResolvingPlotModel temp = new ViewResolvingPlotModel(); //temp.AutoAdjustPlotMargins = false; //temp.PlotMargins = new OxyThickness(0, 0, 0, 0); //temp.Padding = new OxyThickness(10,0,10,0); //temp.TitleFontSize = 10.667; //temp.Background = OxyColor.FromArgb(0x7F, 0xF0, 0xF8, 0xFF); //temp.TextColor = OxyColors.White; //temp.PlotAreaBorderColor = OxyColors.White; // Set the legend position temp.IsLegendVisible = true; //temp.LegendPosition = LegendPosition.RightTop; //temp.LegendPlacement = LegendPlacement.Outside; temp.LegendOrientation = LegendOrientation.Vertical; //temp.LegendSymbolPlacement = LegendSymbolPlacement.Right; //temp.LegendFontSize = 8; // 10 //temp.LegendItemSpacing = 8; // Setup the axis temp.Axes.Add(new LinearAxis { Position = AxisPosition.Bottom, TickStyle = OxyPlot.Axes.TickStyle.Inside, // Put tick lines inside the plot MinimumPadding = 0, // Start at axis edge MaximumPadding = 0, // Start at axis edge Unit = "ENS" }); return(temp); }
/// <summary> /// Create the plot. /// </summary> /// <returns></returns> private ViewResolvingPlotModel CreatePlot() { ViewResolvingPlotModel temp = new ViewResolvingPlotModel(); temp.IsLegendVisible = true; //temp.Background = OxyColors.Black; //temp.TextColor = OxyColors.White; //temp.PlotAreaBorderColor = OxyColors.White; temp.Title = "Distance Made Good"; // Setup the axis //var c = OxyColors.White; temp.Axes.Add(new LinearAxis { Position = AxisPosition.Left, //Minimum = 0, //StartPosition = 1, // This will invert the axis to start at the top with minimum value //EndPosition = 0 //TicklineColor = OxyColors.White, //MajorGridlineStyle = LineStyle.Solid, //MinorGridlineStyle = LineStyle.Solid, //MajorGridlineColor = OxyColor.FromAColor(40, c), //MinorGridlineColor = OxyColor.FromAColor(20, c), //IntervalLength = 5, MinimumPadding = 0.1, // Pad the top and bottom of the plot so min/max lines can be seen MaximumPadding = 0.1, // Pad the top and bottom of the plot so min/max lines can be seen Unit = "latitude" }); temp.Axes.Add(new LinearAxis { Position = AxisPosition.Bottom, //MajorStep = 1 //Minimum = 0, //Maximum = _maxDataSets, //TicklineColor = OxyColors.White, //MajorGridlineStyle = LineStyle.Solid, //MinorGridlineStyle = LineStyle.Solid, //MajorGridlineColor = OxyColor.FromAColor(40, c), //MinorGridlineColor = OxyColor.FromAColor(20, c), //IntervalLength = 5, //TickStyle = OxyPlot.Axes.TickStyle.None, //IsAxisVisible = false, Unit = "longitude" }); temp.Series.Add(new LineSeries() { Color = OxyColors.Chartreuse, StrokeThickness = 1, Title = "Ship Track" }); return(temp); }
/// <summary> /// Create the plot. /// </summary> /// <returns>Plot created.</returns> private ViewResolvingPlotModel CreatePlot() { ViewResolvingPlotModel temp = new ViewResolvingPlotModel(); //temp.Background = OxyColors.Black; // Color Legend var linearColorAxis1 = new LinearColorAxis(); linearColorAxis1.HighColor = OxyColors.Black; linearColorAxis1.LowColor = OxyColors.Black; linearColorAxis1.Palette = OxyPalettes.Jet(64); linearColorAxis1.Position = AxisPosition.Right; linearColorAxis1.Minimum = CurrentMinValue; linearColorAxis1.Maximum = CurrentMaxValue; linearColorAxis1.Key = COLOR_LEGEND_KEY; temp.Axes.Add(linearColorAxis1); // Bottom Axis // Ensembles var linearAxis2 = new LinearAxis(); linearAxis2.Position = AxisPosition.Bottom; linearAxis2.Unit = "Ensembles"; linearAxis2.Key = "Ensembles"; temp.Axes.Add(linearAxis2); // Left axis in Bins _binAxis = CreatePlotAxis(AxisPosition.Left, "bins"); _binAxis.AxisChanged += BinAxis_AxisChanged; _binAxis.Key = "BinAxis"; temp.Axes.Add(_binAxis); // Left axis in Meters next to bins _depthAxis = CreatePlotAxis(AxisPosition.Left, "meters", 2); _depthAxis.Key = "DepthAxis"; temp.Axes.Add(_depthAxis); return(temp); }