Commit Graph

2057 Commits

Author SHA1 Message Date
Douglas Thor
9592e4d32a Documentation updates, bugfixes for box plot
+ Added and updated docstrings for some functions.
+ Box Plot updates and bugfixes
  + point-snap now only snaps to outliers, fence, and quartiles as intended,
    rather than snapping to all points.
  + Box plots now require 2D data, where the 1st dimension is the x location
    + this mimics the bar chart workaround.
  + Moved outlier calculation to separate method
+ Updated some error texts to be a bit more clear
+ Starting work on Chart class again. We'll see if I get anywhere with it...
2015-08-19 14:25:32 -07:00
Douglas Thor
ee2b440db5 Minor PEP8 changes, added pylint:disable for some pylint items. 2015-08-17 17:29:00 -07:00
Douglas Thor
0f974a9e60 Added individual control of Axes, axes values, and ticks
+ Added _DisplaySide class
  + this class is uses for storing the booleans associated with display various sides of
    the plot. Basically it's a fancy structure for a list of 4 boolean values (bottom,
    left, top, right). We'll see if I actually keep it.
  + Slightly reminiscent of a collections.namedtuple
  + Has type and value checking when setting attributes
+ Changed ticks, axes, and axesValues to use the _DisplaySide class to determine
  which sides of each to show.
+ Changed setters for EnableTicks, EnableAxes, and EnableAxesValues to essentially have
  overload methods:
  + self.EnableTicks = True   # enables all ticks
  + self.EnableTicks = (True, True)   # enables Bottom and left only
  + self.EnableTicks = (True, True, True, True)   # enables all ticks
+ removed last call to _titleEnabled, replaced with EnablePlotTitle property.
  + TODO: add deprecation warning to EnableTitle property (replaced by EnablePlotTitle)
+ Changed _drawTicks, _drawAxes, _drawAxesValues to draw each side independently.
+ Added demo items for all of the above.
+ Fixed issue in demo where Zoom and Drag menu items would be incorrectly set to checked
  when the other was disabled.
2015-08-17 15:54:33 -07:00
Douglas Thor
0e19dcc948 Added individual axis display control, updated menus in demo
+ Added a NamedTuple for axis show/hide booleans
+ Move things around in the demo menus.
+ Updated EnableAxes.setter to account for 3 usage cases:
  + bool: turn all axis on/off
  + 2-tuple of bool: only control bottom and left
  + 4-tuple of bool: individual control of all 4 axes
2015-08-12 17:36:01 -07:00
Robin Dunn
0b5f9109fd Merge pull request #112 from RobinD42/more-travis-tweaks
More travis tweaks
2015-08-11 08:40:03 -07:00
Robin Dunn
ba350b8157 The builds take a long time, so do just one Python for now. 2015-08-11 08:39:11 -07:00
Robin Dunn
ccc36fe492 Merge pull request #111 from RobinD42/readme-update-dependency
Add libnotify
2015-08-11 00:34:06 -07:00
Robin Dunn
972bb6668d Remove copy/paste error.
We don't need to specify email notifications anyway, the default should suffice.
2015-08-11 00:13:56 -07:00
Robin Dunn
7b6958e30b Add Python 3.4 build 2015-08-11 00:12:49 -07:00
Robin Dunn
3b844226b8 Add libnotify 2015-08-11 00:00:35 -07:00
Robin Dunn
5bfcd3ceda Add Travis-ci control file 2015-08-10 23:50:46 -07:00
Robin Dunn
cc52d6c3fa Forgot the import 2015-08-10 22:58:26 -07:00
Robin Dunn
2e9b9c7399 Use either 32bit or 64bit builds of SIP on linux 2015-08-10 22:50:53 -07:00
Douglas Thor
a756c502aa Refactoring and starting to add separate class for plots that have discrete X values
+ Added SavedPen context manager
  + Changed SavePen decorator to use this CM.
+ Added option for Log10 and Abs on X and Y scales (AbsScale property)
  + Added demo for both
+ Changed instances of __getattr__ (which took care of returning log10 data) to
  property accessors.
  + Changed logic of log10 transform to account for AbsScale property
  + Data is still stored internally as non-transformed data.
+ Updates to BoxPlot
  + Hacked together something that allows multiple box plots on the same chart.
    + I'm not happy with it, which is why I've started working on a separate class called
      'Chart' which will handle data that uses discrete x-axis values (such as BoxPlot,
       Pareto, and BarChart).
  + Separated out each draw action to different methods
  + Verified that getClosestPoint works OK for now
  + Added TODO list to docstring
