Commit Graph

2240 Commits

Author SHA1 Message Date
Douglas Thor
3817c4e5e7 Updates to demo.py
+ renamed _test() to run_demo().
+ Renamed TestFrame to MainFrame, moved methods into logical blocks.
2016-07-07 09:13:21 -07:00
Douglas Thor
15a8b2d13b Documentation updates
+ Sphinx cross-references and pylint: disable
+ Added __docformat__ and import comments
2016-07-07 09:13:20 -07:00
Douglas Thor
81244b6a7e Renamed plot.py to polyobjects.py
+ Moved DisplaySide, scale_and_shift_point, and set_displayside to utils.py
  + renamed _DisplaySide to DisplaySide
  + renamed _set_displayside to set_displayside
+ updated imports to reflect package rename
+ changed format of imports in __init__.py to be more PEP8-like.
+ updated numpy import exception
+ whitespace cleanups.
2016-07-07 09:13:20 -07:00
Douglas Thor
047da1b885 Class and function renaming.
+ Renamed demo.__test() to demo._test()
  + Updated __main__ to reflect this change.
+ Renamed BoxPlot to PolyBoxPlot to maintain uniformity
  + Added backwards compat for PolyBoxPlot to __init__.py
+ Updated CHANGELOG.md
2016-07-07 09:13:20 -07:00
Douglas Thor
7da7a52737 Added __main__.py so python -m plot runs demo 2016-07-07 09:13:20 -07:00
Douglas Thor
c34cc76cd6 Moved demos to ./examples 2016-07-07 09:13:20 -07:00
Douglas Thor
a8be4a9e1e Moved PlotCanvas to its own module: plotcanvas.py 2016-07-07 09:13:19 -07:00
Douglas Thor
c601ec9989 Added simple_example.py
+ fixed typo in __init__.py
+ Added x values to box plot legends in demo.py
2016-07-07 09:13:19 -07:00
Douglas Thor
31c35d0cfc Moved TempStyle, PendingDeprecation to utils.py 2016-07-07 09:13:19 -07:00
Douglas Thor
b6e5d73b42 Moved demo to separate module, replaced cursors for mag and move. 2016-07-07 09:13:19 -07:00
Douglas Thor
91c85b24a9 Updated __init__.py
+ old imports are not affected by the new package structure.
2016-07-07 09:13:18 -07:00
Douglas Thor
e80aa821bb Moved plot.py to plot/plot.py 2016-07-07 09:13:18 -07:00
Douglas Thor
2fd98b724b Moved changelog and readme to files. 2016-07-07 09:13:18 -07:00
Robin Dunn
c58b9ff859 Merge pull request #113 from DietmarSchwertberger/colourchooser_absolute
Colourchooser absolute imports
2016-07-06 20:27:20 -07:00
Robin Dunn
ad8891a0a7 Merge branch 'docs-fixes' 2016-07-06 20:24:07 -07:00
Robin Dunn
350c1ad237 xrange --> range 2016-07-06 20:23:02 -07:00
Robin Dunn
871c3112ef Some Py3 fixes for roses sample 2016-07-06 20:23:02 -07:00
Robin Dunn
a5d1128f75 Merge pull request #98 from dougthor42/refactor-lib.plot
Additional Refactoring of lib.plot [Part 1]
2016-07-06 20:22:07 -07:00
Robin Dunn
cc3190e240 Lots more docstring refs fixed 2016-07-06 20:20:10 -07:00
Robin Dunn
98e74b6de9 Style tweaks for the docs 2016-07-06 18:47:52 -07:00
Robin Dunn
488f29b05a Fix docstring references to wx.Bitmap 2016-07-06 18:45:16 -07:00
Robin Dunn
4175d35105 Fix docstring references to wx.Colour 2016-07-06 18:40:04 -07:00
Douglas Thor
76a511cada fixed(?) scaleAndShift, removed SavePen + others 2016-07-06 15:15:46 -07:00
Douglas Thor
25ca1a19b9 Minor doc tweak for BoxPlot 2016-07-06 15:15:46 -07:00
Douglas Thor
3d42be52b8 Updates for BoxPlot
+ doc updates
+ NaN and inf are now handled (ignored)
2016-07-06 15:15:46 -07:00
Douglas Thor
5a23e277b6 Switched all new API properties to mixedCase 2016-07-06 15:15:46 -07:00
Douglas Thor
75af89db9a Even more doc updates.
+ Moved class doc from __init__ to class definition.
+ Better formatting, admonitions
+ changed many items to cross-references.
2016-07-06 15:15:45 -07:00
Douglas Thor
a99bdf5ebe Factored out _set_displayside logic. 2016-07-06 15:15:45 -07:00
Douglas Thor
d751591215 PolyMarker._drawmarkers no longer uses eval() 2016-07-06 15:15:45 -07:00
Douglas Thor
28a2873236 Updated docs for PolyLine 2016-07-06 15:15:45 -07:00
Douglas Thor
674d64f7e0 Updated docs for PolyPoints 2016-07-06 15:15:44 -07:00
Douglas Thor
fc8fe11839 Finally got local sphinx builds working, so now the major doc update begins. 2016-07-06 15:15:44 -07:00
Douglas Thor
b1b309cea6 Documentation updates.
+ Removed _update_docs from PendingDeprecation to hopefully fix autodoc gen.
  + currently functions decorated with @PendingDeprecation show up
    as "wrapper(*args, **kwargs)" in the generated docs.
