Bugs item #1808098, was opened at 2007-10-05 16:08 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=462816&aid=1808098&group_id=51305
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: jerk (fantaz) Assigned to: Nobody/Anonymous (nobody) Summary: [wxPlotCtrl] wxPlotCtrl won't zoom wxPlotDataCruve Initial Comment: I'm terribly sorry for double posting, this is the duplicate of 1807993 feature request, that is the feature request should be deleted. If one wants to draw points like # x y 0 60 1 60 from file (tested it on wxplotctrl_sample.exe as well) the curve is drawn, but not shown, i.e. plotctrl doesn't know how to set plot boundaries on y axis (they remain default). The same thing happens if one wants to draw a horizontal line, i.e. # x y 1000 800 1000 900 The wxPlotDataCurve's fn CalculateBoundingRect() sets m_boundingRect with zero height/width, which is fine, but then wxPlotCtrl fails to correctly display the data. One solution would be to "inflate" the bounding rect of the data curve, but then the wxPlotCtrl's CalculateBoundingRect wouldn't "zoom all" correctly more than one curve. The second solution could be to modify wxPlotCtrl's CalculateBoundingRect so that the bounding rect could be artificially inflated by the arbitrary value, 10 for example. That is: in wxplotctrl.cpp in void wxPlotCtrl::CalcBoundingPlotRect() ... Starting from Line 2442 if (rect.m_width == 0.0) { zeroWidth = true; - rect.m_x = m_defaultPlotRect.m_x; - rect.m_width = m_defaultPlotRect.m_width; + rect.m_x = rect.m_x-10; + rect.m_width = rect.m_x+20; } if (rect.m_height == 0.0) { zeroHeight = true; - rect.m_y = m_defaultPlotRect.m_y; - rect.m_height = m_defaultPlotRect.m_height; + rect.m_y = rect.m_y-10; + rect.m_height = rect.m_y+20; } Any thoughts? best regards, fantaz ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=462816&aid=1808098&group_id=51305 ------------------------------------------------------------------------- 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/ _______________________________________________ wxCode-users mailing list wxCode-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxcode-users