You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(9) |
Nov
(24) |
Dec
(19) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(22) |
Feb
(5) |
Mar
(10) |
Apr
(12) |
May
(6) |
Jun
(3) |
Jul
(6) |
Aug
(7) |
Sep
(1) |
Oct
(3) |
Nov
(4) |
Dec
(1) |
2008 |
Jan
|
Feb
(4) |
Mar
(6) |
Apr
(10) |
May
(2) |
Jun
(4) |
Jul
(15) |
Aug
(11) |
Sep
(3) |
Oct
|
Nov
(9) |
Dec
(11) |
2009 |
Jan
(6) |
Feb
(9) |
Mar
(24) |
Apr
(4) |
May
(7) |
Jun
(1) |
Jul
|
Aug
|
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
(10) |
2010 |
Jan
(1) |
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
(8) |
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
(6) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(1) |
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <an...@us...> - 2007-10-04 10:48:47
|
Revision: 31 http://nplot.svn.sourceforge.net/nplot/?rev=31&view=rev Author: anmar Date: 2007-10-04 03:48:51 -0700 (Thu, 04 Oct 2007) Log Message: ----------- Fixed [SF patch 1806859] CandlePlot wasn't accepting input data as IList (only Array) while all util methods can handle it without problems. As Array implements IList, there aren't any backwards compatibility issues. Patch by: eyal0 Signed off by: anmar Modified Paths: -------------- trunk/src/CandlePlot.cs Modified: trunk/src/CandlePlot.cs =================================================================== --- trunk/src/CandlePlot.cs 2007-08-08 23:52:52 UTC (rev 30) +++ trunk/src/CandlePlot.cs 2007-10-04 10:48:51 UTC (rev 31) @@ -30,6 +30,7 @@ */ using System; +using System.Collections; using System.Drawing; using System.Data; @@ -303,14 +304,14 @@ return new PointOLHC(x, open, low, high, close); } - // the data is coming from individual arrays. - else if (abscissaData_ is Array && openData_ is Array && lowData_ is Array && highData_ is Array && closeData_ is Array) + // the data is coming from individual ILists. + else if (abscissaData_ is IList && openData_ is IList && lowData_ is IList && highData_ is IList && closeData_ is IList) { - double x = Utils.ToDouble(((Array)abscissaData_).GetValue(i)); - double open = Utils.ToDouble(((Array)openData_).GetValue(i)); - double low = Utils.ToDouble(((Array)lowData_).GetValue(i)); - double high = Utils.ToDouble(((Array)highData_).GetValue(i)); - double close = Utils.ToDouble(((Array)closeData_).GetValue(i)); + double x = Utils.ToDouble(((IList)abscissaData_)[i]); + double open = Utils.ToDouble(((IList)openData_)[i]); + double low = Utils.ToDouble(((IList)lowData_)[i]); + double high = Utils.ToDouble(((IList)highData_)[i]); + double close = Utils.ToDouble(((IList)closeData_)[i]); return new PointOLHC(x, open, low, high, close); } @@ -346,20 +347,20 @@ return rows_.Count; } - if (openData_ is Array) + if (openData_ is IList) { - int size = ((Array)openData_).Length; - if (size != ((Array)closeData_).Length) + int size = ((IList)openData_).Count; + if (size != ((IList)closeData_).Count) { throw new NPlotException("open and close arrays are not of same length"); } - if (size != ((Array)lowData_).Length) + if (size != ((IList)lowData_).Count) { - throw new NPlotException("open and close arrays are not of same length"); + throw new NPlotException("open and low arrays are not of same length"); } - if (size != ((Array)highData_).Length) + if (size != ((IList)highData_).Count) { - throw new NPlotException("open and close arrays are not of same length"); + throw new NPlotException("open and high arrays are not of same length"); } return size; } @@ -385,15 +386,15 @@ if (((System.Collections.IList)abscissaData_).Count > 1) { - double first = Utils.ToDouble(((Array)abscissaData_).GetValue(0)); - double second = Utils.ToDouble(((Array)abscissaData_).GetValue(1)); + double first = Utils.ToDouble(((IList)abscissaData_)[0]); + double second = Utils.ToDouble(((IList)abscissaData_)[1]); minStep = Math.Abs(second - first); } if (((System.Collections.IList)abscissaData_).Count > 2) { - double first = Utils.ToDouble(((Array)abscissaData_).GetValue(1)); - double second = Utils.ToDouble(((Array)abscissaData_).GetValue(2)); + double first = Utils.ToDouble(((IList)abscissaData_)[0]); + double second = Utils.ToDouble(((IList)abscissaData_)[1]); if (Math.Abs(second - first) < minStep) minStep = Math.Abs(second - first); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: SourceForge.net <no...@so...> - 2007-10-03 10:30:41
|
Patches item #1806859, was opened at 2007-10-03 12:30 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821570&aid=1806859&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: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Eyal (eyal0) Assigned to: Nobody/Anonymous (nobody) Summary: CandlePlot should use ILists, not Arrays Initial Comment: The IList is a parent class of the Array. LinePlot expects input data to be IList, but CandlePlot uses Array. I fixed this in the patch below. Also edited the text of some exceptions to be more accurate. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821570&aid=1806859&group_id=161868 |
From: SourceForge.net <no...@so...> - 2007-09-21 19:52:23
|
Bugs item #1799914, was opened at 2007-09-21 12:52 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821568&aid=1799914&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: None Group: 0.9.10.0 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: class MouseWheelZoom bug? Initial Comment: File:Windows.PlotSurface2D.cs Line:2410 float delta = (float)e.Delta / (float)e.Delta; Always 1. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821568&aid=1799914&group_id=161868 |
From: Jamie M. <ja...@sc...> - 2007-08-28 13:09:26
|
Hi Dennis, Yes, indeed I would be interested in a VB.Net demo version. You can email me your project and I'll look it over and add it to the repository. Thanks for taking a todo item off of my list! Regards, Jamie ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Jamie McQuay www.scimatic.com -----Original Message----- From: npl...@li... [mailto:npl...@li...] On Behalf Of Dennis Hayes Sent: August 27, 2007 2:16 AM To: Npl...@li... Subject: [Nplot-devel] Would a VB.NET version of the sample code be useful? I converted the C# Nplot samples to VB.NET, but Matt never had time to add them to the distro. If there is interest, I can convert the latest samples to VB.NET. Thanks, Dennis --------------------------------- Need a vacation? Get great deals to amazing places on Yahoo! Travel. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nplot-devel mailing list Npl...@li... https://lists.sourceforge.net/lists/listinfo/nplot-devel |
From: SourceForge.net <no...@so...> - 2007-08-27 12:33:47
|
Bugs item #1782467, was opened at 2007-08-27 05:33 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821568&aid=1782467&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.10.0 Status: Open Resolution: None Priority: 5 Private: Yes Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: HairLine doesn't XOR Initial Comment: BUGG File : PlotSurface2DDemo.cs Example : "Sound Wave Example" 1/16 Scenario: Show World Coordinates Problem : Hair Line (crosshair) trace rest on the pane when the mouth is moved rapidly over. QUEST The displayd coordinates could be static on the FORM user localizable? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821568&aid=1782467&group_id=161868 |
From: Dennis H. <den...@ya...> - 2007-08-27 06:16:08
|
I converted the C# Nplot samples to VB.NET, but Matt never had time to add them to the distro. If there is interest, I can convert the latest samples to VB.NET. Thanks, Dennis --------------------------------- Need a vacation? Get great deals to amazing places on Yahoo! Travel. |
From: SourceForge.net <no...@so...> - 2007-08-13 20:28:04
|
Bugs item #1744823, was opened at 2007-06-28 09:49 Message generated for change (Comment added) made by jamcquay You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821568&aid=1744823&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.10.0 >Status: Closed Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Zoom causes line disappears Initial Comment: If zoomed and no points in the chart area the line plot is disappeared. ---------------------------------------------------------------------- >Comment By: Jamie McQuay (jamcquay) Date: 2007-08-13 16:28 Message: Logged In: YES user_id=613279 Originator: NO This is already fixed in version 0.9.10.1 Thanks for your report. ---------------------------------------------------------------------- Comment By: Warren (crwludcke) Date: 2007-07-16 21:23 Message: Logged In: YES user_id=1602940 Originator: NO Quick fix for the LinePlot (based on version 0.9.10.0): LinePlot.cs, line 155: if ((dx1 < leftCutoff && dx2 < leftCutoff) || (rightCutoff < dx1 && rightCutoff < dx2)) This changes the clipping condition from being both end points on either side of the visible region to both end points being on one side or the other of the visible region. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821568&aid=1744823&group_id=161868 |
From: SourceForge.net <no...@so...> - 2007-08-13 20:27:20
|
Bugs item #1645039, was opened at 2007-01-26 02:26 Message generated for change (Comment added) made by jamcquay You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821568&aid=1645039&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.10.0 >Status: Closed Resolution: None Priority: 5 Private: No Submitted By: Juerg B (asynchron) Assigned to: Jamie McQuay (jamcquay) Summary: RubberBandSelection zooming not correct Initial Comment: If make a RubberBandSelection. If there are no actually points in the region that you are zooming in on, the result is not correct, the zooming area is empty. Please see my old bug report No:1601158, there found screenshots and an example code. Juerg ---------------------------------------------------------------------- >Comment By: Jamie McQuay (jamcquay) Date: 2007-08-13 16:27 Message: Logged In: YES user_id=613279 Originator: NO fixed, verified by bug reporter ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821568&aid=1645039&group_id=161868 |
From: SourceForge.net <no...@so...> - 2007-08-08 23:53:57
|
Bugs item #1713592, was opened at 2007-05-05 18:08 Message generated for change (Comment added) made by jamcquay You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821568&aid=1713592&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.10.0 >Status: Closed Resolution: None Priority: 5 Private: No Submitted By: Onno the dutchman (onnovl) >Assigned to: Jamie McQuay (jamcquay) Summary: unhandled exception concerning font used in NPlot Initial Comment: Hi Guys NPlot uses call to arial font that causes an unhandled exception to be generated on some systems running windows xp. It looks like the font is not always properly registered with the system. Although this problem is probably a Microsoft issue it does not seem very user friendly to delegate the problem to the end-user. I found a discussion on this topic on the following site: http://www.spheresite.com/forum/read.php?7,92872,93423 Maybe an exception has to be generated "Font arial is not properly installed (in windows), please reinstall". Alternatively a message could be displayed giving this information to the user. Cheers Onno System.ArgumentException: _Font 'Arial' does not support style >>> 'Regular'._ >>> at System.Drawing.Font.CreateNativeFont() >>> at System.Drawing.Font.Initialize(FontFamily family, Single emSize, >>> FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean >>> gdiVerticalFont) >>> at System.Drawing.Font..ctor(FontFamily family, Single emSize, >>> FontStyle style, GraphicsUnit unit) >>> at NPlot.PlotSurface2D.Init() >>> at NPlot.PlotSurface2D..ctor() >>> at NPlot.Windows.PlotSurface2D..ctor() ---------------------------------------------------------------------- >Comment By: Jamie McQuay (jamcquay) Date: 2007-08-08 19:54 Message: Logged In: YES user_id=613279 Originator: NO A NPlotException is now thrown explaining that the Arial font is not installed. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821568&aid=1713592&group_id=161868 |
From: <jam...@us...> - 2007-08-08 23:52:51
|
Revision: 30 http://nplot.svn.sourceforge.net/nplot/?rev=30&view=rev Author: jamcquay Date: 2007-08-08 16:52:52 -0700 (Wed, 08 Aug 2007) Log Message: ----------- Fixed [SF bug 1713592] Fixed for version 0.9.10.1 If the Arial font is not installed on the system an NPlotException is thrown which clearly states that the Arial font is not installed. Fix coded by: jamcquay Signed off by: jamcquay Modified Paths: -------------- trunk/src/PlotSurface2D.cs Modified: trunk/src/PlotSurface2D.cs =================================================================== --- trunk/src/PlotSurface2D.cs 2007-03-30 19:12:03 UTC (rev 29) +++ trunk/src/PlotSurface2D.cs 2007-08-08 23:52:52 UTC (rev 30) @@ -462,8 +462,17 @@ yAxisPositions_ = new ArrayList(); zPositions_ = new ArrayList(); ordering_ = new SortedList(); - FontFamily fontFamily = new FontFamily("Arial"); - TitleFont = new Font(fontFamily, 14, FontStyle.Regular, GraphicsUnit.Pixel); + + try + { + FontFamily fontFamily = new FontFamily("Arial"); + TitleFont = new Font(fontFamily, 14, FontStyle.Regular, GraphicsUnit.Pixel); + } + catch (System.ArgumentException) + { + throw new NPlotException("Error: Arial font is not installed on this system"); + } + padding_ = 10; title_ = ""; autoScaleTitle_ = false; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: SourceForge.net <no...@so...> - 2007-07-31 19:05:38
|
Feature Requests item #1764367, was opened at 2007-07-31 14:21 Message generated for change (Comment added) made by anmar You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821571&aid=1764367&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: None >Status: Closed Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: What is a DataSource? Initial Comment: Hi again ;-) The PointPlot has a DataSource-property. Which requirements does the library have to objects that are used as data sources? If I am to use - say a DataTable-object - how should this contain the coordinates in order to NPlot to understand it? Thanks in advance. / Michael Banzon, mi...@ab... ---------------------------------------------------------------------- >Comment By: Angel Marin (anmar) Date: 2007-07-31 21:05 Message: Logged In: YES user_id=627967 Originator: NO DataSource property content is handled by *DataAdapter classes. For the BaseSequencePlot derived plots, SequenceAdapter is used. In the case of a DataTable object and a PointPlot plot, you control how data is extracted using AbscissaData and OrdinateData properties to tell it what columns to use. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821571&aid=1764367&group_id=161868 |
From: SourceForge.net <no...@so...> - 2007-07-31 12:21:51
|
Feature Requests item #1764367, was opened at 2007-07-31 05:21 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821571&aid=1764367&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: None Status: Open Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: What is a DataSource? Initial Comment: Hi again ;-) The PointPlot has a DataSource-property. Which requirements does the library have to objects that are used as data sources? If I am to use - say a DataTable-object - how should this contain the coordinates in order to NPlot to understand it? Thanks in advance. / Michael Banzon, mi...@ab... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821571&aid=1764367&group_id=161868 |
From: SourceForge.net <no...@so...> - 2007-07-31 12:17:47
|
Feature Requests item #1764363, was opened at 2007-07-31 05:17 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821571&aid=1764363&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: None Status: Open Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Interaction with the points in a PointPlot Initial Comment: Hi, I'm writing an application that involves some charting using PointPlot, in NPlot. I've written briefly about this issue in the past, but this process was somewhat stalled (mostly on my part). I need a setup where I can click the plot surface of a PointPlot and then get the element that I have clicked. Ultimately the best solution would be to .Add() some kind of point-objects to the PointPlot and then having the PointPlot call some function whenever a Point is clicked. Is it currently possible to do something like this is NPlot?? If this can be done with custom interaction handlers, can someone please point in the right direction about how to do this? Thanks in advance / Michael Banzon, mi...@ab... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821571&aid=1764363&group_id=161868 |
From: SourceForge.net <no...@so...> - 2007-07-27 15:42:27
|
Feature Requests item #1762081, was opened at 2007-07-27 11:33 Message generated for change (Comment added) made by jamcquay You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821571&aid=1762081&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: None >Status: Closed Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Drill down Initial Comment: I came across the tool and wondering if I Can do some sort of drill down in charts created with NPLOT. Thanks ---------------------------------------------------------------------- >Comment By: Jamie McQuay (jamcquay) Date: 2007-07-27 11:42 Message: Logged In: YES user_id=613279 Originator: NO it depends on what type of drill down you want to use. If you're looking to implement a barchart then it will work for you. I'd suggest that you get the sourcecode and take a look at the demo application that comes with it. The demo (which also contains its sourcecode) gives a good overview of all the possibilities that the library offers. cheers, Jamie ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821571&aid=1762081&group_id=161868 |
From: SourceForge.net <no...@so...> - 2007-07-27 15:33:05
|
Feature Requests item #1762081, was opened at 2007-07-27 08:33 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821571&aid=1762081&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: None Status: Open Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Drill down Initial Comment: I came across the tool and wondering if I Can do some sort of drill down in charts created with NPLOT. Thanks ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821571&aid=1762081&group_id=161868 |
From: SourceForge.net <no...@so...> - 2007-07-17 01:23:55
|
Bugs item #1744823, was opened at 2007-06-28 23:49 Message generated for change (Comment added) made by crwludcke You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821568&aid=1744823&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.10.0 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Zoom causes line disappears Initial Comment: If zoomed and no points in the chart area the line plot is disappeared. ---------------------------------------------------------------------- Comment By: Warren (crwludcke) Date: 2007-07-17 11:23 Message: Logged In: YES user_id=1602940 Originator: NO Quick fix for the LinePlot (based on version 0.9.10.0): LinePlot.cs, line 155: if ((dx1 < leftCutoff && dx2 < leftCutoff) || (rightCutoff < dx1 && rightCutoff < dx2)) This changes the clipping condition from being both end points on either side of the visible region to both end points being on one side or the other of the visible region. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821568&aid=1744823&group_id=161868 |
From: SourceForge.net <no...@so...> - 2007-06-28 13:49:21
|
Bugs item #1744823, was opened at 2007-06-28 06:49 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821568&aid=1744823&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.10.0 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Zoom causes line disappears Initial Comment: If zoomed and no points in the chart area the line plot is disappeared. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821568&aid=1744823&group_id=161868 |
From: SourceForge.net <no...@so...> - 2007-06-18 12:25:47
|
Feature Requests item #1739023, was opened at 2007-06-18 05:24 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821571&aid=1739023&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: None Status: Open Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: LinePlot Editable interaction Initial Comment: This interaction allows to Select multiple points of a LinePlot, and allow the user to move in real-time the points of the graph. the idea is using a PointPlot to draw the selected points. At this moment, it works online setting OrdinateData and AbscissaData of the LinePlot. I'm going to post a detailed information on CodeProject Hope it is usefull Marco Roello ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2007-06-18 05:25 Message: Logged In: NO Sorry, I've forgotten my email: mar...@cn... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821571&aid=1739023&group_id=161868 |
From: SourceForge.net <no...@so...> - 2007-06-18 12:24:06
|
Feature Requests item #1739023, was opened at 2007-06-18 05:24 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821571&aid=1739023&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: None Status: Open Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: LinePlot Editable interaction Initial Comment: This interaction allows to Select multiple points of a LinePlot, and allow the user to move in real-time the points of the graph. the idea is using a PointPlot to draw the selected points. At this moment, it works online setting OrdinateData and AbscissaData of the LinePlot. I'm going to post a detailed information on CodeProject Hope it is usefull Marco Roello ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821571&aid=1739023&group_id=161868 |
From: SourceForge.net <no...@so...> - 2007-05-30 22:17:27
|
Feature Requests item #1728620, was opened at 2007-05-30 15:17 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821571&aid=1728620&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: None Status: Open Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Input parameter validation Initial Comment: This took way too long and it's obviously my fault, but some input parameter validation (and according error throwing capability) would be nice. I didn't set the height or width in the NPlot.Web.PlotSurface2D object I was using and kept getting a "Parameter is not valid" error. This error comes from the first line of the Render() method accessing the height and width members to render the bitmap: System.Drawing.Bitmap b = new System.Drawing.Bitmap( (int)this.Width.Value, (int)this.Height.Value ); Once I set some required properties everything seemed to work pretty well. I like and I'm impressed. Thanks. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821571&aid=1728620&group_id=161868 |
From: SourceForge.net <no...@so...> - 2007-05-30 08:02:12
|
Feature Requests item #1728098, was opened at 2007-05-30 01:02 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821571&aid=1728098&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: None Status: Open Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Custom Display of Coordinates Initial Comment: A user may want to display Co-ordinates in custome format ... say for example in a candle plot one may want to display the Open High Low Close points in the tool tip. I tried in this way but not that good in CandlePlot.CandleDataAdapter public string GetCoordinateString(double x, uint stickwidth) { string s = ""; for (int i = 0; i < this.Count-1; i++) { PointOLHC pnt = this[i]; double x1 =this[i].X; double x2 = this[i+1].X; if (x>x1 && x< x2) { s = "Open\t" + pnt.Open.ToString("{0.00}") + "\nHigh\t" + pnt.High.ToString("{0.00}") + "\nLow\t" + pnt.Low.ToString("{0.00}") + "\nClose\t" + pnt.Close.ToString("{0.00}"); break; } } return s; } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821571&aid=1728098&group_id=161868 |
From: SourceForge.net <no...@so...> - 2007-05-11 21:33:44
|
Feature Requests item #1709964, was opened at 2007-04-30 02:04 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821571&aid=1709964&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: None Group: None Status: Open Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: non trading days in TradingDateTimeAxis Initial Comment: TradingDateTimeAxis is actually removing only saturdays and sundays. I'd like non trading days (apart form weekends) to be removed as I get trend lines errors. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2007-05-11 14:33 Message: Logged In: NO Hi, I've just modified TradingTimeAxis in order to allow non trading days to be removed from the axis... best, Davide. /* * NPlot - A charting library for .NET * * TradingDateTimeAxis.cs * Copyright (C) 2003-2006 Matt Howlett and others. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * 3. Neither the name of NPlot nor the names of its contributors may * be used to endorse or promote products derived from this software without * specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. */ using System; using System.Drawing; using System.Collections; namespace NPlot { /// <summary> /// Provides a DateTime axis that removes non-trading days. /// </summary> public class TradingDateTimeAxis : DateTimeAxis { /// <summary> /// a list of non trading days /// </summary> private ArrayList exceptionalNonTradingDays; /// <summary> /// add a day to the list of non trading days /// </summary> /// <param name="dayToAdd">non trading day to add</param> public void AddNonTradingDay(DateTime dayToAdd) { if (!exceptionalNonTradingDays.Contains(dayToAdd)) { exceptionalNonTradingDays.Add(dayToAdd); } } // we keep shadow "virtual" copies of WorldMin/Max for speed // which are already remapped, so it is essential that changes // to WorldMin/Max are captured here /// <summary> /// The axis world min value. /// </summary> public override double WorldMin { get { return base.WorldMin; } set { base.WorldMin = value; virtualWorldMin_ = SparseWorldRemap(value); } } private double virtualWorldMin_ = double.NaN; /// <summary> /// The axis world max value. /// </summary> public override double WorldMax { get { return base.WorldMax; } set { base.WorldMax = value; virtualWorldMax_ = SparseWorldRemap(value); } } private double virtualWorldMax_ = double.NaN; /// <summary> /// Optional time at which trading begins. /// All data points earlied than that (same day) will be collapsed. /// </summary> public virtual TimeSpan StartTradingTime { get { return new TimeSpan(startTradingTime_); } set { startTradingTime_ = value.Ticks; tradingTimeSpan_ = endTradingTime_ - startTradingTime_; } } private long startTradingTime_; /// <summary> /// Optional time at which trading ends. /// All data points later than that (same day) will be collapsed. /// </summary> public virtual TimeSpan EndTradingTime { get { return new TimeSpan(endTradingTime_); } set { endTradingTime_ = value.Ticks; tradingTimeSpan_ = endTradingTime_ - startTradingTime_; } } private long endTradingTime_; private long tradingTimeSpan_; /// <summary> /// Get whether or not this axis is linear. /// </summary> public override bool IsLinear { get { return false; } } /// <summary> /// Constructor /// </summary> public TradingDateTimeAxis() : base() { exceptionalNonTradingDays = new ArrayList(); Init(); } /// <summary> /// Constructor /// </summary> public TradingDateTimeAxis(ArrayList nonTradingDays) : base() { exceptionalNonTradingDays = nonTradingDays; Init(); } /// <summary> /// Copy Constructor /// </summary> /// <param name="a">construct a TradingDateTimeAxis based on this provided axis.</param> public TradingDateTimeAxis(Axis a) : base(a) { exceptionalNonTradingDays = new ArrayList(); Init(); if (a is TradingDateTimeAxis) DoClone((TradingDateTimeAxis)a, this); else if (a is DateTimeAxis) DoClone((DateTimeAxis)a, this); else { DoClone(a, this); this.NumberFormat = null; } } /// <summary> /// Helper function for constructors. /// </summary> private void Init() { startTradingTime_ = 0; endTradingTime_ = TimeSpan.TicksPerDay; tradingTimeSpan_ = endTradingTime_ - startTradingTime_; virtualWorldMin_ = SparseWorldRemap(WorldMin); virtualWorldMax_ = SparseWorldRemap(WorldMax); } /// <summary> /// Deep copy of DateTimeAxis. /// </summary> /// <returns>A copy of the DateTimeAxis Class.</returns> public override object Clone() { TradingDateTimeAxis a = new TradingDateTimeAxis(); // ensure that this isn't being called on a derived type. If it is, then oh no! if (this.GetType() != a.GetType()) { throw new NPlotException( "Clone not defined in derived type. Help!" ); } DoClone( this, a ); return a; } /// <summary> /// Helper method for Clone. /// </summary> /// <param name="a">The cloned target object.</param> /// <param name="b">The cloned source object.</param> protected static void DoClone(TradingDateTimeAxis b, TradingDateTimeAxis a) { DateTimeAxis.DoClone(b, a); a.startTradingTime_ = b.startTradingTime_; a.endTradingTime_ = b.endTradingTime_; a.tradingTimeSpan_ = b.tradingTimeSpan_; a.WorldMin = b.WorldMin; a.WorldMax = b.WorldMax; a.exceptionalNonTradingDays = b.exceptionalNonTradingDays; } /// <summary> /// World to physical coordinate transform. /// </summary> /// <param name="coord">The coordinate value to transform.</param> /// <param name="physicalMin">The physical position corresponding to the world minimum of the axis.</param> /// <param name="physicalMax">The physical position corresponding to the world maximum of the axis.</param> /// <param name="clip">if false, then physical value may extend outside worldMin / worldMax. If true, the physical value returned will be clipped to physicalMin or physicalMax if it lies outside this range.</param> /// <returns>The transformed coordinates.</returns> /// <remarks>Not sure how much time is spent in this often called function. If it's lots, then /// worth optimizing (there is scope to do so).</remarks> public override PointF WorldToPhysical( double coord, PointF physicalMin, PointF physicalMax, bool clip) { // (1) account for reversed axis. Could be tricky and move // this out, but would be a little messy. PointF _physicalMin; PointF _physicalMax; if (this.Reversed) { _physicalMin = physicalMax; _physicalMax = physicalMin; } else { _physicalMin = physicalMin; _physicalMax = physicalMax; } // (2) if want clipped value, return extrema if outside range. if (clip) { if (WorldMin < WorldMax) { if (coord > WorldMax) { return _physicalMax; } if (coord < WorldMin) { return _physicalMin; } } else { if (coord < WorldMax) { return _physicalMax; } if (coord > WorldMin) { return _physicalMin; } } } // (3) we are inside range or don't want to clip. coord = SparseWorldRemap(coord); double range = virtualWorldMax_ - virtualWorldMin_; double prop = (double)((coord - virtualWorldMin_) / range); //double range = WorldMax - WorldMin; //double prop = (double)((coord - WorldMin) / range); //if (range1 != range) // range1 = range; // Force clipping at bounding box largeClip times that of real bounding box // anyway. This is effectively at infinity. const double largeClip = 100.0; if (prop > largeClip && clip) prop = largeClip; if (prop < -largeClip && clip) prop = -largeClip; if (range == 0) { if (coord >= virtualWorldMin_) prop = largeClip; if (coord < virtualWorldMin_) prop = -largeClip; } // calculate the physical coordinate. PointF offset = new PointF( (float)(prop * (_physicalMax.X - _physicalMin.X)), (float)(prop * (_physicalMax.Y - _physicalMin.Y))); return new PointF(_physicalMin.X + offset.X, _physicalMin.Y + offset.Y); } /// <summary> /// Transforms a physical coordinate to an axis world /// coordinate given the physical extremites of the axis. /// </summary> /// <param name="p">the point to convert</param> /// <param name="physicalMin">the physical minimum extremity of the axis</param> /// <param name="physicalMax">the physical maximum extremity of the axis</param> /// <param name="clip">whether or not to clip the world value to lie in the range of the axis if it is outside.</param> /// <returns></returns> public override double PhysicalToWorld( PointF p, PointF physicalMin, PointF physicalMax, bool clip) { // (1) account for reversed axis. Could be tricky and move // this out, but would be a little messy. PointF _physicalMin; PointF _physicalMax; if (this.Reversed) { _physicalMin = physicalMax; _physicalMax = physicalMin; } else { _physicalMin = physicalMin; _physicalMax = physicalMax; } // normalised axis dir vector float axis_X = _physicalMax.X - _physicalMin.X; float axis_Y = _physicalMax.Y - _physicalMin.Y; float len = (float)Math.Sqrt(axis_X * axis_X + axis_Y * axis_Y); axis_X /= len; axis_Y /= len; // point relative to axis physical minimum. PointF posRel = new PointF(p.X - _physicalMin.X, p.Y - _physicalMin.Y); // dist of point projection on axis, normalised. float prop = (axis_X * posRel.X + axis_Y * posRel.Y) / len; //double world = prop * (WorldMax - WorldMin) + WorldMin; double world = prop * (virtualWorldMax_ - virtualWorldMin_) + virtualWorldMin_; world = ReverseSparseWorldRemap(world); // if want clipped value, return extrema if outside range. if (clip) { world = Math.Max(world, WorldMin); world = Math.Min(world, WorldMax); } return world; } /// <summary> /// Remap a world coordinate into a "virtual" world, where non-trading dates and times are collapsed. /// </summary> /// <remarks> /// This code works under asumption that there are exactly 24*60*60 seconds in a day /// This is strictly speaking not correct but apparently .NET 2.0 does not count leap seconds. /// Luckilly, Ticks == 0 =~= 0001-01-01T00:00 =~= Monday /// First tried a version fully on floating point arithmetic, /// but failed hopelessly due to rounding errors. /// </remarks> /// <param name="coord">world coordinate to transform.</param> /// <returns>equivalent virtual world coordinate.</returns> protected double SparseWorldRemap(double coord) { long ticks = (long)coord; /* * removing non trading days.. * davide morelli * */ int numberOfDaysToRemove = 0; foreach (DateTime day in exceptionalNonTradingDays) { if (day.Ticks < ticks) numberOfDaysToRemove++; } long whole_days = ticks / TimeSpan.TicksPerDay; long ticks_in_last_day = ticks % TimeSpan.TicksPerDay; long full_weeks = whole_days / 7; long days_in_last_week = whole_days % 7; if (days_in_last_week >= 5) { days_in_last_week = 5; ticks_in_last_day = 0; } if (ticks_in_last_day < startTradingTime_) ticks_in_last_day = startTradingTime_; else if (ticks_in_last_day > endTradingTime_) ticks_in_last_day = endTradingTime_; ticks_in_last_day -= startTradingTime_; // removing non trading days... long whole_working_days = (full_weeks * 5 + days_in_last_week) - numberOfDaysToRemove; long working_ticks = whole_working_days * tradingTimeSpan_; long new_ticks = working_ticks + ticks_in_last_day; return (double)new_ticks; } /// <summary> /// Remaps a "virtual" world coordinates back to true world coordinates. /// </summary> /// <param name="coord">virtual world coordinate to transform.</param> /// <returns>equivalent world coordinate.</returns> protected double ReverseSparseWorldRemap(double coord) { long ticks = (long)coord; //ticks += startTradingTime_; /* * removing non trading days.. * davide morelli * */ int numberOfDaysToRemove = 0; foreach (DateTime day in exceptionalNonTradingDays) { if (SparseWorldRemap(day.Ticks) < ticks) numberOfDaysToRemove++; } ticks += numberOfDaysToRemove * tradingTimeSpan_; long ticks_in_last_day = ticks % tradingTimeSpan_; ticks /= tradingTimeSpan_; long full_weeks = ticks / 5; long week_part = ticks % 5; long day_ticks = (full_weeks * 7 + week_part) * TimeSpan.TicksPerDay; return (double)(day_ticks + ticks_in_last_day + startTradingTime_); } /// <summary> /// Adds a delta amount to the given world coordinate in such a way that /// all "sparse gaps" are skipped. In other words, the returned value is /// in delta distance from the given in the "virtual" world. /// </summary> /// <param name="coord">world coordinate to shift.</param> /// <param name="delta">shif amount in "virtual" units.</param> /// <returns></returns> public double SparseWorldAdd(double coord, double delta) { return ReverseSparseWorldRemap(SparseWorldRemap(coord) + delta); } /// <summary> /// World extent in virtual (sparse) units. /// </summary> public double SparseWorldLength { get { return SparseWorldRemap(WorldMax) - SparseWorldRemap(WorldMin); } } /// <summary> /// Check whether the given coordinate falls within defined trading hours. /// </summary> /// <param name="coord">world coordinate in ticks to check.</param> /// <returns>true if in trading hours, false if in non-trading gap.</returns> public bool WithinTradingHours(double coord) { long ticks = (long)coord; long whole_days = ticks / TimeSpan.TicksPerDay; long ticks_in_last_day = ticks % TimeSpan.TicksPerDay; long days_in_last_week = whole_days % 7; if (days_in_last_week >= 5) return false; if (ticks_in_last_day < startTradingTime_) return false; if (ticks_in_last_day >= endTradingTime_) return false; return true; } /// <summary> /// Check whether the given coordinate falls on trading days. /// </summary> /// <param name="coord">world coordinate in ticks to check.</param> /// <returns>true if on Mon - Fri.</returns> public bool OnTradingDays(double coord) { long ticks = (long)coord; long whole_days = ticks / TimeSpan.TicksPerDay; long days_in_last_week = whole_days % 7; return (days_in_last_week < 5); } /// <summary> /// Determines the positions of all Large and Small ticks. /// </summary> /// <remarks> /// The method WorldTickPositions_FirstPass() from the base works just fine, except that it /// does not account for non-trading gaps in time, therefore, when less than two days are visible /// an own algorithm is used (to show intraday time). Otherwise the base class implementation is used /// but the output is corrected to remove ticks on non-trading days (Sat, Sun). /// </remarks> /// <param name="physicalMin">The physical position corresponding to the world minimum of the axis.</param> /// <param name="physicalMax">The physical position corresponding to the world maximum of the axis.</param> /// <param name="largeTickPositions">ArrayList containing the positions of the large ticks.</param> /// <param name="smallTickPositions">null</param> internal override void WorldTickPositions_FirstPass( Point physicalMin, Point physicalMax, out ArrayList largeTickPositions, out ArrayList smallTickPositions ) { if (LargeTickStep != TimeSpan.Zero || SparseWorldLength > 2.0 * (double)tradingTimeSpan_) // utilise base class { ArrayList largeTickPositions_FirstPass; base.WorldTickPositions_FirstPass(physicalMin, physicalMax, out largeTickPositions_FirstPass, out smallTickPositions); if (largeTickPositions_FirstPass.Count < 2) { // leave it alone, whatever that single tick may be (better something than nothing...) largeTickPositions = largeTickPositions_FirstPass; } else if ((double)largeTickPositions_FirstPass[1] - (double)largeTickPositions_FirstPass[0] > 27.0 * (double)TimeSpan.TicksPerDay) { // For distances between ticks in months or longer, just accept all ticks largeTickPositions = largeTickPositions_FirstPass; } else { // for daily ticks, ignore non-trading hours but obey (skip) non-trading days largeTickPositions = new ArrayList(); foreach (object tick in largeTickPositions_FirstPass) { if (OnTradingDays((double)tick)) largeTickPositions.Add(tick); } } } else // intraday ticks, own algorithm { smallTickPositions = null; largeTickPositions = new ArrayList(); TimeSpan timeLength = new TimeSpan((long)SparseWorldLength); DateTime worldMinDate = new DateTime( (long)this.WorldMin ); DateTime worldMaxDate = new DateTime( (long)this.WorldMax ); DateTime currentTickDate; long skip; // in time ticks // The following if-else flow establishes currentTickDate to the beginning of series // and skip to the optimal distance between ticks // if less than 10 minutes, then large ticks on second spacings. if ( timeLength < new TimeSpan(0,0,10,0,0) ) { this.LargeTickLabelType_ = LargeTickLabelType.hourMinuteSeconds; int secondsSkip; if (timeLength < new TimeSpan( 0,0,0,10,0 ) ) secondsSkip = 1; else if ( timeLength < new TimeSpan(0,0,0,20,0) ) secondsSkip = 2; else if ( timeLength < new TimeSpan(0,0,0,50,0) ) secondsSkip = 5; else if ( timeLength < new TimeSpan(0,0,2,30,0) ) secondsSkip = 15; else secondsSkip = 30; int second = worldMinDate.Second; second -= second % secondsSkip; currentTickDate = new DateTime( worldMinDate.Year, worldMinDate.Month, worldMinDate.Day, worldMinDate.Hour, worldMinDate.Minute, second,0 ); skip = secondsSkip * TimeSpan.TicksPerSecond; } // Less than 2 hours, then large ticks on minute spacings. else if ( timeLength < new TimeSpan(0,2,0,0,0) ) { this.LargeTickLabelType_ = LargeTickLabelType.hourMinute; int minuteSkip; if ( timeLength < new TimeSpan(0,0,10,0,0) ) minuteSkip = 1; else if ( timeLength < new TimeSpan(0,0,20,0,0) ) minuteSkip = 2; else if ( timeLength < new TimeSpan(0,0,50,0,0) ) minuteSkip = 5; else if ( timeLength < new TimeSpan(0,2,30,0,0) ) minuteSkip = 15; else //( timeLength < new TimeSpan( 0,5,0,0,0) ) minuteSkip = 30; int minute = worldMinDate.Minute; minute -= minute % minuteSkip; currentTickDate = new DateTime( worldMinDate.Year, worldMinDate.Month, worldMinDate.Day, worldMinDate.Hour, minute,0,0 ); skip = minuteSkip * TimeSpan.TicksPerMinute; } // Else large ticks on hour spacings. else { this.LargeTickLabelType_ = LargeTickLabelType.hourMinute; int hourSkip; if (timeLength < new TimeSpan(0, 10, 0, 0, 0)) hourSkip = 1; else if (timeLength < new TimeSpan(0, 20, 0, 0, 0)) hourSkip = 2; else hourSkip = 6; int hour = worldMinDate.Hour; hour -= hour % hourSkip; currentTickDate = new DateTime( worldMinDate.Year, worldMinDate.Month, worldMinDate.Day, hour, 0, 0, 0); skip = hourSkip * TimeSpan.TicksPerHour; } // place ticks while (currentTickDate < worldMaxDate) { double world = (double)currentTickDate.Ticks; if (!WithinTradingHours(world)) { // add gap boundary instead world = ReverseSparseWorldRemap(SparseWorldRemap(world)); // moves forward long gap = (long)world; gap -= gap % skip; currentTickDate = new DateTime(gap); } if (world >= this.WorldMin && world <= this.WorldMax) { largeTickPositions.Add(world); } currentTickDate = currentTickDate.AddTicks(skip); } } } /// <summary> /// Get an appropriate label name, given the DateTime of a label /// </summary> /// <param name="tickDate">the DateTime to get the label name for</param> /// <returns>A label name appropriate to the supplied DateTime.</returns> protected override string LargeTickLabel(DateTime tickDate) { string label; if ( this.NumberFormat == null && (LargeTickLabelType_ == LargeTickLabelType.hourMinute || LargeTickLabelType_ == LargeTickLabelType.hourMinuteSeconds) && tickDate.TimeOfDay == StartTradingTime) { // in such case always show the day date label = (tickDate.Day).ToString(); label += " "; label += tickDate.ToString("MMM"); } else { label = base.LargeTickLabel(tickDate); } return label; } } } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821571&aid=1709964&group_id=161868 |
From: SourceForge.net <no...@so...> - 2007-05-11 08:43:01
|
Bugs item #1688713, was opened at 2007-03-26 13:19 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821568&aid=1688713&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: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: randalx (randalx) Assigned to: Jamie McQuay (jamcquay) Summary: Problems ploting single point Initial Comment: Hi, My program plots various LinePlots and PointPlots using the AbscissaData and OrdinateData. The data can change based on user interaction. A bug occurs when the data is for only one point. First there is an exception in DateTimeAxis.cs void DrawTicks(...) { ... PointF lastPos = WorldToPhysical((double)largeTicks[0], physicalMin, physicalMax, true);//ed The exception is due to accessing largeTicks[0]. The previous call to WorldTickPositions() fails to add any data to the largeTicks array. A quick fix was to add the following code: if (largeTicks.Count <= 0) { return; } But the result is not very satisfactory as I'd still like to see the point plotted. My temporary hack was to adjust the XAxis1.WorldMax and XAxis1.WorldMin by 100 so as to show a centered point but this is far from ideal. Thanks, Randal ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2007-05-11 01:43 Message: Logged In: NO I have rather similar problem with 5 point at LabelAxis.cs This is Stack Trace of 0.9.9.2 but it happen in 0.9.10.0 as well. System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.Collections.ArrayList.get_Item(Int32 index) at NPlot.LabelAxis.DrawTicks(Graphics g, Point physicalMin, Point physicalMax, Object& labelOffset, Object& boundingBox) in LabelAxis.cs:line 209 at NPlot.Axis.Draw(Graphics g, Point physicalMin, Point physicalMax, Rectangle& boundingBox) in Axis.cs:line 1280 at NPlot.PhysicalAxis.Draw(Graphics g, Rectangle& boundingBox) in PhysicalAxis.cs:line 125 at NPlot.PhysicalAxis.GetBoundingBox() in PhysicalAxis.cs:line 112 at NPlot.PlotSurface2D.DeterminePhysicalAxesToDraw(Rectangle bounds, Axis xAxis1, Axis xAxis2, Axis yAxis1, Axis yAxis2, PhysicalAxis& pXAxis1, PhysicalAxis& pXAxis2, PhysicalAxis& pYAxis1, PhysicalAxis& pYAxis2) in PlotSurface2D.cs:line 831 at NPlot.PlotSurface2D.Draw(Graphics g, Rectangle bounds) in PlotSurface2D.cs:line 972 at NPlot.Bitmap.PlotSurface2D.Refresh() in Bitmap.PlotSurface2D.cs:line 433 ---------------------------------------------------------------------- Comment By: Jamie McQuay (jamcquay) Date: 2007-03-29 09:26 Message: Logged In: YES user_id=613279 Originator: NO Code snippet: plotSurface.Clear(); DateTime[] xs = { new DateTime(2002, 9, 1)}; float[] ys = { 4.7f }; Marker m = new Marker(Marker.MarkerType.Diamond, 6, Color.DarkGreen); PointPlot pp = new PointPlot(); pp.AbscissaData = xs; pp.OrdinateData = ys; pp.Marker = m; plotSurface.Add(pp); LabelAxis lay = new LabelAxis(plotSurface.YAxis1); lay.AddLabel("P3", 3); lay.AddLabel("P4", 4); lay.AddLabel("P5", 5); plotSurface.YAxis1 = lay; plotSurface.Refresh(); ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821568&aid=1688713&group_id=161868 |
From: SourceForge.net <no...@so...> - 2007-05-05 22:22:58
|
Bugs item #1713592, was opened at 2007-05-05 22:08 Message generated for change (Settings changed) made by onnovl You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821568&aid=1713592&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.10.0 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Onno the dutchman (onnovl) Assigned to: Nobody/Anonymous (nobody) >Summary: unhandled exception concerning font used in NPlot Initial Comment: Hi Guys NPlot uses call to arial font that causes an unhandled exception to be generated on some systems running windows xp. It looks like the font is not always properly registered with the system. Although this problem is probably a Microsoft issue it does not seem very user friendly to delegate the problem to the end-user. I found a discussion on this topic on the following site: http://www.spheresite.com/forum/read.php?7,92872,93423 Maybe an exception has to be generated "Font arial is not properly installed (in windows), please reinstall". Alternatively a message could be displayed giving this information to the user. Cheers Onno System.ArgumentException: _Font 'Arial' does not support style >>> 'Regular'._ >>> at System.Drawing.Font.CreateNativeFont() >>> at System.Drawing.Font.Initialize(FontFamily family, Single emSize, >>> FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean >>> gdiVerticalFont) >>> at System.Drawing.Font..ctor(FontFamily family, Single emSize, >>> FontStyle style, GraphicsUnit unit) >>> at NPlot.PlotSurface2D.Init() >>> at NPlot.PlotSurface2D..ctor() >>> at NPlot.Windows.PlotSurface2D..ctor() ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821568&aid=1713592&group_id=161868 |
From: SourceForge.net <no...@so...> - 2007-05-05 22:08:37
|
Bugs item #1713592, was opened at 2007-05-05 22:08 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821568&aid=1713592&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.10.0 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Onno the dutchman (onnovl) Assigned to: Nobody/Anonymous (nobody) Summary: System.ArgumentException: _Font 'Arial' does not support sty Initial Comment: Hi Guys NPlot uses call to arial font that causes an unhandled exception to be generated on some systems running windows xp. It looks like the font is not always properly registered with the system. Although this problem is probably a Microsoft issue it does not seem very user friendly to delegate the problem to the end-user. I found a discussion on this topic on the following site: http://www.spheresite.com/forum/read.php?7,92872,93423 Maybe an exception has to be generated "Font arial is not properly installed (in windows), please reinstall". Alternatively a message could be displayed giving this information to the user. Cheers Onno System.ArgumentException: _Font 'Arial' does not support style >>> 'Regular'._ >>> at System.Drawing.Font.CreateNativeFont() >>> at System.Drawing.Font.Initialize(FontFamily family, Single emSize, >>> FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean >>> gdiVerticalFont) >>> at System.Drawing.Font..ctor(FontFamily family, Single emSize, >>> FontStyle style, GraphicsUnit unit) >>> at NPlot.PlotSurface2D.Init() >>> at NPlot.PlotSurface2D..ctor() >>> at NPlot.Windows.PlotSurface2D..ctor() ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821568&aid=1713592&group_id=161868 |