mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 04:20:07 +01:00
Doc updates, refactoring of GridLines, removal of unused API
+ moved all line calculation of PolyLine to path method
+ Refactoring of PlotCanvas
+ moved around attribute initialization in PlotCanvas.__init__
+ Removed extra API such as GetGridPen, GridColor, AxesLocation, etc. (these
were ones that I added at the start of this PR)
+ Changed various occurrences of "if type(x) == y" to "if isinstance(x, y)"
+ also occurrences of "if value not in [True, False]" to "is not isinstance(value, bool)"
+ Added docstrings (still incomplete though)
+ Fixed some cases where the private attribute was being get/set directly rather than via the public properties
+ Changed GridLines API to be 2-tuple of bools rather than True, False, 'Horizontal', 'Vertical'
+ Refactored drawing of gridlines
+ now only 1 line is drawn for each tick rather than two lines that meet in the middle
+ easier to understand
+ removed some extra variable declarations in _drawTicks
+ Ticks are now drawn on top of gridlines
+ Changes to Demo
+ "25000 pts" plot now plots random (normal distribution) points.
+ "draw2" now demos the step function (drawstyle) of PolyLine
+ Grid on/off menu items changed to submenu
+ moved all check/uncheck logic to separate private methods
This commit is contained in:
596
wx/lib/plot.py
596
wx/lib/plot.py
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user