Commit Graph

17 Commits

Author SHA1 Message Date
Douglas Thor
0b600f4eeb Documentation updates
Switched things to reStructuredText
2015-08-04 10:45:37 -07:00
Douglas Thor
5cb14aa820 Moved Title and Label drawing to separate methods
+ changed instances of time.clock to time.perf_counter (Python 3.3+)
+ Moved drawing of plot title and axes label to separate methods
+ Made drawing of axes labels a attribute of PlotCanvas.
+ Added ability to turn axes labels or plot title on and off individually
  + Added demo for this
2015-08-03 22:26:39 -07:00
Douglas Thor
0ad2d04874 PEP8/PyLint and other formatting updates. 2015-08-03 21:27:14 -07:00
Douglas Thor
6a2d1b8a51 API changes
+ Fixed minor formatting issues in docstrings and comments
+ Added deprecation warnings to getters and setters
  + replaced with properties
  + Added PendingDeprecation decorator to do this
  + all instances of getters/setters have been replaced with property accessors
+ All objects now explicitly inherit from `object`
+ Changed new customization options to use a wx.Pen instance instead of separate Colour, Width, and Style properties
  + left _gridColour since it's old API
2015-08-03 18:31:24 -07:00
Douglas Thor
8a3584dc6a Added properties to most getters/setters. 2015-08-03 13:36:20 -07:00
Douglas Thor
ab45d7e42c Major updates to plot.py.
+ Fixed error where wxFlexGridSizer.AddGrowableRow would throw 'invalid row index'
  + Moved sizer.AddGrowableRow to after setting the sizer in PlotCanvas
+ Added 'drawstyle' option to PolyLine which mimmics matplotlib's 'drawstyle' option
+ Added decorator that will reset the dc pen after a function call
+ Fixed FutureWarning errors for `x == None` (replaced with `x is None`)
+ Added more options for plot display
  + Color, style, and width options for: grid, centerline, ticks, axes, diagonal
  + length for: ticks
  + Location (bottom, left, top, right) for: ticks, axes     # TODO: API rename?
+ Moved drawing of plot items to separate private methods (previously all in _drawAxes)
  + _drawPlotAreaItems: draws each plot area item
+ Added menu items to demo which shows off new options.
2015-08-03 12:28:38 -07:00
Robin Dunn
6ef7d83d97 Apply patch updating wx.lib.plot, closes #16590
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@78006 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-10-11 19:58:21 +00:00
Robin Dunn
4ff09cf185 Apply patch #16590 to plot.py, removes support for oldnumeric.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@77976 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-10-08 04:33:33 +00:00
Robin Dunn
bcbdcd9631 Remove more CVS $Id$ and $Revision$ tags, and a bit of code that uses them.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-02-11 03:35:32 +00:00
Robin Dunn
2fb6f00867 PR 42 from Metallicow. Py3 and Phoenix updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-01-11 23:13:15 +00:00
Robin Dunn
9f24505715 Merge of PR 11 with the whitespace-only changes omitted.
See https://github.com/RobinD42/Phoenix/pull/11

Mostly phoenix-port changes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-07-10 01:15:34 +00:00
Robin Dunn
48a7ecdd85 Remove all BeginDrawing/EndDrawing calls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74229 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-13 07:43:45 +00:00
Robin Dunn
c58fc0bbe4 plot Phoenix Fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-13 07:18:57 +00:00
Robin Dunn
280d9e9e86 Only try to import numpy, the others are just way too old. See #3147, #4130
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-22 08:01:17 +00:00
Robin Dunn
247673201b Copy (branch) wx.lib, wx.py and wx.tools from Classic, and include subpackages branched from 3rdParty
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-13 01:36:07 +00:00
Robin Dunn
a30dfe91e2 I wasn't ready to add this yet.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-06-22 21:29:15 +00:00
Robin Dunn
c8c2e1d97b set svn:eol-style to native
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-06-22 21:02:42 +00:00