From: SourceForge.net <no...@so...> - 2006-11-11 16:38:03
|
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-11-11 11:38 Message: Logged In: YES user_id=613279 When an x-axis span of 0 is found a minimum span value will be assigned in order to display the data properly ---------------------------------------------------------------------- Comment By: Jamie McQuay (jamcquay) Date: 2006-10-25 12:05 Message: Logged In: YES user_id=613279 This is infact a bug. If the lineplot xaxis data is held constant then the plot does not display a vertical line of data (as expected). It appears that the axis is not being scaled properly. The functionality of plot is OK because if you set the World axis values manually the plot appears as expected ---------------------------------------------------------------------- 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 |