+ Fixed a few getters/setters that I'd previously missed when converting to properties.
+ Changed grid to be ON by default
+ Changed comments to docstrings on _drawXObjects functions
+ Changed some demos to include negative data to show off AbsScale functionality
+ Changed _draw4Objects demo so that the line is visible
2015-08-10 17:10:51 -07:00
Douglas Thor
b69feea0d4 Added BoxPlot
Added ability to plot a box plot.
Added demo of box plot.
Added connecting line to _draw2Objects in demo.

TODO:
  + customization
  + refactoring
  + documentation
  + other (see TODO in BoxPlot.draw method)
2015-08-08 10:09:57 -07:00
Mike Driscoll
c064f99e83 Update Gauge.py 2015-08-07 08:39:54 -05:00
Mike Driscoll
beb452b3cf Update GridLabelRenderer.py 2015-08-07 08:37:45 -05:00
Mike Driscoll
f6589b2c30 Fix a typo in StockButtons.py 2015-08-07 08:35:30 -05:00
Douglas Thor
7851def54d Updated menu names to include short description of what's plotted. 2015-08-04 17:56:56 -07:00
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
1ab07c4803 Move remaining OSX build (Py27) to the new VM. 2015-07-25 13:31:48 -07:00
wernerfb
fcd1d73b7d just use sys.maxsize instead of going via six 2015-07-25 18:05:58 +02:00
wernerfb
afbe4e9a21 update documentation 2015-07-25 18:02:59 +02:00
wernerfb
92eab4f8fb - add a simple unittest
- force __allow_long to True on Py3
2015-07-24 16:08:41 +02:00
wernerfb
b6e016fb3f make it work on Py3 2015-07-24 15:51:20 +02:00
wernerfb
e81b57863b DrawRectangleRect is replaced with DrawRectangle 2015-07-06 14:27:20 +02:00
wernerfb
4d28f39e69 DrawRectangleRect is replaced with DrawRectangle 2015-07-06 14:22:44 +02:00
wernerfb
760fba6ca9 - customtreectrl is now in wx.lib.agw 2015-07-06 14:09:18 +02:00
wernerfb
d9d75bb835 - loosen demo version check 2015-07-06 14:08:49 +02:00
Christian Buhtz
4cbd55bf59 ArtProvider-Demo: updated to all availble wx.ART_IDs 2015-05-02 17:22:41 +02:00
Robin Dunn
49a8884e7c Merge pull request #108 from wernerfb/2015-april-doclinks
fix doc links in wx.lib
2015-04-15 20:27:50 -07:00
Robin Dunn
695412a701 KeyEvent.GetUnicodeKey should return an integer, not a str/unicode object. 2015-04-15 09:53:40 -07:00
wernerfb
0b98209d36 fix a few Sphinx warnings 2015-04-14 17:15:52 +02:00
wernerfb
164a147a56 fix doc links in wx.lib.agw 2015-04-14 08:27:14 +02:00
wernerfb
f9d88b1df6 fix doc links in wx.lib.agw 2015-04-14 08:17:32 +02:00
wernerfb
d89745e761 fix doc links in wx.lib 2015-04-13 18:42:45 +02:00
Robin Dunn
ee5547adc4 Merge pull request #107 from wernerfb/2015-april-splitter
lib.splitter tests and doc
2015-04-11 17:37:46 -07:00
Robin Dunn
addb3acc1b Merge pull request #106 from wernerfb/2015-april-statbmp
just tag as it works for me on Py3.4
2015-04-11 17:30:14 -07:00
Robin Dunn
88b52b3bd2 Merge pull request #105 from wernerfb/2015-april-resizewidget
resizewidget - test and documentation
2015-04-11 17:29:31 -07:00
Robin Dunn
61e3f32924 Merge remote-tracking branch 'upstream/master' 2015-04-11 17:18:22 -07:00
Robin Dunn
7caef161f5 Merge pull request #104 from wernerfb/2015-april-ticker
ticker tested on Py3.4 and doc updated
2015-04-11 17:13:29 -07:00
Robin Dunn
1a2f0f4cfd Merge pull request #103 from wernerfb/2015-april-stattext
just tag it as it works for me on Py3.4
2015-04-11 16:58:47 -07:00
Robin Dunn
870d273f44 Merge pull request #102 from wernerfb/2015-april-throbber
throbber doc update and a simple unittest
2015-04-11 16:58:19 -07:00
Robin Dunn
496bce8952 Merge pull request #14 from topic2k/ULC_ColumnChekedEvent
Send column checked event after checking/toggling childs.
2015-04-11 16:52:57 -07:00
Robin Dunn
6fb49ce820 Remove SetAutoLayout from the example. 2015-04-11 16:32:35 -07:00