2016-07-06 15:15:44 -07:00
Douglas Thor
c8bd440f2e factored out scale_and_shift_point() 2016-07-06 15:15:44 -07:00
Douglas Thor
6b039cede2 Using dc.DrawLineList, DrawTextList in _drawTicks, _drawAxesValues 2016-07-06 15:15:43 -07:00
Douglas Thor
8cd222414c fixed typo, updated section comment, added additional demo to _draw1Objects 2016-07-06 15:15:43 -07:00
Douglas Thor
16c373cb96 moved PolyPoints log10 logic to private method. Added PolyPoints._abs() 2016-07-06 15:15:43 -07:00
Douglas Thor
f9ee131513 Fixed most of the max line length issues. 2016-07-06 15:15:43 -07:00
Douglas Thor
dd929bc3ea Removed duplicate code in PolyBars, PolyHistogram
+ Created `PolyBarsBase` class
+ moved duplicate code from PolyBars and PolyHistogram to new PolyBarsBase class
  + _scaleAndShift, getSymExtend moved to parent class.
  + Moved pen and brush customization to parent method.
+ added calc_rect methods
+ switched loops to list comprehension (would like to use generator, but
  DrawRectangleList() does not support generators.)
+ replaced bar center calculation with generator expression
+ Updated attributes for PolyBars:
  + individual bar widths can now be set.
  + added error checking on barwidth attribute.
2016-07-06 15:15:43 -07:00
Douglas Thor
970b645dbe Added stub for unittests/test_lib_plot.py 2016-07-06 15:15:42 -07:00
Douglas Thor
f23d833e1e Added TempStyle combination decorator + context manager.
+ took far too long to figure it out... hopefully it's worth it.

[ci skip]
2016-07-06 15:15:42 -07:00
Douglas Thor
7c63db4d26 Added SaveBrush context manager and SavedBrush decorator
[ci skip]
2016-07-06 15:15:42 -07:00
Robin Dunn
5279b48954 Merge branch 'samples-py3-fixes' 2016-07-06 14:23:36 -07:00
Robin Dunn
91d8572299 xrange --> range 2016-07-06 13:38:20 -07:00
Robin Dunn
fa08d80c91 Some Py3 fixes for roses sample 2016-07-06 13:30:04 -07:00
DietmarSchwertberger
21d7a8e96a use absolute imports 2016-07-05 20:30:33 +02:00
DietmarSchwertberger
51e64cad24 Merge remote-tracking branch 'refs/remotes/wxWidgets/master' 2016-07-05 20:17:30 +02:00
Robin Dunn
89e284eac0 Merge pull request #109 from lvu/master
fix MultiMessageDialog
2016-07-04 16:18:14 -07:00
Robin Dunn
be3d0043b4 Another import six fix 2016-07-04 13:57:07 -07:00
Robin Dunn
ed545aabef Merge branch 'fix-base_prefix' 2016-07-01 18:03:12 -07:00