From: SourceForge.net <no...@so...> - 2006-10-25 15:03:59
|
Bugs item #1584460, was opened at 2006-10-25 10:26 Message generated for change (Comment added) made by jamcquay You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821568&aid=1584460&group_id=161868 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: General Group: 0.9.9.2 >Status: Closed Resolution: None Priority: 5 Private: No Submitted By: tom pham (tom_pham) Assigned to: Jamie McQuay (jamcquay) Summary: Changing x-y Plot Orientation Initial Comment: Is there a way to display a plot with the x-axis in the vertical direction, with increasing x values going from top to bottom, and the y-axis in the horizontal direction, with increasing y values going from left to right? Please let me know if NPlot currently has this feature. Thanks, Tom ---------------------------------------------------------------------- >Comment By: Jamie McQuay (jamcquay) Date: 2006-10-25 11:03 Message: Logged In: YES user_id=613279 not a bug, request for help. sample to do requested: private void PlotTest() { plotSurface.Clear(); List<int> xData = new List<int>(10); List<int> yData = new List<int>(10); // Fill the data for (int i = 0; i < 10; i++) { xData.Add(i); yData.Add(i + 100); } // Create a new line plot from array data via the ArrayAdapter class. LinePlot lp = new LinePlot(); // Here is the data plotted the way you requested it. lp.OrdinateData = xData; lp.AbscissaData = yData; lp.Color = Color.Green; Grid myGrid = new Grid(); myGrid.VerticalGridType = Grid.GridType.Fine; myGrid.HorizontalGridType = Grid.GridType.Coarse; this.plotSurface.Add(myGrid); // And add it to the plot surface this.plotSurface.Add(lp); // This will put the vertical axis in the direction that you requested this.plotSurface.YAxis1.Reversed = true; plotSurface.Refresh(); } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821568&aid=1584460&group_id=161868 |