From cf737f513c1381dddfba614d9d7832cf572aa81c Mon Sep 17 00:00:00 2001
From: "benjamin.jakimow@geo.hu-berlin.de" <q8DTkxUg-BB>
Date: Wed, 30 Nov 2016 17:50:10 +0100
Subject: [PATCH] site libs now in site-package folder, uses
 timeseriesviewer.pth to include packages with site updated pyqtgraph to
 0.10.0

---
 site-packages/pyqtgraph-0.10.0/.coveragerc    |   19 +
 site-packages/pyqtgraph-0.10.0/.gitignore     |  109 +
 site-packages/pyqtgraph-0.10.0/.mailmap       |   12 +
 site-packages/pyqtgraph-0.10.0/.travis.yml    |  198 ++
 site-packages/pyqtgraph-0.10.0/CHANGELOG      |  448 ++++
 .../pyqtgraph-0.10.0/CONTRIBUTING.txt         |   60 +
 site-packages/pyqtgraph-0.10.0/LICENSE.txt    |   10 +
 site-packages/pyqtgraph-0.10.0/MANIFEST.in    |    8 +
 site-packages/pyqtgraph-0.10.0/README.md      |   85 +
 site-packages/pyqtgraph-0.10.0/doc/Makefile   |  130 +
 .../pyqtgraph-0.10.0/doc/extensions/qt_doc.py |  149 ++
 .../pyqtgraph-0.10.0/doc/listmissing.py       |   14 +
 site-packages/pyqtgraph-0.10.0/doc/make.bat   |  155 ++
 .../doc/source/3dgraphics.rst                 |   48 +
 .../doc/source/3dgraphics/glaxisitem.rst      |    8 +
 .../doc/source/3dgraphics/glgraphicsitem.rst  |    8 +
 .../doc/source/3dgraphics/glgriditem.rst      |    8 +
 .../doc/source/3dgraphics/glimageitem.rst     |    8 +
 .../doc/source/3dgraphics/gllineplotitem.rst  |    8 +
 .../doc/source/3dgraphics/glmeshitem.rst      |    8 +
 .../source/3dgraphics/glscatterplotitem.rst   |    8 +
 .../source/3dgraphics/glsurfaceplotitem.rst   |    8 +
 .../doc/source/3dgraphics/glviewwidget.rst    |    8 +
 .../doc/source/3dgraphics/glvolumeitem.rst    |    8 +
 .../doc/source/3dgraphics/index.rst           |   31 +
 .../doc/source/3dgraphics/meshdata.rst        |    8 +
 .../doc/source/apireference.rst               |   17 +
 .../pyqtgraph-0.10.0/doc/source/colormap.rst  |    8 +
 .../pyqtgraph-0.10.0/doc/source/conf.py       |  219 ++
 .../doc/source/config_options.rst             |   41 +
 .../pyqtgraph-0.10.0/doc/source/exporting.rst |   68 +
 .../doc/source/flowchart/flowchart.rst        |    8 +
 .../doc/source/flowchart/index.rst            |  145 +
 .../doc/source/flowchart/node.rst             |    8 +
 .../doc/source/flowchart/terminal.rst         |    8 +
 .../pyqtgraph-0.10.0/doc/source/functions.rst |  104 +
 .../doc/source/graphicsItems/arrowitem.rst    |    8 +
 .../doc/source/graphicsItems/axisitem.rst     |    8 +
 .../doc/source/graphicsItems/buttonitem.rst   |    8 +
 .../doc/source/graphicsItems/curvearrow.rst   |    8 +
 .../doc/source/graphicsItems/curvepoint.rst   |    8 +
 .../doc/source/graphicsItems/errorbaritem.rst |    8 +
 .../source/graphicsItems/fillbetweenitem.rst  |    8 +
 .../graphicsItems/gradienteditoritem.rst      |   19 +
 .../source/graphicsItems/gradientlegend.rst   |    8 +
 .../doc/source/graphicsItems/graphicsitem.rst |    6 +
 .../source/graphicsItems/graphicslayout.rst   |    8 +
 .../source/graphicsItems/graphicsobject.rst   |    8 +
 .../source/graphicsItems/graphicswidget.rst   |    8 +
 .../graphicsItems/graphicswidgetanchor.rst    |    8 +
 .../doc/source/graphicsItems/graphitem.rst    |    8 +
 .../doc/source/graphicsItems/griditem.rst     |    8 +
 .../source/graphicsItems/histogramlutitem.rst |    8 +
 .../doc/source/graphicsItems/imageitem.rst    |    8 +
 .../doc/source/graphicsItems/index.rst        |   45 +
 .../doc/source/graphicsItems/infiniteline.rst |    8 +
 .../doc/source/graphicsItems/isocurveitem.rst |    7 +
 .../doc/source/graphicsItems/labelitem.rst    |    8 +
 .../doc/source/graphicsItems/legenditem.rst   |    8 +
 .../source/graphicsItems/linearregionitem.rst |    8 +
 .../doc/source/graphicsItems/make             |   37 +
 .../source/graphicsItems/plotcurveitem.rst    |    8 +
 .../doc/source/graphicsItems/plotdataitem.rst |    8 +
 .../doc/source/graphicsItems/plotitem.rst     |    7 +
 .../doc/source/graphicsItems/roi.rst          |   28 +
 .../doc/source/graphicsItems/scalebar.rst     |    8 +
 .../source/graphicsItems/scatterplotitem.rst  |    8 +
 .../doc/source/graphicsItems/textitem.rst     |    8 +
 .../source/graphicsItems/uigraphicsitem.rst   |    8 +
 .../doc/source/graphicsItems/viewbox.rst      |    8 +
 .../doc/source/graphicsItems/vtickgroup.rst   |    8 +
 .../source/graphicsscene/graphicsscene.rst    |    8 +
 .../doc/source/graphicsscene/hoverevent.rst   |    5 +
 .../doc/source/graphicsscene/index.rst        |   12 +
 .../source/graphicsscene/mouseclickevent.rst  |    5 +
 .../source/graphicsscene/mousedragevent.rst   |    5 +
 .../doc/source/graphicswindow.rst             |    8 +
 .../doc/source/how_to_use.rst                 |  123 +
 .../pyqtgraph-0.10.0/doc/source/images.rst    |   26 +
 .../doc/source/images/plottingClasses.png     |  Bin 0 -> 44314 bytes
 .../doc/source/images/plottingClasses.svg     |  580 ++++
 .../pyqtgraph-0.10.0/doc/source/index.rst     |   38 +
 .../doc/source/installation.rst               |    9 +
 .../pyqtgraph-0.10.0/doc/source/internals.rst |    9 +
 .../doc/source/introduction.rst               |   86 +
 .../doc/source/mouse_interaction.rst          |   49 +
 .../doc/source/parametertree/apiref.rst       |   15 +
 .../doc/source/parametertree/index.rst        |   21 +
 .../doc/source/parametertree/parameter.rst    |    8 +
 .../source/parametertree/parameteritem.rst    |    8 +
 .../source/parametertree/parametertree.rst    |    8 +
 .../source/parametertree/parametertypes.rst   |    6 +
 .../pyqtgraph-0.10.0/doc/source/plotting.rst  |   73 +
 .../doc/source/prototyping.rst                |   35 +
 .../doc/source/qtcrashcourse.rst              |  102 +
 .../doc/source/region_of_interest.rst         |   23 +
 .../pyqtgraph-0.10.0/doc/source/style.rst     |   47 +
 .../doc/source/widgets/busycursor.rst         |    8 +
 .../doc/source/widgets/checktable.rst         |    8 +
 .../doc/source/widgets/colorbutton.rst        |    8 +
 .../doc/source/widgets/colormapwidget.rst     |   12 +
 .../doc/source/widgets/combobox.rst           |    8 +
 .../doc/source/widgets/consolewidget.rst      |    6 +
 .../doc/source/widgets/datatreewidget.rst     |    8 +
 .../doc/source/widgets/dockarea.rst           |    5 +
 .../doc/source/widgets/feedbackbutton.rst     |    8 +
 .../doc/source/widgets/filedialog.rst         |    8 +
 .../doc/source/widgets/gradientwidget.rst     |    8 +
 .../source/widgets/graphicslayoutwidget.rst   |    8 +
 .../doc/source/widgets/graphicsview.rst       |    8 +
 .../doc/source/widgets/histogramlutwidget.rst |    8 +
 .../doc/source/widgets/imageview.rst          |    8 +
 .../doc/source/widgets/index.rst              |   42 +
 .../doc/source/widgets/joystickbutton.rst     |    8 +
 .../doc/source/widgets/layoutwidget.rst       |    8 +
 .../pyqtgraph-0.10.0/doc/source/widgets/make  |   31 +
 .../doc/source/widgets/matplotlibwidget.rst   |    8 +
 .../doc/source/widgets/multiplotwidget.rst    |    8 +
 .../doc/source/widgets/parametertree.rst      |    5 +
 .../doc/source/widgets/pathbutton.rst         |    8 +
 .../doc/source/widgets/plotwidget.rst         |    8 +
 .../doc/source/widgets/progressdialog.rst     |    8 +
 .../doc/source/widgets/remotegraphicsview.rst |    8 +
 .../doc/source/widgets/scatterplotwidget.rst  |    8 +
 .../doc/source/widgets/spinbox.rst            |    8 +
 .../doc/source/widgets/tablewidget.rst        |    8 +
 .../doc/source/widgets/treewidget.rst         |    8 +
 .../doc/source/widgets/valuelabel.rst         |    8 +
 .../doc/source/widgets/verticallabel.rst      |    8 +
 .../pyqtgraph-0.10.0/examples/Arrow.py        |   57 +
 .../pyqtgraph-0.10.0/examples/BarGraphItem.py |   41 +
 .../pyqtgraph-0.10.0/examples/CLIexample.py   |   26 +
 .../pyqtgraph-0.10.0/examples/ColorButton.py  |   33 +
 .../examples/ConsoleWidget.py                 |   36 +
 .../examples/CustomGraphItem.py               |  136 +
 .../pyqtgraph-0.10.0/examples/DataSlicing.py  |   64 +
 .../examples/DataTreeWidget.py                |   35 +
 .../pyqtgraph-0.10.0/examples/Draw.py         |   49 +
 .../pyqtgraph-0.10.0/examples/ErrorBarItem.py |   33 +
 .../examples/FillBetweenItem.py               |   52 +
 .../pyqtgraph-0.10.0/examples/Flowchart.py    |   84 +
 .../examples/FlowchartCustomNode.py           |  159 ++
 .../examples/GLBarGraphItem.py                |   47 +
 .../pyqtgraph-0.10.0/examples/GLImageItem.py  |   57 +
 .../pyqtgraph-0.10.0/examples/GLIsosurface.py |   75 +
 .../examples/GLLinePlotItem.py                |   52 +
 .../pyqtgraph-0.10.0/examples/GLMeshItem.py   |  129 +
 .../examples/GLScatterPlotItem.py             |  113 +
 .../examples/GLSurfacePlot.py                 |   99 +
 .../pyqtgraph-0.10.0/examples/GLViewWidget.py |   34 +
 .../pyqtgraph-0.10.0/examples/GLVolumeItem.py |   69 +
 .../pyqtgraph-0.10.0/examples/GLshaders.py    |  110 +
 .../examples/GradientEditor.py                |   28 +
 .../examples/GradientWidget.py                |   55 +
 .../pyqtgraph-0.10.0/examples/GraphItem.py    |   67 +
 .../examples/GraphicsLayout.py                |   87 +
 .../examples/GraphicsScene.py                 |   66 +
 .../pyqtgraph-0.10.0/examples/HistogramLUT.py |   54 +
 .../pyqtgraph-0.10.0/examples/ImageItem.py    |   61 +
 .../pyqtgraph-0.10.0/examples/ImageView.py    |   70 +
 .../pyqtgraph-0.10.0/examples/InfiniteLine.py |   45 +
 .../examples/JoystickButton.py                |   56 +
 .../pyqtgraph-0.10.0/examples/Legend.py       |   27 +
 .../pyqtgraph-0.10.0/examples/LogPlotTest.py  |   37 +
 .../examples/MouseSelection.py                |   37 +
 .../examples/MultiPlotSpeedTest.py            |   77 +
 .../examples/MultiPlotWidget.py               |   41 +
 .../examples/MultiplePlotAxes.py              |   67 +
 .../pyqtgraph-0.10.0/examples/PanningPlot.py  |   37 +
 .../examples/PlotAutoRange.py                 |   50 +
 .../examples/PlotSpeedTest.py                 |   57 +
 .../pyqtgraph-0.10.0/examples/PlotWidget.py   |   94 +
 .../pyqtgraph-0.10.0/examples/Plotting.py     |  103 +
 .../pyqtgraph-0.10.0/examples/ROIExamples.py  |  168 ++
 .../pyqtgraph-0.10.0/examples/ROItypes.py     |  127 +
 .../examples/RemoteGraphicsView.py            |   34 +
 .../examples/RemoteSpeedTest.py               |   79 +
 .../pyqtgraph-0.10.0/examples/ScaleBar.py     |   31 +
 .../pyqtgraph-0.10.0/examples/ScatterPlot.py  |  102 +
 .../examples/ScatterPlotSpeedTest.py          |   77 +
 .../examples/ScatterPlotSpeedTestTemplate.ui  |   59 +
 .../ScatterPlotSpeedTestTemplate_pyqt.py      |   49 +
 .../ScatterPlotSpeedTestTemplate_pyside.py    |   44 +
 .../examples/ScatterPlotWidget.py             |   70 +
 .../pyqtgraph-0.10.0/examples/SimplePlot.py   |   12 +
 .../pyqtgraph-0.10.0/examples/SpinBox.py      |  122 +
 .../pyqtgraph-0.10.0/examples/Symbols.py      |   38 +
 .../pyqtgraph-0.10.0/examples/TableWidget.py  |   34 +
 .../pyqtgraph-0.10.0/examples/TreeWidget.py   |   55 +
 .../examples/VideoSpeedTest.py                |  203 ++
 .../examples/VideoTemplate.ui                 |  339 +++
 .../examples/VideoTemplate_pyqt.py            |  212 ++
 .../examples/VideoTemplate_pyqt5.py           |  199 ++
 .../examples/VideoTemplate_pyside.py          |  199 ++
 .../pyqtgraph-0.10.0/examples/ViewBox.py      |  100 +
 .../examples/ViewBoxFeatures.py               |   90 +
 .../pyqtgraph-0.10.0/examples/ViewLimits.py   |   15 +
 .../pyqtgraph-0.10.0/examples/__init__.py     |    1 +
 .../pyqtgraph-0.10.0/examples/__main__.py     |  143 +
 .../pyqtgraph-0.10.0/examples/beeswarm.py     |   38 +
 .../pyqtgraph-0.10.0/examples/contextMenu.py  |  142 +
 .../pyqtgraph-0.10.0/examples/crosshair.py    |   87 +
 .../examples/customGraphicsItem.py            |   61 +
 .../pyqtgraph-0.10.0/examples/customPlot.py   |   84 +
 .../examples/cx_freeze/plotTest.py            |   20 +
 .../examples/cx_freeze/setup.py               |   36 +
 .../examples/designerExample.py               |   46 +
 .../examples/designerExample.ui               |   38 +
 .../pyqtgraph-0.10.0/examples/dockarea.py     |  118 +
 .../examples/exampleLoaderTemplate.ui         |  142 +
 .../examples/exampleLoaderTemplate_pyqt.py    |  106 +
 .../examples/exampleLoaderTemplate_pyqt5.py   |   93 +
 .../examples/exampleLoaderTemplate_pyside.py  |   92 +
 .../pyqtgraph-0.10.0/examples/hdf5.py         |  155 ++
 .../pyqtgraph-0.10.0/examples/histogram.py    |   36 +
 .../examples/imageAnalysis.py                 |  101 +
 .../examples/infiniteline_performance.py      |   52 +
 .../pyqtgraph-0.10.0/examples/initExample.py  |   50 +
 .../pyqtgraph-0.10.0/examples/isocurve.py     |   60 +
 .../pyqtgraph-0.10.0/examples/linkedViews.py  |   50 +
 .../pyqtgraph-0.10.0/examples/logAxis.py      |   42 +
 .../examples/multiplePlotSpeedTest.py         |   93 +
 .../pyqtgraph-0.10.0/examples/multiprocess.py |   59 +
 .../examples/optics/__init__.py               |    1 +
 .../examples/optics/pyoptic.py                |  582 ++++
 .../examples/optics/schott_glasses.csv.gz     |  Bin 0 -> 37232 bytes
 .../pyqtgraph-0.10.0/examples/optics_demos.py |  170 ++
 .../pyqtgraph-0.10.0/examples/parallelize.py  |   65 +
 .../examples/parametertree.py                 |  175 ++
 .../examples/py2exe/plotTest.py               |   20 +
 .../pyqtgraph-0.10.0/examples/py2exe/setup.py |   36 +
 .../examples/relativity/__init__.py           |    1 +
 .../relativity/presets/Grid Expansion.cfg     |  411 +++
 .../presets/Twin Paradox (grid).cfg           |  667 +++++
 .../relativity/presets/Twin Paradox.cfg       |  538 ++++
 .../examples/relativity/relativity.py         |  772 ++++++
 .../examples/relativity_demo.py               |   23 +
 .../examples/scrollingPlots.py                |  118 +
 .../pyqtgraph-0.10.0/examples/template.py     |   22 +
 .../examples/test_examples.py                 |   37 +
 .../pyqtgraph-0.10.0/examples/text.py         |   61 +
 .../pyqtgraph-0.10.0/examples/utils.py        |  165 ++
 .../examples/verlet_chain/__init__.py         |    1 +
 .../examples/verlet_chain/chain.py            |  115 +
 .../examples/verlet_chain/make                |    3 +
 .../examples/verlet_chain/relax.c             |   48 +
 .../examples/verlet_chain/relax.py            |   70 +
 .../examples/verlet_chain_demo.py             |  126 +
 .../pyqtgraph/GraphicsScene/GraphicsScene.py  |  550 ++++
 .../pyqtgraph/GraphicsScene/__init__.py       |    0
 .../pyqtgraph/GraphicsScene/exportDialog.py   |  144 +
 .../GraphicsScene/exportDialogTemplate.ui     |    0
 .../exportDialogTemplate_pyqt.py              |    0
 .../exportDialogTemplate_pyqt5.py             |    0
 .../exportDialogTemplate_pyside.py            |    0
 .../pyqtgraph/GraphicsScene/mouseEvents.py    |  380 +++
 .../pyqtgraph-0.10.0}/pyqtgraph/PlotData.py   |    0
 .../pyqtgraph-0.10.0}/pyqtgraph/Point.py      |    0
 .../pyqtgraph-0.10.0/pyqtgraph/Qt.py          |  241 ++
 .../pyqtgraph/SRTTransform.py                 |  260 ++
 .../pyqtgraph/SRTTransform3D.py               |    0
 .../pyqtgraph/SignalProxy.py                  |    0
 .../pyqtgraph/ThreadsafeTimer.py              |    0
 .../pyqtgraph/Transform3D.py                  |    0
 .../pyqtgraph-0.10.0}/pyqtgraph/Vector.py     |    0
 .../pyqtgraph/WidgetGroup.py                  |    0
 .../pyqtgraph-0.10.0/pyqtgraph/__init__.py    |  456 ++++
 .../pyqtgraph/canvas/Canvas.py                |    0
 .../pyqtgraph/canvas/CanvasItem.py            |    0
 .../pyqtgraph/canvas/CanvasManager.py         |    0
 .../pyqtgraph/canvas/CanvasTemplate.ui        |    0
 .../pyqtgraph/canvas/CanvasTemplate_pyqt.py   |    0
 .../pyqtgraph/canvas/CanvasTemplate_pyqt5.py  |    0
 .../pyqtgraph/canvas/CanvasTemplate_pyside.py |    0
 .../pyqtgraph/canvas/TransformGuiTemplate.ui  |    0
 .../canvas/TransformGuiTemplate_pyqt.py       |    0
 .../canvas/TransformGuiTemplate_pyqt5.py      |    0
 .../canvas/TransformGuiTemplate_pyside.py     |    0
 .../pyqtgraph/canvas/__init__.py              |    0
 .../pyqtgraph-0.10.0/pyqtgraph/colormap.py    |  254 ++
 .../pyqtgraph-0.10.0/pyqtgraph/configfile.py  |  218 ++
 .../pyqtgraph/console/CmdInput.py             |    0
 .../pyqtgraph/console/Console.py              |  389 +++
 .../pyqtgraph/console/__init__.py             |    0
 .../pyqtgraph/console/template.ui             |    0
 .../pyqtgraph/console/template_pyqt.py        |    0
 .../pyqtgraph/console/template_pyqt5.py       |    0
 .../pyqtgraph/console/template_pyside.py      |    0
 .../pyqtgraph-0.10.0/pyqtgraph/debug.py       | 1188 +++++++++
 .../pyqtgraph/dockarea/Container.py           |    0
 .../pyqtgraph/dockarea/Dock.py                |    0
 .../pyqtgraph/dockarea/DockArea.py            |  333 +++
 .../pyqtgraph/dockarea/DockDrop.py            |    0
 .../pyqtgraph/dockarea/__init__.py            |    0
 .../pyqtgraph/dockarea/tests/test_dock.py     |    0
 .../pyqtgraph/exceptionHandling.py            |    0
 .../pyqtgraph/exporters/CSVExporter.py        |    0
 .../pyqtgraph/exporters/Exporter.py           |  139 +
 .../pyqtgraph/exporters/HDF5Exporter.py       |    0
 .../pyqtgraph/exporters/ImageExporter.py      |    0
 .../pyqtgraph/exporters/Matplotlib.py         |    0
 .../pyqtgraph/exporters/PrintExporter.py      |    0
 .../pyqtgraph/exporters/SVGExporter.py        |    0
 .../pyqtgraph/exporters/__init__.py           |    0
 .../pyqtgraph/exporters/tests/__init__.py     |    0
 .../pyqtgraph/exporters/tests/test_csv.py     |   57 +
 .../pyqtgraph/exporters/tests/test_svg.py     |   77 +
 .../pyqtgraph/flowchart/Flowchart.py          |  936 +++++++
 .../flowchart/FlowchartCtrlTemplate.ui        |    0
 .../flowchart/FlowchartCtrlTemplate_pyqt.py   |    0
 .../flowchart/FlowchartCtrlTemplate_pyqt5.py  |    0
 .../flowchart/FlowchartCtrlTemplate_pyside.py |    0
 .../flowchart/FlowchartGraphicsView.py        |   41 +
 .../pyqtgraph/flowchart/FlowchartTemplate.ui  |    0
 .../flowchart/FlowchartTemplate_pyqt.py       |    0
 .../flowchart/FlowchartTemplate_pyqt5.py      |    0
 .../flowchart/FlowchartTemplate_pyside.py     |    0
 .../pyqtgraph/flowchart/Node.py               |  643 +++++
 .../pyqtgraph/flowchart/NodeLibrary.py        |    0
 .../pyqtgraph/flowchart/Terminal.py           |  567 ++++
 .../pyqtgraph/flowchart/__init__.py           |    0
 .../pyqtgraph/flowchart/library/Data.py       |    0
 .../pyqtgraph/flowchart/library/Display.py    |    0
 .../pyqtgraph/flowchart/library/Filters.py    |  353 +++
 .../pyqtgraph/flowchart/library/Operators.py  |    0
 .../pyqtgraph/flowchart/library/__init__.py   |    0
 .../pyqtgraph/flowchart/library/common.py     |    0
 .../pyqtgraph/flowchart/library/functions.py  |  357 +++
 .../pyqtgraph/frozenSupport.py                |    0
 .../pyqtgraph-0.10.0/pyqtgraph/functions.py   | 2324 ++++++++++++++++
 .../pyqtgraph/graphicsItems/ArrowItem.py      |    0
 .../pyqtgraph/graphicsItems/AxisItem.py       |    0
 .../pyqtgraph/graphicsItems/BarGraphItem.py   |    0
 .../pyqtgraph/graphicsItems/ButtonItem.py     |    0
 .../pyqtgraph/graphicsItems/CurvePoint.py     |  122 +
 .../pyqtgraph/graphicsItems/ErrorBarItem.py   |    0
 .../graphicsItems/FillBetweenItem.py          |   83 +
 .../graphicsItems/GradientEditorItem.py       |  941 +++++++
 .../pyqtgraph/graphicsItems/GradientLegend.py |    0
 .../pyqtgraph/graphicsItems/GraphItem.py      |    0
 .../pyqtgraph/graphicsItems/GraphicsItem.py   |  581 ++++
 .../pyqtgraph/graphicsItems/GraphicsLayout.py |    0
 .../pyqtgraph/graphicsItems/GraphicsObject.py |    0
 .../pyqtgraph/graphicsItems/GraphicsWidget.py |    0
 .../graphicsItems/GraphicsWidgetAnchor.py     |    0
 .../pyqtgraph/graphicsItems/GridItem.py       |    0
 .../graphicsItems/HistogramLUTItem.py         |  215 ++
 .../pyqtgraph/graphicsItems/ImageItem.py      |  611 +++++
 .../pyqtgraph/graphicsItems/InfiniteLine.py   |  470 ++++
 .../pyqtgraph/graphicsItems/IsocurveItem.py   |  111 +
 .../pyqtgraph/graphicsItems/ItemGroup.py      |    0
 .../pyqtgraph/graphicsItems/LabelItem.py      |    0
 .../pyqtgraph/graphicsItems/LegendItem.py     |    0
 .../graphicsItems/LinearRegionItem.py         |    0
 .../pyqtgraph/graphicsItems/MultiPlotItem.py  |    0
 .../pyqtgraph/graphicsItems/PlotCurveItem.py  |  606 +++++
 .../pyqtgraph/graphicsItems/PlotDataItem.py   |  871 ++++++
 .../graphicsItems/PlotItem/PlotItem.py        | 1230 +++++++++
 .../graphicsItems/PlotItem/__init__.py        |    0
 .../PlotItem/plotConfigTemplate.ui            |    0
 .../PlotItem/plotConfigTemplate_pyqt.py       |    0
 .../PlotItem/plotConfigTemplate_pyqt5.py      |    0
 .../PlotItem/plotConfigTemplate_pyside.py     |    0
 .../pyqtgraph/graphicsItems/ROI.py            | 2331 +++++++++++++++++
 .../pyqtgraph/graphicsItems/ScaleBar.py       |    0
 .../graphicsItems/ScatterPlotItem.py          |  979 +++++++
 .../pyqtgraph/graphicsItems/TextItem.py       |  203 ++
 .../pyqtgraph/graphicsItems/UIGraphicsItem.py |    0
 .../pyqtgraph/graphicsItems/VTickGroup.py     |    0
 .../graphicsItems/ViewBox/ViewBox.py          | 1769 +++++++++++++
 .../graphicsItems/ViewBox/ViewBoxMenu.py      |    0
 .../graphicsItems/ViewBox/__init__.py         |    0
 .../graphicsItems/ViewBox/axisCtrlTemplate.ui |    0
 .../ViewBox/axisCtrlTemplate_pyqt.py          |    0
 .../ViewBox/axisCtrlTemplate_pyqt5.py         |    0
 .../ViewBox/axisCtrlTemplate_pyside.py        |    0
 .../ViewBox/tests/test_ViewBox.py             |   93 +
 .../pyqtgraph/graphicsItems/__init__.py       |    0
 .../graphicsItems/tests/test_GraphicsItem.py  |    0
 .../graphicsItems/tests/test_ImageItem.py     |  147 ++
 .../graphicsItems/tests/test_InfiniteLine.py  |   96 +
 .../graphicsItems/tests/test_PlotCurveItem.py |   34 +
 .../pyqtgraph/graphicsItems/tests/test_ROI.py |  226 ++
 .../tests/test_ScatterPlotItem.py             |   90 +
 .../pyqtgraph/graphicsWindows.py              |    0
 .../pyqtgraph/imageview/ImageView.py          |  770 ++++++
 .../pyqtgraph/imageview/ImageViewTemplate.ui  |    0
 .../imageview/ImageViewTemplate_pyqt.py       |    0
 .../imageview/ImageViewTemplate_pyqt5.py      |    0
 .../imageview/ImageViewTemplate_pyside.py     |    0
 .../pyqtgraph/imageview/__init__.py           |    0
 .../imageview/tests/test_imageview.py         |   12 +
 .../pyqtgraph/metaarray/MetaArray.py          | 1509 +++++++++++
 .../pyqtgraph/metaarray/__init__.py           |    0
 .../pyqtgraph/metaarray/license.txt           |    0
 .../pyqtgraph/metaarray/readMeta.m            |   86 +
 .../pyqtgraph/multiprocess/__init__.py        |    0
 .../pyqtgraph/multiprocess/bootstrap.py       |    0
 .../pyqtgraph/multiprocess/parallelizer.py    |  332 +++
 .../pyqtgraph/multiprocess/processes.py       |  477 ++++
 .../pyqtgraph/multiprocess/remoteproxy.py     | 1126 ++++++++
 .../pyqtgraph-0.10.0}/pyqtgraph/numpy_fix.py  |    0
 .../pyqtgraph/opengl/GLGraphicsItem.py        |  300 +++
 .../pyqtgraph/opengl/GLViewWidget.py          |  471 ++++
 .../pyqtgraph/opengl/MeshData.py              |  506 ++++
 .../pyqtgraph/opengl/__init__.py              |    0
 .../pyqtgraph/opengl/glInfo.py                |    0
 .../pyqtgraph/opengl/items/GLAxisItem.py      |    0
 .../pyqtgraph/opengl/items/GLBarGraphItem.py  |    0
 .../pyqtgraph/opengl/items/GLBoxItem.py       |    0
 .../pyqtgraph/opengl/items/GLGridItem.py      |    0
 .../pyqtgraph/opengl/items/GLImageItem.py     |    0
 .../pyqtgraph/opengl/items/GLLinePlotItem.py  |    0
 .../pyqtgraph/opengl/items/GLMeshItem.py      |    0
 .../opengl/items/GLScatterPlotItem.py         |    0
 .../opengl/items/GLSurfacePlotItem.py         |    0
 .../pyqtgraph/opengl/items/GLVolumeItem.py    |    0
 .../pyqtgraph/opengl/items/__init__.py        |    0
 .../pyqtgraph/opengl/shaders.py               |    0
 .../pyqtgraph/ordereddict.py                  |    0
 .../pyqtgraph/parametertree/Parameter.py      |  767 ++++++
 .../pyqtgraph/parametertree/ParameterItem.py  |    0
 .../parametertree/ParameterSystem.py          |    0
 .../pyqtgraph/parametertree/ParameterTree.py  |    0
 .../pyqtgraph/parametertree/SystemSolver.py   |  381 +++
 .../pyqtgraph/parametertree/__init__.py       |    0
 .../pyqtgraph/parametertree/parameterTypes.py |  651 +++++
 .../tests/test_parametertypes.py              |   18 +
 .../pyqtgraph/pgcollections.py                |    0
 .../pyqtgraph/pixmaps/__init__.py             |   27 +
 .../pyqtgraph/pixmaps/auto.png                |  Bin
 .../pyqtgraph/pixmaps/compile.py              |    0
 .../pyqtgraph/pixmaps/ctrl.png                |  Bin
 .../pyqtgraph/pixmaps/default.png             |  Bin
 .../pyqtgraph/pixmaps/icons.svg               |    0
 .../pyqtgraph/pixmaps/lock.png                |  Bin
 .../pyqtgraph/pixmaps/pixmapData_2.py         |    0
 .../pyqtgraph/pixmaps/pixmapData_3.py         |    0
 .../pyqtgraph-0.10.0}/pyqtgraph/ptime.py      |    0
 .../pyqtgraph-0.10.0/pyqtgraph/python2_3.py   |   58 +
 .../pyqtgraph-0.10.0}/pyqtgraph/reload.py     |    0
 .../pyqtgraph/tests/__init__.py               |    2 +
 .../pyqtgraph/tests/image_testing.py          |  634 +++++
 .../pyqtgraph/tests/test_exit_crash.py        |   42 +
 .../pyqtgraph/tests/test_functions.py         |  301 +++
 .../pyqtgraph/tests/test_qt.py                |   25 +
 .../pyqtgraph/tests/test_ref_cycles.py        |   88 +
 .../pyqtgraph/tests/test_srttransform3d.py    |    0
 .../pyqtgraph/tests/test_stability.py         |  160 ++
 .../pyqtgraph/tests/ui_testing.py             |   55 +
 .../pyqtgraph/tests/uictest.ui                |    0
 .../pyqtgraph-0.10.0}/pyqtgraph/units.py      |    0
 .../pyqtgraph/util/__init__.py                |    0
 .../pyqtgraph/util/colorama/LICENSE.txt       |    0
 .../pyqtgraph/util/colorama/README.txt        |    0
 .../pyqtgraph/util/colorama/__init__.py       |    0
 .../pyqtgraph/util/colorama/win32.py          |    0
 .../pyqtgraph/util/colorama/winterm.py        |    0
 .../pyqtgraph-0.10.0/pyqtgraph/util/cprint.py |  102 +
 .../pyqtgraph/util/garbage_collector.py       |   50 +
 .../pyqtgraph/util/lru_cache.py               |    0
 .../pyqtgraph-0.10.0}/pyqtgraph/util/mutex.py |    0
 .../pyqtgraph/util/pil_fix.py                 |    0
 .../pyqtgraph/util/tests/test_lru_cache.py    |    0
 .../pyqtgraph/widgets/BusyCursor.py           |    0
 .../pyqtgraph/widgets/CheckTable.py           |    0
 .../pyqtgraph/widgets/ColorButton.py          |    0
 .../pyqtgraph/widgets/ColorMapWidget.py       |    0
 .../pyqtgraph/widgets/ComboBox.py             |  218 ++
 .../pyqtgraph/widgets/DataFilterWidget.py     |    0
 .../pyqtgraph/widgets/DataTreeWidget.py       |    0
 .../pyqtgraph/widgets/FeedbackButton.py       |    0
 .../pyqtgraph/widgets/FileDialog.py           |    0
 .../pyqtgraph/widgets/GradientWidget.py       |    0
 .../pyqtgraph/widgets/GraphicsLayoutWidget.py |    0
 .../pyqtgraph/widgets/GraphicsView.py         |  401 +++
 .../pyqtgraph/widgets/HistogramLUTWidget.py   |    0
 .../pyqtgraph/widgets/JoystickButton.py       |    0
 .../pyqtgraph/widgets/LayoutWidget.py         |    0
 .../pyqtgraph/widgets/MatplotlibWidget.py     |   49 +
 .../pyqtgraph/widgets/MultiPlotWidget.py      |    0
 .../pyqtgraph/widgets/PathButton.py           |    0
 .../pyqtgraph/widgets/PlotWidget.py           |   99 +
 .../pyqtgraph/widgets/ProgressDialog.py       |    0
 .../pyqtgraph/widgets/RawImageWidget.py       |  143 +
 .../pyqtgraph/widgets/RemoteGraphicsView.py   |  273 ++
 .../pyqtgraph/widgets/ScatterPlotWidget.py    |    0
 .../pyqtgraph/widgets/SpinBox.py              |  500 ++++
 .../pyqtgraph/widgets/TableWidget.py          |  498 ++++
 .../pyqtgraph/widgets/TreeWidget.py           |  288 ++
 .../pyqtgraph/widgets/ValueLabel.py           |    0
 .../pyqtgraph/widgets/VerticalLabel.py        |    0
 .../pyqtgraph/widgets/__init__.py             |    0
 .../pyqtgraph/widgets/tests/test_combobox.py  |    0
 .../widgets/tests/test_tablewidget.py         |    0
 site-packages/pyqtgraph-0.10.0/setup.py       |  148 ++
 .../tools/generateChangelog.py                |   80 +
 .../pyqtgraph-0.10.0/tools/pg-release.py      |  252 ++
 .../pyqtgraph-0.10.0/tools/py2exe.bat         |   10 +
 .../tools/py2exeSetupWindows.py               |   26 +
 site-packages/pyqtgraph-0.10.0/tools/pyuic5   |    2 +
 .../pyqtgraph-0.10.0/tools/rebuildUi.py       |   53 +
 .../tools/release_instructions.md             |   34 +
 .../pyqtgraph-0.10.0/tools/setupHelpers.py    |  560 ++++
 site-packages/pyqtgraph-0.10.0/tools/shell.py |   38 +
 site-packages/timeseriesviewer.pth            |    6 +
 506 files changed, 49961 insertions(+)
 create mode 100644 site-packages/pyqtgraph-0.10.0/.coveragerc
 create mode 100644 site-packages/pyqtgraph-0.10.0/.gitignore
 create mode 100644 site-packages/pyqtgraph-0.10.0/.mailmap
 create mode 100644 site-packages/pyqtgraph-0.10.0/.travis.yml
 create mode 100644 site-packages/pyqtgraph-0.10.0/CHANGELOG
 create mode 100644 site-packages/pyqtgraph-0.10.0/CONTRIBUTING.txt
 create mode 100644 site-packages/pyqtgraph-0.10.0/LICENSE.txt
 create mode 100644 site-packages/pyqtgraph-0.10.0/MANIFEST.in
 create mode 100644 site-packages/pyqtgraph-0.10.0/README.md
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/Makefile
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/extensions/qt_doc.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/listmissing.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/make.bat
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glaxisitem.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glgraphicsitem.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glgriditem.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glimageitem.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/gllineplotitem.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glmeshitem.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glscatterplotitem.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glsurfaceplotitem.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glviewwidget.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glvolumeitem.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/index.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/meshdata.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/apireference.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/colormap.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/conf.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/config_options.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/exporting.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/flowchart/flowchart.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/flowchart/index.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/flowchart/node.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/flowchart/terminal.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/functions.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/arrowitem.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/axisitem.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/buttonitem.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/curvearrow.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/curvepoint.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/errorbaritem.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/fillbetweenitem.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/gradienteditoritem.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/gradientlegend.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/graphicsitem.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/graphicslayout.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/graphicsobject.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/graphicswidget.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/graphicswidgetanchor.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/graphitem.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/griditem.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/histogramlutitem.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/imageitem.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/index.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/infiniteline.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/isocurveitem.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/labelitem.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/legenditem.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/linearregionitem.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/make
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/plotcurveitem.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/plotdataitem.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/plotitem.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/roi.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/scalebar.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/scatterplotitem.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/textitem.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/uigraphicsitem.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/viewbox.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/vtickgroup.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsscene/graphicsscene.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsscene/hoverevent.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsscene/index.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsscene/mouseclickevent.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicsscene/mousedragevent.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/graphicswindow.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/how_to_use.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/images.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/images/plottingClasses.png
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/images/plottingClasses.svg
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/index.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/installation.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/internals.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/introduction.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/mouse_interaction.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/parametertree/apiref.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/parametertree/index.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/parametertree/parameter.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/parametertree/parameteritem.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/parametertree/parametertree.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/parametertree/parametertypes.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/plotting.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/prototyping.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/qtcrashcourse.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/region_of_interest.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/style.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/widgets/busycursor.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/widgets/checktable.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/widgets/colorbutton.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/widgets/colormapwidget.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/widgets/combobox.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/widgets/consolewidget.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/widgets/datatreewidget.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/widgets/dockarea.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/widgets/feedbackbutton.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/widgets/filedialog.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/widgets/gradientwidget.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/widgets/graphicslayoutwidget.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/widgets/graphicsview.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/widgets/histogramlutwidget.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/widgets/imageview.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/widgets/index.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/widgets/joystickbutton.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/widgets/layoutwidget.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/widgets/make
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/widgets/matplotlibwidget.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/widgets/multiplotwidget.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/widgets/parametertree.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/widgets/pathbutton.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/widgets/plotwidget.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/widgets/progressdialog.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/widgets/remotegraphicsview.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/widgets/scatterplotwidget.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/widgets/spinbox.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/widgets/tablewidget.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/widgets/treewidget.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/widgets/valuelabel.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/doc/source/widgets/verticallabel.rst
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/Arrow.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/BarGraphItem.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/CLIexample.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/ColorButton.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/ConsoleWidget.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/CustomGraphItem.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/DataSlicing.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/DataTreeWidget.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/Draw.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/ErrorBarItem.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/FillBetweenItem.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/Flowchart.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/FlowchartCustomNode.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/GLBarGraphItem.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/GLImageItem.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/GLIsosurface.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/GLLinePlotItem.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/GLMeshItem.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/GLScatterPlotItem.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/GLSurfacePlot.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/GLViewWidget.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/GLVolumeItem.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/GLshaders.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/GradientEditor.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/GradientWidget.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/GraphItem.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/GraphicsLayout.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/GraphicsScene.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/HistogramLUT.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/ImageItem.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/ImageView.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/InfiniteLine.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/JoystickButton.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/Legend.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/LogPlotTest.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/MouseSelection.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/MultiPlotSpeedTest.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/MultiPlotWidget.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/MultiplePlotAxes.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/PanningPlot.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/PlotAutoRange.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/PlotSpeedTest.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/PlotWidget.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/Plotting.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/ROIExamples.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/ROItypes.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/RemoteGraphicsView.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/RemoteSpeedTest.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/ScaleBar.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/ScatterPlot.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/ScatterPlotSpeedTest.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/ScatterPlotSpeedTestTemplate.ui
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/ScatterPlotSpeedTestTemplate_pyqt.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/ScatterPlotSpeedTestTemplate_pyside.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/ScatterPlotWidget.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/SimplePlot.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/SpinBox.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/Symbols.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/TableWidget.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/TreeWidget.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/VideoSpeedTest.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/VideoTemplate.ui
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/VideoTemplate_pyqt.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/VideoTemplate_pyqt5.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/VideoTemplate_pyside.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/ViewBox.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/ViewBoxFeatures.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/ViewLimits.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/__init__.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/__main__.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/beeswarm.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/contextMenu.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/crosshair.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/customGraphicsItem.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/customPlot.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/cx_freeze/plotTest.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/cx_freeze/setup.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/designerExample.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/designerExample.ui
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/dockarea.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/exampleLoaderTemplate.ui
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/exampleLoaderTemplate_pyqt.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/exampleLoaderTemplate_pyqt5.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/exampleLoaderTemplate_pyside.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/hdf5.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/histogram.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/imageAnalysis.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/infiniteline_performance.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/initExample.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/isocurve.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/linkedViews.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/logAxis.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/multiplePlotSpeedTest.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/multiprocess.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/optics/__init__.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/optics/pyoptic.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/optics/schott_glasses.csv.gz
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/optics_demos.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/parallelize.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/parametertree.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/py2exe/plotTest.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/py2exe/setup.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/relativity/__init__.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/relativity/presets/Grid Expansion.cfg
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/relativity/presets/Twin Paradox (grid).cfg
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/relativity/presets/Twin Paradox.cfg
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/relativity/relativity.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/relativity_demo.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/scrollingPlots.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/template.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/test_examples.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/text.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/utils.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/verlet_chain/__init__.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/verlet_chain/chain.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/verlet_chain/make
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/verlet_chain/relax.c
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/verlet_chain/relax.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/examples/verlet_chain_demo.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/GraphicsScene/GraphicsScene.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/GraphicsScene/__init__.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/GraphicsScene/exportDialog.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/GraphicsScene/exportDialogTemplate.ui (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/GraphicsScene/exportDialogTemplate_pyqt.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/GraphicsScene/exportDialogTemplate_pyqt5.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/GraphicsScene/exportDialogTemplate_pyside.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/GraphicsScene/mouseEvents.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/PlotData.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/Point.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/Qt.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/SRTTransform.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/SRTTransform3D.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/SignalProxy.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/ThreadsafeTimer.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/Transform3D.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/Vector.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/WidgetGroup.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/__init__.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/canvas/Canvas.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/canvas/CanvasItem.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/canvas/CanvasManager.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/canvas/CanvasTemplate.ui (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/canvas/CanvasTemplate_pyqt.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/canvas/CanvasTemplate_pyqt5.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/canvas/CanvasTemplate_pyside.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/canvas/TransformGuiTemplate.ui (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/canvas/TransformGuiTemplate_pyqt.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/canvas/TransformGuiTemplate_pyqt5.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/canvas/TransformGuiTemplate_pyside.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/canvas/__init__.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/colormap.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/configfile.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/console/CmdInput.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/console/Console.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/console/__init__.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/console/template.ui (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/console/template_pyqt.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/console/template_pyqt5.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/console/template_pyside.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/debug.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/dockarea/Container.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/dockarea/Dock.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/dockarea/DockArea.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/dockarea/DockDrop.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/dockarea/__init__.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/dockarea/tests/test_dock.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/exceptionHandling.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/exporters/CSVExporter.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/exporters/Exporter.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/exporters/HDF5Exporter.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/exporters/ImageExporter.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/exporters/Matplotlib.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/exporters/PrintExporter.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/exporters/SVGExporter.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/exporters/__init__.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/exporters/tests/__init__.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/exporters/tests/test_csv.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/exporters/tests/test_svg.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/Flowchart.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/flowchart/FlowchartCtrlTemplate.ui (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/flowchart/FlowchartCtrlTemplate_pyqt.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/flowchart/FlowchartCtrlTemplate_pyqt5.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/flowchart/FlowchartCtrlTemplate_pyside.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/FlowchartGraphicsView.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/flowchart/FlowchartTemplate.ui (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/flowchart/FlowchartTemplate_pyqt.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/flowchart/FlowchartTemplate_pyqt5.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/flowchart/FlowchartTemplate_pyside.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/Node.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/flowchart/NodeLibrary.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/Terminal.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/flowchart/__init__.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/flowchart/library/Data.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/flowchart/library/Display.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/library/Filters.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/flowchart/library/Operators.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/flowchart/library/__init__.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/flowchart/library/common.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/library/functions.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/frozenSupport.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/functions.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/ArrowItem.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/AxisItem.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/BarGraphItem.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/ButtonItem.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/CurvePoint.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/ErrorBarItem.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/FillBetweenItem.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/GradientEditorItem.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/GradientLegend.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/GraphItem.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/GraphicsItem.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/GraphicsLayout.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/GraphicsObject.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/GraphicsWidget.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/GraphicsWidgetAnchor.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/GridItem.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/HistogramLUTItem.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ImageItem.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/InfiniteLine.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/IsocurveItem.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/ItemGroup.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/LabelItem.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/LegendItem.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/LinearRegionItem.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/MultiPlotItem.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/PlotCurveItem.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/PlotDataItem.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/PlotItem/PlotItem.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/PlotItem/__init__.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/PlotItem/plotConfigTemplate.ui (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/PlotItem/plotConfigTemplate_pyqt.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/PlotItem/plotConfigTemplate_pyqt5.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/PlotItem/plotConfigTemplate_pyside.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ROI.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/ScaleBar.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ScatterPlotItem.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/TextItem.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/UIGraphicsItem.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/VTickGroup.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ViewBox/ViewBox.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/ViewBox/ViewBoxMenu.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/ViewBox/__init__.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/ViewBox/axisCtrlTemplate.ui (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/ViewBox/axisCtrlTemplate_pyqt.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/ViewBox/axisCtrlTemplate_pyqt5.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/ViewBox/axisCtrlTemplate_pyside.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ViewBox/tests/test_ViewBox.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/__init__.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsItems/tests/test_GraphicsItem.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/tests/test_ImageItem.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/tests/test_InfiniteLine.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/tests/test_PlotCurveItem.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/tests/test_ROI.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/tests/test_ScatterPlotItem.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/graphicsWindows.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/imageview/ImageView.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/imageview/ImageViewTemplate.ui (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/imageview/ImageViewTemplate_pyqt.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/imageview/ImageViewTemplate_pyqt5.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/imageview/ImageViewTemplate_pyside.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/imageview/__init__.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/imageview/tests/test_imageview.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/metaarray/MetaArray.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/metaarray/__init__.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/metaarray/license.txt (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/metaarray/readMeta.m
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/multiprocess/__init__.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/multiprocess/bootstrap.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/multiprocess/parallelizer.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/multiprocess/processes.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/multiprocess/remoteproxy.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/numpy_fix.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/GLGraphicsItem.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/GLViewWidget.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/MeshData.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/opengl/__init__.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/opengl/glInfo.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/opengl/items/GLAxisItem.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/opengl/items/GLBarGraphItem.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/opengl/items/GLBoxItem.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/opengl/items/GLGridItem.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/opengl/items/GLImageItem.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/opengl/items/GLLinePlotItem.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/opengl/items/GLMeshItem.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/opengl/items/GLScatterPlotItem.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/opengl/items/GLSurfacePlotItem.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/opengl/items/GLVolumeItem.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/items/__init__.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/opengl/shaders.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/ordereddict.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/parametertree/Parameter.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/parametertree/ParameterItem.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/parametertree/ParameterSystem.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/parametertree/ParameterTree.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/parametertree/SystemSolver.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/parametertree/__init__.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/parametertree/parameterTypes.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/parametertree/tests/test_parametertypes.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/pgcollections.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/pixmaps/__init__.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/pixmaps/auto.png (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/pixmaps/compile.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/pixmaps/ctrl.png (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/pixmaps/default.png (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/pixmaps/icons.svg (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/pixmaps/lock.png (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/pixmaps/pixmapData_2.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/pixmaps/pixmapData_3.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/ptime.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/python2_3.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/reload.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/__init__.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/image_testing.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/test_exit_crash.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/test_functions.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/test_qt.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/test_ref_cycles.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/tests/test_srttransform3d.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/test_stability.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/ui_testing.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/tests/uictest.ui (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/units.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/util/__init__.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/util/colorama/LICENSE.txt (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/util/colorama/README.txt (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/util/colorama/__init__.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/util/colorama/win32.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/util/colorama/winterm.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/util/cprint.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/util/garbage_collector.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/util/lru_cache.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/util/mutex.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/util/pil_fix.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/util/tests/test_lru_cache.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/widgets/BusyCursor.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/widgets/CheckTable.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/widgets/ColorButton.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/widgets/ColorMapWidget.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/ComboBox.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/widgets/DataFilterWidget.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/widgets/DataTreeWidget.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/widgets/FeedbackButton.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/widgets/FileDialog.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/widgets/GradientWidget.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/widgets/GraphicsLayoutWidget.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/GraphicsView.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/widgets/HistogramLUTWidget.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/widgets/JoystickButton.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/widgets/LayoutWidget.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/MatplotlibWidget.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/widgets/MultiPlotWidget.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/widgets/PathButton.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/PlotWidget.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/widgets/ProgressDialog.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/RawImageWidget.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/RemoteGraphicsView.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/widgets/ScatterPlotWidget.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/SpinBox.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/TableWidget.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/TreeWidget.py
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/widgets/ValueLabel.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/widgets/VerticalLabel.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/widgets/__init__.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/widgets/tests/test_combobox.py (100%)
 rename {libs => site-packages/pyqtgraph-0.10.0}/pyqtgraph/widgets/tests/test_tablewidget.py (100%)
 create mode 100644 site-packages/pyqtgraph-0.10.0/setup.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/tools/generateChangelog.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/tools/pg-release.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/tools/py2exe.bat
 create mode 100644 site-packages/pyqtgraph-0.10.0/tools/py2exeSetupWindows.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/tools/pyuic5
 create mode 100644 site-packages/pyqtgraph-0.10.0/tools/rebuildUi.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/tools/release_instructions.md
 create mode 100644 site-packages/pyqtgraph-0.10.0/tools/setupHelpers.py
 create mode 100644 site-packages/pyqtgraph-0.10.0/tools/shell.py
 create mode 100644 site-packages/timeseriesviewer.pth

diff --git a/site-packages/pyqtgraph-0.10.0/.coveragerc b/site-packages/pyqtgraph-0.10.0/.coveragerc
new file mode 100644
index 00000000..29e546b2
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/.coveragerc
@@ -0,0 +1,19 @@
+[run]
+source = pyqtgraph
+branch = True
+[report]
+omit =
+    */python?.?/*
+    */site-packages/nose/*
+    *test*
+    */__pycache__/*
+    *.pyc
+exclude_lines =
+    pragma: no cover
+    def __repr__
+    if self\.debug
+    raise AssertionError
+    raise NotImplementedError
+    if 0:
+    if __name__ == .__main__.:
+ignore_errors = True
diff --git a/site-packages/pyqtgraph-0.10.0/.gitignore b/site-packages/pyqtgraph-0.10.0/.gitignore
new file mode 100644
index 00000000..78309170
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/.gitignore
@@ -0,0 +1,109 @@
+# Byte-compiled / optimized / DLL files
+__pycache__/
+*.py[cod]
+
+# C extensions
+*.so
+
+# Distribution / packaging
+.Python
+env/
+bin/
+build/
+develop-eggs/
+dist/
+eggs/
+lib/
+lib64/
+parts/
+sdist/
+var/
+*.egg-info/
+.installed.cfg
+*.egg
+doc/_build
+
+# PyInstaller
+#  Usually these files are written by a python script from a template
+#  before PyInstaller builds the exe, so as to inject date/other infos into it.
+*.manifest
+*.spec
+
+# Installer logs
+pip-log.txt
+pip-delete-this-directory.txt
+
+# Unit test / coverage reports
+htmlcov/
+.tox/
+cover/
+.coverage
+.cache
+nosetests.xml
+coverage.xml
+.coverage.*
+
+# Translations
+*.mo
+*.pot
+
+# Mr Developer
+.mr.developer.cfg
+.project
+.pydevproject
+
+# Rope
+.ropeproject
+
+# Django stuff:
+*.log
+*.pot
+
+# Sphinx documentation
+docs/_build/
+
+#mac
+.DS_Store
+*~
+
+#vim
+*.swp
+
+#pycharm
+.idea/*
+
+#Dolphin browser files
+.directory/
+.directory
+
+#Binary data files
+*.volume
+*.am
+*.tiff
+*.tif
+*.dat
+*.DAT
+
+#generated documntation files
+doc/resource/api/generated/
+
+# Enaml
+__enamlcache__/
+
+
+# PyBuilder
+target/
+
+# sphinx docs
+generated/
+
+MANIFEST
+deb_build
+rtr.cvs
+
+# pytest parallel
+.coverage
+
+# ctags
+.tags*
+
diff --git a/site-packages/pyqtgraph-0.10.0/.mailmap b/site-packages/pyqtgraph-0.10.0/.mailmap
new file mode 100644
index 00000000..025cf940
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/.mailmap
@@ -0,0 +1,12 @@
+Luke Campagnola <lcampagn@email.unc.edu> Luke Campagnola <>
+Luke Campagnola <lcampagn@email.unc.edu> Luke Campagnola <luke.campagnola@gmail.com>
+Megan Kratz <meganbkratz@gmail.com> meganbkratz@gmail.com <>
+Megan Kratz <meganbkratz@gmail.com> Megan Kratz <megankratz@megancomputer.local>
+Megan Kratz <meganbkratz@gmail.com> Megan Kratz <megankratz@wireless152023024102.med.unc.edu>
+Megan Kratz <meganbkratz@gmail.com> Megan Kratz <megankratz@wireless152023025209.med.unc.edu>
+Megan Kratz <meganbkratz@gmail.com> Megan Kratz <megankratz@p152023031037.med.unc.edu>
+Megan Kratz <meganbkratz@gmail.com> Megan Kratz <megankratz@wire152019114033.med.unc.edu>
+Megan Kratz <meganbkratz@gmail.com> Megan Kratz <megankratz@wireless152023024078.med.unc.edu>
+Ingo Breßler <dev@ingobressler.net> Ingo Breßler <ingo.bressler@bam.de>
+Ingo Breßler <dev@ingobressler.net> Ingo B. <dev@ingobressler.net>
+
diff --git a/site-packages/pyqtgraph-0.10.0/.travis.yml b/site-packages/pyqtgraph-0.10.0/.travis.yml
new file mode 100644
index 00000000..2c7b7769
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/.travis.yml
@@ -0,0 +1,198 @@
+language: python
+sudo: false
+# Credit: Original .travis.yml lifted from VisPy
+
+# Here we use anaconda for 2.6 and 3.3, since it provides the simplest
+# interface for running different versions of Python. We could also use
+# it for 2.7, but the Ubuntu system has installable 2.7 Qt4-GL, which
+# allows for more complete testing.
+notifications:
+  email: false
+
+virtualenv:
+    system_site_packages: true
+
+
+env:
+    # Enable python 2 and python 3 builds
+    # Note that the 2.6 build doesn't get flake8, and runs old versions of
+    # Pyglet and GLFW to make sure we deal with those correctly
+    - PYTHON=2.6 QT=pyqt4 TEST=standard
+    - PYTHON=2.7 QT=pyqt4 TEST=extra
+    - PYTHON=2.7 QT=pyside TEST=standard
+    - PYTHON=3.4 QT=pyqt5 TEST=standard
+    # - PYTHON=3.4 QT=pyside TEST=standard # pyside isn't available for 3.4 with conda
+    #- PYTHON=3.2 QT=pyqt5 TEST=standard
+
+
+before_install:
+    - if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-3.5.5-Linux-x86_64.sh -O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-3.5.5-Linux-x86_64.sh -O miniconda.sh; fi
+    - chmod +x miniconda.sh
+    - ./miniconda.sh -b -p /home/travis/mc
+    - export PATH=/home/travis/mc/bin:$PATH
+
+    # not sure what is if block is for
+    - if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
+          GIT_TARGET_EXTRA="+refs/heads/${TRAVIS_BRANCH}";
+          GIT_SOURCE_EXTRA="+refs/pull/${TRAVIS_PULL_REQUEST}/merge";
+      else
+          GIT_TARGET_EXTRA="";
+          GIT_SOURCE_EXTRA="";
+      fi;
+
+    # to aid in debugging
+    - echo ${TRAVIS_BRANCH}
+    - echo ${TRAVIS_REPO_SLUG}
+    - echo ${GIT_TARGET_EXTRA}
+    - echo ${GIT_SOURCE_EXTRA}
+
+install:
+    - export GIT_FULL_HASH=`git rev-parse HEAD`
+    - conda update conda --yes
+    - conda create -n test_env python=${PYTHON} --yes
+    - source activate test_env
+    - conda install numpy pyopengl pytest flake8 six coverage --yes
+    - echo ${QT}
+    - echo ${TEST}
+    - echo ${PYTHON}
+
+    - if [ "${QT}" == "pyqt5" ]; then
+          conda install pyqt --yes;
+      fi;
+    - if [ "${QT}" == "pyqt4" ]; then
+          conda install pyqt=4 --yes;
+      fi;
+    - if [ "${QT}" == "pyside" ]; then
+          conda install pyside --yes;
+      fi;
+    - pip install pytest-xdist # multi-thread py.test
+    - pip install pytest-cov # add coverage stats
+
+    # required for example testing on python 2.6
+    - if [ "${PYTHON}" == "2.6" ]; then
+        pip install importlib;
+      fi;
+
+    # Debugging helpers
+    - uname -a
+    - cat /etc/issue
+    - if [ "${PYTHON}" == "2.7" ]; then
+        python --version;
+      else
+        python3 --version;
+      fi;
+
+before_script:
+    # We need to create a (fake) display on Travis, let's use a funny resolution
+    - export DISPLAY=:99.0
+    - "sh -e /etc/init.d/xvfb start"
+    - /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1400x900x24 -ac +extension GLX +render
+
+    # Make sure everyone uses the correct python (this is handled by conda)
+    - which python
+    - python --version
+    - pwd
+    - ls
+    # Help color output from each test
+    - RESET='\033[0m';
+      RED='\033[00;31m';
+      GREEN='\033[00;32m';
+      YELLOW='\033[00;33m';
+      BLUE='\033[00;34m';
+      PURPLE='\033[00;35m';
+      CYAN='\033[00;36m';
+      WHITE='\033[00;37m';
+      start_test() {
+        echo -e "${BLUE}======== Starting $1 ========${RESET}";
+      };
+      check_output() {
+        ret=$?;
+        if [ $ret == 0 ]; then
+            echo -e "${GREEN}>>>>>>    $1 passed    <<<<<<${RESET}";
+        else
+            echo -e "${RED}>>>>>>    $1 FAILED    <<<<<<${RESET}";
+        fi;
+        return $ret;
+      };
+
+    - if [ "${TEST}" == "extra" ]; then
+        start_test "repo size check";
+        mkdir ~/repo-clone && cd ~/repo-clone &&
+        git init && git remote add -t ${TRAVIS_BRANCH} origin git://github.com/${TRAVIS_REPO_SLUG}.git &&
+        git fetch origin ${GIT_TARGET_EXTRA} &&
+        git checkout -qf FETCH_HEAD &&
+        git tag travis-merge-target &&
+        git gc --aggressive &&
+        TARGET_SIZE=`du -s . | sed -e "s/\t.*//"` &&
+        git pull origin ${GIT_SOURCE_EXTRA} &&
+        git gc --aggressive &&
+        MERGE_SIZE=`du -s . | sed -e "s/\t.*//"` &&
+        if [ "${MERGE_SIZE}" != "${TARGET_SIZE}" ]; then
+          SIZE_DIFF=`expr \( ${MERGE_SIZE} - ${TARGET_SIZE} \)`;
+        else
+          SIZE_DIFF=0;
+        fi;
+      fi;
+
+script:
+
+    - source activate test_env
+    
+    # Check system info
+    - python -c "import pyqtgraph as pg; pg.systemInfo()"
+
+    # Run unit tests
+    - start_test "unit tests";
+      PYTHONPATH=. py.test --cov pyqtgraph -sv;
+      check_output "unit tests";
+    - echo "test script finished. Current directory:"
+    - pwd
+
+    # check line endings
+    - if [ "${TEST}" == "extra" ]; then
+        start_test "line ending check";
+        ! find ./ -name "*.py" | xargs file | grep CRLF &&
+        ! find ./ -name "*.rst" | xargs file | grep CRLF;
+        check_output "line ending check";
+      fi;
+
+    # Check repo size does not expand too much
+    - if [ "${TEST}" == "extra" ]; then
+        start_test "repo size check";
+        echo -e "Estimated content size difference = ${SIZE_DIFF} kB" &&
+        test ${SIZE_DIFF} -lt 100;
+        check_output "repo size check";
+      fi;
+
+    # Check for style issues
+    - if [ "${TEST}" == "extra" ]; then
+        start_test "style check";
+        cd ~/repo-clone &&
+        git reset -q travis-merge-target &&
+        python setup.py style &&
+        check_output "style check";
+      fi;
+
+    # Check install works
+    - start_test "install test";
+      python setup.py --quiet install;
+      check_output "install test";
+
+    # Check double-install fails
+    # Note the bash -c is because travis strips off the ! otherwise.
+    - start_test "double install test";
+      bash -c "! python setup.py --quiet install";
+      check_output "double install test";
+
+    # Check we can import pg
+    - start_test "import test";
+      echo "import sys; print(sys.path)" | python &&
+      cd /; echo "import pyqtgraph.examples" | python;
+      check_output "import test";
+
+after_success:
+  - cd /home/travis/build/pyqtgraph/pyqtgraph
+  - pip install codecov --upgrade  # add coverage integration service
+  - codecov
+  - pip install coveralls --upgrade  # add another coverage integration service
+  - coveralls
diff --git a/site-packages/pyqtgraph-0.10.0/CHANGELOG b/site-packages/pyqtgraph-0.10.0/CHANGELOG
new file mode 100644
index 00000000..388f51b9
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/CHANGELOG
@@ -0,0 +1,448 @@
+pyqtgraph-0.10.0
+
+  New Features:
+    - PyQt5 support
+    - Options for interpreting image data as either row-major or col-major
+    - InfiniteLine and LinearRegionItem can have attached labels
+    - DockArea:
+        - Dock titles can be changed after creation
+        - Added Dock.sigClosed
+    - Added TextItem.setColor()
+    - FillBetweenItem supports finite-connected curves (those that exclude nan/inf)
+
+  API / behavior changes:
+    - Improved ImageItem performance for some data types by scaling LUT instead of image
+    - Change the defaut color kwarg to None in TextItem.setText() to avoid changing
+      the color every time the text is changed.
+    - FFT plots skip first sample if x-axis uses log scaling 
+    - Multiprocessing system adds bytes and unicode to the default list of no-proxy data types
+    - Version number scheme changed to be PEP440-compliant (only affects installations from non-
+      release git commits) 
+
+  Bugfixes:
+    - Fix for numpy API change that caused casting errors for inplace operations
+    - Fixed git version string generation on python3
+    - Fixed setting default values for out-of-bound points in pg.interpolateArray
+    - Fixed plot downsampling bug on python 3
+    - Fixed invalid slice in ImageItem.getHistogram
+    - DockArea:
+        - Fixed adding Docks to DockArea after all Docks have been removed
+        - Fixed DockArea save/restoreState when area is empty
+    - Properly remove select box when export dialog is closed using window decorations
+    - Remove all modifications to python builtins
+    - Better Python 2.6 compatibility
+    - Fix SpinBox decimals
+    - Fixed numerous issues with ImageItem automatic downsampling
+    - Fixed PlotItem average curves using incorrect stepMode
+    - Fixed TableWidget eating key events
+    - Prevent redundant updating of flowchart nodes with multiple inputs
+    - Ignore wheel events in GraphicsView if mouse interaction is disabled
+    - Correctly pass calls to QWidget.close() up the inheritance chain
+    - ColorMap forces color inputs to be sorted
+    - Fixed memory mapping for RemoteGraphicsView in OSX
+    - Fixed QPropertyAnimation str/bytes handling
+    - Fixed __version__ string update when using `setup.py install` with newer setuptools
+
+  Maintenance:
+    - Image comparison system for unit testing plus tests for several graphics items
+    - Travis CI and coveralls/codecov support
+    - Add examples to unit tests
+    
+
+
+pyqtgraph-0.9.10
+
+  Fixed installation issues with more recent pip versions.
+
+pyqtgraph-0.9.9
+
+  API / behavior changes:
+    - Dynamic import system abandoned; pg now uses static imports throughout.
+        - Flowcharts and exporters have new pluggin systems
+    - Version strings:
+        - __init__.py in git repo now contains latest release version string
+          (previously, only packaged releases had version strings).
+        - installing from git checkout that does not correspond to a release 
+          commit will result in a more descriptive version string.
+    - Speed improvements in functions.makeARGB
+    - ImageItem is faster by avoiding makeQImage(transpose=True)
+    - ComboBox will raise error when adding multiple items of the same name
+    - ArrowItem.setStyle now updates style options rather than replacing them 
+    - Renamed GraphicsView signals to avoid collision with ViewBox signals that
+      are wrapped in PlotWidget: sigRangeChanged => sigDeviceRangeChanged and
+      sigTransformChanged => sigDeviceTransformChanged.
+    - GLViewWidget.itemsAt() now measures y from top of widget to match mouse 
+      event position.
+    - Made setPen() methods consistent throughout the package
+    - Fix in GLScatterPlotItem requires that points will appear slightly more opaque 
+      (so you may need to adjust to lower alpha to achieve the same results)
+
+  New Features:
+    - Added ViewBox.setLimits() method
+    - Adde ImageItem downsampling
+    - New HDF5 example for working with very large datasets
+    - Removed all dependency on scipy
+    - Added Qt.loadUiType function for PySide
+    - Simplified Profilers; can be activated with environmental variables
+    - Added Dock.raiseDock() method
+    - ComboBox updates:
+        - Essentially a graphical interface to dict; all items have text and value
+        - Assigns previously-selected text after list is cleared and repopulated
+        - Get, set current value
+    - Flowchart updates
+        - Added Flowchart.sigChartChanged
+        - Custom nodes may now be registered in sub-menu trees
+    - ImageItem.getHistogram is more clever about constructing histograms
+    - Added FillBetweenItem.setCurves()
+    - MultiPlotWidget now has setMinimumPlotHeight method and displays scroll bar
+      when plots do not fit inside the widget.
+    - Added BarGraphItem.shape() to allow better mouse interaction
+    - Added MeshData.cylinder
+    - Added ViewBox.setBackgroundColor() and GLViewWidget.setBackgroundColor()
+    - Utilities / debugging tools
+        - Mutex used for tracing deadlocks
+        - Color output on terminal
+        - Multiprocess debugging colors messages by process
+        - Stdout filter that colors text by thread
+        - PeriodicTrace used to report deadlocks
+    - Added AxisItem.setStyle()
+    - Added configurable formatting for TableWidget
+    - Added 'stepMode' argument to PlotDataItem()
+    - Added ViewBox.invertX()
+    - Docks now have optional close button
+    - Added InfiniteLine.setHoverPen
+    - Added GLVolumeItem.setData
+    - Added PolyLineROI.setPoints, clearPoints, saveState, setState
+    - Added ErrorBarItem.setData
+
+  Bugfixes:
+    - PlotCurveItem now has correct clicking behavior--clicks within a few px
+      of the line will trigger a signal.
+    - Fixes related to CSV exporter:
+        - CSV headers include data names, if available
+        - Exporter correctly handles items with no data
+        - pg.plot() avoids creating empty data item
+        - removed call to reduce() from exporter; not available in python 3
+        - Gave .name() methods to PlotDataItem, PlotCurveItem, and ScatterPlotItem
+    - fixed ImageItem handling of rgb images
+    - fixed makeARGB re-ordering of color channels
+    - fixed unicode usage in AxisItem tick strings
+    - fixed PlotCurveItem generating exceptions when data has length=0
+    - fixed ImageView.setImage only working once
+    - PolyLineROI.setPen() now changes the pen of its segments as well
+    - Prevent divide-by-zero in AxisItem
+    - Major speedup when using ScatterPlotItem in pxMode
+    - PlotCurveItem ignores clip-to-view when auto range is enabled
+    - FillBetweenItem now forces PlotCurveItem to generate path
+    - Fixed import errors and py3 issues in MultiPlotWidget
+    - Isosurface works for arrays with shapes > 255
+    - Fixed ImageItem exception building histogram when image has only one value
+    - Fixed MeshData exception caused when vertexes have no matching faces
+    - Fixed GLViewWidget exception handler
+    - Fixed unicode support in Dock
+    - Fixed PySide crash caused by emitting signal from GraphicsObject.itemChange
+    - Fixed possible infinite loop from FiniteCache
+    - Allow images with NaN in ImageView
+    - MeshData can generate edges from face-indexed vertexes
+    - Fixed multiprocess deadlocks on windows
+    - Fixed GLGridItem.setSize
+    - Fixed parametertree.Parameter.sigValueChanging
+    - Fixed AxisItem.__init__(showValues=False)
+    - Fixed TableWidget append / sort issues
+    - Fixed AxisItem not resizing text area when setTicks() is used
+    - Removed a few cyclic references
+    - Fixed Parameter 'readonly' option for bool, color, and text parameter types
+    - Fixed alpha on GLScatterPlotItem spots (formerly maxed out at alpha=200)
+    - Fixed a few bugs causing exit crashes
+
+
+pyqtgraph-0.9.8  2013-11-24
+
+  API / behavior changes:
+    - ViewBox will auto-range when ImageItem changes shape
+    - AxisItem: 
+        - Smarter about deciding which ticks get text
+        - AxisItem.setScale(float) has the usual behavior, but .setScale(None) 
+          is deprecated. Instead use:
+          AxisItem.enableAutoSIPrefix(bool) to enable/disable SI prefix scaling
+    - Removed inf/nan checking from PlotDataItem and PlotCurveItem; improved 
+      performance
+
+  New Features:
+    - Support for dynamic downsampling and view clipping in PlotDataItem and 
+      PlotItem
+    - Added 'connect' option to PlotDataItem and PlotCurveItem to affect which 
+      line segments are drawn
+    - Support for FFT with non-uniform time sampling
+    - Added BarGraphItem
+    - OpenGL:
+        - Added export methods to GLViewWidget
+        - Wireframe meshes
+        - GLLinePLotItem gets antialiasing, accepts array of colors
+        - GLMeshItem accepts ShaderProgram or name of predefined program
+        - Added GLBarGraphItem
+    - LegendItem:
+        - User-draggable
+        - Allow custom ItemSamples
+        - Symbol support
+        - Support for removing items
+    - ScatterPlotWidget, ColorMapWidget, and DataFilterWidget are stable
+    - TableWidget:
+        - Made numerically sortable
+        - Added setEditable method
+    - AxisItem ability to truncate axis lines at the last tick
+    - arrayToQPath() added 'finite' connection mode which omits non-finite 
+      values from connections
+    - pg.plot() and pg.PlotWidget() now accept background argument
+    - Allow QtProcess without local QApplication
+    - Support for dashing in mkPen()
+    - Added Dock.close()
+    - Added style options to flowchart connection lines
+    - Added parentChanged and viewChanged hooks to GraphicsItem 
+    - Bidirectional pseudoScatter for beeswarm plots
+    - Added exit() function for working around PyQt exit crashes
+    - Added PolylineROI.getArrayRegion()
+
+  Bugfixes:
+    - Many Python 3 compatibility fixes
+    - AxisItem:
+        - Correctly handles scaling with values that are not power of 10
+        - Did not update grid line length when plot stretches
+        - Fixed unicode handling in AxisItem label
+    - ViewBox:
+        - Overhauled to fix issues with aspect locking
+        - ViewBox context menu elements are no longer deleted when using 
+          flowchart with pyside
+        - Fixed view linking with inverted y axis
+        - Prevent auto-range disabling when dragging with one mouse axis diabled
+        - Ignore inf and nan when auto-ranging
+    - ParameterTree:
+        - fixed TextParameter editor disappearing after focus lost
+        - ListParameter: allow unhashable types as parameter values.
+    - Exporting:
+        - ImageExporter correctly handles QBrush with style=NoBrush
+        - SVGExporter text, gradients working correctly
+        - SVGExporter correctly handles coordinate corrections for groups with 
+          mixed elements
+    - ImageView:
+        - Fixed auto-levelling when normalization options change
+        - Added autoHistogramRange argument to setImage
+    - ScatterPlotItem:
+        - Fixed crashes caused by ScatterPlotItem
+        - Fixed antialiasing
+    - arrayToQPath performance improved for python 3
+    - Fixed makeQImage on many platforms (notably, on newer PyQt APIs)
+    - Removed unnecessary scipy imports for faster import
+    - GraphItem reports pixel margins to improve auto-range
+    - Add backport ordereddict to repository; old OrderedDict class is removed
+    - Corrected behavior of GraphicsView.setBackground
+    - Fixed PySide bug listing image formats
+    - Fixed QString -> str conversions in flowchart
+    - Unicode file name support when exporting
+    - Fixed MatplotlibWidget + PySide
+    - Fixed 3D view updating after every scene change
+    - Fixed handling of non-native dtypes when optimizing with weave
+    - RemoteGraphicsView fixed for PyQt 4.10, Python 3
+    - Fixed GLLinePlotItem line width option
+    - HistogramLUTWidget obeys default background color
+    - ScaleBar complete rewrite
+    - GraphItem obeys antialiasing flag
+    - Workaround for PySide/QByteArray memory leak
+    - Fixed example --test on windows, python3
+    - Luke finished dissertation
+
+
+pyqtgraph-0.9.7  2013-02-25
+
+   Bugfixes:
+     - ArrowItem auto range now works correctly
+     - Dock drag/drop fixed on PySide
+     - Made padding behavior consistent across ViewBox methods
+     - Fixed MeshData / python2.6 incompatibility
+     - Fixed ScatterPlotItem.setSize and .setPointData
+     - Workaround for PySide bug; GradientEditor fixed
+     - Prefer initially selecting PlotItem rather then ViewBox when exporting
+     - Fixed python3 import error with flowcharts
+   
+   Cleaned up examples, made code editable from example loader
+   Minor documentation updates
+   Features:
+     - Added GraphItem class for displaying networks/trees
+     - Added ColorMap class for mapping linear gradients and generating lookup
+     tables
+       (Provides gradient editor functionality without the GUI)
+     - Added ColorMapWidget for complex user-defined color mapping
+     - Added ScatterPlotWidget for exploring relationships in multi-column
+     tables
+     - Added ErrorBarItem
+     - SVG and image exporters can now copy to clipboard
+     - PlotItem gets new methods: addLine, setLabels, and listDataItems
+     - AxisItem gets setTickFont method
+     - Added functions.arrayToQPath, shared between GraphItem and PlotCurveItem
+     - Added gradient editors to parametertree
+     - Expanded documentation, added beginning of Qt crash course
+   
+   Bugfixes:
+     - Fixed auto-ranging bugs: ViewBox now properly handles pixel-padding
+     around data items
+     - ViewBox ignores bounds of zoom-rect when auto ranging
+     - Fixed AxisItem artifacts
+     - Fixed GraphicsItem.pixelVector caching bugs and simplified workaround for
+     fp-precision errors
+     - LinearRegionItem.hoverEvent obeys 'movable' flag                         
+                                                                                
+                                        
+     - Fixed PlotDataItem nan masking bugs                                      
+                                                                                
+                                        
+     - Workaround for segmentation fault in QPainter.drawPixmapFragments        
+                                                                                
+                                        
+     - multiprocess and RemoteGraphicsView work correctly in Windows.           
+                                                                                
+                                        
+     - Expanded python 3 support                                                
+                                                                                
+                                        
+     - Silenced weave errors by default                                         
+                                                                                
+                                        
+     - Fixed " 'win' in sys.platform " occurrences matching 'darwin' (duh)
+     - Workaround for change in QImage API (PyQt 4.9.6)
+     - Fixed axis ordering bug in GLScatterPlotItem
+
+pyqtgraph-0.9.6  2013-02-14
+
+   Features:
+     - Added GraphItem class for displaying networks/trees
+     - Added ColorMap class for mapping linear gradients and generating lookup
+     tables
+       (Provides gradient editor functionality without the GUI)
+     - Added ColorMapWidget for complex user-defined color mapping
+     - Added ScatterPlotWidget for exploring relationships in multi-column
+     tables
+     - Added ErrorBarItem
+     - SVG and image exporters can now copy to clipboard
+     - PlotItem gets new methods: addLine, setLabels, and listDataItems
+     - AxisItem gets setTickFont method
+     - Added functions.arrayToQPath, shared between GraphItem and PlotCurveItem
+     - Added gradient editors to parametertree
+     - Expanded documentation, added beginning of Qt crash course
+   
+   Bugfixes:
+     - Fixed auto-ranging bugs: ViewBox now properly handles pixel-padding
+     around data items
+     - ViewBox ignores bounds of zoom-rect when auto ranging
+     - Fixed AxisItem artifacts
+     - Fixed GraphicsItem.pixelVector caching bugs and simplified workaround for
+     fp-precision errors
+     - LinearRegionItem.hoverEvent obeys 'movable' flag                         
+                                                                                
+                                        
+     - Fixed PlotDataItem nan masking bugs                                      
+                                                                                
+                                        
+     - Workaround for segmentation fault in QPainter.drawPixmapFragments        
+                                                                                
+                                        
+     - multiprocess and RemoteGraphicsView work correctly in Windows.           
+                                                                                
+                                        
+     - Expanded python 3 support                                                
+                                                                                
+                                        
+     - Silenced weave errors by default                                         
+                                                                                
+                                        
+     - Fixed " 'win' in sys.platform " occurrences matching 'darwin' (duh)
+     - Workaround for change in QImage API (PyQt 4.9.6)
+     - Fixed axis ordering bug in GLScatterPlotItem
+   Plotting performance improvements:
+     - AxisItem shows fewer tick levels in some cases.
+     - Lots of boundingRect and dataBounds caching
+       (improves ViewBox auto-range performance, especially with multiple plots)
+     - GraphicsScene avoids testing for hover intersections with non-hoverable
+     items
+       (much less slowdown when moving mouse over plots)
+   
+   Improved performance for remote plotting:
+     - reduced cost of transferring arrays between processes (pickle is too
+     slow)
+     - avoid unnecessary synchronous calls
+   
+   Added RemoteSpeedTest example
+
+
+pyqtgraph-0.9.5  2013-01-11
+
+   Plotting performance improvements:
+     - AxisItem shows fewer tick levels in some cases.
+     - Lots of boundingRect and dataBounds caching
+       (improves ViewBox auto-range performance, especially with multiple plots)
+     - GraphicsScene avoids testing for hover intersections with non-hoverable
+     items
+       (much less slowdown when moving mouse over plots)
+   
+   Improved performance for remote plotting:
+     - reduced cost of transferring arrays between processes (pickle is too
+     slow)
+     - avoid unnecessary synchronous calls
+   
+   Added RemoteSpeedTest example
+   Documentation:
+   - Added documentation on export system
+   - Added flowchart documentation and custom node example
+   
+   Bugfixes: 
+   - prevent PlotCurveItem drawing shadow when unnecessary
+   - deprecated flowchart.Node.__getattr__ -- causes too many problems.
+
+pyqtgraph-0.9.4  2013-01-07
+
+   Documentation:
+   - Added documentation on export system
+   - Added flowchart documentation and custom node example
+   
+   Bugfixes: 
+   - prevent PlotCurveItem drawing shadow when unnecessary
+   - deprecated flowchart.Node.__getattr__ -- causes too many problems.
+   Bugfix: prevent adding invalid entry to sys.path when running examples
+
+pyqtgraph-0.9.3  2012-12-29
+
+   Bugfix: prevent adding invalid entry to sys.path when running examples
+   Bugfixes:
+   - SVG export text elements use generic font-family as backup, corrected item
+   transformation issues
+   - Fixed RuntimeError caused when clearing item hierarchies from ViewBox
+   - Fixed example execution bug
+   
+   Packaging maintenance:
+   - Added missing files to MANIFEST.in, fixed setup.py package detection
+   - Added debian control files for building source packages
+   - Fixed version numbering in doc, __init__.py
+
+pyqtgraph-0.9.2  2012-12-29
+
+   Bugfixes:
+   - SVG export text elements use generic font-family as backup, corrected item
+   transformation issues
+   - Fixed RuntimeError caused when clearing item hierarchies from ViewBox
+   - Fixed example execution bug
+   
+   Packaging maintenance:
+   - Added missing files to MANIFEST.in, fixed setup.py package detection
+   - Added debian control files for building source packages
+   - Fixed version numbering in doc, __init__.py
+
+pyqtgraph-0.9.1  2012-12-27
+
+   Removed incorrect version numbers
+   Correction to setup.py - use install_requires to inform pip of dependencies.
+   Fixed doc version (again)
+   Added debian control files
+   bugfixes for new package structure
+
+pyqtgraph-0.9.0  2012-12-27
+
+  * Initial release.
diff --git a/site-packages/pyqtgraph-0.10.0/CONTRIBUTING.txt b/site-packages/pyqtgraph-0.10.0/CONTRIBUTING.txt
new file mode 100644
index 00000000..5a904958
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/CONTRIBUTING.txt
@@ -0,0 +1,60 @@
+Contributions to pyqtgraph are welcome! 
+
+Please use the following guidelines when preparing changes:
+
+* The preferred method for submitting changes is by github pull request
+  against the "develop" branch. If this is inconvenient, don't hesitate to 
+  submit by other means.
+
+* Pull requests should include only a focused and related set of changes. 
+  Mixed features and unrelated changes (such as .gitignore) will usually be
+  rejected.
+
+* For major changes, it is recommended to discuss your plans on the mailing 
+  list or in a github issue before putting in too much effort.
+
+      * Along these lines, please note that pyqtgraph.opengl will be deprecated 
+        soon and replaced with VisPy.
+
+* Writing proper documentation and unit tests is highly encouraged. PyQtGraph
+  uses nose / py.test style testing, so tests should usually be included in a
+  tests/ directory adjacent to the relevant code. 
+
+* Documentation is generated with sphinx; please check that docstring changes
+  compile correctly.
+
+* Style guidelines:
+
+      * PyQtGraph prefers PEP8 for most style issues, but this is not enforced
+        rigorously as long as the code is clean and readable.
+
+      * Use `python setup.py style` to see whether your code follows
+        the mandatory style guidelines checked by flake8.
+
+      * Exception 1: All variable names should use camelCase rather than 
+        underscore_separation. This is done for consistency with Qt
+
+      * Exception 2: Function docstrings use ReStructuredText tables for 
+        describing arguments:
+
+        ```
+        ============== ========================================================
+        **Arguments:**
+        argName1       (type) Description of argument
+        argName2       (type) Description of argument. Longer descriptions must
+                       be wrapped within the column guidelines defined by the
+                       "====" header and footer.
+        ============== ========================================================
+        ```
+
+        QObject subclasses that implement new signals should also describe 
+        these in a similar table.
+
+* Setting up a test environment.
+
+    Tests for a module should ideally cover all code in that module,
+    i.e., statement coverage should be at 100%.
+
+    To measure the test coverage, install py.test, pytest-cov and pytest-xdist.
+    Then run 'py.test --cov -n 4' to run the test suite with coverage on 4 cores.
+
diff --git a/site-packages/pyqtgraph-0.10.0/LICENSE.txt b/site-packages/pyqtgraph-0.10.0/LICENSE.txt
new file mode 100644
index 00000000..22791ae3
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/LICENSE.txt
@@ -0,0 +1,10 @@
+Copyright (c) 2012  University of North Carolina at Chapel Hill
+Luke Campagnola    ('luke.campagnola@%s.com' % 'gmail')
+
+The MIT License
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
diff --git a/site-packages/pyqtgraph-0.10.0/MANIFEST.in b/site-packages/pyqtgraph-0.10.0/MANIFEST.in
new file mode 100644
index 00000000..9b3331b3
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/MANIFEST.in
@@ -0,0 +1,8 @@
+recursive-include pyqtgraph *.py *.ui *.m README.* *.txt
+recursive-include examples *.py *.ui *.gz *.cfg
+recursive-include doc *.rst *.py *.svg *.png
+recursive-include doc/build/html *
+recursive-include tools *
+include doc/Makefile doc/make.bat README.md LICENSE.txt CHANGELOG
+global-exclude *.pyc
+
diff --git a/site-packages/pyqtgraph-0.10.0/README.md b/site-packages/pyqtgraph-0.10.0/README.md
new file mode 100644
index 00000000..30268796
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/README.md
@@ -0,0 +1,85 @@
+[![Build Status](https://travis-ci.org/pyqtgraph/pyqtgraph.svg?branch=develop)](https://travis-ci.org/pyqtgraph/pyqtgraph)
+[![codecov.io](http://codecov.io/github/pyqtgraph/pyqtgraph/coverage.svg?branch=develop)](http://codecov.io/github/pyqtgraph/pyqtgraph?branch=develop)
+
+PyQtGraph
+=========
+
+A pure-Python graphics library for PyQt/PySide
+
+Copyright 2012 Luke Campagnola, University of North Carolina at Chapel Hill
+
+<http://www.pyqtgraph.org>
+
+Maintainer
+----------
+
+  * Luke Campagnola   <luke.campagnola@gmail.com>
+
+Contributors
+------------
+
+  * Megan Kratz
+  * Paul Manis
+  * Ingo Breßler
+  * Christian Gavin
+  * Michael Cristopher Hogg
+  * Ulrich Leutner
+  * Felix Schill
+  * Guillaume Poulin
+  * Antony Lee
+  * Mattias Põldaru
+  * Thomas S.
+  * Fabio Zadrozny
+  * Mikhail Terekhov
+  * Pietro Zambelli
+  * Stefan Holzmann
+  * Nicholas TJ
+  * John David Reaver
+  * David Kaplan
+  * Martin Fitzpatrick
+  * Daniel Lidstrom
+  * Eric Dill
+  * Vincent LeSaux
+
+Requirements
+------------
+
+  * PyQt 4.7+, PySide, or PyQt5
+  * python 2.6, 2.7, or 3.x
+  * NumPy
+  * For 3D graphics: pyopengl and qt-opengl
+  * Known to run on Windows, Linux, and Mac.
+
+Support
+-------
+
+  Post at the [mailing list / forum](https://groups.google.com/forum/?fromgroups#!forum/pyqtgraph)
+
+Installation Methods
+--------------------
+
+  * To use with a specific project, simply copy the pyqtgraph subdirectory
+      anywhere that is importable from your project. PyQtGraph may also be
+      used as a git subtree by cloning the git-core repository from github.
+  * To install system-wide from source distribution:
+        `$ python setup.py install`
+  * For installation packages, see the website (pyqtgraph.org)
+  * On debian-like systems, pyqtgraph requires the following packages:
+        python-numpy, python-qt4 | python-pyside
+        For 3D support: python-opengl, python-qt4-gl | python-pyside.qtopengl
+
+Documentation
+-------------
+
+There are many examples; run `python -m pyqtgraph.examples` for a menu.
+
+Some (incomplete) documentation exists at this time.
+  * Easiest place to get documentation is at <http://www.pyqtgraph.org/documentation>
+  * If you acquired this code as a .tar.gz file from the website, then you can also look in
+      doc/html.
+  * If you acquired this code via GitHub, then you can build the documentation using sphinx.
+      From the documentation directory, run:
+          `$ make html`
+  
+Please feel free to pester Luke or post to the forum if you need a specific
+  section of documentation to be expanded.
diff --git a/site-packages/pyqtgraph-0.10.0/doc/Makefile b/site-packages/pyqtgraph-0.10.0/doc/Makefile
new file mode 100644
index 00000000..15b77d38
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/Makefile
@@ -0,0 +1,130 @@
+# Makefile for Sphinx documentation
+#
+
+# You can set these variables from the command line.
+SPHINXOPTS    =
+SPHINXBUILD   = sphinx-build
+PAPER         =
+BUILDDIR      = build
+
+# Internal variables.
+PAPEROPT_a4     = -D latex_paper_size=a4
+PAPEROPT_letter = -D latex_paper_size=letter
+ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
+
+.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
+
+help:
+	@echo "Please use \`make <target>' where <target> is one of"
+	@echo "  html       to make standalone HTML files"
+	@echo "  dirhtml    to make HTML files named index.html in directories"
+	@echo "  singlehtml to make a single large HTML file"
+	@echo "  pickle     to make pickle files"
+	@echo "  json       to make JSON files"
+	@echo "  htmlhelp   to make HTML files and a HTML help project"
+	@echo "  qthelp     to make HTML files and a qthelp project"
+	@echo "  devhelp    to make HTML files and a Devhelp project"
+	@echo "  epub       to make an epub"
+	@echo "  latex      to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
+	@echo "  latexpdf   to make LaTeX files and run them through pdflatex"
+	@echo "  text       to make text files"
+	@echo "  man        to make manual pages"
+	@echo "  changes    to make an overview of all changed/added/deprecated items"
+	@echo "  linkcheck  to check all external links for integrity"
+	@echo "  doctest    to run all doctests embedded in the documentation (if enabled)"
+
+clean:
+	-rm -rf $(BUILDDIR)/*
+
+html:
+	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
+	@echo
+	@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
+
+dirhtml:
+	$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
+	@echo
+	@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
+
+singlehtml:
+	$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
+	@echo
+	@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
+
+pickle:
+	$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
+	@echo
+	@echo "Build finished; now you can process the pickle files."
+
+json:
+	$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
+	@echo
+	@echo "Build finished; now you can process the JSON files."
+
+htmlhelp:
+	$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
+	@echo
+	@echo "Build finished; now you can run HTML Help Workshop with the" \
+	      ".hhp project file in $(BUILDDIR)/htmlhelp."
+
+qthelp:
+	$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
+	@echo
+	@echo "Build finished; now you can run "qcollectiongenerator" with the" \
+	      ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
+	@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/pyqtgraph.qhcp"
+	@echo "To view the help file:"
+	@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/pyqtgraph.qhc"
+
+devhelp:
+	$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
+	@echo
+	@echo "Build finished."
+	@echo "To view the help file:"
+	@echo "# mkdir -p $$HOME/.local/share/devhelp/pyqtgraph"
+	@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/pyqtgraph"
+	@echo "# devhelp"
+
+epub:
+	$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
+	@echo
+	@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
+
+latex:
+	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+	@echo
+	@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
+	@echo "Run \`make' in that directory to run these through (pdf)latex" \
+	      "(use \`make latexpdf' here to do that automatically)."
+
+latexpdf:
+	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+	@echo "Running LaTeX files through pdflatex..."
+	make -C $(BUILDDIR)/latex all-pdf
+	@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
+
+text:
+	$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
+	@echo
+	@echo "Build finished. The text files are in $(BUILDDIR)/text."
+
+man:
+	$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
+	@echo
+	@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
+
+changes:
+	$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
+	@echo
+	@echo "The overview file is in $(BUILDDIR)/changes."
+
+linkcheck:
+	$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
+	@echo
+	@echo "Link check complete; look for any errors in the above output " \
+	      "or in $(BUILDDIR)/linkcheck/output.txt."
+
+doctest:
+	$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
+	@echo "Testing of doctests in the sources finished, look at the " \
+	      "results in $(BUILDDIR)/doctest/output.txt."
diff --git a/site-packages/pyqtgraph-0.10.0/doc/extensions/qt_doc.py b/site-packages/pyqtgraph-0.10.0/doc/extensions/qt_doc.py
new file mode 100644
index 00000000..75c848fc
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/extensions/qt_doc.py
@@ -0,0 +1,149 @@
+"""
+Extension for building Qt-like documentation.
+
+ - Method lists preceding the actual method documentation
+ - Inherited members documented separately
+ - Members inherited from Qt have links to qt-project documentation
+ - Signal documentation
+
+"""
+
+
+
+def setup(app):
+    # probably we will be making a wrapper around autodoc
+    app.setup_extension('sphinx.ext.autodoc')
+    
+    # would it be useful to define a new domain?
+    #app.add_domain(QtDomain) 
+    
+    ## Add new configuration options
+    app.add_config_value('todo_include_todos', False, False)
+
+    ## Nodes are the basic objects representing documentation directives
+    ## and roles
+    app.add_node(Todolist)
+    app.add_node(Todo,
+                 html=(visit_todo_node, depart_todo_node),
+                 latex=(visit_todo_node, depart_todo_node),
+                 text=(visit_todo_node, depart_todo_node))
+
+    ## New directives like ".. todo:"
+    app.add_directive('todo', TodoDirective)
+    app.add_directive('todolist', TodolistDirective)
+    
+    ## Connect callbacks to specific hooks in the build process
+    app.connect('doctree-resolved', process_todo_nodes)
+    app.connect('env-purge-doc', purge_todos)
+    
+
+from docutils import nodes
+from sphinx.util.compat import Directive
+from sphinx.util.compat import make_admonition
+
+
+# Just a general node
+class Todolist(nodes.General, nodes.Element):
+    pass
+
+# .. and its directive
+class TodolistDirective(Directive):
+    # all directives have 'run' method that returns a list of nodes
+    def run(self):
+        return [Todolist('')]
+
+
+
+
+# Admonition classes are like notes or warnings
+class Todo(nodes.Admonition, nodes.Element):
+    pass
+
+def visit_todo_node(self, node):
+    self.visit_admonition(node)
+
+def depart_todo_node(self, node):
+    self.depart_admonition(node)    
+
+class TodoDirective(Directive):
+
+    # this enables content in the directive
+    has_content = True
+
+    def run(self):
+        env = self.state.document.settings.env
+    
+        # create a new target node for linking to
+        targetid = "todo-%d" % env.new_serialno('todo')
+        targetnode = nodes.target('', '', ids=[targetid])
+
+        # make the admonition node
+        ad = make_admonition(Todo, self.name, [('Todo')], self.options,
+                             self.content, self.lineno, self.content_offset,
+                             self.block_text, self.state, self.state_machine)
+
+        # store a handle in a global list of all todos
+        if not hasattr(env, 'todo_all_todos'):
+            env.todo_all_todos = []
+        env.todo_all_todos.append({
+            'docname': env.docname,
+            'lineno': self.lineno,
+            'todo': ad[0].deepcopy(),
+            'target': targetnode,
+        })
+
+        # return both the linking target and the node itself
+        return [targetnode] + ad
+
+
+# env data is persistent across source files so we purge whenever the source file has changed.
+def purge_todos(app, env, docname):
+    if not hasattr(env, 'todo_all_todos'):
+        return
+    env.todo_all_todos = [todo for todo in env.todo_all_todos
+                          if todo['docname'] != docname]
+                          
+
+# called at the end of resolving phase; we will convert temporary nodes
+# into finalized nodes
+def process_todo_nodes(app, doctree, fromdocname):
+    if not app.config.todo_include_todos:
+        for node in doctree.traverse(Todo):
+            node.parent.remove(node)
+
+    # Replace all todolist nodes with a list of the collected todos.
+    # Augment each todo with a backlink to the original location.
+    env = app.builder.env
+
+    for node in doctree.traverse(Todolist):
+        if not app.config.todo_include_todos:
+            node.replace_self([])
+            continue
+
+        content = []
+
+        for todo_info in env.todo_all_todos:
+            para = nodes.paragraph()
+            filename = env.doc2path(todo_info['docname'], base=None)
+            description = (
+                ('(The original entry is located in %s, line %d and can be found ') %
+                (filename, todo_info['lineno']))
+            para += nodes.Text(description, description)
+
+            # Create a reference
+            newnode = nodes.reference('', '')
+            innernode = nodes.emphasis(('here'), ('here'))
+            newnode['refdocname'] = todo_info['docname']
+            newnode['refuri'] = app.builder.get_relative_uri(
+                fromdocname, todo_info['docname'])
+            newnode['refuri'] += '#' + todo_info['target']['refid']
+            newnode.append(innernode)
+            para += newnode
+            para += nodes.Text('.)', '.)')
+
+            # Insert into the todolist
+            content.append(todo_info['todo'])
+            content.append(para)
+
+        node.replace_self(content)
+        
diff --git a/site-packages/pyqtgraph-0.10.0/doc/listmissing.py b/site-packages/pyqtgraph-0.10.0/doc/listmissing.py
new file mode 100644
index 00000000..6268d81e
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/listmissing.py
@@ -0,0 +1,14 @@
+import os
+dirs = [
+  ('graphicsItems', 'graphicsItems'),
+  ('3dgraphics', 'opengl/items'),
+  ('widgets', 'widgets'),
+]
+
+path = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..')
+for a, b in dirs:
+     rst = [os.path.splitext(x)[0].lower() for x in os.listdir(os.path.join(path, 'documentation', 'source', a))]
+     py = [os.path.splitext(x)[0].lower() for x in os.listdir(os.path.join(path, b))]
+     print(a)
+     for x in set(py) - set(rst):
+         print( "    ", x)
diff --git a/site-packages/pyqtgraph-0.10.0/doc/make.bat b/site-packages/pyqtgraph-0.10.0/doc/make.bat
new file mode 100644
index 00000000..1d76823d
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/make.bat
@@ -0,0 +1,155 @@
+@ECHO OFF
+
+REM Command file for Sphinx documentation
+
+if "%SPHINXBUILD%" == "" (
+	set SPHINXBUILD=sphinx-build
+)
+set BUILDDIR=build
+set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% source
+if NOT "%PAPER%" == "" (
+	set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
+)
+
+if "%1" == "" goto help
+
+if "%1" == "help" (
+	:help
+	echo.Please use `make ^<target^>` where ^<target^> is one of
+	echo.  html       to make standalone HTML files
+	echo.  dirhtml    to make HTML files named index.html in directories
+	echo.  singlehtml to make a single large HTML file
+	echo.  pickle     to make pickle files
+	echo.  json       to make JSON files
+	echo.  htmlhelp   to make HTML files and a HTML help project
+	echo.  qthelp     to make HTML files and a qthelp project
+	echo.  devhelp    to make HTML files and a Devhelp project
+	echo.  epub       to make an epub
+	echo.  latex      to make LaTeX files, you can set PAPER=a4 or PAPER=letter
+	echo.  text       to make text files
+	echo.  man        to make manual pages
+	echo.  changes    to make an overview over all changed/added/deprecated items
+	echo.  linkcheck  to check all external links for integrity
+	echo.  doctest    to run all doctests embedded in the documentation if enabled
+	goto end
+)
+
+if "%1" == "clean" (
+	for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i
+	del /q /s %BUILDDIR%\*
+	goto end
+)
+
+if "%1" == "html" (
+	%SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
+	echo.
+	echo.Build finished. The HTML pages are in %BUILDDIR%/html.
+	goto end
+)
+
+if "%1" == "dirhtml" (
+	%SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml
+	echo.
+	echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml.
+	goto end
+)
+
+if "%1" == "singlehtml" (
+	%SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml
+	echo.
+	echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml.
+	goto end
+)
+
+if "%1" == "pickle" (
+	%SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle
+	echo.
+	echo.Build finished; now you can process the pickle files.
+	goto end
+)
+
+if "%1" == "json" (
+	%SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json
+	echo.
+	echo.Build finished; now you can process the JSON files.
+	goto end
+)
+
+if "%1" == "htmlhelp" (
+	%SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp
+	echo.
+	echo.Build finished; now you can run HTML Help Workshop with the ^
+.hhp project file in %BUILDDIR%/htmlhelp.
+	goto end
+)
+
+if "%1" == "qthelp" (
+	%SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp
+	echo.
+	echo.Build finished; now you can run "qcollectiongenerator" with the ^
+.qhcp project file in %BUILDDIR%/qthelp, like this:
+	echo.^> qcollectiongenerator %BUILDDIR%\qthelp\pyqtgraph.qhcp
+	echo.To view the help file:
+	echo.^> assistant -collectionFile %BUILDDIR%\qthelp\pyqtgraph.ghc
+	goto end
+)
+
+if "%1" == "devhelp" (
+	%SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp
+	echo.
+	echo.Build finished.
+	goto end
+)
+
+if "%1" == "epub" (
+	%SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub
+	echo.
+	echo.Build finished. The epub file is in %BUILDDIR%/epub.
+	goto end
+)
+
+if "%1" == "latex" (
+	%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
+	echo.
+	echo.Build finished; the LaTeX files are in %BUILDDIR%/latex.
+	goto end
+)
+
+if "%1" == "text" (
+	%SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text
+	echo.
+	echo.Build finished. The text files are in %BUILDDIR%/text.
+	goto end
+)
+
+if "%1" == "man" (
+	%SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man
+	echo.
+	echo.Build finished. The manual pages are in %BUILDDIR%/man.
+	goto end
+)
+
+if "%1" == "changes" (
+	%SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes
+	echo.
+	echo.The overview file is in %BUILDDIR%/changes.
+	goto end
+)
+
+if "%1" == "linkcheck" (
+	%SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck
+	echo.
+	echo.Link check complete; look for any errors in the above output ^
+or in %BUILDDIR%/linkcheck/output.txt.
+	goto end
+)
+
+if "%1" == "doctest" (
+	%SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest
+	echo.
+	echo.Testing of doctests in the sources finished, look at the ^
+results in %BUILDDIR%/doctest/output.txt.
+	goto end
+)
+
+:end
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics.rst b/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics.rst
new file mode 100644
index 00000000..0a0a0210
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics.rst
@@ -0,0 +1,48 @@
+3D Graphics
+===========
+
+PyQtGraph uses OpenGL to provide a 3D scenegraph system. This system is functional but still early in development. 
+Current capabilities include:
+    
+* 3D view widget with zoom/rotate controls (mouse drag and wheel)
+* Scenegraph allowing items to be added/removed from scene with per-item transformations and parent/child relationships.
+* Triangular meshes
+* Basic mesh computation functions: isosurfaces, per-vertex normals
+* Volumetric rendering item
+* Grid/axis items
+
+See the :doc:`API Reference </3dgraphics/index>` and the Volumetric (GLVolumeItem.py) and Isosurface (GLMeshItem.py) examples for more information.
+
+Basic usage example::
+    
+    ## build a QApplication before building other widgets
+    import pyqtgraph as pg
+    pg.mkQApp()
+
+    ## make a widget for displaying 3D objects
+    import pyqtgraph.opengl as gl
+    view = gl.GLViewWidget()
+    view.show()
+
+    ## create three grids, add each to the view
+    xgrid = gl.GLGridItem()
+    ygrid = gl.GLGridItem()
+    zgrid = gl.GLGridItem()
+    view.addItem(xgrid)
+    view.addItem(ygrid)
+    view.addItem(zgrid)
+
+    ## rotate x and y grids to face the correct direction
+    xgrid.rotate(90, 0, 1, 0)
+    ygrid.rotate(90, 1, 0, 0)
+
+    ## scale each grid differently
+    xgrid.scale(0.2, 0.1, 0.1)
+    ygrid.scale(0.2, 0.1, 0.1)
+    zgrid.scale(0.1, 0.2, 0.1)
+
+
+
+
+
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glaxisitem.rst b/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glaxisitem.rst
new file mode 100644
index 00000000..4f6d02d9
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glaxisitem.rst
@@ -0,0 +1,8 @@
+GLAxisItem
+==========
+
+.. autoclass:: pyqtgraph.opengl.GLAxisItem
+    :members:
+
+    .. automethod:: pyqtgraph.opengl.GLAxisItem.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glgraphicsitem.rst b/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glgraphicsitem.rst
new file mode 100644
index 00000000..eac70f51
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glgraphicsitem.rst
@@ -0,0 +1,8 @@
+GLGraphicsItem
+==============
+
+.. autoclass:: pyqtgraph.opengl.GLGraphicsItem.GLGraphicsItem
+    :members:
+
+    .. automethod:: pyqtgraph.opengl.GLGraphicsItem.GLGraphicsItem.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glgriditem.rst b/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glgriditem.rst
new file mode 100644
index 00000000..11c185c5
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glgriditem.rst
@@ -0,0 +1,8 @@
+GLGridItem
+==========
+
+.. autoclass:: pyqtgraph.opengl.GLGridItem
+    :members:
+
+    .. automethod:: pyqtgraph.opengl.GLGridItem.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glimageitem.rst b/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glimageitem.rst
new file mode 100644
index 00000000..ca40ff41
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glimageitem.rst
@@ -0,0 +1,8 @@
+GLImageItem
+===========
+
+.. autoclass:: pyqtgraph.opengl.GLImageItem
+    :members:
+
+    .. automethod:: pyqtgraph.opengl.GLImageItem.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/gllineplotitem.rst b/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/gllineplotitem.rst
new file mode 100644
index 00000000..490ba298
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/gllineplotitem.rst
@@ -0,0 +1,8 @@
+GLLinePlotItem
+==============
+
+.. autoclass:: pyqtgraph.opengl.GLLinePlotItem
+    :members:
+
+    .. automethod:: pyqtgraph.opengl.GLLinePlotItem.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glmeshitem.rst b/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glmeshitem.rst
new file mode 100644
index 00000000..4f23e12e
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glmeshitem.rst
@@ -0,0 +1,8 @@
+GLMeshItem
+==========
+
+.. autoclass:: pyqtgraph.opengl.GLMeshItem
+    :members:
+
+    .. automethod:: pyqtgraph.opengl.GLMeshItem.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glscatterplotitem.rst b/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glscatterplotitem.rst
new file mode 100644
index 00000000..4fa337c6
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glscatterplotitem.rst
@@ -0,0 +1,8 @@
+GLScatterPlotItem
+=================
+
+.. autoclass:: pyqtgraph.opengl.GLScatterPlotItem
+    :members:
+
+    .. automethod:: pyqtgraph.opengl.GLScatterPlotItem.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glsurfaceplotitem.rst b/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glsurfaceplotitem.rst
new file mode 100644
index 00000000..b6f4881e
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glsurfaceplotitem.rst
@@ -0,0 +1,8 @@
+GLSurfacePlotItem
+=================
+
+.. autoclass:: pyqtgraph.opengl.GLSurfacePlotItem
+    :members:
+
+    .. automethod:: pyqtgraph.opengl.GLSurfacePlotItem.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glviewwidget.rst b/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glviewwidget.rst
new file mode 100644
index 00000000..7ac39949
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glviewwidget.rst
@@ -0,0 +1,8 @@
+GLViewWidget
+============
+
+.. autoclass:: pyqtgraph.opengl.GLViewWidget
+    :members:
+
+    .. automethod:: pyqtgraph.opengl.GLViewWidget.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glvolumeitem.rst b/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glvolumeitem.rst
new file mode 100644
index 00000000..951d78d2
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/glvolumeitem.rst
@@ -0,0 +1,8 @@
+GLVolumeItem
+============
+
+.. autoclass:: pyqtgraph.opengl.GLVolumeItem
+    :members:
+
+    .. automethod:: pyqtgraph.opengl.GLVolumeItem.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/index.rst b/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/index.rst
new file mode 100644
index 00000000..08202d31
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/index.rst
@@ -0,0 +1,31 @@
+PyQtGraph's 3D Graphics System
+==============================
+
+The 3D graphics system in pyqtgraph is composed of a :class:`view widget <pyqtgraph.opengl.GLViewWidget>` and 
+several graphics items (all subclasses of :class:`GLGraphicsItem <pyqtgraph.opengl.GLGraphicsItem>`) which 
+can be added to a view widget.
+
+**Note 1:** pyqtgraph.opengl is based on the deprecated OpenGL fixed-function pipeline. Although it is
+currently a functioning system, it is likely to be superceded in the future by `VisPy <http://vispy.org>`_.
+
+**Note 2:** use of this system requires python-opengl bindings. Linux users should install the python-opengl
+packages from their distribution. Windows/OSX users can download from `<http://pyopengl.sourceforge.net>`_.
+
+Contents:
+
+.. toctree::
+    :maxdepth: 2
+
+    glviewwidget
+
+    glgriditem
+    glsurfaceplotitem
+    glvolumeitem
+    glimageitem
+    glmeshitem
+    gllineplotitem
+    glaxisitem
+    glgraphicsitem
+    glscatterplotitem
+    meshdata
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/meshdata.rst b/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/meshdata.rst
new file mode 100644
index 00000000..2c49c0bf
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/3dgraphics/meshdata.rst
@@ -0,0 +1,8 @@
+MeshData
+========
+
+.. autoclass:: pyqtgraph.opengl.MeshData
+    :members:
+
+    .. automethod:: pyqtgraph.opengl.MeshData.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/apireference.rst b/site-packages/pyqtgraph-0.10.0/doc/source/apireference.rst
new file mode 100644
index 00000000..c4dc64aa
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/apireference.rst
@@ -0,0 +1,17 @@
+API Reference
+=============
+
+Contents:
+
+.. toctree::
+    :maxdepth: 2
+
+    config_options
+    functions
+    graphicsItems/index
+    widgets/index
+    3dgraphics/index
+    colormap
+    parametertree/index
+    graphicsscene/index
+    flowchart/index
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/colormap.rst b/site-packages/pyqtgraph-0.10.0/doc/source/colormap.rst
new file mode 100644
index 00000000..86ffe4a2
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/colormap.rst
@@ -0,0 +1,8 @@
+ColorMap
+========
+
+.. autoclass:: pyqtgraph.ColorMap
+    :members:
+
+    .. automethod:: pyqtgraph.ColorMap.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/conf.py b/site-packages/pyqtgraph-0.10.0/doc/source/conf.py
new file mode 100644
index 00000000..3ec48f75
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/conf.py
@@ -0,0 +1,219 @@
+# -*- coding: utf-8 -*-
+#
+# pyqtgraph documentation build configuration file, created by
+# sphinx-quickstart on Fri Nov 18 19:33:12 2011.
+#
+# This file is execfile()d with the current directory set to its containing dir.
+#
+# Note that not all possible configuration values are present in this
+# autogenerated file.
+#
+# All configuration values have a default; values that are commented out
+# serve to show the default.
+
+import sys, os
+
+# If extensions (or modules to document with autodoc) are in another directory,
+# add these directories to sys.path here. If the directory is relative to the
+# documentation root, use os.path.abspath to make it absolute, like shown here.
+path = os.path.dirname(os.path.abspath(__file__))
+sys.path.insert(0, os.path.join(path, '..', '..'))
+sys.path.insert(0, os.path.join(path, '..', 'extensions'))
+
+# -- General configuration -----------------------------------------------------
+
+# If your documentation needs a minimal Sphinx version, state it here.
+#needs_sphinx = '1.0'
+
+# Add any Sphinx extension module names here, as strings. They can be extensions
+# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
+extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode']
+
+# Add any paths that contain templates here, relative to this directory.
+templates_path = ['_templates']
+
+# The suffix of source filenames.
+source_suffix = '.rst'
+
+# The encoding of source files.
+#source_encoding = 'utf-8-sig'
+
+# The master toctree document.
+master_doc = 'index'
+
+# General information about the project.
+project = 'pyqtgraph'
+copyright = '2011, Luke Campagnola'
+
+# The version info for the project you're documenting, acts as replacement for
+# |version| and |release|, also used in various other places throughout the
+# built documents.
+#
+# The short X.Y version.
+version = '0.10.0'
+# The full version, including alpha/beta/rc tags.
+release = '0.10.0'
+
+# The language for content autogenerated by Sphinx. Refer to documentation
+# for a list of supported languages.
+#language = None
+
+# There are two options for replacing |today|: either, you set today to some
+# non-false value, then it is used:
+#today = ''
+# Else, today_fmt is used as the format for a strftime call.
+#today_fmt = '%B %d, %Y'
+
+# List of patterns, relative to source directory, that match files and
+# directories to ignore when looking for source files.
+exclude_patterns = []
+
+# The reST default role (used for this markup: `text`) to use for all documents.
+#default_role = None
+
+# If true, '()' will be appended to :func: etc. cross-reference text.
+#add_function_parentheses = True
+
+# If true, the current module name will be prepended to all description
+# unit titles (such as .. function::).
+#add_module_names = True
+
+# If true, sectionauthor and moduleauthor directives will be shown in the
+# output. They are ignored by default.
+#show_authors = False
+
+# The name of the Pygments (syntax highlighting) style to use.
+pygments_style = 'sphinx'
+
+# A list of ignored prefixes for module index sorting.
+#modindex_common_prefix = []
+
+
+# -- Options for HTML output ---------------------------------------------------
+
+# The theme to use for HTML and HTML Help pages.  See the documentation for
+# a list of builtin themes.
+html_theme = 'default'
+
+# Theme options are theme-specific and customize the look and feel of a theme
+# further.  For a list of options available for each theme, see the
+# documentation.
+#html_theme_options = {}
+
+# Add any paths that contain custom themes here, relative to this directory.
+#html_theme_path = []
+
+# The name for this set of Sphinx documents.  If None, it defaults to
+# "<project> v<release> documentation".
+#html_title = None
+
+# A shorter title for the navigation bar.  Default is the same as html_title.
+#html_short_title = None
+
+# The name of an image file (relative to this directory) to place at the top
+# of the sidebar.
+#html_logo = None
+
+# The name of an image file (within the static path) to use as favicon of the
+# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
+# pixels large.
+#html_favicon = None
+
+# Add any paths that contain custom static files (such as style sheets) here,
+# relative to this directory. They are copied after the builtin static files,
+# so a file named "default.css" will overwrite the builtin "default.css".
+html_static_path = ['_static']
+
+# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
+# using the given strftime format.
+#html_last_updated_fmt = '%b %d, %Y'
+
+# If true, SmartyPants will be used to convert quotes and dashes to
+# typographically correct entities.
+#html_use_smartypants = True
+
+# Custom sidebar templates, maps document names to template names.
+#html_sidebars = {}
+
+# Additional templates that should be rendered to pages, maps page names to
+# template names.
+#html_additional_pages = {}
+
+# If false, no module index is generated.
+#html_domain_indices = True
+
+# If false, no index is generated.
+#html_use_index = True
+
+# If true, the index is split into individual pages for each letter.
+#html_split_index = False
+
+# If true, links to the reST sources are added to the pages.
+#html_show_sourcelink = True
+
+# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
+#html_show_sphinx = True
+
+# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
+#html_show_copyright = True
+
+# If true, an OpenSearch description file will be output, and all pages will
+# contain a <link> tag referring to it.  The value of this option must be the
+# base URL from which the finished HTML is served.
+#html_use_opensearch = ''
+
+# This is the file name suffix for HTML files (e.g. ".xhtml").
+#html_file_suffix = None
+
+# Output file base name for HTML help builder.
+htmlhelp_basename = 'pyqtgraphdoc'
+
+
+# -- Options for LaTeX output --------------------------------------------------
+
+# The paper size ('letter' or 'a4').
+#latex_paper_size = 'letter'
+
+# The font size ('10pt', '11pt' or '12pt').
+#latex_font_size = '10pt'
+
+# Grouping the document tree into LaTeX files. List of tuples
+# (source start file, target name, title, author, documentclass [howto/manual]).
+latex_documents = [
+  ('index', 'pyqtgraph.tex', 'pyqtgraph Documentation',
+   'Luke Campagnola', 'manual'),
+]
+
+# The name of an image file (relative to this directory) to place at the top of
+# the title page.
+#latex_logo = None
+
+# For "manual" documents, if this is true, then toplevel headings are parts,
+# not chapters.
+#latex_use_parts = False
+
+# If true, show page references after internal links.
+#latex_show_pagerefs = False
+
+# If true, show URL addresses after external links.
+#latex_show_urls = False
+
+# Additional stuff for the LaTeX preamble.
+#latex_preamble = ''
+
+# Documents to append as an appendix to all manuals.
+#latex_appendices = []
+
+# If false, no module index is generated.
+#latex_domain_indices = True
+
+
+# -- Options for manual page output --------------------------------------------
+
+# One entry per manual page. List of tuples
+# (source start file, name, description, authors, manual section).
+man_pages = [
+    ('index', 'pyqtgraph', 'pyqtgraph Documentation',
+     ['Luke Campagnola'], 1)
+]
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/config_options.rst b/site-packages/pyqtgraph-0.10.0/doc/source/config_options.rst
new file mode 100644
index 00000000..61b64499
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/config_options.rst
@@ -0,0 +1,41 @@
+.. currentmodule:: pyqtgraph
+
+.. _apiref_config:
+
+Global Configuration Options
+============================
+
+PyQtGraph has several global configuration options that allow you to change its
+default behavior. These can be accessed using the :func:`setConfigOptions` and 
+:func:`getConfigOption` functions:
+    
+================== =================== ================== ================================================================================
+**Option**         **Type**            **Default**
+leftButtonPan      bool                True               If True, dragging the left mouse button over a ViewBox
+                                                          causes the view to be panned. If False, then dragging
+                                                          the left mouse button draws a rectangle that the 
+                                                          ViewBox will zoom to.
+foreground         See :func:`mkColor` 'd'                Default foreground color for text, lines, axes, etc.
+background         See :func:`mkColor` 'k'                Default background for :class:`GraphicsView`.
+antialias          bool                False              Enabling antialiasing causes lines to be drawn with 
+                                                          smooth edges at the cost of reduced performance.
+imageAxisOrder     str                 'col-major'        For 'row-major', image data is expected in the standard row-major 
+                                                          (row, col) order. For 'col-major', image data is expected in
+                                                          reversed column-major (col, row) order.
+                                                          The default is 'col-major' for backward compatibility, but this may
+                                                          change in the future.
+editorCommand      str or None         None               Command used to invoke code editor from ConsoleWidget.
+exitCleanup        bool                True               Attempt to work around some exit crash bugs in PyQt and PySide.
+useWeave           bool                False              Use weave to speed up some operations, if it is available.
+weaveDebug         bool                False              Print full error message if weave compile fails.
+useOpenGL          bool                False              Enable OpenGL in GraphicsView. This can have unpredictable effects on stability
+                                                          and performance.
+enableExperimental bool                False              Enable experimental features (the curious can search for this key in the code).
+crashWarning       bool                False              If True, print warnings about situations that may result in a crash.
+================== =================== ================== ================================================================================
+
+
+.. autofunction:: pyqtgraph.setConfigOptions
+
+.. autofunction:: pyqtgraph.getConfigOption
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/exporting.rst b/site-packages/pyqtgraph-0.10.0/doc/source/exporting.rst
new file mode 100644
index 00000000..ccd017d7
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/exporting.rst
@@ -0,0 +1,68 @@
+Exporting
+=========
+
+PyQtGraph provides a variety of export formats for all 2D graphics. For 3D graphics, see `Exporting 3D Graphics`_ below.
+
+Exporting from the GUI
+----------------------
+
+Any 2D graphics can be exported by right-clicking on the graphic, then selecting 'export' from the context menu. 
+This will display the export dialog in which the user must:
+
+#. Select an item (or the entire scene) to export. Selecting an item will cause the item to be hilighted in the original 
+   graphic window (but this hilight will not be displayed in the exported file). 
+#. Select an export format.
+#. Change any desired export options.
+#. Click the 'export' button.
+
+Export Formats
+--------------
+
+* Image - PNG is the default format. The exact set of image formats supported will depend on your Qt libraries. However, 
+  common formats such as PNG, JPG, and TIFF are almost always available. 
+* SVG - Graphics exported as SVG are targeted to work as well as possible with both Inkscape and 
+  Adobe Illustrator. For high quality SVG export, please use PyQtGraph version 0.9.3 or later.
+  This is the preferred method for generating publication graphics from PyQtGraph.
+* CSV - Exports plotted data as CSV. This exporter _only_ works if a PlotItem is selected for export.
+* Matplotlib - This exporter opens a new window and attempts to re-plot the
+  data using matplotlib (if available). Note that some graphic features are either not implemented
+  for this exporter or not available in matplotlib. This exporter _only_ works if a PlotItem is selected
+  for export.
+* Printer - Exports to the operating system's printing service. This exporter is provided for completeness, 
+  but is not well supported due to problems with Qt's printing system.
+
+
+
+Exporting from the API
+----------------------
+
+To export a file programatically, follow this example::
+
+    import pyqtgraph as pg
+    import pyqtgraph.exporters
+    
+    # generate something to export
+    plt = pg.plot([1,5,2,4,3])
+
+    # create an exporter instance, as an argument give it
+    # the item you wish to export
+    exporter = pg.exporters.ImageExporter(plt.plotItem)
+
+    # set export parameters if needed
+    exporter.parameters()['width'] = 100   # (note this also affects height parameter)
+    
+    # save to file
+    exporter.export('fileName.png')
+    
+
+Exporting 3D Graphics
+---------------------
+
+The exporting functionality described above is not yet available for 3D graphics. However, it is possible to 
+generate an image from a GLViewWidget by using QGLWidget.grabFrameBuffer or QGLWidget.renderPixmap::
+
+    glview.grabFrameBuffer().save('fileName.png')
+
+See the Qt documentation for more information. 
+
+    
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/flowchart/flowchart.rst b/site-packages/pyqtgraph-0.10.0/doc/source/flowchart/flowchart.rst
new file mode 100644
index 00000000..457d864e
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/flowchart/flowchart.rst
@@ -0,0 +1,8 @@
+flowchart.Flowchart
+===================
+
+.. autoclass:: pyqtgraph.flowchart.Flowchart
+    :members:
+
+    .. automethod:: pyqtgraph.flowchart.Flowchart.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/flowchart/index.rst b/site-packages/pyqtgraph-0.10.0/doc/source/flowchart/index.rst
new file mode 100644
index 00000000..5eca05c1
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/flowchart/index.rst
@@ -0,0 +1,145 @@
+Visual Programming with Flowcharts
+==================================
+
+PyQtGraph's flowcharts provide a visual programming environment similar in concept to LabView--functional modules are added to a flowchart and connected by wires to define a more complex and arbitrarily configurable algorithm. A small number of predefined modules (called Nodes) are included with pyqtgraph, but most flowchart developers will want to define their own library of Nodes. At their core, the Nodes are little more than 1) a python function 2) a list of input/output terminals, and 3) an optional widget providing a control panel for the Node. Nodes may transmit/receive any type of Python object via their terminals.
+
+One major limitation of flowcharts is that there is no mechanism for looping within a flowchart. (however individual Nodes may contain loops (they may contain any Python code at all), and an entire flowchart may be executed from within a loop). 
+
+There are two distinct modes of executing the code in a flowchart:
+    
+1. Provide data to the input terminals of the flowchart. This method is slower and will provide a graphical representation of the data as it passes through the flowchart. This is useful for debugging as it allows the user to inspect the data at each terminal and see where exceptions occurred within the flowchart.
+2. Call :func:`Flowchart.process() <pyqtgraph.flowchart.Flowchart.process>`. This method does not update the displayed state of the flowchart and only retains the state of each terminal as long as it is needed. Additionally, Nodes which do not contribute to the output values of the flowchart (such as plotting nodes) are ignored. This mode allows for faster processing of large data sets and avoids memory issues which can occur if too much data is present in the flowchart at once (e.g., when processing image data through several stages). 
+
+See the flowchart example for more information.
+
+API Reference:
+
+.. toctree::
+    :maxdepth: 2
+
+    flowchart
+    node
+    terminal
+
+Basic Use
+---------
+
+Flowcharts are most useful in situations where you have a processing stage in your application that you would like to be arbitrarily configurable by the user. Rather than giving a pre-defined algorithm with parameters for the user to tweak, you supply a set of pre-defined functions and allow the user to arrange and connect these functions how they like. A very common example is the use of filter networks in audio / video processing applications.
+
+To begin, you must decide what the input and output variables will be for your flowchart. Create a flowchart with one terminal defined for each variable::
+    
+    ## This example creates just a single input and a single output.
+    ## Flowcharts may define any number of terminals, though.
+    from pyqtgraph.flowchart import Flowchart
+    fc = Flowchart(terminals={
+        'nameOfInputTerminal': {'io': 'in'},
+        'nameOfOutputTerminal': {'io': 'out'}    
+    })
+    
+In the example above, each terminal is defined by a dictionary of options which define the behavior of that terminal (see :func:`Terminal.__init__() <pyqtgraph.flowchart.Terminal.__init__>` for more information and options). Note that Terminals are not typed; any python object may be passed from one Terminal to another.
+
+Once the flowchart is created, add its control widget to your application::
+    
+    ctrl = fc.ctrlWidget()
+    myLayout.addWidget(ctrl)  ## read Qt docs on QWidget and layouts for more information
+
+The control widget provides several features:
+    
+* Displays a list of all nodes in the flowchart containing the control widget for
+  each node.
+* Provides access to the flowchart design window via the 'flowchart' button
+* Interface for saving / restoring flowcharts to disk.
+
+At this point your user has the ability to generate flowcharts based on the built-in node library. It is recommended to provide a default set of flowcharts for your users to build from.
+
+All that remains is to process data through the flowchart. As noted above, there are two ways to do this:
+
+.. _processing methods:
+
+1. Set the values of input terminals with :func:`Flowchart.setInput() <pyqtgraph.flowchart.Flowchart.setInput>`, then read the values of output terminals with :func:`Flowchart.output() <pyqtgraph.flowchart.Flowchart.output>`::
+    
+       fc.setInput(nameOfInputTerminal=newValue)
+       output = fc.output()  # returns {terminalName:value}
+       
+   This method updates all of the values displayed in the flowchart design window, allowing the user to inspect values at all terminals in the flowchart and indicating the location of errors that occurred during processing.
+2. Call :func:`Flowchart.process() <pyqtgraph.flowchart.Flowchart.process>`::
+    
+       output = fc.process(nameOfInputTerminal=newValue)
+       
+   This method processes data without updating any of the displayed terminal values. Additionally, all :func:`Node.process() <pyqtgraph.flowchart.Node.process>` methods are called with display=False to request that they not invoke any custom display code. This allows data to be processed both more quickly and with a smaller memory footprint, but errors that occur during Flowchart.process() will be more difficult for the user to diagnose. It is thus recommended to use this method for batch processing through flowcharts that have already been tested and debugged with method 1.
+
+Implementing Custom Nodes
+-------------------------
+
+PyQtGraph includes a small library of built-in flowchart nodes. This library is intended to cover some of the most commonly-used functions as well as provide examples for some more exotic Node types. Most applications that use the flowchart system will find the built-in library insufficient and will thus need to implement custom Node classes. 
+
+A node subclass implements at least:
+    
+1) A list of input / output terminals and their properties
+2) A :func:`process() <pyqtgraph.flowchart.Node.process>` function which takes the names of input terminals as keyword arguments and returns a dict with the names of output terminals as keys.
+
+Optionally, a Node subclass can implement the :func:`ctrlWidget() <pyqtgraph.flowchart.Node.ctrlWidget>` method, which must return a QWidget (usually containing other widgets) that will be displayed in the flowchart control panel. A minimal Node subclass looks like::
+    
+    class SpecialFunctionNode(Node):
+        """SpecialFunction: short description
+        
+        This description will appear in the flowchart design window when the user 
+        selects a node of this type.
+        """
+        nodeName = 'SpecialFunction' # Node type name that will appear to the user.
+         
+        def __init__(self, name):  # all Nodes are provided a unique name when they
+                                   # are created.
+            Node.__init__(self, name, terminals={  # Initialize with a dict 
+                                                   # describing the I/O terminals
+                                                   # on this Node.
+                'inputTerminalName': {'io': 'in'},
+                'anotherInputTerminal': {'io': 'in'},
+                'outputTerminalName': {'io': 'out'},
+                })
+                
+        def process(self, **kwds):
+            # kwds will have one keyword argument per input terminal.
+            
+            return {'outputTerminalName': result}
+        
+        def ctrlWidget(self):  # this method is optional
+            return someQWidget
+
+Some nodes implement fairly complex control widgets, but most nodes follow a simple form-like pattern: a list of parameter names and a single value (represented as spin box, check box, etc..) for each parameter. To make this easier, the :class:`~pyqtgraph.flowchart.library.common.CtrlNode` subclass allows you to instead define a simple data structure that CtrlNode will use to automatically generate the control widget. This is used in  many of the built-in library nodes (especially the filters).
+
+There are many other optional parameters for nodes and terminals -- whether the user is allowed to add/remove/rename terminals, whether one terminal may be connected to many others or just one, etc. See the documentation on the :class:`~pyqtgraph.flowchart.Node` and :class:`~pyqtgraph.flowchart.Terminal` classes for more details.
+
+After implementing a new Node subclass, you will most likely want to register the class so that it appears in the menu of Nodes the user can select from::
+    
+    import pyqtgraph.flowchart.library as fclib
+    fclib.registerNodeType(SpecialFunctionNode, [('Category', 'Sub-Category')])
+    
+The second argument to registerNodeType is a list of tuples, with each tuple describing a menu location in which SpecialFunctionNode should appear.
+    
+See the FlowchartCustomNode example for more information.
+
+
+Debugging Custom Nodes
+^^^^^^^^^^^^^^^^^^^^^^
+
+When designing flowcharts or custom Nodes, it is important to set the input of the flowchart with data that at least has the same types and structure as the data you intend to process (see `processing methods`_ #1 above). When you use :func:`Flowchart.setInput() <pyqtgraph.flowchart.Flowchart.setInput>`, the flowchart displays visual feedback in its design window that can tell you what data is present at any terminal and whether there were errors in processing. Nodes that generated errors are displayed with a red border. If you select a Node, its input and output values will be displayed as well as the exception that occurred while the node was processing, if any.
+
+
+Using Nodes Without Flowcharts
+------------------------------
+
+Flowchart Nodes implement a very useful generalization in data processing by combining a function with a GUI for configuring that function. This generalization is useful even outside the context of a flowchart. For example::
+    
+    ## We defined a useful filter Node for use in flowcharts, but would like to 
+    ## re-use its processing code and GUI without having a flowchart present.
+    filterNode = MyFilterNode("filterNodeName")
+    
+    ## get the Node's control widget and place it inside the main window
+    filterCtrl = filterNode.ctrlWidget()
+    someLayout.addWidget(filterCtrl)
+    
+    ## later on, process data through the node
+    filteredData = filterNode.process(inputTerminal=rawData)
+
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/flowchart/node.rst b/site-packages/pyqtgraph-0.10.0/doc/source/flowchart/node.rst
new file mode 100644
index 00000000..9ff2f785
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/flowchart/node.rst
@@ -0,0 +1,8 @@
+flowchart.Node
+==============
+
+.. autoclass:: pyqtgraph.flowchart.Node
+    :members:
+
+    .. automethod:: pyqtgraph.flowchart.Node.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/flowchart/terminal.rst b/site-packages/pyqtgraph-0.10.0/doc/source/flowchart/terminal.rst
new file mode 100644
index 00000000..d028e300
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/flowchart/terminal.rst
@@ -0,0 +1,8 @@
+flowchart.Terminal
+==================
+
+.. autoclass:: pyqtgraph.flowchart.Terminal
+    :members:
+
+    .. automethod:: pyqtgraph.flowchart.Terminal.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/functions.rst b/site-packages/pyqtgraph-0.10.0/doc/source/functions.rst
new file mode 100644
index 00000000..8ea67a69
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/functions.rst
@@ -0,0 +1,104 @@
+PyQtGraph's Helper Functions
+============================
+
+Simple Data Display Functions
+-----------------------------
+
+.. autofunction:: pyqtgraph.plot
+
+.. autofunction:: pyqtgraph.image
+
+.. autofunction:: pyqtgraph.dbg
+
+Color, Pen, and Brush Functions
+-------------------------------
+
+Qt uses the classes QColor, QPen, and QBrush to determine how to draw lines and fill shapes. These classes are highly capable but somewhat awkward to use. PyQtGraph offers the functions :func:`~pyqtgraph.mkColor`, :func:`~pyqtgraph.mkPen`, and :func:`~pyqtgraph.mkBrush` to simplify the process of creating these classes. In most cases, however, it will be unnecessary to call these functions directly--any function or method that accepts *pen* or *brush* arguments will make use of these functions for you. For example, the following three lines all have the same effect::
+    
+    pg.plot(xdata, ydata, pen='r')
+    pg.plot(xdata, ydata, pen=pg.mkPen('r'))
+    pg.plot(xdata, ydata, pen=QPen(QColor(255, 0, 0)))
+
+
+.. autofunction:: pyqtgraph.mkColor
+
+.. autofunction:: pyqtgraph.mkPen
+
+.. autofunction:: pyqtgraph.mkBrush
+
+.. autofunction:: pyqtgraph.hsvColor
+
+.. autofunction:: pyqtgraph.intColor
+
+.. autofunction:: pyqtgraph.colorTuple
+
+.. autofunction:: pyqtgraph.colorStr
+
+.. autofunction:: pyqtgraph.glColor
+
+
+Data Slicing
+------------
+
+.. autofunction:: pyqtgraph.affineSlice
+
+
+Coordinate Transformation
+-------------------------
+
+.. autofunction:: pyqtgraph.transformToArray
+
+.. autofunction:: pyqtgraph.transformCoordinates
+
+.. autofunction:: pyqtgraph.solve3DTransform
+
+.. autofunction:: pyqtgraph.solveBilinearTransform
+
+
+
+SI Unit Conversion Functions
+----------------------------
+
+.. autofunction:: pyqtgraph.siFormat
+
+.. autofunction:: pyqtgraph.siScale
+
+.. autofunction:: pyqtgraph.siEval
+
+
+Image Preparation Functions
+---------------------------
+
+.. autofunction:: pyqtgraph.makeARGB
+
+.. autofunction:: pyqtgraph.makeQImage
+
+.. autofunction:: pyqtgraph.applyLookupTable
+
+.. autofunction:: pyqtgraph.rescaleData
+
+.. autofunction:: pyqtgraph.imageToArray
+
+
+Mesh Generation Functions
+-------------------------
+
+.. autofunction:: pyqtgraph.isocurve
+
+.. autofunction:: pyqtgraph.isosurface
+
+
+Miscellaneous Functions
+-----------------------
+
+.. autofunction:: pyqtgraph.eq
+
+.. autofunction:: pyqtgraph.arrayToQPath
+
+.. autofunction:: pyqtgraph.pseudoScatter
+
+.. autofunction:: pyqtgraph.systemInfo
+
+.. autofunction:: pyqtgraph.exit
+
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/arrowitem.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/arrowitem.rst
new file mode 100644
index 00000000..250957a5
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/arrowitem.rst
@@ -0,0 +1,8 @@
+ArrowItem
+=========
+
+.. autoclass:: pyqtgraph.ArrowItem
+    :members:
+
+    .. automethod:: pyqtgraph.ArrowItem.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/axisitem.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/axisitem.rst
new file mode 100644
index 00000000..8f76d130
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/axisitem.rst
@@ -0,0 +1,8 @@
+AxisItem
+========
+
+.. autoclass:: pyqtgraph.AxisItem
+    :members:
+
+    .. automethod:: pyqtgraph.AxisItem.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/buttonitem.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/buttonitem.rst
new file mode 100644
index 00000000..44469db6
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/buttonitem.rst
@@ -0,0 +1,8 @@
+ButtonItem
+==========
+
+.. autoclass:: pyqtgraph.ButtonItem
+    :members:
+
+    .. automethod:: pyqtgraph.ButtonItem.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/curvearrow.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/curvearrow.rst
new file mode 100644
index 00000000..4c7f11ab
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/curvearrow.rst
@@ -0,0 +1,8 @@
+CurveArrow
+==========
+
+.. autoclass:: pyqtgraph.CurveArrow
+    :members:
+
+    .. automethod:: pyqtgraph.CurveArrow.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/curvepoint.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/curvepoint.rst
new file mode 100644
index 00000000..f19791f7
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/curvepoint.rst
@@ -0,0 +1,8 @@
+CurvePoint
+==========
+
+.. autoclass:: pyqtgraph.CurvePoint
+    :members:
+
+    .. automethod:: pyqtgraph.CurvePoint.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/errorbaritem.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/errorbaritem.rst
new file mode 100644
index 00000000..be68a5dd
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/errorbaritem.rst
@@ -0,0 +1,8 @@
+ErrorBarItem
+============
+
+.. autoclass:: pyqtgraph.ErrorBarItem
+    :members:
+
+    .. automethod:: pyqtgraph.ErrorBarItem.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/fillbetweenitem.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/fillbetweenitem.rst
new file mode 100644
index 00000000..680f29cc
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/fillbetweenitem.rst
@@ -0,0 +1,8 @@
+FillBetweenItem
+===============
+
+.. autoclass:: pyqtgraph.FillBetweenItem
+    :members:
+
+    .. automethod:: pyqtgraph.FillBetweenItem.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/gradienteditoritem.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/gradienteditoritem.rst
new file mode 100644
index 00000000..cd277869
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/gradienteditoritem.rst
@@ -0,0 +1,19 @@
+GradientEditorItem
+==================
+
+.. autoclass:: pyqtgraph.GradientEditorItem
+    :members:
+
+    .. automethod:: pyqtgraph.GradientEditorItem.__init__
+    
+    
+TickSliderItem
+==================
+
+.. autoclass:: pyqtgraph.TickSliderItem
+    :members:
+
+    .. automethod:: pyqtgraph.TickSliderItem.__init__
+    
+
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/gradientlegend.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/gradientlegend.rst
new file mode 100644
index 00000000..f47031c0
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/gradientlegend.rst
@@ -0,0 +1,8 @@
+GradientLegend
+==============
+
+.. autoclass:: pyqtgraph.GradientLegend
+    :members:
+
+    .. automethod:: pyqtgraph.GradientLegend.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/graphicsitem.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/graphicsitem.rst
new file mode 100644
index 00000000..b9573aea
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/graphicsitem.rst
@@ -0,0 +1,6 @@
+GraphicsItem
+============
+
+.. autoclass:: pyqtgraph.GraphicsItem
+    :members:
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/graphicslayout.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/graphicslayout.rst
new file mode 100644
index 00000000..f45dfd87
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/graphicslayout.rst
@@ -0,0 +1,8 @@
+GraphicsLayout
+==============
+
+.. autoclass:: pyqtgraph.GraphicsLayout
+    :members:
+
+    .. automethod:: pyqtgraph.GraphicsLayout.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/graphicsobject.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/graphicsobject.rst
new file mode 100644
index 00000000..736d941e
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/graphicsobject.rst
@@ -0,0 +1,8 @@
+GraphicsObject
+==============
+
+.. autoclass:: pyqtgraph.GraphicsObject
+    :members:
+
+    .. automethod:: pyqtgraph.GraphicsObject.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/graphicswidget.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/graphicswidget.rst
new file mode 100644
index 00000000..7cf23bbe
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/graphicswidget.rst
@@ -0,0 +1,8 @@
+GraphicsWidget
+==============
+
+.. autoclass:: pyqtgraph.GraphicsWidget
+    :members:
+
+    .. automethod:: pyqtgraph.GraphicsWidget.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/graphicswidgetanchor.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/graphicswidgetanchor.rst
new file mode 100644
index 00000000..e0f9d6a7
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/graphicswidgetanchor.rst
@@ -0,0 +1,8 @@
+GraphicsWidgetAnchor
+====================
+
+.. autoclass:: pyqtgraph.GraphicsWidgetAnchor
+    :members:
+
+    .. automethod:: pyqtgraph.GraphicsWidgetAnchor.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/graphitem.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/graphitem.rst
new file mode 100644
index 00000000..95e31e28
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/graphitem.rst
@@ -0,0 +1,8 @@
+GraphItem
+=========
+
+.. autoclass:: pyqtgraph.GraphItem
+    :members:
+
+    .. automethod:: pyqtgraph.GraphItem.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/griditem.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/griditem.rst
new file mode 100644
index 00000000..aa932766
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/griditem.rst
@@ -0,0 +1,8 @@
+GridItem
+========
+
+.. autoclass:: pyqtgraph.GridItem
+    :members:
+
+    .. automethod:: pyqtgraph.GridItem.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/histogramlutitem.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/histogramlutitem.rst
new file mode 100644
index 00000000..db0e18cb
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/histogramlutitem.rst
@@ -0,0 +1,8 @@
+HistogramLUTItem
+================
+
+.. autoclass:: pyqtgraph.HistogramLUTItem
+    :members:
+
+    .. automethod:: pyqtgraph.HistogramLUTItem.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/imageitem.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/imageitem.rst
new file mode 100644
index 00000000..49a981dc
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/imageitem.rst
@@ -0,0 +1,8 @@
+ImageItem
+=========
+
+.. autoclass:: pyqtgraph.ImageItem
+    :members:
+
+    .. automethod:: pyqtgraph.ImageItem.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/index.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/index.rst
new file mode 100644
index 00000000..7042d27e
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/index.rst
@@ -0,0 +1,45 @@
+PyQtGraph's Graphics Items
+==========================
+
+Since pyqtgraph relies on Qt's GraphicsView framework, most of its graphics functionality is implemented as QGraphicsItem subclasses. This has two important consequences: 1) virtually anything you want to draw can be easily accomplished using the functionality provided by Qt. 2) Many of pyqtgraph's GraphicsItem classes can be used in any normal QGraphicsScene.
+
+
+Contents:
+
+.. toctree::
+    :maxdepth: 2
+
+    plotdataitem
+    plotitem
+    imageitem
+    graphitem
+    viewbox
+    linearregionitem
+    infiniteline
+    roi
+    graphicslayout
+    plotcurveitem
+    scatterplotitem
+    isocurveitem
+    axisitem
+    textitem
+    errorbaritem
+    arrowitem
+    fillbetweenitem
+    curvepoint
+    curvearrow
+    griditem
+    scalebar
+    labelitem
+    vtickgroup
+    legenditem
+    gradienteditoritem
+    histogramlutitem
+    gradientlegend
+    buttonitem
+    graphicsobject
+    graphicswidget
+    graphicsitem
+    uigraphicsitem
+    graphicswidgetanchor
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/infiniteline.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/infiniteline.rst
new file mode 100644
index 00000000..e95987bc
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/infiniteline.rst
@@ -0,0 +1,8 @@
+InfiniteLine
+============
+
+.. autoclass:: pyqtgraph.InfiniteLine
+    :members:
+
+    .. automethod:: pyqtgraph.InfiniteLine.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/isocurveitem.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/isocurveitem.rst
new file mode 100644
index 00000000..01b8ee69
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/isocurveitem.rst
@@ -0,0 +1,7 @@
+IsocurveItem
+============
+
+.. autoclass:: pyqtgraph.IsocurveItem
+    :members:
+
+    .. automethod:: pyqtgraph.IsocurveItem.__init__
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/labelitem.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/labelitem.rst
new file mode 100644
index 00000000..ca420d76
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/labelitem.rst
@@ -0,0 +1,8 @@
+LabelItem
+=========
+
+.. autoclass:: pyqtgraph.LabelItem
+    :members:
+
+    .. automethod:: pyqtgraph.LabelItem.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/legenditem.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/legenditem.rst
new file mode 100644
index 00000000..e94b0995
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/legenditem.rst
@@ -0,0 +1,8 @@
+LegendItem
+==========
+
+.. autoclass:: pyqtgraph.LegendItem
+    :members:
+
+    .. automethod:: pyqtgraph.LegendItem.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/linearregionitem.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/linearregionitem.rst
new file mode 100644
index 00000000..9bcb534c
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/linearregionitem.rst
@@ -0,0 +1,8 @@
+LinearRegionItem
+================
+
+.. autoclass:: pyqtgraph.LinearRegionItem
+    :members:
+
+    .. automethod:: pyqtgraph.LinearRegionItem.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/make b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/make
new file mode 100644
index 00000000..293db0d6
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/make
@@ -0,0 +1,37 @@
+files = """ArrowItem
+AxisItem
+ButtonItem
+CurvePoint
+GradientEditorItem
+GradientLegend
+GraphicsLayout
+GraphicsObject
+GraphicsWidget
+GridItem
+HistogramLUTItem
+ImageItem
+InfiniteLine
+LabelItem
+LinearRegionItem
+PlotCurveItem
+PlotDataItem
+ROI
+ScaleBar
+ScatterPlotItem
+UIGraphicsItem
+ViewBox
+VTickGroup""".split('\n')
+
+for f in files:
+    print(f)
+    fh = open(f.lower()+'.rst', 'w')
+    fh.write(
+"""%s
+%s
+
+.. autoclass:: pyqtgraph.%s
+    :members:
+
+    .. automethod:: pyqtgraph.%s.__init__
+
+""" % (f, '='*len(f), f, f))
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/plotcurveitem.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/plotcurveitem.rst
new file mode 100644
index 00000000..f0b2171d
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/plotcurveitem.rst
@@ -0,0 +1,8 @@
+PlotCurveItem
+=============
+
+.. autoclass:: pyqtgraph.PlotCurveItem
+    :members:
+
+    .. automethod:: pyqtgraph.PlotCurveItem.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/plotdataitem.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/plotdataitem.rst
new file mode 100644
index 00000000..275084e9
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/plotdataitem.rst
@@ -0,0 +1,8 @@
+PlotDataItem
+============
+
+.. autoclass:: pyqtgraph.PlotDataItem
+    :members:
+
+    .. automethod:: pyqtgraph.PlotDataItem.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/plotitem.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/plotitem.rst
new file mode 100644
index 00000000..60cedf60
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/plotitem.rst
@@ -0,0 +1,7 @@
+PlotItem
+========
+
+.. autoclass:: pyqtgraph.PlotItem()
+    :members:
+    
+    .. automethod:: pyqtgraph.PlotItem.__init__
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/roi.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/roi.rst
new file mode 100644
index 00000000..f4f4346d
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/roi.rst
@@ -0,0 +1,28 @@
+ROI
+===
+
+.. autoclass:: pyqtgraph.ROI
+    :members:
+
+.. autoclass:: pyqtgraph.RectROI
+    :members:
+
+.. autoclass:: pyqtgraph.EllipseROI
+    :members:
+
+.. autoclass:: pyqtgraph.CircleROI
+    :members:
+
+.. autoclass:: pyqtgraph.LineSegmentROI
+    :members:
+
+.. autoclass:: pyqtgraph.PolyLineROI
+    :members:
+
+.. autoclass:: pyqtgraph.LineROI
+    :members:
+
+.. autoclass:: pyqtgraph.MultiRectROI
+    :members:
+
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/scalebar.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/scalebar.rst
new file mode 100644
index 00000000..2ab33967
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/scalebar.rst
@@ -0,0 +1,8 @@
+ScaleBar
+========
+
+.. autoclass:: pyqtgraph.ScaleBar
+    :members:
+
+    .. automethod:: pyqtgraph.ScaleBar.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/scatterplotitem.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/scatterplotitem.rst
new file mode 100644
index 00000000..be2c874b
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/scatterplotitem.rst
@@ -0,0 +1,8 @@
+ScatterPlotItem
+===============
+
+.. autoclass:: pyqtgraph.ScatterPlotItem
+    :members:
+
+    .. automethod:: pyqtgraph.ScatterPlotItem.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/textitem.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/textitem.rst
new file mode 100644
index 00000000..143e539d
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/textitem.rst
@@ -0,0 +1,8 @@
+TextItem
+========
+
+.. autoclass:: pyqtgraph.TextItem
+    :members:
+
+    .. automethod:: pyqtgraph.TextItem.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/uigraphicsitem.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/uigraphicsitem.rst
new file mode 100644
index 00000000..4f0b9933
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/uigraphicsitem.rst
@@ -0,0 +1,8 @@
+UIGraphicsItem
+==============
+
+.. autoclass:: pyqtgraph.UIGraphicsItem
+    :members:
+
+    .. automethod:: pyqtgraph.UIGraphicsItem.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/viewbox.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/viewbox.rst
new file mode 100644
index 00000000..3593d295
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/viewbox.rst
@@ -0,0 +1,8 @@
+ViewBox
+=======
+
+.. autoclass:: pyqtgraph.ViewBox
+    :members:
+
+    .. automethod:: pyqtgraph.ViewBox.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/vtickgroup.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/vtickgroup.rst
new file mode 100644
index 00000000..342705de
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsItems/vtickgroup.rst
@@ -0,0 +1,8 @@
+VTickGroup
+==========
+
+.. autoclass:: pyqtgraph.VTickGroup
+    :members:
+
+    .. automethod:: pyqtgraph.VTickGroup.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsscene/graphicsscene.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsscene/graphicsscene.rst
new file mode 100644
index 00000000..334a282b
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsscene/graphicsscene.rst
@@ -0,0 +1,8 @@
+GraphicsScene
+=============
+
+.. autoclass:: pyqtgraph.GraphicsScene
+    :members:
+
+    .. automethod:: pyqtgraph.GraphicsScene.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsscene/hoverevent.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsscene/hoverevent.rst
new file mode 100644
index 00000000..46007f91
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsscene/hoverevent.rst
@@ -0,0 +1,5 @@
+HoverEvent
+==========
+
+.. autoclass:: pyqtgraph.GraphicsScene.mouseEvents.HoverEvent
+    :members:
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsscene/index.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsscene/index.rst
new file mode 100644
index 00000000..189bde6c
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsscene/index.rst
@@ -0,0 +1,12 @@
+GraphicsScene and Mouse Events
+==============================
+
+Contents:
+
+.. toctree::
+    :maxdepth: 2
+
+    graphicsscene
+    hoverevent
+    mouseclickevent
+    mousedragevent
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsscene/mouseclickevent.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsscene/mouseclickevent.rst
new file mode 100644
index 00000000..f0c94e16
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsscene/mouseclickevent.rst
@@ -0,0 +1,5 @@
+MouseClickEvent
+===============
+
+.. autoclass:: pyqtgraph.GraphicsScene.mouseEvents.MouseClickEvent
+    :members:
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicsscene/mousedragevent.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsscene/mousedragevent.rst
new file mode 100644
index 00000000..05c3aa6c
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicsscene/mousedragevent.rst
@@ -0,0 +1,5 @@
+MouseDragEvent
+==============
+
+.. autoclass:: pyqtgraph.GraphicsScene.mouseEvents.MouseDragEvent
+    :members:
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/graphicswindow.rst b/site-packages/pyqtgraph-0.10.0/doc/source/graphicswindow.rst
new file mode 100644
index 00000000..3d5641c3
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/graphicswindow.rst
@@ -0,0 +1,8 @@
+Basic display widgets
+=====================
+
+ - GraphicsWindow
+ - GraphicsView
+ - GraphicsLayoutItem
+ - ViewBox
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/how_to_use.rst b/site-packages/pyqtgraph-0.10.0/doc/source/how_to_use.rst
new file mode 100644
index 00000000..e4424374
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/how_to_use.rst
@@ -0,0 +1,123 @@
+How to use pyqtgraph
+====================
+
+There are a few suggested ways to use pyqtgraph:
+    
+* From the interactive shell (python -i, ipython, etc)
+* Displaying pop-up windows from an application
+* Embedding widgets in a PyQt application
+
+
+
+Command-line use
+----------------
+
+PyQtGraph makes it very easy to visualize data from the command line. Observe::
+    
+    import pyqtgraph as pg
+    pg.plot(data)   # data can be a list of values or a numpy array
+
+The example above would open a window displaying a line plot of the data given. The call to :func:`pg.plot <pyqtgraph.plot>` returns a handle to the :class:`plot widget <pyqtgraph.PlotWidget>` that is created, allowing more data to be added to the same window. **Note:** interactive plotting from the python prompt is only available with PyQt; PySide does not run the Qt event loop while the interactive prompt is running. If you wish to use pyqtgraph interactively with PySide, see the 'console' :ref:`example <examples>`.
+
+Further examples::
+    
+    pw = pg.plot(xVals, yVals, pen='r')  # plot x vs y in red
+    pw.plot(xVals, yVals2, pen='b')
+    
+    win = pg.GraphicsWindow()  # Automatically generates grids with multiple items
+    win.addPlot(data1, row=0, col=0)
+    win.addPlot(data2, row=0, col=1)
+    win.addPlot(data3, row=1, col=0, colspan=2)
+
+    pg.show(imageData)  # imageData must be a numpy array with 2 to 4 dimensions
+    
+We're only scratching the surface here--these functions accept many different data formats and options for customizing the appearance of your data.
+
+
+Displaying windows from within an application
+---------------------------------------------
+
+While I consider this approach somewhat lazy, it is often the case that 'lazy' is indistinguishable from 'highly efficient'. The approach here is simply to use the very same functions that would be used on the command line, but from within an existing application. I often use this when I simply want to get a immediate feedback about the state of data in my application without taking the time to build a user interface for it.
+
+
+Embedding widgets inside PyQt applications
+------------------------------------------
+
+For the serious application developer, all of the functionality in pyqtgraph is available via :ref:`widgets <api_widgets>` that can be embedded just like any other Qt widgets. Most importantly, see: :class:`PlotWidget <pyqtgraph.PlotWidget>`, :class:`ImageView <pyqtgraph.ImageView>`, :class:`GraphicsLayoutWidget <pyqtgraph.GraphicsLayoutWidget>`, and :class:`GraphicsView <pyqtgraph.GraphicsView>`. PyQtGraph's widgets can be included in Designer's ui files via the "Promote To..." functionality:
+    
+#. In Designer, create a QGraphicsView widget ("Graphics View" under the "Display Widgets" category).
+#. Right-click on the QGraphicsView and select "Promote To...".
+#. Under "Promoted class name", enter the class name you wish to use ("PlotWidget", "GraphicsLayoutWidget", etc).
+#. Under "Header file", enter "pyqtgraph".
+#. Click "Add", then click "Promote".
+
+See the designer documentation for more information on promoting widgets. The "VideoSpeedTest" and "ScatterPlotSpeedTest" examples both demonstrate the use of .ui files that are compiled to .py modules using pyuic4 or pyside-uic. The "designerExample" example demonstrates dynamically generating python classes from .ui files (no pyuic4 / pyside-uic needed).
+
+
+PyQt and PySide
+---------------
+
+PyQtGraph supports two popular python wrappers for the Qt library: PyQt and PySide. Both packages provide nearly identical 
+APIs and functionality, but for various reasons (discussed elsewhere) you may prefer to use one package or the other. When
+pyqtgraph is first imported, it automatically determines which library to use by making the fillowing checks:
+    
+#. If PyQt4 is already imported, use that
+#. Else, if PySide is already imported, use that
+#. Else, attempt to import PyQt4
+#. If that import fails, attempt to import PySide. 
+
+If you have both libraries installed on your system and you wish to force pyqtgraph to use one or the other, simply
+make sure it is imported before pyqtgraph::
+    
+    import PySide  ## this will force pyqtgraph to use PySide instead of PyQt4
+    import pyqtgraph as pg
+
+
+Embedding PyQtGraph as a sub-package of a larger project
+--------------------------------------------------------
+
+When writing applications or python packages that make use of pyqtgraph, it is most common to install pyqtgraph system-wide (or within a virtualenv) and simply call `import pyqtgraph` from within your application. The main benefit to this is that pyqtgraph is configured independently of your application and thus you (or your users) are free to install newer versions of pyqtgraph without changing anything in your application. This is standard practice when developing with python.
+
+However, it is also often the case, especially for scientific applications, that software is written for a very specific purpose and then archived. If we want to ensure that the software will still work ten years later, then it is preferrable to tie the application to a very specific version of pyqtgraph and *avoid* importing the system-installed version of pyqtgraph, which may be much newer (and potentially incompatible). This is especially the case when the application requires site-specific modifications to the pyqtgraph package which may not be present in the main releases. 
+
+PyQtGraph facilitates this usage through two mechanisms. First, all internal import statements in pyqtgraph are relative, which allows the package to be renamed or used as a sub-package without any naming conflicts with other versions of pyqtgraph on the system (that is, pyqtgraph never refers to itself internally as 'pyqtgraph'). Second, a git subtree repository is available at https://github.com/pyqtgraph/pyqtgraph-core.git that contains only the 'pyqtgraph/' subtree, allowing the code to be cloned directly as a subtree of the application which uses it.
+
+The basic approach is to clone the repository into the appropriate location in your package. When you import pyqtgraph from within your package, be sure to use the full name to avoid importing any system-installed pyqtgraph packages. For example, imagine a simple project has the following structure::
+
+    my_project/
+        __init__.py
+        plotting.py
+            """Plotting functions used by this package"""
+            import pyqtgraph as pg
+            def my_plot_function(*data):
+                pg.plot(*data)
+
+To embed a specific version of pyqtgraph, we would clone the pyqtgraph-core repository inside the project::
+    
+    my_project$ git clone https://github.com/pyqtgraph/pyqtgraph-core.git
+
+Then adjust the import statements accordingly::
+
+    my_project/
+        __init__.py
+        pyqtgraph/
+        plotting.py
+            """Plotting functions used by this package"""
+            import my_project.pyqtgraph as pg  # be sure to use the local subpackage
+                                               # rather than any globally-installed
+                                               # versions.
+            def my_plot_function(*data):
+                pg.plot(*data)
+
+Use ``git checkout pyqtgraph-core-x.x.x`` to select a specific version of the repository, or use ``git pull`` to pull pyqtgraph updates from upstream (see the git documentation for more information).
+
+For projects that already use git for code control, it is also possible to include pyqtgraph as a git subtree within your own repository. The major advantage to this approach is that, in addition to being able to pull pyqtgraph updates from the upstream repository, it is also possible to commit your local pyqtgraph changes into the project repository and push those changes upstream::
+    
+    my_project$ git remote add pyqtgraph-core https://github.com/pyqtgraph/pyqtgraph-core.git
+    my_project$ git fetch pyqtgraph-core
+    my_project$ git merge -s ours --no-commit pyqtgraph-core/core
+    my_project$ mkdir pyqtgraph
+    my_project$ git read-tree -u --prefix=pyqtgraph/ pyqtgraph-core/core
+    my_project$ git commit -m "Added pyqtgraph to project repository"
+    
+See the ``git subtree`` documentation for more information.
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/images.rst b/site-packages/pyqtgraph-0.10.0/doc/source/images.rst
new file mode 100644
index 00000000..0a4ac147
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/images.rst
@@ -0,0 +1,26 @@
+Displaying images and video
+===========================
+
+PyQtGraph displays 2D numpy arrays as images and provides tools for determining how to translate between the numpy data type and RGB values on the screen. If you want to display data from common image and video file formats, you will need to load the data first using another library (PIL works well for images and built-in numpy conversion). 
+
+The easiest way to display 2D or 3D data is using the :func:`pyqtgraph.image` function::
+    
+    import pyqtgraph as pg
+    pg.image(imageData)
+    
+This function will accept any floating-point or integer data types and displays a single :class:`~pyqtgraph.ImageView` widget containing your data. This widget includes controls for determining how the image data will be converted to 32-bit RGBa values. Conversion happens in two steps (both are optional):
+    
+1. Scale and offset the data (by selecting the dark/light levels on the displayed histogram)
+2. Convert the data to color using a lookup table (determined by the colors shown in the gradient editor)
+
+If the data is 3D (time, x, y), then a time axis will be shown with a slider that can set the currently displayed frame. (if the axes in your data are ordered differently, use numpy.transpose to rearrange them)
+
+There are a few other methods for displaying images as well:
+   
+* The :class:`~pyqtgraph.ImageView` class can also be instantiated directly and embedded in Qt applications.
+* Instances of :class:`~pyqtgraph.ImageItem` can be used inside a :class:`ViewBox <pyqtgraph.ViewBox>` or :class:`GraphicsView <pyqtgraph.GraphicsView>`.
+* For higher performance, use :class:`~pyqtgraph.RawImageWidget`.
+
+Any of these classes are acceptable for displaying video by calling setImage() to display a new frame. To increase performance, the image processing system uses scipy.weave to produce compiled libraries. If your computer has a compiler available, weave will automatically attempt to build the libraries it needs on demand. If this fails, then the slower pure-python methods will be used instead. 
+
+For more information, see the classes listed above and the 'VideoSpeedTest', 'ImageItem', 'ImageView', and 'HistogramLUT' :ref:`examples`.
\ No newline at end of file
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/images/plottingClasses.png b/site-packages/pyqtgraph-0.10.0/doc/source/images/plottingClasses.png
new file mode 100644
index 0000000000000000000000000000000000000000..3f968f509c57cd8f8e42cf5e214893c13ffc9515
GIT binary patch
literal 44314
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
TR6iiWe+*_C>Bs0T-~E382x#XJ

literal 0
HcmV?d00001

diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/images/plottingClasses.svg b/site-packages/pyqtgraph-0.10.0/doc/source/images/plottingClasses.svg
new file mode 100644
index 00000000..9d9cd902
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/images/plottingClasses.svg
@@ -0,0 +1,580 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="648.03278"
+   height="268.51233"
+   id="svg2"
+   version="1.1"
+   inkscape:version="0.48.4 r9939"
+   sodipodi:docname="plottingClasses.svg"
+   inkscape:export-filename="/home/luke/work/manis_lab/code/pyqtgraph/documentation/source/images/plottingClasses.png"
+   inkscape:export-xdpi="124.99"
+   inkscape:export-ydpi="124.99">
+  <defs
+     id="defs4">
+    <filter
+       inkscape:collect="always"
+       id="filter4029"
+       color-interpolation-filters="sRGB">
+      <feGaussianBlur
+         inkscape:collect="always"
+         stdDeviation="3.3898323"
+         id="feGaussianBlur4031" />
+    </filter>
+    <filter
+       color-interpolation-filters="sRGB"
+       inkscape:collect="always"
+       id="filter4029-0">
+      <feGaussianBlur
+         inkscape:collect="always"
+         stdDeviation="3.3898323"
+         id="feGaussianBlur4031-5" />
+    </filter>
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="1.4"
+     inkscape:cx="383.64946"
+     inkscape:cy="21.059243"
+     inkscape:document-units="px"
+     inkscape:current-layer="g3891"
+     showgrid="false"
+     inkscape:window-width="1918"
+     inkscape:window-height="1030"
+     inkscape:window-x="1"
+     inkscape:window-y="0"
+     inkscape:window-maximized="1"
+     fit-margin-top="0"
+     fit-margin-left="0"
+     fit-margin-right="0"
+     fit-margin-bottom="0" />
+  <metadata
+     id="metadata7">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title />
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1"
+     transform="translate(-9.6542608,-141.60496)">
+    <g
+       id="g3941"
+       transform="matrix(0.62675963,0,0,0.62675963,-43.966218,98.521874)">
+      <g
+         style="stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none"
+         transform="translate(0,-258)"
+         id="g3765">
+        <rect
+           y="336.48514"
+           x="95.275459"
+           height="407.9704"
+           width="495.98489"
+           id="rect4003"
+           style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:3.19101596;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;filter:url(#filter4029)" />
+        <rect
+           style="fill:#cecae4;fill-opacity:1;stroke:#000000;stroke-width:3.19101596;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+           id="rect2985"
+           width="495.98489"
+           height="407.9704"
+           x="88.893425"
+           y="330.10312" />
+        <text
+           xml:space="preserve"
+           style="font-size:72px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Arial;-inkscape-font-specification:Arial"
+           x="91.923874"
+           y="348.28586"
+           id="text3755"
+           sodipodi:linespacing="125%"><tspan
+             sodipodi:role="line"
+             id="tspan3757"
+             x="91.923874"
+             y="348.28586"
+             style="font-size:20px">PlotWidget(GraphicsView)</tspan></text>
+      </g>
+      <g
+         transform="translate(3.0304576,-251.93908)"
+         id="g3770">
+        <rect
+           style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:1.59550798;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+           id="rect3759"
+           width="450.52805"
+           height="361.871"
+           x="111.11678"
+           y="355.35693" />
+        <text
+           sodipodi:linespacing="125%"
+           id="text3761"
+           y="376.57013"
+           x="124.24876"
+           style="font-size:72px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Arial;-inkscape-font-specification:Arial"
+           xml:space="preserve"><tspan
+             style="font-size:18px"
+             y="376.57013"
+             x="124.24876"
+             id="tspan3763"
+             sodipodi:role="line">PlotItem(GraphicsItem)</tspan></text>
+      </g>
+      <g
+         id="g3777"
+         transform="translate(70.710678,-158.4213)">
+        <rect
+           y="355.35693"
+           x="111.11678"
+           height="226.27419"
+           width="314.15744"
+           id="rect3779"
+           style="fill:#d7d7d7;fill-opacity:1;stroke:#000000;stroke-width:1.59550798;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
+        <text
+           xml:space="preserve"
+           style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Arial;-inkscape-font-specification:Arial"
+           x="125.25891"
+           y="378.59042"
+           id="text3781"
+           sodipodi:linespacing="125%"><tspan
+             sodipodi:role="line"
+             id="tspan3783"
+             x="125.25891"
+             y="378.59042"
+             style="font-size:16px">ViewBox(GraphicsItem)</tspan></text>
+        <path
+           transform="translate(-39.395949,-44.446712)"
+           inkscape:connector-curvature="0"
+           id="path3789"
+           d="m 171.72593,536.17423 29.29443,-30.30457 28.28427,54.54823 22.22335,-34.34518 23.23351,24.24366 31.31473,-10.10153 27.27412,-34.34518 23.23351,-40.40611 23.23351,31.31473 36.36549,1.01016 19.1929,40.4061"
+           style="fill:none;stroke:#000000;stroke-width:1.59550798px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+      </g>
+      <g
+         id="g3801"
+         transform="matrix(0,-1,1,0,-207.00664,541.37735)">
+        <rect
+           y="355.35693"
+           x="119.19801"
+           height="29.294403"
+           width="225.26402"
+           id="rect3803"
+           style="fill:#d7d7d7;fill-opacity:1;stroke:#000000;stroke-width:1.59550798;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
+        <text
+           xml:space="preserve"
+           style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Arial;-inkscape-font-specification:Arial"
+           x="150.59395"
+           y="374.5498"
+           id="text3805"
+           sodipodi:linespacing="125%"><tspan
+             sodipodi:role="line"
+             id="tspan3807"
+             x="150.59395"
+             y="374.5498"
+             style="font-size:16px">AxisItem(GraphicsItem)</tspan></text>
+      </g>
+      <g
+         id="g3809"
+         transform="translate(104.06602,-189.05576)">
+        <rect
+           y="355.35693"
+           x="77.781746"
+           height="26.85568"
+           width="313.26996"
+           id="rect3811"
+           style="fill:#d7d7d7;fill-opacity:1;stroke:#000000;stroke-width:1.59550798;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
+        <text
+           xml:space="preserve"
+           style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Arial;-inkscape-font-specification:Arial"
+           x="154.59395"
+           y="374.5498"
+           id="text3813"
+           sodipodi:linespacing="125%"><tspan
+             sodipodi:role="line"
+             id="tspan3815"
+             x="154.59395"
+             y="374.5498"
+             style="font-size:16px">AxisItem(GraphicsItem)</tspan></text>
+      </g>
+      <g
+         transform="translate(104.06602,72.94424)"
+         id="g3817">
+        <rect
+           style="fill:#d7d7d7;fill-opacity:1;stroke:#000000;stroke-width:1.59550798;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+           id="rect3819"
+           width="313.26996"
+           height="26.85568"
+           x="77.781746"
+           y="355.35693" />
+        <text
+           sodipodi:linespacing="125%"
+           id="text3821"
+           y="374.5498"
+           x="154.59395"
+           style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Arial;-inkscape-font-specification:Arial"
+           xml:space="preserve"><tspan
+             style="font-size:16px"
+             y="374.5498"
+             x="154.59395"
+             id="tspan3823"
+             sodipodi:role="line">AxisItem(GraphicsItem)</tspan></text>
+      </g>
+      <g
+         transform="matrix(0,-1,1,0,144.99336,541.37735)"
+         id="g3825">
+        <rect
+           style="fill:#d7d7d7;fill-opacity:1;stroke:#000000;stroke-width:1.59550798;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+           id="rect3827"
+           width="225.26402"
+           height="29.294403"
+           x="119.19801"
+           y="355.35693" />
+        <text
+           sodipodi:linespacing="125%"
+           id="text3829"
+           y="374.5498"
+           x="150.59395"
+           style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Arial;-inkscape-font-specification:Arial"
+           xml:space="preserve"><tspan
+             style="font-size:16px"
+             y="374.5498"
+             x="150.59395"
+             id="tspan3831"
+             sodipodi:role="line">AxisItem(GraphicsItem)</tspan></text>
+      </g>
+      <g
+         transform="translate(104.06602,-219.05576)"
+         id="g3833">
+        <rect
+           style="fill:#d7d7d7;fill-opacity:1;stroke:#000000;stroke-width:1.59550798;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+           id="rect3835"
+           width="313.26996"
+           height="26.85568"
+           x="77.781746"
+           y="355.35693" />
+        <text
+           sodipodi:linespacing="125%"
+           id="text3837"
+           y="374.5498"
+           x="118.59395"
+           style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Arial;-inkscape-font-specification:Arial"
+           xml:space="preserve"><tspan
+             style="font-size:16px"
+             y="374.5498"
+             x="118.59395"
+             id="tspan3839"
+             sodipodi:role="line">Title   -   LabelItem(GraphicsItem)</tspan></text>
+      </g>
+      <text
+         sodipodi:linespacing="125%"
+         id="text3879"
+         y="363.02704"
+         x="301.12698"
+         style="font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Arial;-inkscape-font-specification:Arial"
+         xml:space="preserve"><tspan
+           y="363.02704"
+           x="301.12698"
+           id="tspan3881"
+           sodipodi:role="line">PlotDataItem(GraphicsItem)</tspan></text>
+    </g>
+    <g
+       id="g3978"
+       transform="matrix(0.62675963,0,0,0.62675963,280.29275,-190.12921)">
+      <rect
+         y="540.00317"
+         x="96.42733"
+         height="407.9704"
+         width="495.98489"
+         id="rect4003-9"
+         style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:3.19101596;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;filter:url(#filter4029-0)" />
+      <g
+         transform="translate(0,202)"
+         id="g3883">
+        <rect
+           y="330.10312"
+           x="88.893425"
+           height="407.9704"
+           width="495.98489"
+           id="rect3885"
+           style="fill:#cecae4;fill-opacity:1;stroke:#000000;stroke-width:3.19101596;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
+        <text
+           sodipodi:linespacing="125%"
+           id="text3887"
+           y="348.28586"
+           x="91.923874"
+           style="font-size:72px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Arial;-inkscape-font-specification:Arial"
+           xml:space="preserve"><tspan
+             style="font-size:20px"
+             y="348.28586"
+             x="91.923874"
+             id="tspan3889"
+             sodipodi:role="line">GraphicsLayoutWidget(GraphicsView)</tspan></text>
+      </g>
+      <g
+         id="g3891"
+         transform="translate(3.0304576,214.06092)">
+        <rect
+           y="355.35693"
+           x="111.11678"
+           height="361.871"
+           width="450.52805"
+           id="rect3893"
+           style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:1.59550798;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
+        <text
+           xml:space="preserve"
+           style="font-size:72px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Arial;-inkscape-font-specification:Arial"
+           x="124.24876"
+           y="376.57013"
+           id="text3895"
+           sodipodi:linespacing="125%"><tspan
+             sodipodi:role="line"
+             id="tspan3897"
+             x="124.24876"
+             y="376.57013"
+             style="font-size:18px">GraphicsLayout(GraphicsItem)</tspan></text>
+      </g>
+      <g
+         transform="translate(17.172593,259.49748)"
+         id="g3909">
+        <rect
+           style="fill:#d7d7d7;fill-opacity:1;stroke:#000000;stroke-width:1.59550798;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+           id="rect3911"
+           width="199.00005"
+           height="144.45183"
+           x="111.11678"
+           y="355.35693" />
+        <text
+           sodipodi:linespacing="125%"
+           id="text3913"
+           y="378.59042"
+           x="125.25891"
+           style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Arial;-inkscape-font-specification:Arial"
+           xml:space="preserve"><tspan
+             style="font-size:16px"
+             y="378.59042"
+             x="125.25891"
+             id="tspan3915"
+             sodipodi:role="line">PlotItem</tspan></text>
+        <g
+           transform="matrix(0.73495341,0,0,0.52372233,28.190975,147.93852)"
+           id="g4155"
+           style="opacity:0.21238936">
+          <g
+             transform="matrix(0.62675963,0,0,0.62675963,80.420081,271.29053)"
+             id="g3777-4">
+            <rect
+               style="fill:#d7d7d7;fill-opacity:1;stroke:#000000;stroke-width:4.10315084;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+               id="rect3779-6"
+               width="314.15744"
+               height="226.27419"
+               x="111.11678"
+               y="355.35693" />
+            <path
+               style="fill:none;stroke:#000000;stroke-width:4.10315084px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+               d="m 171.72593,536.17423 29.29443,-30.30457 28.28427,54.54823 22.22335,-34.34518 23.23351,24.24366 31.31473,-10.10153 27.27412,-34.34518 23.23351,-40.40611 23.23351,31.31473 36.36549,1.01016 19.1929,40.4061"
+               id="path3789-2"
+               inkscape:connector-curvature="0"
+               transform="translate(-39.395949,-44.446712)" />
+          </g>
+          <g
+             transform="matrix(0,-0.62675963,0.62675963,0,-93.641919,709.89607)"
+             id="g3801-4">
+            <rect
+               style="fill:#d7d7d7;fill-opacity:1;stroke:#000000;stroke-width:4.10315084;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+               id="rect3803-7"
+               width="225.26402"
+               height="29.294403"
+               x="119.19801"
+               y="355.35693" />
+          </g>
+          <g
+             transform="matrix(0.62675963,0,0,0.62675963,101.32586,252.09009)"
+             id="g3809-4">
+            <rect
+               style="fill:#d7d7d7;fill-opacity:1;stroke:#000000;stroke-width:4.10315084;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+               id="rect3811-8"
+               width="313.26996"
+               height="26.85568"
+               x="77.781746"
+               y="355.35693" />
+          </g>
+          <g
+             id="g3817-8"
+             transform="matrix(0.62675963,0,0,0.62675963,101.32586,416.30111)">
+            <rect
+               y="355.35693"
+               x="77.781746"
+               height="26.85568"
+               width="313.26996"
+               id="rect3819-9"
+               style="fill:#d7d7d7;fill-opacity:1;stroke:#000000;stroke-width:4.10315084;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
+          </g>
+          <g
+             id="g3825-8"
+             transform="matrix(0,-0.62675963,0.62675963,0,126.97747,709.89607)">
+            <rect
+               y="355.35693"
+               x="119.19801"
+               height="29.294403"
+               width="225.26402"
+               id="rect3827-0"
+               style="fill:#d7d7d7;fill-opacity:1;stroke:#000000;stroke-width:4.10315084;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
+          </g>
+          <g
+             id="g3833-0"
+             transform="matrix(0.62675963,0,0,0.62675963,101.32586,233.2873)">
+            <rect
+               y="355.35693"
+               x="77.781746"
+               height="26.85568"
+               width="313.26996"
+               id="rect3835-5"
+               style="fill:#d7d7d7;fill-opacity:1;stroke:#000000;stroke-width:4.10315084;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
+          </g>
+        </g>
+      </g>
+      <g
+         id="g3919"
+         transform="translate(237.17259,259.49748)">
+        <rect
+           y="355.35693"
+           x="111.11678"
+           height="144.45183"
+           width="199.00005"
+           id="rect3925"
+           style="fill:#d7d7d7;fill-opacity:1;stroke:#000000;stroke-width:1.59550798;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
+        <text
+           xml:space="preserve"
+           style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Arial;-inkscape-font-specification:Arial"
+           x="125.25891"
+           y="378.59042"
+           id="text3921"
+           sodipodi:linespacing="125%"><tspan
+             sodipodi:role="line"
+             id="tspan3923"
+             x="125.25891"
+             y="378.59042"
+             style="font-size:16px">ViewBox</tspan></text>
+        <path
+           inkscape:connector-curvature="0"
+           id="path3927"
+           d="m 132.32998,422.03916 15.82573,16.2779 15.28001,-29.30022 12.00571,18.44828 12.55144,-13.02232 16.91715,5.42597 14.7343,18.44829 12.55143,21.70388 12.55144,-16.8205 19.64573,-0.54261 10.36857,-21.70387"
+           style="fill:none;stroke:#000000;stroke-width:1.59550798px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+      </g>
+      <g
+         id="g3931"
+         transform="translate(17.172593,417.49748)">
+        <rect
+           y="355.35693"
+           x="111.11678"
+           height="144.45183"
+           width="419.21329"
+           id="rect3937"
+           style="fill:#d7d7d7;fill-opacity:1;stroke:#000000;stroke-width:1.59550798;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
+        <text
+           xml:space="preserve"
+           style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Arial;-inkscape-font-specification:Arial"
+           x="125.25891"
+           y="378.59042"
+           id="text3933"
+           sodipodi:linespacing="125%"><tspan
+             sodipodi:role="line"
+             id="tspan3935"
+             x="125.25891"
+             y="378.59042"
+             style="font-size:16px">PlotItem</tspan></text>
+        <g
+           transform="matrix(1.675408,0,0,0.51883759,-93.913147,152.77473)"
+           id="g4155-5"
+           style="opacity:0.18141593">
+          <g
+             transform="matrix(0.62675963,0,0,0.62675963,80.420081,271.29053)"
+             id="g3777-4-0">
+            <rect
+               style="fill:#d7d7d7;fill-opacity:1;stroke:#000000;stroke-width:2.73037291;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+               id="rect3779-6-6"
+               width="314.15744"
+               height="226.27419"
+               x="111.11678"
+               y="355.35693" />
+            <path
+               style="fill:none;stroke:#000000;stroke-width:2.73037291px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+               d="m 171.72593,536.17423 29.29443,-30.30457 28.28427,54.54823 22.22335,-34.34518 23.23351,24.24366 31.31473,-10.10153 27.27412,-34.34518 23.23351,-40.40611 23.23351,31.31473 36.36549,1.01016 19.1929,40.4061"
+               id="path3789-2-4"
+               inkscape:connector-curvature="0"
+               transform="translate(-39.395949,-44.446712)" />
+          </g>
+          <g
+             transform="matrix(0,-0.62675963,0.26439647,0,45.741554,709.89607)"
+             id="g3801-4-6">
+            <rect
+               style="fill:#d7d7d7;fill-opacity:1;stroke:#000000;stroke-width:4.203825;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+               id="rect3803-7-2"
+               width="225.26402"
+               height="29.294403"
+               x="119.19801"
+               y="355.35693" />
+          </g>
+          <g
+             transform="matrix(0.62675963,0,0,0.62675963,101.32586,252.09009)"
+             id="g3809-4-5">
+            <rect
+               style="fill:#d7d7d7;fill-opacity:1;stroke:#000000;stroke-width:2.73037291;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+               id="rect3811-8-8"
+               width="313.26996"
+               height="26.85568"
+               x="77.781746"
+               y="355.35693" />
+          </g>
+          <g
+             id="g3817-8-6"
+             transform="matrix(0.62675963,0,0,0.62675963,101.32586,416.30111)">
+            <rect
+               y="355.35693"
+               x="77.781746"
+               height="26.85568"
+               width="313.26996"
+               id="rect3819-9-2"
+               style="fill:#d7d7d7;fill-opacity:1;stroke:#000000;stroke-width:2.73037291;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
+          </g>
+          <g
+             id="g3825-8-8"
+             transform="matrix(0,-0.62675963,0.24174877,0,263.79375,709.89607)">
+            <rect
+               y="355.35693"
+               x="119.19801"
+               height="29.294403"
+               width="225.26402"
+               id="rect3827-0-4"
+               style="fill:#d7d7d7;fill-opacity:1;stroke:#000000;stroke-width:4.39633036;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
+          </g>
+          <g
+             id="g3833-0-7"
+             transform="matrix(0.62675963,0,0,0.62675963,101.32586,233.2873)">
+            <rect
+               y="355.35693"
+               x="77.781746"
+               height="26.85568"
+               width="313.26996"
+               id="rect3835-5-2"
+               style="fill:#d7d7d7;fill-opacity:1;stroke:#000000;stroke-width:2.73037291;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
+          </g>
+        </g>
+      </g>
+    </g>
+  </g>
+</svg>
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/index.rst b/site-packages/pyqtgraph-0.10.0/doc/source/index.rst
new file mode 100644
index 00000000..08c5528e
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/index.rst
@@ -0,0 +1,38 @@
+.. pyqtgraph documentation master file, created by
+   sphinx-quickstart on Fri Nov 18 19:33:12 2011.
+   You can adapt this file completely to your liking, but it should at least
+   contain the root `toctree` directive.
+
+Welcome to the documentation for pyqtgraph
+==========================================
+
+Contents:
+
+.. toctree::
+    :maxdepth: 2
+
+    introduction
+    mouse_interaction
+    how_to_use
+    installation
+    qtcrashcourse
+    plotting
+    images
+    3dgraphics
+    style
+    region_of_interest
+    exporting
+    prototyping
+    parametertree/index
+    flowchart/index
+    internals
+    apireference
+    
+
+Indices and tables
+==================
+
+* :ref:`genindex`
+* :ref:`modindex`
+* :ref:`search`
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/installation.rst b/site-packages/pyqtgraph-0.10.0/doc/source/installation.rst
new file mode 100644
index 00000000..e2bf0f8d
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/installation.rst
@@ -0,0 +1,9 @@
+Installation
+============
+
+PyQtGraph does not really require any installation scripts. All that is needed is for the pyqtgraph folder to be placed someplace importable. Most people will prefer to simply place this folder within a larger project folder. If you want to make pyqtgraph available system-wide, use one of the methods listed below:
+
+* **Debian, Ubuntu, and similar Linux:** Download the .deb file linked at the top of the pyqtgraph web page or install using apt by putting "deb http://luke.campagnola.me/debian dev/" in your /etc/apt/sources.list file and install the python-pyqtgraph package.
+* **Arch Linux:** Looks like someone has posted unofficial packages for Arch (thanks windel). (https://aur.archlinux.org/packages.php?ID=62577)
+* **Windows:** Download and run the .exe installer file linked at the top of the pyqtgraph web page.
+* **Everybody (including OSX):** Download the .tar.gz source package linked at the top of the pyqtgraph web page, extract its contents, and run "python setup.py install" from within the extracted directory.
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/internals.rst b/site-packages/pyqtgraph-0.10.0/doc/source/internals.rst
new file mode 100644
index 00000000..8c1d246e
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/internals.rst
@@ -0,0 +1,9 @@
+Internals - Extensions to Qt's GraphicsView
+===========================================
+
+* GraphicsView
+* GraphicsScene (mouse events)
+* GraphicsObject
+* GraphicsWidget
+* ViewBox
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/introduction.rst b/site-packages/pyqtgraph-0.10.0/doc/source/introduction.rst
new file mode 100644
index 00000000..70161173
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/introduction.rst
@@ -0,0 +1,86 @@
+Introduction
+============
+
+
+
+What is pyqtgraph?
+------------------
+
+PyQtGraph is a graphics and user interface library for Python that provides
+functionality commonly required in engineering and science applications. Its
+primary goals are 1) to provide fast, interactive graphics for displaying data
+(plots, video, etc.) and 2) to provide tools to aid in rapid application
+development (for example, property trees such as used in Qt Designer).
+
+PyQtGraph makes heavy use of the Qt GUI platform (via PyQt or PySide) for its
+high-performance graphics and numpy for heavy number crunching. In particular,
+pyqtgraph uses Qt's GraphicsView framework which is a highly capable graphics
+system on its own; we bring optimized and simplified primitives to this
+framework to allow data visualization with minimal effort.
+
+It is known to run on Linux, Windows, and OSX
+
+
+What can it do?
+---------------
+
+Amongst the core features of pyqtgraph are:
+
+* Basic data visualization primitives: Images, line and scatter plots
+* Fast enough for realtime update of video/plot data
+* Interactive scaling/panning, averaging, FFTs, SVG/PNG export
+* Widgets for marking/selecting plot regions
+* Widgets for marking/selecting image region-of-interest and automatically
+  slicing multi-dimensional image data
+* Framework for building customized image region-of-interest widgets
+* Docking system that replaces/complements Qt's dock system to allow more
+  complex (and more predictable) docking arrangements
+* ParameterTree widget for rapid prototyping of dynamic interfaces (Similar to
+  the property trees in Qt Designer and many other applications)
+
+
+.. _examples:
+
+Examples
+--------
+
+PyQtGraph includes an extensive set of examples that can be accessed by
+running::
+
+    import pyqtgraph.examples
+    pyqtgraph.examples.run()
+
+Or by running ``python examples/`` from the source root.
+
+This will start a launcher with a list of available examples. Select an item
+from the list to view its source code and double-click an item to run the
+example.
+
+Note If you have installed pyqtgraph with ``python setup.py develop``
+then the examples are incorrectly exposed as a top-level module. In this case,
+use ``import examples; examples.run()``.
+
+
+How does it compare to...
+-------------------------
+
+* matplotlib: For plotting, pyqtgraph is not nearly as complete/mature as
+  matplotlib, but runs much faster. Matplotlib is more aimed toward making
+  publication-quality graphics, whereas pyqtgraph is intended for use in data
+  acquisition and analysis applications. Matplotlib is more intuitive for
+  matlab programmers; pyqtgraph is more intuitive for python/qt programmers.
+  Matplotlib (to my knowledge) does not include many of pyqtgraph's features
+  such as image interaction, volumetric rendering, parameter trees,
+  flowcharts, etc.
+
+* pyqwt5: About as fast as pyqwt5, but not quite as complete for plotting
+  functionality. Image handling in pyqtgraph is much more complete (again, no
+  ROI widgets in qwt). Also, pyqtgraph is written in pure python, so it is
+  more portable than pyqwt, which often lags behind pyqt in development (I
+  originally used pyqwt, but decided it was too much trouble to rely on it
+  as a dependency in my projects). Like matplotlib, pyqwt (to my knowledge)
+  does not include many of pyqtgraph's features such as image interaction,
+  volumetric rendering, parameter trees, flowcharts, etc.
+
+(My experience with these libraries is somewhat outdated; please correct me if
+I am wrong here)
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/mouse_interaction.rst b/site-packages/pyqtgraph-0.10.0/doc/source/mouse_interaction.rst
new file mode 100644
index 00000000..0e149f0c
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/mouse_interaction.rst
@@ -0,0 +1,49 @@
+Mouse Interaction
+=================
+
+Most applications that use pyqtgraph's data visualization will generate widgets that can be interactively scaled, panned, and otherwise configured using the mouse. This section describes mouse interaction with these widgets.
+
+
+2D Graphics
+-----------
+
+In pyqtgraph, most 2D visualizations follow the following mouse interaction:
+    
+* Left button: Interacts with items in the scene (select/move objects, etc). If there are no movable objects under the mouse cursor, then dragging with the left button will pan the scene instead.
+* Right button drag: Scales the scene. Dragging left/right scales horizontally; dragging up/down scales vertically (although some scenes will have their x/y scales locked together). If there are x/y axes fisible in the scene, then right-dragging over the axis will _only_ affect that axis.
+* Right button click: Clicking the right button in most cases will show a context menu with a variety of options depending on the object(s) under the mouse cursor. 
+* Middle button (or wheel) drag: Dragging the mouse with the wheel pressed down will always pan the scene (this is useful in instances where panning with the left button is prevented by other objects in the scene).
+* Wheel spin: Zooms the scene in and out.
+    
+For machines where dragging with the right or middle buttons is difficult (usually Mac), another mouse interaction mode exists. In this mode, dragging with the left mouse button draws a box over a region of the scene. After the button is released, the scene is scaled and panned to fit the box. This mode can be accessed in the context menu or by calling::
+    
+    pyqtgraph.setConfigOption('leftButtonPan', False)
+
+
+Context Menu
+------------
+
+Right-clicking on most scenes will show a context menu with various options for changing the behavior of the scene. Some of the options available in this menu are:
+    
+* Enable/disable automatic scaling when the data range changes
+* Link the axes of multiple views together
+* Enable disable mouse interaction per axis
+* Explicitly set the visible range values
+
+The exact set of items available in the menu depends on the contents of the scene and the object clicked on.
+    
+    
+3D Graphics
+-----------
+
+3D visualizations use the following mouse interaction:
+
+* Left button drag: Rotates the scene around a central point
+* Middle button drag: Pan the scene by moving the central "look-at" point within the x-y plane
+* Middle button drag + CTRL: Pan the scene by moving the central "look-at" point along the z axis
+* Wheel spin: zoom in/out
+* Wheel + CTRL: change field-of-view angle
+
+And keyboard controls:
+
+* Arrow keys rotate around central point, just like dragging the left mouse button
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/parametertree/apiref.rst b/site-packages/pyqtgraph-0.10.0/doc/source/parametertree/apiref.rst
new file mode 100644
index 00000000..876253e0
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/parametertree/apiref.rst
@@ -0,0 +1,15 @@
+ParameterTree API Reference
+===========================
+
+Also see the 'parametertree' example included with pyqtgraph
+
+Contents:
+
+.. toctree::
+    :maxdepth: 2
+
+    parameter
+    parametertree
+    parametertypes
+    parameteritem
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/parametertree/index.rst b/site-packages/pyqtgraph-0.10.0/doc/source/parametertree/index.rst
new file mode 100644
index 00000000..94f590c3
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/parametertree/index.rst
@@ -0,0 +1,21 @@
+.. _parametertree:
+
+Parameter Trees
+===============
+
+Parameter trees are a system for handling hierarchies of parameters while automatically generating one or more GUIs to display and interact with the parameters.
+This feature is commonly seen, for example, in user interface design applications which display a list of editable properties for each widget.
+Parameters generally have a name, a data type (int, float, string, color, etc), and a value matching the data type. Parameters may be grouped and nested
+to form hierarchies and may be subclassed to provide custom behavior and display widgets.
+
+PyQtGraph's parameter tree system works similarly to the model-view architecture used by some components of Qt: Parameters are purely data-handling classes
+that exist independent of any graphical interface. A ParameterTree is a widget that automatically generates a graphical interface which represents
+the state of a haierarchy of Parameter objects and allows the user to edit the values within that hierarchy. This separation of data (model) and graphical
+interface (view) allows the same data to be represented multiple times and in a variety of different ways. 
+
+For more information, see the 'parametertree' example included with pyqtgraph and the API reference
+
+.. toctree::
+    :maxdepth: 2
+
+    apiref
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/parametertree/parameter.rst b/site-packages/pyqtgraph-0.10.0/doc/source/parametertree/parameter.rst
new file mode 100644
index 00000000..b5326b91
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/parametertree/parameter.rst
@@ -0,0 +1,8 @@
+Parameter
+=========
+
+.. autoclass:: pyqtgraph.parametertree.Parameter
+    :members:
+
+    .. automethod:: pyqtgraph.parametertree.Parameter.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/parametertree/parameteritem.rst b/site-packages/pyqtgraph-0.10.0/doc/source/parametertree/parameteritem.rst
new file mode 100644
index 00000000..27f18a8a
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/parametertree/parameteritem.rst
@@ -0,0 +1,8 @@
+ParameterItem
+=============
+
+.. autoclass:: pyqtgraph.parametertree.ParameterItem
+    :members:
+
+    .. automethod:: pyqtgraph.parametertree.ParameterItem.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/parametertree/parametertree.rst b/site-packages/pyqtgraph-0.10.0/doc/source/parametertree/parametertree.rst
new file mode 100644
index 00000000..b66bfa3b
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/parametertree/parametertree.rst
@@ -0,0 +1,8 @@
+ParameterTree
+=============
+
+.. autoclass:: pyqtgraph.parametertree.ParameterTree
+    :members:
+
+    .. automethod:: pyqtgraph.parametertree.ParameterTree.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/parametertree/parametertypes.rst b/site-packages/pyqtgraph-0.10.0/doc/source/parametertree/parametertypes.rst
new file mode 100644
index 00000000..4344cee3
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/parametertree/parametertypes.rst
@@ -0,0 +1,6 @@
+Built-in Parameter Types
+========================
+
+.. automodule:: pyqtgraph.parametertree.parameterTypes
+    :members:
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/plotting.rst b/site-packages/pyqtgraph-0.10.0/doc/source/plotting.rst
new file mode 100644
index 00000000..8a99663a
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/plotting.rst
@@ -0,0 +1,73 @@
+Plotting in pyqtgraph
+=====================
+
+There are a few basic ways to plot data in pyqtgraph: 
+
+===================================================================     ==================================================
+:func:`pyqtgraph.plot`                                                  Create a new plot window showing your data
+:func:`PlotWidget.plot() <pyqtgraph.PlotWidget.plot>`                   Add a new set of data to an existing plot widget
+:func:`PlotItem.plot() <pyqtgraph.PlotItem.plot>`                       Add a new set of data to an existing plot widget
+:func:`GraphicsLayout.addPlot() <pyqtgraph.GraphicsLayout.addPlot>`     Add a new plot to a grid of plots
+===================================================================     ==================================================
+
+All of these will accept the same basic arguments which control how the plot data is interpreted and displayed:
+    
+* x - Optional X data; if not specified, then a range of integers will be generated automatically.
+* y - Y data.
+* pen - The pen to use when drawing plot lines, or None to disable lines.
+* symbol - A string describing the shape of symbols to use for each point. Optionally, this may also be a sequence of strings with a different symbol for each point.
+* symbolPen - The pen (or sequence of pens) to use when drawing the symbol outline.
+* symbolBrush - The brush (or sequence of brushes) to use when filling the symbol.
+* fillLevel - Fills the area under the plot curve to this Y-value.
+* brush - The brush to use when filling under the curve.
+    
+See the 'plotting' :ref:`example <examples>` for a demonstration of these arguments.
+    
+All of the above functions also return handles to the objects that are created, allowing the plots and data to be further modified.
+
+Organization of Plotting Classes
+--------------------------------
+
+There are several classes invloved in displaying plot data. Most of these classes are instantiated automatically, but it is useful to understand how they are organized and relate to each other. PyQtGraph is based heavily on Qt's GraphicsView framework--if you are not already familiar with this, it's worth reading about (but not essential). Most importantly: 1) Qt GUIs are composed of QWidgets, 2) A special widget called QGraphicsView is used for displaying complex graphics, and 3) QGraphicsItems define the objects that are displayed within a QGraphicsView.
+
+* Data Classes (all subclasses of QGraphicsItem)
+    * :class:`PlotCurveItem <pyqtgraph.PlotCurveItem>`  - Displays a plot line given x,y data
+    * :class:`ScatterPlotItem <pyqtgraph.ScatterPlotItem>`   - Displays points given x,y data
+    * :class:`PlotDataItem <pyqtgraph.PlotDataItem>` - Combines PlotCurveItem and ScatterPlotItem. The plotting functions discussed above create objects of this type.
+* Container Classes (subclasses of QGraphicsItem; contain other QGraphicsItem objects and must be viewed from within a GraphicsView)
+    * :class:`PlotItem <pyqtgraph.PlotItem>` - Contains a ViewBox for displaying data as well as AxisItems and labels for displaying the axes and title. This is a QGraphicsItem subclass and thus may only be used from within a GraphicsView
+    * :class:`GraphicsLayout <pyqtgraph.GraphicsLayout>`  - QGraphicsItem subclass which displays a grid of items. This is used to display multiple PlotItems together.
+    * :class:`ViewBox <pyqtgraph.ViewBox>`  - A QGraphicsItem subclass for displaying data. The user may scale/pan the contents of a ViewBox using the mouse. Typically all PlotData/PlotCurve/ScatterPlotItems are displayed from within a ViewBox.
+    * :class:`AxisItem <pyqtgraph.AxisItem>`  - Displays axis values, ticks, and labels. Most commonly used with PlotItem.
+* Container Classes (subclasses of QWidget; may be embedded in PyQt GUIs)
+    * :class:`PlotWidget <pyqtgraph.PlotWidget>`  - A subclass of GraphicsView with a single PlotItem displayed. Most of the methods provided by PlotItem are also available through PlotWidget.
+    * :class:`GraphicsLayoutWidget <pyqtgraph.GraphicsLayoutWidget>` - QWidget subclass displaying a single GraphicsLayoutItem. Most of the methods provided by GraphicsLayoutItem are also available through GraphicsLayoutWidget.
+    
+.. image:: images/plottingClasses.png
+
+
+Examples
+--------
+
+See the 'plotting' and 'PlotWidget' :ref:`examples included with pyqtgraph <examples>` for more information.
+
+Show x,y data as scatter plot::
+    
+    import pyqtgraph as pg
+    import numpy as np
+    x = np.random.normal(size=1000)
+    y = np.random.normal(size=1000)
+    pg.plot(x, y, pen=None, symbol='o')  ## setting pen=None disables line drawing
+
+Create/show a plot widget, display three data curves::
+    
+    import pyqtgraph as pg
+    import numpy as np
+    x = np.arange(1000)
+    y = np.random.normal(size=(3, 1000))
+    plotWidget = pg.plot(title="Three plot curves")
+    for i in range(3):
+        plotWidget.plot(x, y[i], pen=(i,3))  ## setting pen=(i,3) automaticaly creates three different-colored pens
+    
+
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/prototyping.rst b/site-packages/pyqtgraph-0.10.0/doc/source/prototyping.rst
new file mode 100644
index 00000000..71dcd4ce
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/prototyping.rst
@@ -0,0 +1,35 @@
+Rapid GUI prototyping
+=====================
+
+[Just an overview; documentation is not complete yet]
+
+PyQtGraph offers several powerful features which are commonly used in engineering and scientific applications.
+
+Parameter Trees
+---------------
+
+The parameter tree system provides a widget displaying a tree of modifiable values similar to those used in most GUI editor applications. This allows a large number of variables to be controlled by the user with relatively little programming effort. The system also provides separation between the data being controlled and the user interface controlling it (model/view architecture). Parameters may be grouped/nested to any depth and custom parameter types can be built by subclassing from Parameter and ParameterItem.
+
+See the `parametertree documentation <parametertree>`_ for more information.
+
+
+Visual Programming Flowcharts
+-----------------------------
+
+PyQtGraph's flowcharts provide a visual programming environment similar in concept to LabView--functional modules are added to a flowchart and connected by wires to define a more complex and arbitrarily configurable algorithm. A small number of predefined modules (called Nodes) are included with pyqtgraph, but most flowchart developers will want to define their own library of Nodes. At their core, the Nodes are little more than 1) a Python function 2) a list of input/output terminals, and 3) an optional widget providing a control panel for the Node. Nodes may transmit/receive any type of Python object via their terminals.
+
+See the `flowchart documentation <flowchart>`_ and the flowchart examples for more information.
+
+
+Graphical Canvas
+----------------
+
+The Canvas is a system designed to allow the user to add/remove items to a 2D canvas similar to most vector graphics applications. Items can be translated/scaled/rotated and each item may define its own custom control interface.
+
+
+Dockable Widgets
+----------------
+
+The dockarea system allows the design of user interfaces which can be rearranged by the user at runtime. Docks can be moved, resized, stacked, and torn out of the main window. This is similar in principle to the docking system built into Qt, but offers a more deterministic dock placement API (in Qt it is very difficult to programatically generate complex dock arrangements). Additionally, Qt's docks are designed to be used as small panels around the outer edge of a window. PyQtGraph's docks were created with the notion that the entire window (or any portion of it) would consist of dockable components.
+
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/qtcrashcourse.rst b/site-packages/pyqtgraph-0.10.0/doc/source/qtcrashcourse.rst
new file mode 100644
index 00000000..083a78ee
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/qtcrashcourse.rst
@@ -0,0 +1,102 @@
+Qt Crash Course
+===============
+
+PyQtGraph makes extensive use of Qt for generating nearly all of its visual output and interfaces. Qt's documentation is very well written and we encourage all pyqtgraph developers to familiarize themselves with it. The purpose of this section is to provide an introduction to programming with Qt (using either PyQt or PySide) for the pyqtgraph developer.
+
+QWidgets and Layouts
+--------------------
+
+A Qt GUI is almost always composed of a few basic components:
+    
+* A window. This is often provided by QMainWindow, but note that all QWidgets can be displayed in their window by simply calling widget.show() if the widget does not have a parent. 
+* Multiple QWidget instances such as QPushButton, QLabel, QComboBox, etc. 
+* QLayout instances (optional, but strongly encouraged) which automatically manage the positioning of widgets to allow the GUI to resize in a usable way.
+
+PyQtGraph fits into this scheme by providing its own QWidget subclasses to be inserted into your GUI.
+
+
+Example::
+    
+    from PyQt4 import QtGui  # (the example applies equally well to PySide)
+    import pyqtgraph as pg
+        
+    ## Always start by initializing Qt (only once per application)
+    app = QtGui.QApplication([])
+
+    ## Define a top-level widget to hold everything
+    w = QtGui.QWidget()
+
+    ## Create some widgets to be placed inside
+    btn = QtGui.QPushButton('press me')
+    text = QtGui.QLineEdit('enter text')
+    listw = QtGui.QListWidget()
+    plot = pg.PlotWidget()
+
+    ## Create a grid layout to manage the widgets size and position
+    layout = QtGui.QGridLayout()
+    w.setLayout(layout)
+
+    ## Add widgets to the layout in their proper positions
+    layout.addWidget(btn, 0, 0)   # button goes in upper-left
+    layout.addWidget(text, 1, 0)   # text edit goes in middle-left
+    layout.addWidget(listw, 2, 0)  # list widget goes in bottom-left
+    layout.addWidget(plot, 0, 1, 3, 1)  # plot goes on right side, spanning 3 rows
+
+    ## Display the widget as a new window
+    w.show()
+
+    ## Start the Qt event loop
+    app.exec_()
+
+More complex interfaces may be designed graphically using Qt Designer, which allows you to simply drag widgets into your window to define its appearance.
+
+
+Naming Conventions
+------------------
+
+Virtually every class in pyqtgraph is an extension of base classes provided by Qt. When reading the documentation, remember that all of Qt's classes start with the letter 'Q', whereas pyqtgraph's classes do not. When reading through the methods for any class, it is often helpful to see which Qt base classes are used and look through the Qt documentation as well.
+
+Most of Qt's classes define signals which can be difficult to tell apart from regular methods. Almost all signals explicity defined by pyqtgraph are named beginning with 'sig' to indicate that these signals are not defined at the Qt level.
+
+In most cases, classes which end in 'Widget' are subclassed from QWidget and can therefore be used as a GUI element in a Qt window. Classes which end in 'Item' are subclasses of QGraphicsItem and can only be displayed within a QGraphicsView instance (such as GraphicsLayoutWidget or PlotWidget). 
+
+
+Signals, Slots, and Events
+--------------------------
+
+[ to be continued.. please post a request on the pyqtgraph forum if you'd like to read more ]
+
+Qt detects and reacts to user interaction by executing its *event loop*. 
+
+ - what happens in the event loop?
+ - when do I need to use QApplication.exec_() ?
+ - what control do I have over event loop execution? (QApplication.processEvents)
+
+
+GraphicsView and GraphicsItems
+------------------------------
+
+More information about the architecture of Qt GraphicsView:
+http://qt-project.org/doc/qt-4.8/graphicsview.html
+
+
+Coordinate Systems and Transformations
+--------------------------------------
+
+More information about the coordinate systems in Qt GraphicsView:
+http://qt-project.org/doc/qt-4.8/graphicsview.html#the-graphics-view-coordinate-system
+
+
+Mouse and Keyboard Input
+------------------------
+
+
+
+
+QTimer, Multi-Threading
+-----------------------
+
+
+Multi-threading vs Multi-processing in Qt
+-----------------------------------------
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/region_of_interest.rst b/site-packages/pyqtgraph-0.10.0/doc/source/region_of_interest.rst
new file mode 100644
index 00000000..e972cae8
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/region_of_interest.rst
@@ -0,0 +1,23 @@
+Interactive Data Selection Controls
+===================================
+
+PyQtGraph includes graphics items which allow the user to select and mark regions of data.
+
+Linear Selection and Marking
+----------------------------
+
+Two classes allow marking and selecting 1-dimensional data: :class:`LinearRegionItem <pyqtgraph.LinearRegionItem>` and :class:`InfiniteLine <pyqtgraph.InfiniteLine>`. The first class, :class:`LinearRegionItem <pyqtgraph.LinearRegionItem>`, may be added to any ViewBox or PlotItem to mark either a horizontal or vertical region. The region can be dragged and its bounding edges can be moved independently. The second class, :class:`InfiniteLine <pyqtgraph.InfiniteLine>`, is usually used to mark a specific position along the x or y axis. These may be dragged by the user.
+
+
+2D Selection and Marking
+------------------------
+
+To select a 2D region from an image, pyqtgraph uses the :class:`ROI <pyqtgraph.ROI>` class or any of its subclasses. By default, :class:`ROI <pyqtgraph.ROI>` simply displays a rectangle which can be moved by the user to mark a specific region (most often this will be a region of an image, but this is not required). To allow the ROI to be resized or rotated, there are several methods for adding handles (:func:`addScaleHandle <pyqtgraph.ROI.addScaleHandle>`, :func:`addRotateHandle <pyqtgraph.ROI.addRotateHandle>`, etc.) which can be dragged by the user. These handles may be placed at any location relative to the ROI and may scale/rotate the ROI around any arbitrary center point. There are several ROI subclasses with a variety of shapes and modes of interaction.
+
+To automatically extract a region of image data using an ROI and an ImageItem, use :func:`ROI.getArrayRegion <pyqtgraph.ROI.getArrayRegion>`. ROI classes use the :func:`affineSlice <pyqtgraph.affineSlice>` function to perform this extraction.
+
+ROI can also be used as a control for moving/rotating/scaling items in a scene similar to most vetctor graphics editing applications.
+
+See the ROITypes example for more information.
+
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/style.rst b/site-packages/pyqtgraph-0.10.0/doc/source/style.rst
new file mode 100644
index 00000000..593e6a32
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/style.rst
@@ -0,0 +1,47 @@
+Line, Fill, and Color
+=====================
+
+Qt relies on its QColor, QPen and QBrush classes for specifying line and fill styles for all of its drawing.
+Internally, pyqtgraph uses the same system but also allows many shorthand methods of specifying
+the same style options.
+
+Many functions and methods in pyqtgraph accept arguments specifying the line style (pen), fill style (brush), or color. 
+For most of these function arguments, the following values may be used:
+    
+* single-character string representing color (b, g, r, c, m, y, k, w)
+* (r, g, b) or (r, g, b, a) tuple
+* single greyscale value (0.0 - 1.0)
+* (index, maximum) tuple for automatically iterating through colors (see :func:`intColor <pyqtgraph.intColor>`)
+* QColor
+* QPen / QBrush where appropriate
+
+Notably, more complex pens and brushes can be easily built using the 
+:func:`mkPen() <pyqtgraph.mkPen>` / :func:`mkBrush() <pyqtgraph.mkBrush>` functions or with Qt's QPen and QBrush classes::
+
+    mkPen('y', width=3, style=QtCore.Qt.DashLine)          ## Make a dashed yellow line 2px wide
+    mkPen(0.5)                                             ## solid grey line 1px wide
+    mkPen(color=(200, 200, 255), style=QtCore.Qt.DotLine)  ## Dotted pale-blue line
+    
+See the Qt documentation for 'QPen' and 'PenStyle' for more line-style options and 'QBrush' for more fill options.
+Colors can also be built using :func:`mkColor() <pyqtgraph.mkColor>`, 
+:func:`intColor() <pyqtgraph.intColor>`, :func:`hsvColor() <pyqtgraph.hsvColor>`, or Qt's QColor class.
+
+
+Default Background and Foreground Colors
+----------------------------------------
+
+By default, pyqtgraph uses a black background for its plots and grey for axes, text, and plot lines.
+These defaults can be changed using pyqtgraph.setConfigOption()::
+    
+    import pyqtgraph as pg
+
+    ## Switch to using white background and black foreground
+    pg.setConfigOption('background', 'w')
+    pg.setConfigOption('foreground', 'k')
+
+    ## The following plot has inverted colors
+    pg.plot([1,4,2,3,5])
+    
+(Note that this must be set *before* creating any widgets)
+
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/widgets/busycursor.rst b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/busycursor.rst
new file mode 100644
index 00000000..32e1977d
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/busycursor.rst
@@ -0,0 +1,8 @@
+BusyCursor
+==========
+
+.. autoclass:: pyqtgraph.BusyCursor
+    :members:
+
+    .. automethod:: pyqtgraph.BusyCursor.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/widgets/checktable.rst b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/checktable.rst
new file mode 100644
index 00000000..5301a4e9
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/checktable.rst
@@ -0,0 +1,8 @@
+CheckTable
+==========
+
+.. autoclass:: pyqtgraph.CheckTable
+    :members:
+
+    .. automethod:: pyqtgraph.CheckTable.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/widgets/colorbutton.rst b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/colorbutton.rst
new file mode 100644
index 00000000..690239d8
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/colorbutton.rst
@@ -0,0 +1,8 @@
+ColorButton
+===========
+
+.. autoclass:: pyqtgraph.ColorButton
+    :members:
+
+    .. automethod:: pyqtgraph.ColorButton.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/widgets/colormapwidget.rst b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/colormapwidget.rst
new file mode 100644
index 00000000..255ca238
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/colormapwidget.rst
@@ -0,0 +1,12 @@
+ColorMapWidget
+==============
+
+.. autoclass:: pyqtgraph.ColorMapWidget
+    :members:
+
+    .. automethod:: pyqtgraph.ColorMapWidget.__init__
+
+    .. automethod:: pyqtgraph.widgets.ColorMapWidget.ColorMapParameter.setFields
+
+    .. automethod:: pyqtgraph.widgets.ColorMapWidget.ColorMapParameter.map
+    
\ No newline at end of file
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/widgets/combobox.rst b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/combobox.rst
new file mode 100644
index 00000000..9fbfd828
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/combobox.rst
@@ -0,0 +1,8 @@
+ComboBox
+========
+
+.. autoclass:: pyqtgraph.ComboBox
+    :members:
+
+    .. automethod:: pyqtgraph.ComboBox.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/widgets/consolewidget.rst b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/consolewidget.rst
new file mode 100644
index 00000000..a85327f9
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/consolewidget.rst
@@ -0,0 +1,6 @@
+ConsoleWidget
+=============
+
+.. autoclass:: pyqtgraph.console.ConsoleWidget
+    :members:
+    
\ No newline at end of file
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/widgets/datatreewidget.rst b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/datatreewidget.rst
new file mode 100644
index 00000000..f6bbdbaf
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/datatreewidget.rst
@@ -0,0 +1,8 @@
+DataTreeWidget
+==============
+
+.. autoclass:: pyqtgraph.DataTreeWidget
+    :members:
+
+    .. automethod:: pyqtgraph.DataTreeWidget.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/widgets/dockarea.rst b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/dockarea.rst
new file mode 100644
index 00000000..09a6acca
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/dockarea.rst
@@ -0,0 +1,5 @@
+dockarea module
+===============
+
+.. automodule:: pyqtgraph.dockarea
+    :members:
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/widgets/feedbackbutton.rst b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/feedbackbutton.rst
new file mode 100644
index 00000000..67102603
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/feedbackbutton.rst
@@ -0,0 +1,8 @@
+FeedbackButton
+==============
+
+.. autoclass:: pyqtgraph.FeedbackButton
+    :members:
+
+    .. automethod:: pyqtgraph.FeedbackButton.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/widgets/filedialog.rst b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/filedialog.rst
new file mode 100644
index 00000000..bf2f9c07
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/filedialog.rst
@@ -0,0 +1,8 @@
+FileDialog
+==========
+
+.. autoclass:: pyqtgraph.FileDialog
+    :members:
+
+    .. automethod:: pyqtgraph.FileDialog.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/widgets/gradientwidget.rst b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/gradientwidget.rst
new file mode 100644
index 00000000..a2587503
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/gradientwidget.rst
@@ -0,0 +1,8 @@
+GradientWidget
+==============
+
+.. autoclass:: pyqtgraph.GradientWidget
+    :members:
+
+    .. automethod:: pyqtgraph.GradientWidget.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/widgets/graphicslayoutwidget.rst b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/graphicslayoutwidget.rst
new file mode 100644
index 00000000..5f885f07
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/graphicslayoutwidget.rst
@@ -0,0 +1,8 @@
+GraphicsLayoutWidget
+====================
+
+.. autoclass:: pyqtgraph.GraphicsLayoutWidget
+    :members:
+
+    .. automethod:: pyqtgraph.GraphicsLayoutWidget.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/widgets/graphicsview.rst b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/graphicsview.rst
new file mode 100644
index 00000000..ac7ae3bf
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/graphicsview.rst
@@ -0,0 +1,8 @@
+GraphicsView
+============
+
+.. autoclass:: pyqtgraph.GraphicsView
+    :members:
+
+    .. automethod:: pyqtgraph.GraphicsView.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/widgets/histogramlutwidget.rst b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/histogramlutwidget.rst
new file mode 100644
index 00000000..9d8f3b20
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/histogramlutwidget.rst
@@ -0,0 +1,8 @@
+HistogramLUTWidget
+==================
+
+.. autoclass:: pyqtgraph.HistogramLUTWidget
+    :members:
+
+    .. automethod:: pyqtgraph.HistogramLUTWidget.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/widgets/imageview.rst b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/imageview.rst
new file mode 100644
index 00000000..1eadabbf
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/imageview.rst
@@ -0,0 +1,8 @@
+ImageView
+=========
+
+.. autoclass:: pyqtgraph.ImageView
+    :members:
+
+    .. automethod:: pyqtgraph.ImageView.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/widgets/index.rst b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/index.rst
new file mode 100644
index 00000000..9cfbc0c4
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/index.rst
@@ -0,0 +1,42 @@
+.. _api_widgets:
+
+PyQtGraph's Widgets
+===================
+
+PyQtGraph provides several QWidget subclasses which are useful for building user interfaces. These widgets can generally be used in any Qt application and provide functionality that is frequently useful in science and engineering applications.
+
+Contents:
+
+.. toctree::
+    :maxdepth: 2
+
+    plotwidget
+    imageview
+    dockarea
+    spinbox
+    gradientwidget
+    histogramlutwidget
+    parametertree
+    consolewidget
+    colormapwidget
+    scatterplotwidget
+    graphicsview
+    datatreewidget
+    tablewidget
+    treewidget
+    checktable
+    colorbutton
+    graphicslayoutwidget
+    progressdialog
+    filedialog
+    joystickbutton
+    multiplotwidget
+    verticallabel
+    remotegraphicsview
+    matplotlibwidget
+    feedbackbutton
+    combobox
+    layoutwidget
+    pathbutton
+    valuelabel
+    busycursor
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/widgets/joystickbutton.rst b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/joystickbutton.rst
new file mode 100644
index 00000000..4d21e16f
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/joystickbutton.rst
@@ -0,0 +1,8 @@
+JoystickButton
+==============
+
+.. autoclass:: pyqtgraph.JoystickButton
+    :members:
+
+    .. automethod:: pyqtgraph.JoystickButton.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/widgets/layoutwidget.rst b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/layoutwidget.rst
new file mode 100644
index 00000000..98090a6a
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/layoutwidget.rst
@@ -0,0 +1,8 @@
+LayoutWidget
+============
+
+.. autoclass:: pyqtgraph.LayoutWidget
+    :members:
+
+    .. automethod:: pyqtgraph.LayoutWidget.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/widgets/make b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/make
new file mode 100644
index 00000000..1c7d379e
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/make
@@ -0,0 +1,31 @@
+files = """CheckTable
+ColorButton
+DataTreeWidget
+FileDialog
+GradientWidget
+GraphicsLayoutWidget
+GraphicsView
+HistogramLUTWidget
+JoystickButton
+MultiPlotWidget
+PlotWidget
+ProgressDialog
+RawImageWidget
+SpinBox
+TableWidget
+TreeWidget
+VerticalLabel""".split('\n')
+
+for f in files:
+    print(f)
+    fh = open(f.lower()+'.rst', 'w')
+    fh.write(
+"""%s
+%s
+
+.. autoclass:: pyqtgraph.%s
+    :members:
+
+    .. automethod:: pyqtgraph.%s.__init__
+
+""" % (f, '='*len(f), f, f))
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/widgets/matplotlibwidget.rst b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/matplotlibwidget.rst
new file mode 100644
index 00000000..1823495d
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/matplotlibwidget.rst
@@ -0,0 +1,8 @@
+MatplotlibWidget
+================
+
+.. autoclass:: pyqtgraph.widgets.MatplotlibWidget.MatplotlibWidget
+    :members:
+
+    .. automethod:: pyqtgraph.widgets.MatplotlibWidget.MatplotlibWidget.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/widgets/multiplotwidget.rst b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/multiplotwidget.rst
new file mode 100644
index 00000000..46986db0
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/multiplotwidget.rst
@@ -0,0 +1,8 @@
+MultiPlotWidget
+===============
+
+.. autoclass:: pyqtgraph.MultiPlotWidget
+    :members:
+
+    .. automethod:: pyqtgraph.MultiPlotWidget.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/widgets/parametertree.rst b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/parametertree.rst
new file mode 100644
index 00000000..565b930b
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/parametertree.rst
@@ -0,0 +1,5 @@
+parametertree module
+====================
+
+.. automodule:: pyqtgraph.parametertree
+    :members:
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/widgets/pathbutton.rst b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/pathbutton.rst
new file mode 100644
index 00000000..13298f47
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/pathbutton.rst
@@ -0,0 +1,8 @@
+PathButton
+==========
+
+.. autoclass:: pyqtgraph.PathButton
+    :members:
+
+    .. automethod:: pyqtgraph.PathButton.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/widgets/plotwidget.rst b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/plotwidget.rst
new file mode 100644
index 00000000..cbded80d
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/plotwidget.rst
@@ -0,0 +1,8 @@
+PlotWidget
+==========
+
+.. autoclass:: pyqtgraph.PlotWidget
+    :members:
+
+    .. automethod:: pyqtgraph.PlotWidget.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/widgets/progressdialog.rst b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/progressdialog.rst
new file mode 100644
index 00000000..fff04cb3
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/progressdialog.rst
@@ -0,0 +1,8 @@
+ProgressDialog
+==============
+
+.. autoclass:: pyqtgraph.ProgressDialog
+    :members:
+
+    .. automethod:: pyqtgraph.ProgressDialog.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/widgets/remotegraphicsview.rst b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/remotegraphicsview.rst
new file mode 100644
index 00000000..c6c48c25
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/remotegraphicsview.rst
@@ -0,0 +1,8 @@
+RemoteGraphicsView
+==================
+
+.. autoclass:: pyqtgraph.widgets.RemoteGraphicsView.RemoteGraphicsView
+    :members:
+
+    .. automethod:: pyqtgraph.widgets.RemoteGraphicsView.RemoteGraphicsView.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/widgets/scatterplotwidget.rst b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/scatterplotwidget.rst
new file mode 100644
index 00000000..c9d40764
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/scatterplotwidget.rst
@@ -0,0 +1,8 @@
+ScatterPlotWidget
+=================
+
+.. autoclass:: pyqtgraph.ScatterPlotWidget
+    :members:
+
+    .. automethod:: pyqtgraph.ScatterPlotWidget.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/widgets/spinbox.rst b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/spinbox.rst
new file mode 100644
index 00000000..33da1f4c
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/spinbox.rst
@@ -0,0 +1,8 @@
+SpinBox
+=======
+
+.. autoclass:: pyqtgraph.SpinBox
+    :members:
+
+    .. automethod:: pyqtgraph.SpinBox.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/widgets/tablewidget.rst b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/tablewidget.rst
new file mode 100644
index 00000000..283b540b
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/tablewidget.rst
@@ -0,0 +1,8 @@
+TableWidget
+===========
+
+.. autoclass:: pyqtgraph.TableWidget
+    :members:
+
+    .. automethod:: pyqtgraph.TableWidget.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/widgets/treewidget.rst b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/treewidget.rst
new file mode 100644
index 00000000..00f9fa28
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/treewidget.rst
@@ -0,0 +1,8 @@
+TreeWidget
+==========
+
+.. autoclass:: pyqtgraph.TreeWidget
+    :members:
+
+    .. automethod:: pyqtgraph.TreeWidget.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/widgets/valuelabel.rst b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/valuelabel.rst
new file mode 100644
index 00000000..f87a6b14
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/valuelabel.rst
@@ -0,0 +1,8 @@
+ValueLabel
+==========
+
+.. autoclass:: pyqtgraph.ValueLabel
+    :members:
+
+    .. automethod:: pyqtgraph.ValueLabel.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/doc/source/widgets/verticallabel.rst b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/verticallabel.rst
new file mode 100644
index 00000000..4f627437
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/doc/source/widgets/verticallabel.rst
@@ -0,0 +1,8 @@
+VerticalLabel
+=============
+
+.. autoclass:: pyqtgraph.VerticalLabel
+    :members:
+
+    .. automethod:: pyqtgraph.VerticalLabel.__init__
+
diff --git a/site-packages/pyqtgraph-0.10.0/examples/Arrow.py b/site-packages/pyqtgraph-0.10.0/examples/Arrow.py
new file mode 100644
index 00000000..d5ea2a74
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/Arrow.py
@@ -0,0 +1,57 @@
+# -*- coding: utf-8 -*-
+"""
+Display an animated arrowhead following a curve.
+This example uses the CurveArrow class, which is a combination
+of ArrowItem and CurvePoint.
+
+To place a static arrow anywhere in a scene, use ArrowItem.
+To attach other types of item to a curve, use CurvePoint.
+"""
+
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import numpy as np
+from pyqtgraph.Qt import QtGui, QtCore
+import pyqtgraph as pg
+
+
+app = QtGui.QApplication([])
+
+w = QtGui.QMainWindow()
+cw = pg.GraphicsLayoutWidget()
+w.show()
+w.resize(400,600)
+w.setCentralWidget(cw)
+w.setWindowTitle('pyqtgraph example: Arrow')
+
+p = cw.addPlot(row=0, col=0)
+p2 = cw.addPlot(row=1, col=0)
+
+## variety of arrow shapes
+a1 = pg.ArrowItem(angle=-160, tipAngle=60, headLen=40, tailLen=40, tailWidth=20, pen={'color': 'w', 'width': 3})
+a2 = pg.ArrowItem(angle=-120, tipAngle=30, baseAngle=20, headLen=40, tailLen=40, tailWidth=8, pen=None, brush='y')
+a3 = pg.ArrowItem(angle=-60, tipAngle=30, baseAngle=20, headLen=40, tailLen=None, brush=None)
+a4 = pg.ArrowItem(angle=-20, tipAngle=30, baseAngle=-30, headLen=40, tailLen=None)
+a2.setPos(10,0)
+a3.setPos(20,0)
+a4.setPos(30,0)
+p.addItem(a1)
+p.addItem(a2)
+p.addItem(a3)
+p.addItem(a4)
+p.setRange(QtCore.QRectF(-20, -10, 60, 20))
+
+
+## Animated arrow following curve
+c = p2.plot(x=np.sin(np.linspace(0, 2*np.pi, 1000)), y=np.cos(np.linspace(0, 6*np.pi, 1000)))
+a = pg.CurveArrow(c)
+a.setStyle(headLen=40)
+p2.addItem(a)
+anim = a.makeAnimation(loop=-1)
+anim.start()
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/BarGraphItem.py b/site-packages/pyqtgraph-0.10.0/examples/BarGraphItem.py
new file mode 100644
index 00000000..6caa8862
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/BarGraphItem.py
@@ -0,0 +1,41 @@
+# -*- coding: utf-8 -*-
+"""
+Simple example using BarGraphItem
+"""
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+import numpy as np
+
+win = pg.plot()
+win.setWindowTitle('pyqtgraph example: BarGraphItem')
+
+x = np.arange(10)
+y1 = np.sin(x)
+y2 = 1.1 * np.sin(x+1)
+y3 = 1.2 * np.sin(x+2)
+
+bg1 = pg.BarGraphItem(x=x, height=y1, width=0.3, brush='r')
+bg2 = pg.BarGraphItem(x=x+0.33, height=y2, width=0.3, brush='g')
+bg3 = pg.BarGraphItem(x=x+0.66, height=y3, width=0.3, brush='b')
+
+win.addItem(bg1)
+win.addItem(bg2)
+win.addItem(bg3)
+
+
+# Final example shows how to handle mouse clicks:
+class BarGraph(pg.BarGraphItem):
+    def mouseClickEvent(self, event):
+        print("clicked")
+
+
+bg = BarGraph(x=x, y=y1*0.3+2, height=0.4+y1*0.2, width=0.8)
+win.addItem(bg)
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/CLIexample.py b/site-packages/pyqtgraph-0.10.0/examples/CLIexample.py
new file mode 100644
index 00000000..f32cf81c
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/CLIexample.py
@@ -0,0 +1,26 @@
+"""
+Display a plot and an image with minimal setup. 
+
+pg.plot() and pg.image() are indended to be used from an interactive prompt
+to allow easy data inspection (but note that PySide unfortunately does not
+call the Qt event loop while the interactive prompt is running, in this case
+it is necessary to call QApplication.exec_() to make the windows appear).
+"""
+import initExample ## Add path to library (just for examples; you do not need this)
+
+
+import numpy as np
+import pyqtgraph as pg
+
+data = np.random.normal(size=1000)
+pg.plot(data, title="Simplest possible plotting example")
+
+data = np.random.normal(size=(500,500))
+pg.image(data, title="Simplest possible image example")
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if sys.flags.interactive != 1 or not hasattr(QtCore, 'PYQT_VERSION'):
+        pg.QtGui.QApplication.exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/ColorButton.py b/site-packages/pyqtgraph-0.10.0/examples/ColorButton.py
new file mode 100644
index 00000000..321ee735
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/ColorButton.py
@@ -0,0 +1,33 @@
+# -*- coding: utf-8 -*-
+"""
+Simple example demonstrating a button which displays a colored rectangle
+and allows the user to select a new color by clicking on the button.
+"""
+
+import initExample ## Add path to library (just for examples; you do not need this)
+
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+import numpy as np
+
+app = QtGui.QApplication([])
+win = QtGui.QMainWindow()
+btn = pg.ColorButton()
+win.setCentralWidget(btn)
+win.show()
+win.setWindowTitle('pyqtgraph example: ColorButton')
+
+def change(btn):
+    print("change", btn.color())
+def done(btn):
+    print("done", btn.color())
+
+btn.sigColorChanging.connect(change)
+btn.sigColorChanged.connect(done)
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/ConsoleWidget.py b/site-packages/pyqtgraph-0.10.0/examples/ConsoleWidget.py
new file mode 100644
index 00000000..8234269d
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/ConsoleWidget.py
@@ -0,0 +1,36 @@
+# -*- coding: utf-8 -*-
+"""
+ConsoleWidget is used to allow execution of user-supplied python commands
+in an application. It also includes a command history and functionality for trapping
+and inspecting stack traces.
+
+"""
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+import numpy as np
+import pyqtgraph.console
+
+app = pg.mkQApp()
+
+## build an initial namespace for console commands to be executed in (this is optional;
+## the user can always import these modules manually)
+namespace = {'pg': pg, 'np': np}
+
+## initial text to display in the console
+text = """
+This is an interactive python console. The numpy and pyqtgraph modules have already been imported 
+as 'np' and 'pg'. 
+
+Go, play.
+"""
+c = pyqtgraph.console.ConsoleWidget(namespace=namespace, text=text)
+c.show()
+c.setWindowTitle('pyqtgraph example: ConsoleWidget')
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/CustomGraphItem.py b/site-packages/pyqtgraph-0.10.0/examples/CustomGraphItem.py
new file mode 100644
index 00000000..695768e2
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/CustomGraphItem.py
@@ -0,0 +1,136 @@
+# -*- coding: utf-8 -*-
+"""
+Simple example of subclassing GraphItem.
+"""
+
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+import numpy as np
+
+# Enable antialiasing for prettier plots
+pg.setConfigOptions(antialias=True)
+
+w = pg.GraphicsWindow()
+w.setWindowTitle('pyqtgraph example: CustomGraphItem')
+v = w.addViewBox()
+v.setAspectLocked()
+
+class Graph(pg.GraphItem):
+    def __init__(self):
+        self.dragPoint = None
+        self.dragOffset = None
+        self.textItems = []
+        pg.GraphItem.__init__(self)
+        self.scatter.sigClicked.connect(self.clicked)
+        
+    def setData(self, **kwds):
+        self.text = kwds.pop('text', [])
+        self.data = kwds
+        if 'pos' in self.data:
+            npts = self.data['pos'].shape[0]
+            self.data['data'] = np.empty(npts, dtype=[('index', int)])
+            self.data['data']['index'] = np.arange(npts)
+        self.setTexts(self.text)
+        self.updateGraph()
+        
+    def setTexts(self, text):
+        for i in self.textItems:
+            i.scene().removeItem(i)
+        self.textItems = []
+        for t in text:
+            item = pg.TextItem(t)
+            self.textItems.append(item)
+            item.setParentItem(self)
+        
+    def updateGraph(self):
+        pg.GraphItem.setData(self, **self.data)
+        for i,item in enumerate(self.textItems):
+            item.setPos(*self.data['pos'][i])
+        
+        
+    def mouseDragEvent(self, ev):
+        if ev.button() != QtCore.Qt.LeftButton:
+            ev.ignore()
+            return
+        
+        if ev.isStart():
+            # We are already one step into the drag.
+            # Find the point(s) at the mouse cursor when the button was first 
+            # pressed:
+            pos = ev.buttonDownPos()
+            pts = self.scatter.pointsAt(pos)
+            if len(pts) == 0:
+                ev.ignore()
+                return
+            self.dragPoint = pts[0]
+            ind = pts[0].data()[0]
+            self.dragOffset = self.data['pos'][ind] - pos
+        elif ev.isFinish():
+            self.dragPoint = None
+            return
+        else:
+            if self.dragPoint is None:
+                ev.ignore()
+                return
+        
+        ind = self.dragPoint.data()[0]
+        self.data['pos'][ind] = ev.pos() + self.dragOffset
+        self.updateGraph()
+        ev.accept()
+        
+    def clicked(self, pts):
+        print("clicked: %s" % pts)
+
+
+g = Graph()
+v.addItem(g)
+
+## Define positions of nodes
+pos = np.array([
+    [0,0],
+    [10,0],
+    [0,10],
+    [10,10],
+    [5,5],
+    [15,5]
+    ], dtype=float)
+    
+## Define the set of connections in the graph
+adj = np.array([
+    [0,1],
+    [1,3],
+    [3,2],
+    [2,0],
+    [1,5],
+    [3,5],
+    ])
+    
+## Define the symbol to use for each node (this is optional)
+symbols = ['o','o','o','o','t','+']
+
+## Define the line style for each connection (this is optional)
+lines = np.array([
+    (255,0,0,255,1),
+    (255,0,255,255,2),
+    (255,0,255,255,3),
+    (255,255,0,255,2),
+    (255,0,0,255,1),
+    (255,255,255,255,4),
+    ], dtype=[('red',np.ubyte),('green',np.ubyte),('blue',np.ubyte),('alpha',np.ubyte),('width',float)])
+
+## Define text to show next to each symbol
+texts = ["Point %d" % i for i in range(6)]
+
+## Update the graph
+g.setData(pos=pos, adj=adj, pen=lines, size=1, symbol=symbols, pxMode=False, text=texts)
+
+
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/DataSlicing.py b/site-packages/pyqtgraph-0.10.0/examples/DataSlicing.py
new file mode 100644
index 00000000..d766e7e3
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/DataSlicing.py
@@ -0,0 +1,64 @@
+# -*- coding: utf-8 -*-
+"""
+Demonstrate a simple data-slicing task: given 3D data (displayed at top), select 
+a 2D plane and interpolate data along that plane to generate a slice image 
+(displayed at bottom). 
+
+
+"""
+
+## Add path to library (just for examples; you do not need this)
+import initExample
+
+import numpy as np
+from pyqtgraph.Qt import QtCore, QtGui
+import pyqtgraph as pg
+
+app = QtGui.QApplication([])
+
+## Create window with two ImageView widgets
+win = QtGui.QMainWindow()
+win.resize(800,800)
+win.setWindowTitle('pyqtgraph example: DataSlicing')
+cw = QtGui.QWidget()
+win.setCentralWidget(cw)
+l = QtGui.QGridLayout()
+cw.setLayout(l)
+imv1 = pg.ImageView()
+imv2 = pg.ImageView()
+l.addWidget(imv1, 0, 0)
+l.addWidget(imv2, 1, 0)
+win.show()
+
+roi = pg.LineSegmentROI([[10, 64], [120,64]], pen='r')
+imv1.addItem(roi)
+
+x1 = np.linspace(-30, 10, 128)[:, np.newaxis, np.newaxis]
+x2 = np.linspace(-20, 20, 128)[:, np.newaxis, np.newaxis]
+y = np.linspace(-30, 10, 128)[np.newaxis, :, np.newaxis]
+z = np.linspace(-20, 20, 128)[np.newaxis, np.newaxis, :]
+d1 = np.sqrt(x1**2 + y**2 + z**2)
+d2 = 2*np.sqrt(x1[::-1]**2 + y**2 + z**2)
+d3 = 4*np.sqrt(x2**2 + y[:,::-1]**2 + z**2)
+data = (np.sin(d1) / d1**2) + (np.sin(d2) / d2**2) + (np.sin(d3) / d3**2)
+
+def update():
+    global data, imv1, imv2
+    d2 = roi.getArrayRegion(data, imv1.imageItem, axes=(1,2))
+    imv2.setImage(d2)
+    
+roi.sigRegionChanged.connect(update)
+
+
+## Display the data
+imv1.setImage(data)
+imv1.setHistogramRange(-0.01, 0.01)
+imv1.setLevels(-0.003, 0.003)
+
+update()
+
+## Start Qt event loop unless running in interactive mode.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/DataTreeWidget.py b/site-packages/pyqtgraph-0.10.0/examples/DataTreeWidget.py
new file mode 100644
index 00000000..8365db2a
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/DataTreeWidget.py
@@ -0,0 +1,35 @@
+# -*- coding: utf-8 -*-
+
+"""
+Simple use of DataTreeWidget to display a structure of nested dicts, lists, and arrays
+"""
+
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+import numpy as np
+
+
+app = QtGui.QApplication([])
+d = {
+    'list1': [1,2,3,4,5,6, {'nested1': 'aaaaa', 'nested2': 'bbbbb'}, "seven"],
+    'dict1': {
+        'x': 1,
+        'y': 2,
+        'z': 'three'
+    },
+    'array1 (20x20)': np.ones((10,10))
+}
+
+tree = pg.DataTreeWidget(data=d)
+tree.show()
+tree.setWindowTitle('pyqtgraph example: DataTreeWidget')
+tree.resize(600,600)
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
\ No newline at end of file
diff --git a/site-packages/pyqtgraph-0.10.0/examples/Draw.py b/site-packages/pyqtgraph-0.10.0/examples/Draw.py
new file mode 100644
index 00000000..cc137db3
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/Draw.py
@@ -0,0 +1,49 @@
+# -*- coding: utf-8 -*-
+"""
+Demonstrate ability of ImageItem to be used as a canvas for painting with
+the mouse.
+
+"""
+
+import initExample ## Add path to library (just for examples; you do not need this)
+
+
+from pyqtgraph.Qt import QtCore, QtGui
+import numpy as np
+import pyqtgraph as pg
+
+app = QtGui.QApplication([])
+
+## Create window with GraphicsView widget
+w = pg.GraphicsView()
+w.show()
+w.resize(800,800)
+w.setWindowTitle('pyqtgraph example: Draw')
+
+view = pg.ViewBox()
+w.setCentralItem(view)
+
+## lock the aspect ratio
+view.setAspectLocked(True)
+
+## Create image item
+img = pg.ImageItem(np.zeros((200,200)))
+view.addItem(img)
+
+## Set initial view bounds
+view.setRange(QtCore.QRectF(0, 0, 200, 200))
+
+## start drawing with 3x3 brush
+kern = np.array([
+    [0.0, 0.5, 0.0],
+    [0.5, 1.0, 0.5],
+    [0.0, 0.5, 0.0]
+])
+img.setDrawKernel(kern, mask=kern, center=(1,1), mode='add')
+img.setLevels([0, 10])
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/ErrorBarItem.py b/site-packages/pyqtgraph-0.10.0/examples/ErrorBarItem.py
new file mode 100644
index 00000000..cd576d51
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/ErrorBarItem.py
@@ -0,0 +1,33 @@
+# -*- coding: utf-8 -*-
+"""
+Demonstrates basic use of ErrorBarItem
+
+"""
+
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtGui, QtCore
+import numpy as np
+
+import pyqtgraph as pg
+import numpy as np
+
+pg.setConfigOptions(antialias=True)
+
+x = np.arange(10)
+y = np.arange(10) %3
+top = np.linspace(1.0, 3.0, 10)
+bottom = np.linspace(2, 0.5, 10)
+
+plt = pg.plot()
+plt.setWindowTitle('pyqtgraph example: ErrorBarItem')
+err = pg.ErrorBarItem(x=x, y=y, top=top, bottom=bottom, beam=0.5)
+plt.addItem(err)
+plt.plot(x, y, symbol='o', pen={'color': 0.8, 'width': 2})
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/FillBetweenItem.py b/site-packages/pyqtgraph-0.10.0/examples/FillBetweenItem.py
new file mode 100644
index 00000000..fc91ee32
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/FillBetweenItem.py
@@ -0,0 +1,52 @@
+# -*- coding: utf-8 -*-
+"""
+Demonstrates use of FillBetweenItem to fill the space between two plot curves.
+"""
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtGui, QtCore
+import numpy as np
+
+#FIXME: When running on Qt5, not as perfect as on Qt4
+
+win = pg.plot()
+win.setWindowTitle('pyqtgraph example: FillBetweenItem')
+win.setXRange(-10, 10)
+win.setYRange(-10, 10)
+
+N = 200
+x = np.linspace(-10, 10, N)
+gauss = np.exp(-x**2 / 20.)
+mn = mx = np.zeros(len(x))
+curves = [win.plot(x=x, y=np.zeros(len(x)), pen='k') for i in range(4)]
+brushes = [0.5, (100, 100, 255), 0.5]
+fills = [pg.FillBetweenItem(curves[i], curves[i+1], brushes[i]) for i in range(3)]
+for f in fills:
+    win.addItem(f)
+
+def update():
+    global mx, mn, curves, gauss, x
+    a = 5 / abs(np.random.normal(loc=1, scale=0.2))
+    y1 = -np.abs(a*gauss + np.random.normal(size=len(x)))
+    y2 =  np.abs(a*gauss + np.random.normal(size=len(x)))
+    
+    s = 0.01
+    mn = np.where(y1<mn, y1, mn) * (1-s) + y1 * s
+    mx = np.where(y2>mx, y2, mx) * (1-s) + y2 * s
+    curves[0].setData(x, mn)
+    curves[1].setData(x, y1)
+    curves[2].setData(x, y2)
+    curves[3].setData(x, mx)
+    
+
+timer = QtCore.QTimer()
+timer.timeout.connect(update)
+timer.start(30)
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/Flowchart.py b/site-packages/pyqtgraph-0.10.0/examples/Flowchart.py
new file mode 100644
index 00000000..b911cec8
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/Flowchart.py
@@ -0,0 +1,84 @@
+# -*- coding: utf-8 -*-
+"""
+This example demonstrates a very basic use of flowcharts: filter data,
+displaying both the input and output of the filter. The behavior of
+the filter can be reprogrammed by the user.
+
+Basic steps are:
+  - create a flowchart and two plots
+  - input noisy data to the flowchart
+  - flowchart connects data to the first plot, where it is displayed
+  - add a gaussian filter to lowpass the data, then display it in the second plot.
+"""
+import initExample ## Add path to library (just for examples; you do not need this)
+
+
+from pyqtgraph.flowchart import Flowchart
+from pyqtgraph.Qt import QtGui, QtCore
+import pyqtgraph as pg
+import numpy as np
+import pyqtgraph.metaarray as metaarray
+
+app = QtGui.QApplication([])
+
+## Create main window with grid layout
+win = QtGui.QMainWindow()
+win.setWindowTitle('pyqtgraph example: Flowchart')
+cw = QtGui.QWidget()
+win.setCentralWidget(cw)
+layout = QtGui.QGridLayout()
+cw.setLayout(layout)
+
+## Create flowchart, define input/output terminals
+fc = Flowchart(terminals={
+    'dataIn': {'io': 'in'},
+    'dataOut': {'io': 'out'}    
+})
+w = fc.widget()
+
+## Add flowchart control panel to the main window
+layout.addWidget(fc.widget(), 0, 0, 2, 1)
+
+## Add two plot widgets
+pw1 = pg.PlotWidget()
+pw2 = pg.PlotWidget()
+layout.addWidget(pw1, 0, 1)
+layout.addWidget(pw2, 1, 1)
+
+win.show()
+
+## generate signal data to pass through the flowchart
+data = np.random.normal(size=1000)
+data[200:300] += 1
+data += np.sin(np.linspace(0, 100, 1000))
+data = metaarray.MetaArray(data, info=[{'name': 'Time', 'values': np.linspace(0, 1.0, len(data))}, {}])
+
+## Feed data into the input terminal of the flowchart
+fc.setInput(dataIn=data)
+
+## populate the flowchart with a basic set of processing nodes. 
+## (usually we let the user do this)
+plotList = {'Top Plot': pw1, 'Bottom Plot': pw2}
+
+pw1Node = fc.createNode('PlotWidget', pos=(0, -150))
+pw1Node.setPlotList(plotList)
+pw1Node.setPlot(pw1)
+
+pw2Node = fc.createNode('PlotWidget', pos=(150, -150))
+pw2Node.setPlot(pw2)
+pw2Node.setPlotList(plotList)
+
+fNode = fc.createNode('GaussianFilter', pos=(0, 0))
+fNode.ctrls['sigma'].setValue(5)
+fc.connectTerminals(fc['dataIn'], fNode['In'])
+fc.connectTerminals(fc['dataIn'], pw1Node['In'])
+fc.connectTerminals(fNode['Out'], pw2Node['In'])
+fc.connectTerminals(fNode['Out'], fc['dataOut'])
+
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/FlowchartCustomNode.py b/site-packages/pyqtgraph-0.10.0/examples/FlowchartCustomNode.py
new file mode 100644
index 00000000..2b0819ab
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/FlowchartCustomNode.py
@@ -0,0 +1,159 @@
+# -*- coding: utf-8 -*-
+"""
+This example demonstrates writing a custom Node subclass for use with flowcharts.
+
+We implement a couple of simple image processing nodes.
+"""
+import initExample ## Add path to library (just for examples; you do not need this)
+
+from pyqtgraph.flowchart import Flowchart, Node
+import pyqtgraph.flowchart.library as fclib
+from pyqtgraph.flowchart.library.common import CtrlNode
+from pyqtgraph.Qt import QtGui, QtCore
+import pyqtgraph as pg
+import numpy as np
+
+app = QtGui.QApplication([])
+
+## Create main window with a grid layout inside
+win = QtGui.QMainWindow()
+win.setWindowTitle('pyqtgraph example: FlowchartCustomNode')
+cw = QtGui.QWidget()
+win.setCentralWidget(cw)
+layout = QtGui.QGridLayout()
+cw.setLayout(layout)
+
+## Create an empty flowchart with a single input and output
+fc = Flowchart(terminals={
+    'dataIn': {'io': 'in'},
+    'dataOut': {'io': 'out'}    
+})
+w = fc.widget()
+
+layout.addWidget(fc.widget(), 0, 0, 2, 1)
+
+## Create two ImageView widgets to display the raw and processed data with contrast
+## and color control.
+v1 = pg.ImageView()
+v2 = pg.ImageView()
+layout.addWidget(v1, 0, 1)
+layout.addWidget(v2, 1, 1)
+
+win.show()
+
+## generate random input data
+data = np.random.normal(size=(100,100))
+data = 25 * pg.gaussianFilter(data, (5,5))
+data += np.random.normal(size=(100,100))
+data[40:60, 40:60] += 15.0
+data[30:50, 30:50] += 15.0
+#data += np.sin(np.linspace(0, 100, 1000))
+#data = metaarray.MetaArray(data, info=[{'name': 'Time', 'values': np.linspace(0, 1.0, len(data))}, {}])
+
+## Set the raw data as the input value to the flowchart
+fc.setInput(dataIn=data)
+
+
+## At this point, we need some custom Node classes since those provided in the library
+## are not sufficient. Each node will define a set of input/output terminals, a 
+## processing function, and optionally a control widget (to be displayed in the 
+## flowchart control panel)
+
+class ImageViewNode(Node):
+    """Node that displays image data in an ImageView widget"""
+    nodeName = 'ImageView'
+    
+    def __init__(self, name):
+        self.view = None
+        ## Initialize node with only a single input terminal
+        Node.__init__(self, name, terminals={'data': {'io':'in'}})
+        
+    def setView(self, view):  ## setView must be called by the program
+        self.view = view
+        
+    def process(self, data, display=True):
+        ## if process is called with display=False, then the flowchart is being operated
+        ## in batch processing mode, so we should skip displaying to improve performance.
+        
+        if display and self.view is not None:
+            ## the 'data' argument is the value given to the 'data' terminal
+            if data is None:
+                self.view.setImage(np.zeros((1,1))) # give a blank array to clear the view
+            else:
+                self.view.setImage(data)
+
+
+
+        
+## We will define an unsharp masking filter node as a subclass of CtrlNode.
+## CtrlNode is just a convenience class that automatically creates its
+## control widget based on a simple data structure.
+class UnsharpMaskNode(CtrlNode):
+    """Return the input data passed through an unsharp mask."""
+    nodeName = "UnsharpMask"
+    uiTemplate = [
+        ('sigma',  'spin', {'value': 1.0, 'step': 1.0, 'bounds': [0.0, None]}),
+        ('strength', 'spin', {'value': 1.0, 'dec': True, 'step': 0.5, 'minStep': 0.01, 'bounds': [0.0, None]}),
+    ]
+    def __init__(self, name):
+        ## Define the input / output terminals available on this node
+        terminals = {
+            'dataIn': dict(io='in'),    # each terminal needs at least a name and
+            'dataOut': dict(io='out'),  # to specify whether it is input or output
+        }                              # other more advanced options are available
+                                       # as well..
+        
+        CtrlNode.__init__(self, name, terminals=terminals)
+        
+    def process(self, dataIn, display=True):
+        # CtrlNode has created self.ctrls, which is a dict containing {ctrlName: widget}
+        sigma = self.ctrls['sigma'].value()
+        strength = self.ctrls['strength'].value()
+        output = dataIn - (strength * pg.gaussianFilter(dataIn, (sigma,sigma)))
+        return {'dataOut': output}
+
+
+## To make our custom node classes available in the flowchart context menu,
+## we can either register them with the default node library or make a
+## new library.
+
+        
+## Method 1: Register to global default library:
+#fclib.registerNodeType(ImageViewNode, [('Display',)])
+#fclib.registerNodeType(UnsharpMaskNode, [('Image',)])
+
+## Method 2: If we want to make our custom node available only to this flowchart,
+## then instead of registering the node type globally, we can create a new 
+## NodeLibrary:
+library = fclib.LIBRARY.copy() # start with the default node set
+library.addNodeType(ImageViewNode, [('Display',)])
+# Add the unsharp mask node to two locations in the menu to demonstrate
+# that we can create arbitrary menu structures
+library.addNodeType(UnsharpMaskNode, [('Image',), 
+                                      ('Submenu_test','submenu2','submenu3')])
+fc.setLibrary(library)
+
+
+## Now we will programmatically add nodes to define the function of the flowchart.
+## Normally, the user will do this manually or by loading a pre-generated
+## flowchart file.
+
+v1Node = fc.createNode('ImageView', pos=(0, -150))
+v1Node.setView(v1)
+
+v2Node = fc.createNode('ImageView', pos=(150, -150))
+v2Node.setView(v2)
+
+fNode = fc.createNode('UnsharpMask', pos=(0, 0))
+fc.connectTerminals(fc['dataIn'], fNode['dataIn'])
+fc.connectTerminals(fc['dataIn'], v1Node['data'])
+fc.connectTerminals(fNode['dataOut'], v2Node['data'])
+fc.connectTerminals(fNode['dataOut'], fc['dataOut'])
+
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/GLBarGraphItem.py b/site-packages/pyqtgraph-0.10.0/examples/GLBarGraphItem.py
new file mode 100644
index 00000000..d14eba87
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/GLBarGraphItem.py
@@ -0,0 +1,47 @@
+# -*- coding: utf-8 -*-
+"""
+Demonstrate use of GLLinePlotItem to draw cross-sections of a surface.
+
+"""
+## Add path to library (just for examples; you do not need this)
+import initExample
+
+from pyqtgraph.Qt import QtCore, QtGui
+import pyqtgraph.opengl as gl
+import pyqtgraph as pg
+import numpy as np
+
+app = QtGui.QApplication([])
+w = gl.GLViewWidget()
+w.opts['distance'] = 40
+w.show()
+w.setWindowTitle('pyqtgraph example: GLBarGraphItem')
+
+gx = gl.GLGridItem()
+gx.rotate(90, 0, 1, 0)
+gx.translate(-10, 0, 10)
+w.addItem(gx)
+gy = gl.GLGridItem()
+gy.rotate(90, 1, 0, 0)
+gy.translate(0, -10, 10)
+w.addItem(gy)
+gz = gl.GLGridItem()
+gz.translate(0, 0, 0)
+w.addItem(gz)
+
+# regular grid of starting positions
+pos = np.mgrid[0:10, 0:10, 0:1].reshape(3,10,10).transpose(1,2,0)
+# fixed widths, random heights
+size = np.empty((10,10,3))
+size[...,0:2] = 0.4
+size[...,2] = np.random.normal(size=(10,10))
+
+bg = gl.GLBarGraphItem(pos, size)
+w.addItem(bg)
+
+
+## Start Qt event loop unless running in interactive mode.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/GLImageItem.py b/site-packages/pyqtgraph-0.10.0/examples/GLImageItem.py
new file mode 100644
index 00000000..581474fd
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/GLImageItem.py
@@ -0,0 +1,57 @@
+# -*- coding: utf-8 -*-
+"""
+Use GLImageItem to display image data on rectangular planes.
+
+In this example, the image data is sampled from a volume and the image planes 
+placed as if they slice through the volume.
+"""
+## Add path to library (just for examples; you do not need this)
+import initExample
+
+from pyqtgraph.Qt import QtCore, QtGui
+import pyqtgraph.opengl as gl
+import pyqtgraph as pg
+import numpy as np
+
+app = QtGui.QApplication([])
+w = gl.GLViewWidget()
+w.opts['distance'] = 200
+w.show()
+w.setWindowTitle('pyqtgraph example: GLImageItem')
+
+## create volume data set to slice three images from
+shape = (100,100,70)
+data = pg.gaussianFilter(np.random.normal(size=shape), (4,4,4))
+data += pg.gaussianFilter(np.random.normal(size=shape), (15,15,15))*15
+
+## slice out three planes, convert to RGBA for OpenGL texture
+levels = (-0.08, 0.08)
+tex1 = pg.makeRGBA(data[shape[0]/2], levels=levels)[0]       # yz plane
+tex2 = pg.makeRGBA(data[:,shape[1]/2], levels=levels)[0]     # xz plane
+tex3 = pg.makeRGBA(data[:,:,shape[2]/2], levels=levels)[0]   # xy plane
+#tex1[:,:,3] = 128
+#tex2[:,:,3] = 128
+#tex3[:,:,3] = 128
+
+## Create three image items from textures, add to view
+v1 = gl.GLImageItem(tex1)
+v1.translate(-shape[1]/2, -shape[2]/2, 0)
+v1.rotate(90, 0,0,1)
+v1.rotate(-90, 0,1,0)
+w.addItem(v1)
+v2 = gl.GLImageItem(tex2)
+v2.translate(-shape[0]/2, -shape[2]/2, 0)
+v2.rotate(-90, 1,0,0)
+w.addItem(v2)
+v3 = gl.GLImageItem(tex3)
+v3.translate(-shape[0]/2, -shape[1]/2, 0)
+w.addItem(v3)
+
+ax = gl.GLAxisItem()
+w.addItem(ax)
+
+## Start Qt event loop unless running in interactive mode.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/GLIsosurface.py b/site-packages/pyqtgraph-0.10.0/examples/GLIsosurface.py
new file mode 100644
index 00000000..a9403ffb
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/GLIsosurface.py
@@ -0,0 +1,75 @@
+# -*- coding: utf-8 -*-
+"""
+This example uses the isosurface function to convert a scalar field
+(a hydrogen orbital) into a mesh for 3D display.
+"""
+
+## Add path to library (just for examples; you do not need this)
+import initExample
+
+from pyqtgraph.Qt import QtCore, QtGui
+import pyqtgraph as pg
+import pyqtgraph.opengl as gl
+
+app = QtGui.QApplication([])
+w = gl.GLViewWidget()
+w.show()
+w.setWindowTitle('pyqtgraph example: GLIsosurface')
+
+w.setCameraPosition(distance=40)
+
+g = gl.GLGridItem()
+g.scale(2,2,1)
+w.addItem(g)
+
+import numpy as np
+
+## Define a scalar field from which we will generate an isosurface
+def psi(i, j, k, offset=(25, 25, 50)):
+    x = i-offset[0]
+    y = j-offset[1]
+    z = k-offset[2]
+    th = np.arctan2(z, (x**2+y**2)**0.5)
+    phi = np.arctan2(y, x)
+    r = (x**2 + y**2 + z **2)**0.5
+    a0 = 1
+    #ps = (1./81.) * (2./np.pi)**0.5 * (1./a0)**(3/2) * (6 - r/a0) * (r/a0) * np.exp(-r/(3*a0)) * np.cos(th)
+    ps = (1./81.) * 1./(6.*np.pi)**0.5 * (1./a0)**(3/2) * (r/a0)**2 * np.exp(-r/(3*a0)) * (3 * np.cos(th)**2 - 1)
+    
+    return ps
+    
+    #return ((1./81.) * (1./np.pi)**0.5 * (1./a0)**(3/2) * (r/a0)**2 * (r/a0) * np.exp(-r/(3*a0)) * np.sin(th) * np.cos(th) * np.exp(2 * 1j * phi))**2 
+
+
+print("Generating scalar field..")
+data = np.abs(np.fromfunction(psi, (50,50,100)))
+
+
+print("Generating isosurface..")
+verts, faces = pg.isosurface(data, data.max()/4.)
+
+md = gl.MeshData(vertexes=verts, faces=faces)
+
+colors = np.ones((md.faceCount(), 4), dtype=float)
+colors[:,3] = 0.2
+colors[:,2] = np.linspace(0, 1, colors.shape[0])
+md.setFaceColors(colors)
+m1 = gl.GLMeshItem(meshdata=md, smooth=False, shader='balloon')
+m1.setGLOptions('additive')
+
+#w.addItem(m1)
+m1.translate(-25, -25, -20)
+
+m2 = gl.GLMeshItem(meshdata=md, smooth=True, shader='balloon')
+m2.setGLOptions('additive')
+
+w.addItem(m2)
+m2.translate(-25, -25, -50)
+    
+
+
+## Start Qt event loop unless running in interactive mode.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/GLLinePlotItem.py b/site-packages/pyqtgraph-0.10.0/examples/GLLinePlotItem.py
new file mode 100644
index 00000000..1de07cff
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/GLLinePlotItem.py
@@ -0,0 +1,52 @@
+# -*- coding: utf-8 -*-
+"""
+Demonstrate use of GLLinePlotItem to draw cross-sections of a surface.
+
+"""
+## Add path to library (just for examples; you do not need this)
+import initExample
+
+from pyqtgraph.Qt import QtCore, QtGui
+import pyqtgraph.opengl as gl
+import pyqtgraph as pg
+import numpy as np
+
+app = QtGui.QApplication([])
+w = gl.GLViewWidget()
+w.opts['distance'] = 40
+w.show()
+w.setWindowTitle('pyqtgraph example: GLLinePlotItem')
+
+gx = gl.GLGridItem()
+gx.rotate(90, 0, 1, 0)
+gx.translate(-10, 0, 0)
+w.addItem(gx)
+gy = gl.GLGridItem()
+gy.rotate(90, 1, 0, 0)
+gy.translate(0, -10, 0)
+w.addItem(gy)
+gz = gl.GLGridItem()
+gz.translate(0, 0, -10)
+w.addItem(gz)
+
+def fn(x, y):
+    return np.cos((x**2 + y**2)**0.5)
+
+n = 51
+y = np.linspace(-10,10,n)
+x = np.linspace(-10,10,100)
+for i in range(n):
+    yi = np.array([y[i]]*100)
+    d = (x**2 + yi**2)**0.5
+    z = 10 * np.cos(d) / (d+1)
+    pts = np.vstack([x,yi,z]).transpose()
+    plt = gl.GLLinePlotItem(pos=pts, color=pg.glColor((i,n*1.3)), width=(i+1)/10., antialias=True)
+    w.addItem(plt)
+    
+
+
+## Start Qt event loop unless running in interactive mode.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/GLMeshItem.py b/site-packages/pyqtgraph-0.10.0/examples/GLMeshItem.py
new file mode 100644
index 00000000..1caa3490
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/GLMeshItem.py
@@ -0,0 +1,129 @@
+# -*- coding: utf-8 -*-
+"""
+Simple examples demonstrating the use of GLMeshItem.
+
+"""
+
+## Add path to library (just for examples; you do not need this)
+import initExample
+
+from pyqtgraph.Qt import QtCore, QtGui
+import pyqtgraph as pg
+import pyqtgraph.opengl as gl
+
+app = QtGui.QApplication([])
+w = gl.GLViewWidget()
+w.show()
+w.setWindowTitle('pyqtgraph example: GLMeshItem')
+w.setCameraPosition(distance=40)
+
+g = gl.GLGridItem()
+g.scale(2,2,1)
+w.addItem(g)
+
+import numpy as np
+
+
+## Example 1:
+## Array of vertex positions and array of vertex indexes defining faces
+## Colors are specified per-face
+
+verts = np.array([
+    [0, 0, 0],
+    [2, 0, 0],
+    [1, 2, 0],
+    [1, 1, 1],
+])
+faces = np.array([
+    [0, 1, 2],
+    [0, 1, 3],
+    [0, 2, 3],
+    [1, 2, 3]
+])
+colors = np.array([
+    [1, 0, 0, 0.3],
+    [0, 1, 0, 0.3],
+    [0, 0, 1, 0.3],
+    [1, 1, 0, 0.3]
+])
+
+## Mesh item will automatically compute face normals.
+m1 = gl.GLMeshItem(vertexes=verts, faces=faces, faceColors=colors, smooth=False)
+m1.translate(5, 5, 0)
+m1.setGLOptions('additive')
+w.addItem(m1)
+
+
+## Example 2:
+## Array of vertex positions, three per face
+verts = np.empty((36, 3, 3), dtype=np.float32)
+theta = np.linspace(0, 2*np.pi, 37)[:-1]
+verts[:,0] = np.vstack([2*np.cos(theta), 2*np.sin(theta), [0]*36]).T
+verts[:,1] = np.vstack([4*np.cos(theta+0.2), 4*np.sin(theta+0.2), [-1]*36]).T
+verts[:,2] = np.vstack([4*np.cos(theta-0.2), 4*np.sin(theta-0.2), [1]*36]).T
+    
+## Colors are specified per-vertex
+colors = np.random.random(size=(verts.shape[0], 3, 4))
+m2 = gl.GLMeshItem(vertexes=verts, vertexColors=colors, smooth=False, shader='balloon', 
+                   drawEdges=True, edgeColor=(1, 1, 0, 1))
+m2.translate(-5, 5, 0)
+w.addItem(m2)
+
+
+
+## Example 3:
+## sphere
+
+md = gl.MeshData.sphere(rows=10, cols=20)
+#colors = np.random.random(size=(md.faceCount(), 4))
+#colors[:,3] = 0.3
+#colors[100:] = 0.0
+colors = np.ones((md.faceCount(), 4), dtype=float)
+colors[::2,0] = 0
+colors[:,1] = np.linspace(0, 1, colors.shape[0])
+md.setFaceColors(colors)
+m3 = gl.GLMeshItem(meshdata=md, smooth=False)#, shader='balloon')
+
+m3.translate(5, -5, 0)
+w.addItem(m3)
+
+
+# Example 4:
+# wireframe
+
+md = gl.MeshData.sphere(rows=4, cols=8)
+m4 = gl.GLMeshItem(meshdata=md, smooth=False, drawFaces=False, drawEdges=True, edgeColor=(1,1,1,1))
+m4.translate(0,10,0)
+w.addItem(m4)
+
+# Example 5:
+# cylinder
+md = gl.MeshData.cylinder(rows=10, cols=20, radius=[1., 2.0], length=5.)
+md2 = gl.MeshData.cylinder(rows=10, cols=20, radius=[2., 0.5], length=10.)
+colors = np.ones((md.faceCount(), 4), dtype=float)
+colors[::2,0] = 0
+colors[:,1] = np.linspace(0, 1, colors.shape[0])
+md.setFaceColors(colors)
+m5 = gl.GLMeshItem(meshdata=md, smooth=True, drawEdges=True, edgeColor=(1,0,0,1), shader='balloon')
+colors = np.ones((md.faceCount(), 4), dtype=float)
+colors[::2,0] = 0
+colors[:,1] = np.linspace(0, 1, colors.shape[0])
+md2.setFaceColors(colors)
+m6 = gl.GLMeshItem(meshdata=md2, smooth=True, drawEdges=False, shader='balloon')
+m6.translate(0,0,7.5)
+
+m6.rotate(0., 0, 1, 1)
+#m5.translate(-3,3,0)
+w.addItem(m5)
+w.addItem(m6)
+
+
+
+    
+
+
+## Start Qt event loop unless running in interactive mode.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/GLScatterPlotItem.py b/site-packages/pyqtgraph-0.10.0/examples/GLScatterPlotItem.py
new file mode 100644
index 00000000..53a9a752
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/GLScatterPlotItem.py
@@ -0,0 +1,113 @@
+# -*- coding: utf-8 -*-
+"""
+Demonstrates use of GLScatterPlotItem with rapidly-updating plots.
+
+"""
+
+## Add path to library (just for examples; you do not need this)
+import initExample
+
+from pyqtgraph.Qt import QtCore, QtGui
+import pyqtgraph.opengl as gl
+import numpy as np
+
+app = QtGui.QApplication([])
+w = gl.GLViewWidget()
+w.opts['distance'] = 20
+w.show()
+w.setWindowTitle('pyqtgraph example: GLScatterPlotItem')
+
+g = gl.GLGridItem()
+w.addItem(g)
+
+
+##
+##  First example is a set of points with pxMode=False
+##  These demonstrate the ability to have points with real size down to a very small scale 
+## 
+pos = np.empty((53, 3))
+size = np.empty((53))
+color = np.empty((53, 4))
+pos[0] = (1,0,0); size[0] = 0.5;   color[0] = (1.0, 0.0, 0.0, 0.5)
+pos[1] = (0,1,0); size[1] = 0.2;   color[1] = (0.0, 0.0, 1.0, 0.5)
+pos[2] = (0,0,1); size[2] = 2./3.; color[2] = (0.0, 1.0, 0.0, 0.5)
+
+z = 0.5
+d = 6.0
+for i in range(3,53):
+    pos[i] = (0,0,z)
+    size[i] = 2./d
+    color[i] = (0.0, 1.0, 0.0, 0.5)
+    z *= 0.5
+    d *= 2.0
+    
+sp1 = gl.GLScatterPlotItem(pos=pos, size=size, color=color, pxMode=False)
+sp1.translate(5,5,0)
+w.addItem(sp1)
+
+
+##
+##  Second example shows a volume of points with rapidly updating color
+##  and pxMode=True
+##
+
+pos = np.random.random(size=(100000,3))
+pos *= [10,-10,10]
+pos[0] = (0,0,0)
+color = np.ones((pos.shape[0], 4))
+d2 = (pos**2).sum(axis=1)**0.5
+size = np.random.random(size=pos.shape[0])*10
+sp2 = gl.GLScatterPlotItem(pos=pos, color=(1,1,1,1), size=size)
+phase = 0.
+
+w.addItem(sp2)
+
+
+##
+##  Third example shows a grid of points with rapidly updating position
+##  and pxMode = False
+##
+
+pos3 = np.zeros((100,100,3))
+pos3[:,:,:2] = np.mgrid[:100, :100].transpose(1,2,0) * [-0.1,0.1]
+pos3 = pos3.reshape(10000,3)
+d3 = (pos3**2).sum(axis=1)**0.5
+
+sp3 = gl.GLScatterPlotItem(pos=pos3, color=(1,1,1,.3), size=0.1, pxMode=False)
+
+w.addItem(sp3)
+
+
+def update():
+    ## update volume colors
+    global phase, sp2, d2
+    s = -np.cos(d2*2+phase)
+    color = np.empty((len(d2),4), dtype=np.float32)
+    color[:,3] = np.clip(s * 0.1, 0, 1)
+    color[:,0] = np.clip(s * 3.0, 0, 1)
+    color[:,1] = np.clip(s * 1.0, 0, 1)
+    color[:,2] = np.clip(s ** 3, 0, 1)
+    sp2.setData(color=color)
+    phase -= 0.1
+    
+    ## update surface positions and colors
+    global sp3, d3, pos3
+    z = -np.cos(d3*2+phase)
+    pos3[:,2] = z
+    color = np.empty((len(d3),4), dtype=np.float32)
+    color[:,3] = 0.3
+    color[:,0] = np.clip(z * 3.0, 0, 1)
+    color[:,1] = np.clip(z * 1.0, 0, 1)
+    color[:,2] = np.clip(z ** 3, 0, 1)
+    sp3.setData(pos=pos3, color=color)
+    
+t = QtCore.QTimer()
+t.timeout.connect(update)
+t.start(50)
+
+
+## Start Qt event loop unless running in interactive mode.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/GLSurfacePlot.py b/site-packages/pyqtgraph-0.10.0/examples/GLSurfacePlot.py
new file mode 100644
index 00000000..e9896e07
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/GLSurfacePlot.py
@@ -0,0 +1,99 @@
+# -*- coding: utf-8 -*-
+"""
+This example demonstrates the use of GLSurfacePlotItem.
+"""
+
+
+## Add path to library (just for examples; you do not need this)
+import initExample
+
+from pyqtgraph.Qt import QtCore, QtGui
+import pyqtgraph as pg
+import pyqtgraph.opengl as gl
+import numpy as np
+
+## Create a GL View widget to display data
+app = QtGui.QApplication([])
+w = gl.GLViewWidget()
+w.show()
+w.setWindowTitle('pyqtgraph example: GLSurfacePlot')
+w.setCameraPosition(distance=50)
+
+## Add a grid to the view
+g = gl.GLGridItem()
+g.scale(2,2,1)
+g.setDepthValue(10)  # draw grid after surfaces since they may be translucent
+w.addItem(g)
+
+
+## Simple surface plot example
+## x, y values are not specified, so assumed to be 0:50
+z = pg.gaussianFilter(np.random.normal(size=(50,50)), (1,1))
+p1 = gl.GLSurfacePlotItem(z=z, shader='shaded', color=(0.5, 0.5, 1, 1))
+p1.scale(16./49., 16./49., 1.0)
+p1.translate(-18, 2, 0)
+w.addItem(p1)
+
+
+## Saddle example with x and y specified
+x = np.linspace(-8, 8, 50)
+y = np.linspace(-8, 8, 50)
+z = 0.1 * ((x.reshape(50,1) ** 2) - (y.reshape(1,50) ** 2))
+p2 = gl.GLSurfacePlotItem(x=x, y=y, z=z, shader='normalColor')
+p2.translate(-10,-10,0)
+w.addItem(p2)
+
+
+## Manually specified colors
+z = pg.gaussianFilter(np.random.normal(size=(50,50)), (1,1))
+x = np.linspace(-12, 12, 50)
+y = np.linspace(-12, 12, 50)
+colors = np.ones((50,50,4), dtype=float)
+colors[...,0] = np.clip(np.cos(((x.reshape(50,1) ** 2) + (y.reshape(1,50) ** 2)) ** 0.5), 0, 1)
+colors[...,1] = colors[...,0]
+
+p3 = gl.GLSurfacePlotItem(z=z, colors=colors.reshape(50*50,4), shader='shaded', smooth=False)
+p3.scale(16./49., 16./49., 1.0)
+p3.translate(2, -18, 0)
+w.addItem(p3)
+
+
+
+
+## Animated example
+## compute surface vertex data
+cols = 90
+rows = 100
+x = np.linspace(-8, 8, cols+1).reshape(cols+1,1)
+y = np.linspace(-8, 8, rows+1).reshape(1,rows+1)
+d = (x**2 + y**2) * 0.1
+d2 = d ** 0.5 + 0.1
+
+## precompute height values for all frames
+phi = np.arange(0, np.pi*2, np.pi/20.)
+z = np.sin(d[np.newaxis,...] + phi.reshape(phi.shape[0], 1, 1)) / d2[np.newaxis,...]
+
+
+## create a surface plot, tell it to use the 'heightColor' shader
+## since this does not require normal vectors to render (thus we 
+## can set computeNormals=False to save time when the mesh updates)
+p4 = gl.GLSurfacePlotItem(x=x[:,0], y = y[0,:], shader='heightColor', computeNormals=False, smooth=False)
+p4.shader()['colorMap'] = np.array([0.2, 2, 0.5, 0.2, 1, 1, 0.2, 0, 2])
+p4.translate(10, 10, 0)
+w.addItem(p4)
+
+index = 0
+def update():
+    global p4, z, index
+    index -= 1
+    p4.setData(z=z[index%z.shape[0]])
+    
+timer = QtCore.QTimer()
+timer.timeout.connect(update)
+timer.start(30)
+
+## Start Qt event loop unless running in interactive mode.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/GLViewWidget.py b/site-packages/pyqtgraph-0.10.0/examples/GLViewWidget.py
new file mode 100644
index 00000000..a5207838
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/GLViewWidget.py
@@ -0,0 +1,34 @@
+# -*- coding: utf-8 -*-
+"""
+Very basic 3D graphics example; create a view widget and add a few items.
+
+"""
+## Add path to library (just for examples; you do not need this)
+import initExample
+
+from pyqtgraph.Qt import QtCore, QtGui
+import pyqtgraph.opengl as gl
+
+app = QtGui.QApplication([])
+w = gl.GLViewWidget()
+w.opts['distance'] = 20
+w.show()
+w.setWindowTitle('pyqtgraph example: GLViewWidget')
+
+ax = gl.GLAxisItem()
+ax.setSize(5,5,5)
+w.addItem(ax)
+
+b = gl.GLBoxItem()
+w.addItem(b)
+
+ax2 = gl.GLAxisItem()
+ax2.setParentItem(b)
+
+b.translate(1,1,1)
+
+## Start Qt event loop unless running in interactive mode.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/GLVolumeItem.py b/site-packages/pyqtgraph-0.10.0/examples/GLVolumeItem.py
new file mode 100644
index 00000000..ca20b127
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/GLVolumeItem.py
@@ -0,0 +1,69 @@
+# -*- coding: utf-8 -*-
+"""
+Demonstrates GLVolumeItem for displaying volumetric data.
+
+"""
+
+## Add path to library (just for examples; you do not need this)
+import initExample
+
+from pyqtgraph.Qt import QtCore, QtGui
+import pyqtgraph.opengl as gl
+
+app = QtGui.QApplication([])
+w = gl.GLViewWidget()
+w.opts['distance'] = 200
+w.show()
+w.setWindowTitle('pyqtgraph example: GLVolumeItem')
+
+#b = gl.GLBoxItem()
+#w.addItem(b)
+g = gl.GLGridItem()
+g.scale(10, 10, 1)
+w.addItem(g)
+
+import numpy as np
+## Hydrogen electron probability density
+def psi(i, j, k, offset=(50,50,100)):
+    x = i-offset[0]
+    y = j-offset[1]
+    z = k-offset[2]
+    th = np.arctan2(z, (x**2+y**2)**0.5)
+    phi = np.arctan2(y, x)
+    r = (x**2 + y**2 + z **2)**0.5
+    a0 = 2
+    #ps = (1./81.) * (2./np.pi)**0.5 * (1./a0)**(3/2) * (6 - r/a0) * (r/a0) * np.exp(-r/(3*a0)) * np.cos(th)
+    ps = (1./81.) * 1./(6.*np.pi)**0.5 * (1./a0)**(3/2) * (r/a0)**2 * np.exp(-r/(3*a0)) * (3 * np.cos(th)**2 - 1)
+    
+    return ps
+    
+    #return ((1./81.) * (1./np.pi)**0.5 * (1./a0)**(3/2) * (r/a0)**2 * (r/a0) * np.exp(-r/(3*a0)) * np.sin(th) * np.cos(th) * np.exp(2 * 1j * phi))**2 
+
+
+data = np.fromfunction(psi, (100,100,200))
+positive = np.log(np.clip(data, 0, data.max())**2)
+negative = np.log(np.clip(-data, 0, -data.min())**2)
+
+d2 = np.empty(data.shape + (4,), dtype=np.ubyte)
+d2[..., 0] = positive * (255./positive.max())
+d2[..., 1] = negative * (255./negative.max())
+d2[..., 2] = d2[...,1]
+d2[..., 3] = d2[..., 0]*0.3 + d2[..., 1]*0.3
+d2[..., 3] = (d2[..., 3].astype(float) / 255.) **2 * 255
+
+d2[:, 0, 0] = [255,0,0,100]
+d2[0, :, 0] = [0,255,0,100]
+d2[0, 0, :] = [0,0,255,100]
+
+v = gl.GLVolumeItem(d2)
+v.translate(-50,-50,-100)
+w.addItem(v)
+
+ax = gl.GLAxisItem()
+w.addItem(ax)
+
+## Start Qt event loop unless running in interactive mode.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/GLshaders.py b/site-packages/pyqtgraph-0.10.0/examples/GLshaders.py
new file mode 100644
index 00000000..ce00fc7a
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/GLshaders.py
@@ -0,0 +1,110 @@
+# -*- coding: utf-8 -*-
+"""
+Demonstration of some of the shader programs included with pyqtgraph that can be 
+used to affect the appearance of a surface.
+"""
+
+
+
+## Add path to library (just for examples; you do not need this)
+import initExample
+
+from pyqtgraph.Qt import QtCore, QtGui
+import pyqtgraph as pg
+import pyqtgraph.opengl as gl
+
+app = QtGui.QApplication([])
+w = gl.GLViewWidget()
+w.show()
+w.setWindowTitle('pyqtgraph example: GL Shaders')
+w.setCameraPosition(distance=15, azimuth=-90)
+
+g = gl.GLGridItem()
+g.scale(2,2,1)
+w.addItem(g)
+
+import numpy as np
+
+
+md = gl.MeshData.sphere(rows=10, cols=20)
+x = np.linspace(-8, 8, 6)
+
+m1 = gl.GLMeshItem(meshdata=md, smooth=True, color=(1, 0, 0, 0.2), shader='balloon', glOptions='additive')
+m1.translate(x[0], 0, 0)
+m1.scale(1, 1, 2)
+w.addItem(m1)
+
+m2 = gl.GLMeshItem(meshdata=md, smooth=True, shader='normalColor', glOptions='opaque')
+m2.translate(x[1], 0, 0)
+m2.scale(1, 1, 2)
+w.addItem(m2)
+
+m3 = gl.GLMeshItem(meshdata=md, smooth=True, shader='viewNormalColor', glOptions='opaque')
+m3.translate(x[2], 0, 0)
+m3.scale(1, 1, 2)
+w.addItem(m3)
+
+m4 = gl.GLMeshItem(meshdata=md, smooth=True, shader='shaded', glOptions='opaque')
+m4.translate(x[3], 0, 0)
+m4.scale(1, 1, 2)
+w.addItem(m4)
+
+m5 = gl.GLMeshItem(meshdata=md, smooth=True, color=(1, 0, 0, 1), shader='edgeHilight', glOptions='opaque')
+m5.translate(x[4], 0, 0)
+m5.scale(1, 1, 2)
+w.addItem(m5)
+
+m6 = gl.GLMeshItem(meshdata=md, smooth=True, color=(1, 0, 0, 1), shader='heightColor', glOptions='opaque')
+m6.translate(x[5], 0, 0)
+m6.scale(1, 1, 2)
+w.addItem(m6)
+
+
+
+
+#def psi(i, j, k, offset=(25, 25, 50)):
+    #x = i-offset[0]
+    #y = j-offset[1]
+    #z = k-offset[2]
+    #th = np.arctan2(z, (x**2+y**2)**0.5)
+    #phi = np.arctan2(y, x)
+    #r = (x**2 + y**2 + z **2)**0.5
+    #a0 = 1
+    ##ps = (1./81.) * (2./np.pi)**0.5 * (1./a0)**(3/2) * (6 - r/a0) * (r/a0) * np.exp(-r/(3*a0)) * np.cos(th)
+    #ps = (1./81.) * 1./(6.*np.pi)**0.5 * (1./a0)**(3/2) * (r/a0)**2 * np.exp(-r/(3*a0)) * (3 * np.cos(th)**2 - 1)
+    
+    #return ps
+    
+    ##return ((1./81.) * (1./np.pi)**0.5 * (1./a0)**(3/2) * (r/a0)**2 * (r/a0) * np.exp(-r/(3*a0)) * np.sin(th) * np.cos(th) * np.exp(2 * 1j * phi))**2 
+
+
+#print("Generating scalar field..")
+#data = np.abs(np.fromfunction(psi, (50,50,100)))
+
+
+##data = np.fromfunction(lambda i,j,k: np.sin(0.2*((i-25)**2+(j-15)**2+k**2)**0.5), (50,50,50)); 
+#print("Generating isosurface..")
+#verts = pg.isosurface(data, data.max()/4.)
+
+#md = gl.MeshData.MeshData(vertexes=verts)
+
+#colors = np.ones((md.vertexes(indexed='faces').shape[0], 4), dtype=float)
+#colors[:,3] = 0.3
+#colors[:,2] = np.linspace(0, 1, colors.shape[0])
+#m1 = gl.GLMeshItem(meshdata=md, color=colors, smooth=False)
+
+#w.addItem(m1)
+#m1.translate(-25, -25, -20)
+
+#m2 = gl.GLMeshItem(vertexes=verts, color=colors, smooth=True)
+
+#w.addItem(m2)
+#m2.translate(-25, -25, -50)
+    
+
+
+## Start Qt event loop unless running in interactive mode.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/GradientEditor.py b/site-packages/pyqtgraph-0.10.0/examples/GradientEditor.py
new file mode 100644
index 00000000..1bba4af1
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/GradientEditor.py
@@ -0,0 +1,28 @@
+# -*- coding: utf-8 -*-
+## Add path to library (just for examples; you do not need this)                                                                           
+import initExample
+
+import numpy as np
+from pyqtgraph.Qt import QtGui, QtCore
+import pyqtgraph as pg
+
+
+app = QtGui.QApplication([])
+mw = pg.GraphicsView()
+mw.resize(800,800)
+mw.show()
+
+#ts = pg.TickSliderItem()
+#mw.setCentralItem(ts)
+#ts.addTick(0.5, 'r')
+#ts.addTick(0.9, 'b')
+
+ge = pg.GradientEditorItem()
+mw.setCentralItem(ge)
+
+
+## Start Qt event loop unless running in interactive mode.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/GradientWidget.py b/site-packages/pyqtgraph-0.10.0/examples/GradientWidget.py
new file mode 100644
index 00000000..fa5253ba
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/GradientWidget.py
@@ -0,0 +1,55 @@
+# -*- coding: utf-8 -*-
+"""
+Demonstrates the appearance / interactivity of GradientWidget
+(without actually doing anything useful with it)
+
+"""
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+import numpy as np
+
+
+
+app = QtGui.QApplication([])
+w = QtGui.QMainWindow()
+w.show()
+w.setWindowTitle('pyqtgraph example: GradientWidget')
+w.setGeometry(10, 50, 400, 400)
+cw = QtGui.QWidget()
+w.setCentralWidget(cw)
+
+l = QtGui.QGridLayout()
+l.setSpacing(0)
+cw.setLayout(l)
+
+w1 = pg.GradientWidget(orientation='top')
+w2 = pg.GradientWidget(orientation='right', allowAdd=False)
+#w2.setTickColor(1, QtGui.QColor(255,255,255))
+w3 = pg.GradientWidget(orientation='bottom')
+w4 = pg.GradientWidget(orientation='left')
+w4.loadPreset('spectrum')
+label = QtGui.QLabel("""
+- Click a triangle to change its color
+- Drag triangles to move
+- Click in an empty area to add a new color
+    (adding is disabled for the right-side widget)
+- Right click a triangle to remove
+""")
+
+l.addWidget(w1, 0, 1)
+l.addWidget(w2, 1, 2)
+l.addWidget(w3, 2, 1)
+l.addWidget(w4, 1, 0)
+l.addWidget(label, 1, 1)
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
+
+
+
diff --git a/site-packages/pyqtgraph-0.10.0/examples/GraphItem.py b/site-packages/pyqtgraph-0.10.0/examples/GraphItem.py
new file mode 100644
index 00000000..c6362295
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/GraphItem.py
@@ -0,0 +1,67 @@
+# -*- coding: utf-8 -*-
+"""
+Simple example of GraphItem use.
+"""
+
+
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+import numpy as np
+
+# Enable antialiasing for prettier plots
+pg.setConfigOptions(antialias=True)
+
+w = pg.GraphicsWindow()
+w.setWindowTitle('pyqtgraph example: GraphItem')
+v = w.addViewBox()
+v.setAspectLocked()
+
+g = pg.GraphItem()
+v.addItem(g)
+
+## Define positions of nodes
+pos = np.array([
+    [0,0],
+    [10,0],
+    [0,10],
+    [10,10],
+    [5,5],
+    [15,5]
+    ])
+    
+## Define the set of connections in the graph
+adj = np.array([
+    [0,1],
+    [1,3],
+    [3,2],
+    [2,0],
+    [1,5],
+    [3,5],
+    ])
+    
+## Define the symbol to use for each node (this is optional)
+symbols = ['o','o','o','o','t','+']
+
+## Define the line style for each connection (this is optional)
+lines = np.array([
+    (255,0,0,255,1),
+    (255,0,255,255,2),
+    (255,0,255,255,3),
+    (255,255,0,255,2),
+    (255,0,0,255,1),
+    (255,255,255,255,4),
+    ], dtype=[('red',np.ubyte),('green',np.ubyte),('blue',np.ubyte),('alpha',np.ubyte),('width',float)])
+
+## Update the graph
+g.setData(pos=pos, adj=adj, pen=lines, size=1, symbol=symbols, pxMode=False)
+
+
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/GraphicsLayout.py b/site-packages/pyqtgraph-0.10.0/examples/GraphicsLayout.py
new file mode 100644
index 00000000..70da7e5c
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/GraphicsLayout.py
@@ -0,0 +1,87 @@
+"""
+Demonstrate the use of layouts to control placement of multiple plots / views /
+labels
+
+
+"""
+
+## Add path to library (just for examples; you do not need this)
+import initExample
+
+from pyqtgraph.Qt import QtGui, QtCore
+import pyqtgraph as pg
+import numpy as np
+
+app = QtGui.QApplication([])
+view = pg.GraphicsView()
+l = pg.GraphicsLayout(border=(100,100,100))
+view.setCentralItem(l)
+view.show()
+view.setWindowTitle('pyqtgraph example: GraphicsLayout')
+view.resize(800,600)
+
+## Title at top
+text = """
+This example demonstrates the use of GraphicsLayout to arrange items in a grid.<br>
+The items added to the layout must be subclasses of QGraphicsWidget (this includes <br>
+PlotItem, ViewBox, LabelItem, and GrphicsLayout itself).
+"""
+l.addLabel(text, col=1, colspan=4)
+l.nextRow()
+
+## Put vertical label on left side
+l.addLabel('Long Vertical Label', angle=-90, rowspan=3)
+
+## Add 3 plots into the first row (automatic position)
+p1 = l.addPlot(title="Plot 1")
+p2 = l.addPlot(title="Plot 2")
+vb = l.addViewBox(lockAspect=True)
+img = pg.ImageItem(np.random.normal(size=(100,100)))
+vb.addItem(img)
+vb.autoRange()
+
+
+## Add a sub-layout into the second row (automatic position)
+## The added item should avoid the first column, which is already filled
+l.nextRow()
+l2 = l.addLayout(colspan=3, border=(50,0,0))
+l2.setContentsMargins(10, 10, 10, 10)
+l2.addLabel("Sub-layout: this layout demonstrates the use of shared axes and axis labels", colspan=3)
+l2.nextRow()
+l2.addLabel('Vertical Axis Label', angle=-90, rowspan=2)
+p21 = l2.addPlot()
+p22 = l2.addPlot()
+l2.nextRow()
+p23 = l2.addPlot()
+p24 = l2.addPlot()
+l2.nextRow()
+l2.addLabel("HorizontalAxisLabel", col=1, colspan=2)
+
+## hide axes on some plots
+p21.hideAxis('bottom')
+p22.hideAxis('bottom')
+p22.hideAxis('left')
+p24.hideAxis('left')
+p21.hideButtons()
+p22.hideButtons()
+p23.hideButtons()
+p24.hideButtons()
+
+
+## Add 2 more plots into the third row (manual position)
+p4 = l.addPlot(row=3, col=1)
+p5 = l.addPlot(row=3, col=2, colspan=2)
+
+## show some content in the plots
+p1.plot([1,3,2,4,3,5])
+p2.plot([1,3,2,4,3,5])
+p4.plot([1,3,2,4,3,5])
+p5.plot([1,3,2,4,3,5])
+
+
+
+## Start Qt event loop unless running in interactive mode.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/GraphicsScene.py b/site-packages/pyqtgraph-0.10.0/examples/GraphicsScene.py
new file mode 100644
index 00000000..c8931444
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/GraphicsScene.py
@@ -0,0 +1,66 @@
+# -*- coding: utf-8 -*-
+## Add path to library (just for examples; you do not need this)
+import initExample
+
+from pyqtgraph.Qt import QtCore, QtGui
+import pyqtgraph as pg
+from pyqtgraph.GraphicsScene import GraphicsScene
+
+app = QtGui.QApplication([])
+win = pg.GraphicsView()
+win.show()
+
+
+class Obj(QtGui.QGraphicsObject):
+    def __init__(self):
+        QtGui.QGraphicsObject.__init__(self)
+        GraphicsScene.registerObject(self)
+        
+    def paint(self, p, *args):
+        p.setPen(pg.mkPen(200,200,200))
+        p.drawRect(self.boundingRect())
+        
+    def boundingRect(self):
+        return QtCore.QRectF(0, 0, 20, 20)
+        
+    def mouseClickEvent(self, ev):
+        if ev.double():
+            print("double click")
+        else:
+            print("click")
+        ev.accept()
+        
+    #def mouseDragEvent(self, ev):
+        #print "drag"
+        #ev.accept()
+        #self.setPos(self.pos() + ev.pos()-ev.lastPos())
+        
+        
+
+vb = pg.ViewBox()
+win.setCentralItem(vb)
+
+obj = Obj()
+vb.addItem(obj)
+
+obj2 = Obj()
+win.addItem(obj2)
+
+def clicked():
+    print("button click")
+btn = QtGui.QPushButton("BTN")
+btn.clicked.connect(clicked)
+prox = QtGui.QGraphicsProxyWidget()
+prox.setWidget(btn)
+prox.setPos(100,0)
+vb.addItem(prox)
+
+g = pg.GridItem()
+vb.addItem(g)
+
+
+## Start Qt event loop unless running in interactive mode.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/HistogramLUT.py b/site-packages/pyqtgraph-0.10.0/examples/HistogramLUT.py
new file mode 100644
index 00000000..4d89dd3f
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/HistogramLUT.py
@@ -0,0 +1,54 @@
+# -*- coding: utf-8 -*-
+"""
+Use a HistogramLUTWidget to control the contrast / coloration of an image.
+"""
+
+## Add path to library (just for examples; you do not need this)                                                                           
+import initExample
+
+import numpy as np
+from pyqtgraph.Qt import QtGui, QtCore
+import pyqtgraph as pg
+
+
+app = QtGui.QApplication([])
+win = QtGui.QMainWindow()
+win.resize(800,600)
+win.show()
+win.setWindowTitle('pyqtgraph example: Histogram LUT')
+
+cw = QtGui.QWidget()
+win.setCentralWidget(cw)
+
+l = QtGui.QGridLayout()
+cw.setLayout(l)
+l.setSpacing(0)
+
+v = pg.GraphicsView()
+vb = pg.ViewBox()
+vb.setAspectLocked()
+v.setCentralItem(vb)
+l.addWidget(v, 0, 0)
+
+w = pg.HistogramLUTWidget()
+l.addWidget(w, 0, 1)
+
+data = pg.gaussianFilter(np.random.normal(size=(256, 256)), (20, 20))
+for i in range(32):
+    for j in range(32):
+        data[i*8, j*8] += .1
+img = pg.ImageItem(data)
+#data2 = np.zeros((2,) + data.shape + (2,))
+#data2[0,:,:,0] = data  ## make non-contiguous array for testing purposes
+#img = pg.ImageItem(data2[0,:,:,0])
+vb.addItem(img)
+vb.autoRange()
+
+w.setImageItem(img)
+
+
+## Start Qt event loop unless running in interactive mode.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/ImageItem.py b/site-packages/pyqtgraph-0.10.0/examples/ImageItem.py
new file mode 100644
index 00000000..a2dc7af3
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/ImageItem.py
@@ -0,0 +1,61 @@
+# -*- coding: utf-8 -*-
+"""
+Demonstrates very basic use of ImageItem to display image data inside a ViewBox.
+"""
+
+## Add path to library (just for examples; you do not need this)
+import initExample
+
+from pyqtgraph.Qt import QtCore, QtGui
+import numpy as np
+import pyqtgraph as pg
+import pyqtgraph.ptime as ptime
+
+app = QtGui.QApplication([])
+
+## Create window with GraphicsView widget
+win = pg.GraphicsLayoutWidget()
+win.show()  ## show widget alone in its own window
+win.setWindowTitle('pyqtgraph example: ImageItem')
+view = win.addViewBox()
+
+## lock the aspect ratio so pixels are always square
+view.setAspectLocked(True)
+
+## Create image item
+img = pg.ImageItem(border='w')
+view.addItem(img)
+
+## Set initial view bounds
+view.setRange(QtCore.QRectF(0, 0, 600, 600))
+
+## Create random image
+data = np.random.normal(size=(15, 600, 600), loc=1024, scale=64).astype(np.uint16)
+i = 0
+
+updateTime = ptime.time()
+fps = 0
+
+def updateData():
+    global img, data, i, updateTime, fps
+
+    ## Display the data
+    img.setImage(data[i])
+    i = (i+1) % data.shape[0]
+
+    QtCore.QTimer.singleShot(1, updateData)
+    now = ptime.time()
+    fps2 = 1.0 / (now-updateTime)
+    updateTime = now
+    fps = fps * 0.9 + fps2 * 0.1
+    
+    #print "%0.1f fps" % fps
+    
+
+updateData()
+
+## Start Qt event loop unless running in interactive mode.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/ImageView.py b/site-packages/pyqtgraph-0.10.0/examples/ImageView.py
new file mode 100644
index 00000000..3412f348
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/ImageView.py
@@ -0,0 +1,70 @@
+# -*- coding: utf-8 -*-
+"""
+This example demonstrates the use of ImageView, which is a high-level widget for 
+displaying and analyzing 2D and 3D data. ImageView provides:
+
+  1. A zoomable region (ViewBox) for displaying the image
+  2. A combination histogram and gradient editor (HistogramLUTItem) for
+     controlling the visual appearance of the image
+  3. A timeline for selecting the currently displayed frame (for 3D data only).
+  4. Tools for very basic analysis of image data (see ROI and Norm buttons)
+
+"""
+## Add path to library (just for examples; you do not need this)
+import initExample
+
+import numpy as np
+from pyqtgraph.Qt import QtCore, QtGui
+import pyqtgraph as pg
+
+# Interpret image data as row-major instead of col-major
+pg.setConfigOptions(imageAxisOrder='row-major')
+
+app = QtGui.QApplication([])
+
+## Create window with ImageView widget
+win = QtGui.QMainWindow()
+win.resize(800,800)
+imv = pg.ImageView()
+win.setCentralWidget(imv)
+win.show()
+win.setWindowTitle('pyqtgraph example: ImageView')
+
+## Create random 3D data set with noisy signals
+img = pg.gaussianFilter(np.random.normal(size=(200, 200)), (5, 5)) * 20 + 100
+img = img[np.newaxis,:,:]
+decay = np.exp(-np.linspace(0,0.3,100))[:,np.newaxis,np.newaxis]
+data = np.random.normal(size=(100, 200, 200))
+data += img * decay
+data += 2
+
+## Add time-varying signal
+sig = np.zeros(data.shape[0])
+sig[30:] += np.exp(-np.linspace(1,10, 70))
+sig[40:] += np.exp(-np.linspace(1,10, 60))
+sig[70:] += np.exp(-np.linspace(1,10, 30))
+
+sig = sig[:,np.newaxis,np.newaxis] * 3
+data[:,50:60,30:40] += sig
+
+
+## Display the data and assign each frame a time value from 1.0 to 3.0
+imv.setImage(data, xvals=np.linspace(1., 3., data.shape[0]))
+
+## Set a custom color map
+colors = [
+    (0, 0, 0),
+    (45, 5, 61),
+    (84, 42, 55),
+    (150, 87, 60),
+    (208, 171, 141),
+    (255, 255, 255)
+]
+cmap = pg.ColorMap(pos=np.linspace(0.0, 1.0, 6), color=colors)
+imv.setColorMap(cmap)
+
+## Start Qt event loop unless running in interactive mode.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/InfiniteLine.py b/site-packages/pyqtgraph-0.10.0/examples/InfiniteLine.py
new file mode 100644
index 00000000..50efbd04
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/InfiniteLine.py
@@ -0,0 +1,45 @@
+# -*- coding: utf-8 -*-
+"""
+This example demonstrates some of the plotting items available in pyqtgraph.
+"""
+
+import initExample ## Add path to library (just for examples; you do not need this)
+from pyqtgraph.Qt import QtGui, QtCore
+import numpy as np
+import pyqtgraph as pg
+
+
+app = QtGui.QApplication([])
+win = pg.GraphicsWindow(title="Plotting items examples")
+win.resize(1000,600)
+
+# Enable antialiasing for prettier plots
+pg.setConfigOptions(antialias=True)
+
+# Create a plot with some random data
+p1 = win.addPlot(title="Plot Items example", y=np.random.normal(size=100, scale=10), pen=0.5)
+p1.setYRange(-40, 40)
+
+# Add three infinite lines with labels
+inf1 = pg.InfiniteLine(movable=True, angle=90, label='x={value:0.2f}', 
+                       labelOpts={'position':0.1, 'color': (200,200,100), 'fill': (200,200,200,50), 'movable': True})
+inf2 = pg.InfiniteLine(movable=True, angle=0, pen=(0, 0, 200), bounds = [-20, 20], hoverPen=(0,200,0), label='y={value:0.2f}mm', 
+                       labelOpts={'color': (200,0,0), 'movable': True, 'fill': (0, 0, 200, 100)})
+inf3 = pg.InfiniteLine(movable=True, angle=45, pen='g', label='diagonal',
+                       labelOpts={'rotateAxis': [1, 0], 'fill': (0, 200, 0, 100), 'movable': True})
+inf1.setPos([2,2])
+p1.addItem(inf1)
+p1.addItem(inf2)
+p1.addItem(inf3)
+
+# Add a linear region with a label
+lr = pg.LinearRegionItem(values=[70, 80])
+p1.addItem(lr)
+label = pg.InfLineLabel(lr.lines[1], "region 1", position=0.95, rotateAxis=(1,0), anchor=(1, 1))
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/JoystickButton.py b/site-packages/pyqtgraph-0.10.0/examples/JoystickButton.py
new file mode 100644
index 00000000..03c79706
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/JoystickButton.py
@@ -0,0 +1,56 @@
+# -*- coding: utf-8 -*-
+"""
+JoystickButton is a button with x/y values. When the button is depressed and the
+mouse dragged, the x/y values change to follow the mouse.
+When the mouse button is released, the x/y values change to 0,0 (rather like 
+letting go of the joystick).
+"""
+
+import initExample ## Add path to library (just for examples; you do not need this)
+
+from pyqtgraph.Qt import QtGui, QtCore
+import pyqtgraph as pg
+
+
+app = QtGui.QApplication([])
+mw = QtGui.QMainWindow()
+mw.resize(300,50)
+mw.setWindowTitle('pyqtgraph example: JoystickButton')
+cw = QtGui.QWidget()
+mw.setCentralWidget(cw)
+layout = QtGui.QGridLayout()
+cw.setLayout(layout)
+mw.show()
+
+l1 = pg.ValueLabel(siPrefix=True, suffix='m')
+l2 = pg.ValueLabel(siPrefix=True, suffix='m')
+jb = pg.JoystickButton()
+jb.setFixedWidth(30)
+jb.setFixedHeight(30)
+
+
+layout.addWidget(l1, 0, 0)
+layout.addWidget(l2, 0, 1)
+layout.addWidget(jb, 0, 2)
+
+x = 0
+y = 0
+def update():
+    global x, y, l1, l2, jb
+    dx, dy = jb.getState()
+    x += dx * 1e-3
+    y += dy * 1e-3
+    l1.setValue(x)
+    l2.setValue(y)
+timer = QtCore.QTimer()
+timer.timeout.connect(update)
+timer.start(30)
+    
+    
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/Legend.py b/site-packages/pyqtgraph-0.10.0/examples/Legend.py
new file mode 100644
index 00000000..f7841151
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/Legend.py
@@ -0,0 +1,27 @@
+# -*- coding: utf-8 -*-
+"""
+Demonstrates basic use of LegendItem
+
+"""
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+
+plt = pg.plot()
+plt.setWindowTitle('pyqtgraph example: Legend')
+plt.addLegend()
+#l = pg.LegendItem((100,60), offset=(70,30))  # args are (size, offset)
+#l.setParentItem(plt.graphicsItem())   # Note we do NOT call plt.addItem in this case
+
+c1 = plt.plot([1,3,2,4], pen='r', symbol='o', symbolPen='r', symbolBrush=0.5, name='red plot')
+c2 = plt.plot([2,1,4,3], pen='g', fillLevel=0, fillBrush=(255,255,255,30), name='green plot')
+#l.addItem(c1, 'red plot')
+#l.addItem(c2, 'green plot')
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/LogPlotTest.py b/site-packages/pyqtgraph-0.10.0/examples/LogPlotTest.py
new file mode 100644
index 00000000..d408a2b4
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/LogPlotTest.py
@@ -0,0 +1,37 @@
+# -*- coding: utf-8 -*-
+"""
+Simple logarithmic plotting test
+"""
+
+import initExample ## Add path to library (just for examples; you do not need this)
+
+
+from pyqtgraph.Qt import QtGui, QtCore
+import numpy as np
+import pyqtgraph as pg
+
+app = QtGui.QApplication([])
+
+win = pg.GraphicsWindow(title="Basic plotting examples")
+win.resize(1000,600)
+win.setWindowTitle('pyqtgraph example: LogPlotTest')
+
+
+p5 = win.addPlot(title="Scatter plot, axis labels, log scale")
+x = np.random.normal(size=1000) * 1e-5
+y = x*1000 + 0.005 * np.random.normal(size=1000)
+y -= y.min()-1.0
+mask = x > 1e-15
+x = x[mask]
+y = y[mask]
+p5.plot(x, y, pen=None, symbol='t', symbolPen=None, symbolSize=10, symbolBrush=(100, 100, 255, 50))
+p5.setLabel('left', "Y Axis", units='A')
+p5.setLabel('bottom', "Y Axis", units='s')
+p5.setLogMode(x=True, y=False)
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/MouseSelection.py b/site-packages/pyqtgraph-0.10.0/examples/MouseSelection.py
new file mode 100644
index 00000000..3a573751
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/MouseSelection.py
@@ -0,0 +1,37 @@
+# -*- coding: utf-8 -*-
+"""
+Demonstrates selecting plot curves by mouse click
+"""
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+import numpy as np
+
+win = pg.plot()
+win.setWindowTitle('pyqtgraph example: Plot data selection')
+
+curves = [
+    pg.PlotCurveItem(y=np.sin(np.linspace(0, 20, 1000)), pen='r', clickable=True),
+    pg.PlotCurveItem(y=np.sin(np.linspace(1, 21, 1000)), pen='g', clickable=True),
+    pg.PlotCurveItem(y=np.sin(np.linspace(2, 22, 1000)), pen='b', clickable=True),
+    ]
+              
+def plotClicked(curve):
+    global curves
+    for i,c in enumerate(curves):
+        if c is curve:
+            c.setPen('rgb'[i], width=3)
+        else:
+            c.setPen('rgb'[i], width=1)
+            
+    
+for c in curves:
+    win.addItem(c)
+    c.sigClicked.connect(plotClicked)
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/MultiPlotSpeedTest.py b/site-packages/pyqtgraph-0.10.0/examples/MultiPlotSpeedTest.py
new file mode 100644
index 00000000..0d0d701b
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/MultiPlotSpeedTest.py
@@ -0,0 +1,77 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+"""
+Test the speed of rapidly updating multiple plot curves
+"""
+
+## Add path to library (just for examples; you do not need this)
+import initExample
+
+
+from pyqtgraph.Qt import QtGui, QtCore
+import numpy as np
+import pyqtgraph as pg
+from pyqtgraph.ptime import time
+#QtGui.QApplication.setGraphicsSystem('raster')
+app = QtGui.QApplication([])
+#mw = QtGui.QMainWindow()
+#mw.resize(800,800)
+
+p = pg.plot()
+p.setWindowTitle('pyqtgraph example: MultiPlotSpeedTest')
+#p.setRange(QtCore.QRectF(0, -10, 5000, 20)) 
+p.setLabel('bottom', 'Index', units='B')
+
+nPlots = 100
+nSamples = 500
+#curves = [p.plot(pen=(i,nPlots*1.3)) for i in range(nPlots)]
+curves = []
+for i in range(nPlots):
+    c = pg.PlotCurveItem(pen=(i,nPlots*1.3))
+    p.addItem(c)
+    c.setPos(0,i*6)
+    curves.append(c)
+
+p.setYRange(0, nPlots*6)
+p.setXRange(0, nSamples)
+p.resize(600,900)
+
+rgn = pg.LinearRegionItem([nSamples/5.,nSamples/3.])
+p.addItem(rgn)
+
+
+data = np.random.normal(size=(nPlots*23,nSamples))
+ptr = 0
+lastTime = time()
+fps = None
+count = 0
+def update():
+    global curve, data, ptr, p, lastTime, fps, nPlots, count
+    count += 1
+    #print "---------", count
+    for i in range(nPlots):
+        curves[i].setData(data[(ptr+i)%data.shape[0]])
+        
+    #print "   setData done."
+    ptr += nPlots
+    now = time()
+    dt = now - lastTime
+    lastTime = now
+    if fps is None:
+        fps = 1.0/dt
+    else:
+        s = np.clip(dt*3., 0, 1)
+        fps = fps * (1-s) + (1.0/dt) * s
+    p.setTitle('%0.2f fps' % fps)
+    #app.processEvents()  ## force complete redraw for every plot
+timer = QtCore.QTimer()
+timer.timeout.connect(update)
+timer.start(0)
+    
+
+
+## Start Qt event loop unless running in interactive mode.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/MultiPlotWidget.py b/site-packages/pyqtgraph-0.10.0/examples/MultiPlotWidget.py
new file mode 100644
index 00000000..5ab4b21d
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/MultiPlotWidget.py
@@ -0,0 +1,41 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+## Add path to library (just for examples; you do not need this)
+import initExample
+
+
+from scipy import random
+from numpy import linspace
+from pyqtgraph.Qt import QtGui, QtCore
+import pyqtgraph as pg
+from pyqtgraph import MultiPlotWidget
+try:
+    from pyqtgraph.metaarray import *
+except:
+    print("MultiPlot is only used with MetaArray for now (and you do not have the metaarray package)")
+    exit()
+
+app = QtGui.QApplication([])
+mw = QtGui.QMainWindow()
+mw.resize(800,800)
+pw = MultiPlotWidget()
+mw.setCentralWidget(pw)
+mw.show()
+
+data = random.normal(size=(3, 1000)) * np.array([[0.1], [1e-5], [1]])
+ma = MetaArray(data, info=[
+    {'name': 'Signal', 'cols': [
+        {'name': 'Col1', 'units': 'V'}, 
+        {'name': 'Col2', 'units': 'A'}, 
+        {'name': 'Col3'},
+        ]}, 
+    {'name': 'Time', 'values': linspace(0., 1., 1000), 'units': 's'}
+    ])
+pw.plot(ma)
+
+## Start Qt event loop unless running in interactive mode.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
+
diff --git a/site-packages/pyqtgraph-0.10.0/examples/MultiplePlotAxes.py b/site-packages/pyqtgraph-0.10.0/examples/MultiplePlotAxes.py
new file mode 100644
index 00000000..75e0c680
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/MultiplePlotAxes.py
@@ -0,0 +1,67 @@
+# -*- coding: utf-8 -*-
+"""
+Demonstrates a way to put multiple axes around a single plot. 
+
+(This will eventually become a built-in feature of PlotItem)
+
+"""
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+import numpy as np
+
+pg.mkQApp()
+
+pw = pg.PlotWidget()
+pw.show()
+pw.setWindowTitle('pyqtgraph example: MultiplePlotAxes')
+p1 = pw.plotItem
+p1.setLabels(left='axis 1')
+
+## create a new ViewBox, link the right axis to its coordinate system
+p2 = pg.ViewBox()
+p1.showAxis('right')
+p1.scene().addItem(p2)
+p1.getAxis('right').linkToView(p2)
+p2.setXLink(p1)
+p1.getAxis('right').setLabel('axis2', color='#0000ff')
+
+## create third ViewBox. 
+## this time we need to create a new axis as well.
+p3 = pg.ViewBox()
+ax3 = pg.AxisItem('right')
+p1.layout.addItem(ax3, 2, 3)
+p1.scene().addItem(p3)
+ax3.linkToView(p3)
+p3.setXLink(p1)
+ax3.setZValue(-10000)
+ax3.setLabel('axis 3', color='#ff0000')
+
+
+## Handle view resizing 
+def updateViews():
+    ## view has resized; update auxiliary views to match
+    global p1, p2, p3
+    p2.setGeometry(p1.vb.sceneBoundingRect())
+    p3.setGeometry(p1.vb.sceneBoundingRect())
+    
+    ## need to re-update linked axes since this was called
+    ## incorrectly while views had different shapes.
+    ## (probably this should be handled in ViewBox.resizeEvent)
+    p2.linkedViewChanged(p1.vb, p2.XAxis)
+    p3.linkedViewChanged(p1.vb, p3.XAxis)
+
+updateViews()
+p1.vb.sigResized.connect(updateViews)
+
+
+p1.plot([1,2,4,8,16,32])
+p2.addItem(pg.PlotCurveItem([10,20,40,80,40,20], pen='b'))
+p3.addItem(pg.PlotCurveItem([3200,1600,800,400,200,100], pen='r'))
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/PanningPlot.py b/site-packages/pyqtgraph-0.10.0/examples/PanningPlot.py
new file mode 100644
index 00000000..165240b2
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/PanningPlot.py
@@ -0,0 +1,37 @@
+# -*- coding: utf-8 -*-
+"""
+Shows use of PlotWidget to display panning data
+
+"""
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+import numpy as np
+
+win = pg.GraphicsWindow()
+win.setWindowTitle('pyqtgraph example: PanningPlot')
+
+plt = win.addPlot()
+#plt.setAutoVisibleOnly(y=True)
+curve = plt.plot()
+
+data = []
+count = 0
+def update():
+    global data, curve, count
+    data.append(np.random.normal(size=10) + np.sin(count * 0.1) * 5)
+    if len(data) > 100:
+        data.pop(0)
+    curve.setData(np.hstack(data))
+    count += 1
+
+timer = QtCore.QTimer()
+timer.timeout.connect(update)
+timer.start(50)
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/PlotAutoRange.py b/site-packages/pyqtgraph-0.10.0/examples/PlotAutoRange.py
new file mode 100644
index 00000000..46aa3a44
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/PlotAutoRange.py
@@ -0,0 +1,50 @@
+# -*- coding: utf-8 -*-
+
+"""
+This example demonstrates the different auto-ranging capabilities of ViewBoxes
+"""
+
+import initExample ## Add path to library (just for examples; you do not need this)
+
+
+from pyqtgraph.Qt import QtGui, QtCore
+import numpy as np
+import pyqtgraph as pg
+
+#QtGui.QApplication.setGraphicsSystem('raster')
+app = QtGui.QApplication([])
+#mw = QtGui.QMainWindow()
+#mw.resize(800,800)
+
+win = pg.GraphicsWindow(title="Plot auto-range examples")
+win.resize(800,600)
+win.setWindowTitle('pyqtgraph example: PlotAutoRange')
+
+d = np.random.normal(size=100)
+d[50:54] += 10
+p1 = win.addPlot(title="95th percentile range", y=d)
+p1.enableAutoRange('y', 0.95)
+
+
+p2 = win.addPlot(title="Auto Pan Only")
+p2.setAutoPan(y=True)
+curve = p2.plot()
+def update():
+    t = pg.time()
+    
+    data = np.ones(100) * np.sin(t)
+    data[50:60] += np.sin(t)
+    global curve
+    curve.setData(data)
+    
+timer = QtCore.QTimer()
+timer.timeout.connect(update)
+timer.start(50)
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
+
diff --git a/site-packages/pyqtgraph-0.10.0/examples/PlotSpeedTest.py b/site-packages/pyqtgraph-0.10.0/examples/PlotSpeedTest.py
new file mode 100644
index 00000000..03c9537f
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/PlotSpeedTest.py
@@ -0,0 +1,57 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+"""
+Update a simple plot as rapidly as possible to measure speed.
+"""
+
+## Add path to library (just for examples; you do not need this)
+import initExample
+
+
+from pyqtgraph.Qt import QtGui, QtCore
+import numpy as np
+import pyqtgraph as pg
+from pyqtgraph.ptime import time
+app = QtGui.QApplication([])
+
+p = pg.plot()
+p.setWindowTitle('pyqtgraph example: PlotSpeedTest')
+p.setRange(QtCore.QRectF(0, -10, 5000, 20)) 
+p.setLabel('bottom', 'Index', units='B')
+curve = p.plot()
+
+#curve.setFillBrush((0, 0, 100, 100))
+#curve.setFillLevel(0)
+
+#lr = pg.LinearRegionItem([100, 4900])
+#p.addItem(lr)
+
+data = np.random.normal(size=(50,5000))
+ptr = 0
+lastTime = time()
+fps = None
+def update():
+    global curve, data, ptr, p, lastTime, fps
+    curve.setData(data[ptr%10])
+    ptr += 1
+    now = time()
+    dt = now - lastTime
+    lastTime = now
+    if fps is None:
+        fps = 1.0/dt
+    else:
+        s = np.clip(dt*3., 0, 1)
+        fps = fps * (1-s) + (1.0/dt) * s
+    p.setTitle('%0.2f fps' % fps)
+    app.processEvents()  ## force complete redraw for every plot
+timer = QtCore.QTimer()
+timer.timeout.connect(update)
+timer.start(0)
+    
+
+
+## Start Qt event loop unless running in interactive mode.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/PlotWidget.py b/site-packages/pyqtgraph-0.10.0/examples/PlotWidget.py
new file mode 100644
index 00000000..e52a893d
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/PlotWidget.py
@@ -0,0 +1,94 @@
+# -*- coding: utf-8 -*-
+"""
+Demonstrates use of PlotWidget class. This is little more than a 
+GraphicsView with a PlotItem placed in its center.
+"""
+
+
+import initExample ## Add path to library (just for examples; you do not need this)
+
+
+from pyqtgraph.Qt import QtGui, QtCore
+import numpy as np
+import pyqtgraph as pg
+
+#QtGui.QApplication.setGraphicsSystem('raster')
+app = QtGui.QApplication([])
+mw = QtGui.QMainWindow()
+mw.setWindowTitle('pyqtgraph example: PlotWidget')
+mw.resize(800,800)
+cw = QtGui.QWidget()
+mw.setCentralWidget(cw)
+l = QtGui.QVBoxLayout()
+cw.setLayout(l)
+
+pw = pg.PlotWidget(name='Plot1')  ## giving the plots names allows us to link their axes together
+l.addWidget(pw)
+pw2 = pg.PlotWidget(name='Plot2')
+l.addWidget(pw2)
+pw3 = pg.PlotWidget()
+l.addWidget(pw3)
+
+mw.show()
+
+## Create an empty plot curve to be filled later, set its pen
+p1 = pw.plot()
+p1.setPen((200,200,100))
+
+## Add in some extra graphics
+rect = QtGui.QGraphicsRectItem(QtCore.QRectF(0, 0, 1, 5e-11))
+rect.setPen(pg.mkPen(100, 200, 100))
+pw.addItem(rect)
+
+pw.setLabel('left', 'Value', units='V')
+pw.setLabel('bottom', 'Time', units='s')
+pw.setXRange(0, 2)
+pw.setYRange(0, 1e-10)
+
+def rand(n):
+    data = np.random.random(n)
+    data[int(n*0.1):int(n*0.13)] += .5
+    data[int(n*0.18)] += 2
+    data[int(n*0.1):int(n*0.13)] *= 5
+    data[int(n*0.18)] *= 20
+    data *= 1e-12
+    return data, np.arange(n, n+len(data)) / float(n)
+    
+
+def updateData():
+    yd, xd = rand(10000)
+    p1.setData(y=yd, x=xd)
+
+## Start a timer to rapidly update the plot in pw
+t = QtCore.QTimer()
+t.timeout.connect(updateData)
+t.start(50)
+#updateData()
+
+## Multiple parameterized plots--we can autogenerate averages for these.
+for i in range(0, 5):
+    for j in range(0, 3):
+        yd, xd = rand(10000)
+        pw2.plot(y=yd*(j+1), x=xd, params={'iter': i, 'val': j})
+
+## Test large numbers
+curve = pw3.plot(np.random.normal(size=100)*1e0, clickable=True)
+curve.curve.setClickable(True)
+curve.setPen('w')  ## white pen
+curve.setShadowPen(pg.mkPen((70,70,30), width=6, cosmetic=True))
+
+def clicked():
+    print("curve clicked")
+curve.sigClicked.connect(clicked)
+
+lr = pg.LinearRegionItem([1, 30], bounds=[0,100], movable=True)
+pw3.addItem(lr)
+line = pg.InfiniteLine(angle=90, movable=True)
+pw3.addItem(line)
+line.setBounds([0,200])
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/Plotting.py b/site-packages/pyqtgraph-0.10.0/examples/Plotting.py
new file mode 100644
index 00000000..44996ae5
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/Plotting.py
@@ -0,0 +1,103 @@
+# -*- coding: utf-8 -*-
+"""
+This example demonstrates many of the 2D plotting capabilities
+in pyqtgraph. All of the plots may be panned/scaled by dragging with 
+the left/right mouse buttons. Right click on any plot to show a context menu.
+"""
+
+import initExample ## Add path to library (just for examples; you do not need this)
+
+
+from pyqtgraph.Qt import QtGui, QtCore
+import numpy as np
+import pyqtgraph as pg
+
+#QtGui.QApplication.setGraphicsSystem('raster')
+app = QtGui.QApplication([])
+#mw = QtGui.QMainWindow()
+#mw.resize(800,800)
+
+win = pg.GraphicsWindow(title="Basic plotting examples")
+win.resize(1000,600)
+win.setWindowTitle('pyqtgraph example: Plotting')
+
+# Enable antialiasing for prettier plots
+pg.setConfigOptions(antialias=True)
+
+p1 = win.addPlot(title="Basic array plotting", y=np.random.normal(size=100))
+
+p2 = win.addPlot(title="Multiple curves")
+p2.plot(np.random.normal(size=100), pen=(255,0,0), name="Red curve")
+p2.plot(np.random.normal(size=110)+5, pen=(0,255,0), name="Green curve")
+p2.plot(np.random.normal(size=120)+10, pen=(0,0,255), name="Blue curve")
+
+p3 = win.addPlot(title="Drawing with points")
+p3.plot(np.random.normal(size=100), pen=(200,200,200), symbolBrush=(255,0,0), symbolPen='w')
+
+
+win.nextRow()
+
+p4 = win.addPlot(title="Parametric, grid enabled")
+x = np.cos(np.linspace(0, 2*np.pi, 1000))
+y = np.sin(np.linspace(0, 4*np.pi, 1000))
+p4.plot(x, y)
+p4.showGrid(x=True, y=True)
+
+p5 = win.addPlot(title="Scatter plot, axis labels, log scale")
+x = np.random.normal(size=1000) * 1e-5
+y = x*1000 + 0.005 * np.random.normal(size=1000)
+y -= y.min()-1.0
+mask = x > 1e-15
+x = x[mask]
+y = y[mask]
+p5.plot(x, y, pen=None, symbol='t', symbolPen=None, symbolSize=10, symbolBrush=(100, 100, 255, 50))
+p5.setLabel('left', "Y Axis", units='A')
+p5.setLabel('bottom', "Y Axis", units='s')
+p5.setLogMode(x=True, y=False)
+
+p6 = win.addPlot(title="Updating plot")
+curve = p6.plot(pen='y')
+data = np.random.normal(size=(10,1000))
+ptr = 0
+def update():
+    global curve, data, ptr, p6
+    curve.setData(data[ptr%10])
+    if ptr == 0:
+        p6.enableAutoRange('xy', False)  ## stop auto-scaling after the first data set is plotted
+    ptr += 1
+timer = QtCore.QTimer()
+timer.timeout.connect(update)
+timer.start(50)
+
+
+win.nextRow()
+
+p7 = win.addPlot(title="Filled plot, axis disabled")
+y = np.sin(np.linspace(0, 10, 1000)) + np.random.normal(size=1000, scale=0.1)
+p7.plot(y, fillLevel=-0.3, brush=(50,50,200,100))
+p7.showAxis('bottom', False)
+
+
+x2 = np.linspace(-100, 100, 1000)
+data2 = np.sin(x2) / x2
+p8 = win.addPlot(title="Region Selection")
+p8.plot(data2, pen=(255,255,255,200))
+lr = pg.LinearRegionItem([400,700])
+lr.setZValue(-10)
+p8.addItem(lr)
+
+p9 = win.addPlot(title="Zoom on selected region")
+p9.plot(data2)
+def updatePlot():
+    p9.setXRange(*lr.getRegion(), padding=0)
+def updateRegion():
+    lr.setRegion(p9.getViewBox().viewRange()[0])
+lr.sigRegionChanged.connect(updatePlot)
+p9.sigXRangeChanged.connect(updateRegion)
+updatePlot()
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/ROIExamples.py b/site-packages/pyqtgraph-0.10.0/examples/ROIExamples.py
new file mode 100644
index 00000000..a48fa7b5
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/ROIExamples.py
@@ -0,0 +1,168 @@
+# -*- coding: utf-8 -*-
+"""
+Demonstrates a variety of uses for ROI. This class provides a user-adjustable
+region of interest marker. It is possible to customize the layout and 
+function of the scale/rotate handles in very flexible ways. 
+"""
+
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+import numpy as np
+
+pg.setConfigOptions(imageAxisOrder='row-major')
+
+## Create image to display
+arr = np.ones((100, 100), dtype=float)
+arr[45:55, 45:55] = 0
+arr[25, :] = 5
+arr[:, 25] = 5
+arr[75, :] = 5
+arr[:, 75] = 5
+arr[50, :] = 10
+arr[:, 50] = 10
+arr += np.sin(np.linspace(0, 20, 100)).reshape(1, 100)
+arr += np.random.normal(size=(100,100))
+
+# add an arrow for asymmetry
+arr[10, :50] = 10
+arr[9:12, 44:48] = 10
+arr[8:13, 44:46] = 10
+
+
+## create GUI
+app = QtGui.QApplication([])
+w = pg.GraphicsWindow(size=(1000,800), border=True)
+w.setWindowTitle('pyqtgraph example: ROI Examples')
+
+text = """Data Selection From Image.<br>\n
+Drag an ROI or its handles to update the selected image.<br>
+Hold CTRL while dragging to snap to pixel boundaries<br>
+and 15-degree rotation angles.
+"""
+w1 = w.addLayout(row=0, col=0)
+label1 = w1.addLabel(text, row=0, col=0)
+v1a = w1.addViewBox(row=1, col=0, lockAspect=True)
+v1b = w1.addViewBox(row=2, col=0, lockAspect=True)
+img1a = pg.ImageItem(arr)
+v1a.addItem(img1a)
+img1b = pg.ImageItem()
+v1b.addItem(img1b)
+v1a.disableAutoRange('xy')
+v1b.disableAutoRange('xy')
+v1a.autoRange()
+v1b.autoRange()
+
+rois = []
+rois.append(pg.RectROI([20, 20], [20, 20], pen=(0,9)))
+rois[-1].addRotateHandle([1,0], [0.5, 0.5])
+rois.append(pg.LineROI([0, 60], [20, 80], width=5, pen=(1,9)))
+rois.append(pg.MultiRectROI([[20, 90], [50, 60], [60, 90]], width=5, pen=(2,9)))
+rois.append(pg.EllipseROI([60, 10], [30, 20], pen=(3,9)))
+rois.append(pg.CircleROI([80, 50], [20, 20], pen=(4,9)))
+#rois.append(pg.LineSegmentROI([[110, 50], [20, 20]], pen=(5,9)))
+rois.append(pg.PolyLineROI([[80, 60], [90, 30], [60, 40]], pen=(6,9), closed=True))
+
+def update(roi):
+    img1b.setImage(roi.getArrayRegion(arr, img1a), levels=(0, arr.max()))
+    v1b.autoRange()
+    
+for roi in rois:
+    roi.sigRegionChanged.connect(update)
+    v1a.addItem(roi)
+
+update(rois[-1])
+    
+
+
+text = """User-Modifiable ROIs<br>
+Click on a line segment to add a new handle.
+Right click on a handle to remove.
+"""
+w2 = w.addLayout(row=0, col=1)
+label2 = w2.addLabel(text, row=0, col=0)
+v2a = w2.addViewBox(row=1, col=0, lockAspect=True)
+r2a = pg.PolyLineROI([[0,0], [10,10], [10,30], [30,10]], closed=True)
+v2a.addItem(r2a)
+r2b = pg.PolyLineROI([[0,-20], [10,-10], [10,-30]], closed=False)
+v2a.addItem(r2b)
+v2a.disableAutoRange('xy')
+#v2b.disableAutoRange('xy')
+v2a.autoRange()
+#v2b.autoRange()
+
+text = """Building custom ROI types<Br>
+ROIs can be built with a variety of different handle types<br>
+that scale and rotate the roi around an arbitrary center location
+"""
+w3 = w.addLayout(row=1, col=0)
+label3 = w3.addLabel(text, row=0, col=0)
+v3 = w3.addViewBox(row=1, col=0, lockAspect=True)
+
+r3a = pg.ROI([0,0], [10,10])
+v3.addItem(r3a)
+## handles scaling horizontally around center
+r3a.addScaleHandle([1, 0.5], [0.5, 0.5])
+r3a.addScaleHandle([0, 0.5], [0.5, 0.5])
+
+## handles scaling vertically from opposite edge
+r3a.addScaleHandle([0.5, 0], [0.5, 1])
+r3a.addScaleHandle([0.5, 1], [0.5, 0])
+
+## handles scaling both vertically and horizontally
+r3a.addScaleHandle([1, 1], [0, 0])
+r3a.addScaleHandle([0, 0], [1, 1])
+
+r3b = pg.ROI([20,0], [10,10])
+v3.addItem(r3b)
+## handles rotating around center
+r3b.addRotateHandle([1, 1], [0.5, 0.5])
+r3b.addRotateHandle([0, 0], [0.5, 0.5])
+
+## handles rotating around opposite corner
+r3b.addRotateHandle([1, 0], [0, 1])
+r3b.addRotateHandle([0, 1], [1, 0])
+
+## handles rotating/scaling around center
+r3b.addScaleRotateHandle([0, 0.5], [0.5, 0.5])
+r3b.addScaleRotateHandle([1, 0.5], [0.5, 0.5])
+
+v3.disableAutoRange('xy')
+v3.autoRange()
+
+
+text = """Transforming objects with ROI"""
+w4 = w.addLayout(row=1, col=1)
+label4 = w4.addLabel(text, row=0, col=0)
+v4 = w4.addViewBox(row=1, col=0, lockAspect=True)
+g = pg.GridItem()
+v4.addItem(g)
+r4 = pg.ROI([0,0], [100,100], removable=True)
+r4.addRotateHandle([1,0], [0.5, 0.5])
+r4.addRotateHandle([0,1], [0.5, 0.5])
+img4 = pg.ImageItem(arr)
+v4.addItem(r4)
+img4.setParentItem(r4)
+
+v4.disableAutoRange('xy')
+v4.autoRange()
+
+# Provide a callback to remove the ROI (and its children) when
+# "remove" is selected from the context menu.
+def remove():
+    v4.removeItem(r4)
+r4.sigRemoveRequested.connect(remove)
+
+
+
+
+
+
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/ROItypes.py b/site-packages/pyqtgraph-0.10.0/examples/ROItypes.py
new file mode 100644
index 00000000..9e67ebe1
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/ROItypes.py
@@ -0,0 +1,127 @@
+#!/usr/bin/python -i
+# -*- coding: utf-8 -*-
+## Add path to library (just for examples; you do not need this)
+import initExample
+
+
+from pyqtgraph.Qt import QtCore, QtGui
+import numpy as np
+import pyqtgraph as pg
+
+pg.setConfigOptions(imageAxisOrder='row-major')
+
+## create GUI
+app = QtGui.QApplication([])
+
+w = pg.GraphicsWindow(size=(800,800), border=True)
+v = w.addViewBox(colspan=2)
+v.invertY(True)  ## Images usually have their Y-axis pointing downward
+v.setAspectLocked(True)
+
+
+## Create image to display
+arr = np.ones((100, 100), dtype=float)
+arr[45:55, 45:55] = 0
+arr[25, :] = 5
+arr[:, 25] = 5
+arr[75, :] = 5
+arr[:, 75] = 5
+arr[50, :] = 10
+arr[:, 50] = 10
+
+# add an arrow for asymmetry
+arr[10, :50] = 10
+arr[9:12, 44:48] = 10
+arr[8:13, 44:46] = 10
+
+## Create image items, add to scene and set position 
+im1 = pg.ImageItem(arr)
+im2 = pg.ImageItem(arr)
+v.addItem(im1)
+v.addItem(im2)
+im2.moveBy(110, 20)
+v.setRange(QtCore.QRectF(0, 0, 200, 120))
+im1.scale(0.8, 0.5)
+
+im3 = pg.ImageItem()
+v2 = w.addViewBox(1,0)
+v2.addItem(im3)
+v2.setRange(QtCore.QRectF(0, 0, 60, 60))
+v2.invertY(True)
+v2.setAspectLocked(True)
+#im3.moveBy(0, 130)
+im3.setZValue(10)
+
+im4 = pg.ImageItem()
+v3 = w.addViewBox(1,1)
+v3.addItem(im4)
+v3.setRange(QtCore.QRectF(0, 0, 60, 60))
+v3.invertY(True)
+v3.setAspectLocked(True)
+#im4.moveBy(110, 130)
+im4.setZValue(10)
+
+## create the plot
+pi1 = w.addPlot(2,0, colspan=2)
+#pi1 = pg.PlotItem()
+#s.addItem(pi1)
+#pi1.scale(0.5, 0.5)
+#pi1.setGeometry(0, 170, 300, 100)
+
+lastRoi = None
+
+def updateRoi(roi):
+    global im1, im2, im3, im4, arr, lastRoi
+    if roi is None:
+        return
+    lastRoi = roi
+    arr1 = roi.getArrayRegion(im1.image, img=im1)
+    im3.setImage(arr1)
+    arr2 = roi.getArrayRegion(im2.image, img=im2)
+    im4.setImage(arr2)
+    updateRoiPlot(roi, arr1)
+    
+def updateRoiPlot(roi, data=None):
+    if data is None:
+        data = roi.getArrayRegion(im1.image, img=im1)
+    if data is not None:
+        roi.curve.setData(data.mean(axis=1))
+
+
+## Create a variety of different ROI types
+rois = []
+rois.append(pg.TestROI([0,  0], [20, 20], maxBounds=QtCore.QRectF(-10, -10, 230, 140), pen=(0,9)))
+rois.append(pg.LineROI([0,  0], [20, 20], width=5, pen=(1,9)))
+rois.append(pg.MultiLineROI([[0, 50], [50, 60], [60, 30]], width=5, pen=(2,9)))
+rois.append(pg.EllipseROI([110, 10], [30, 20], pen=(3,9)))
+rois.append(pg.CircleROI([110, 50], [20, 20], pen=(4,9)))
+rois.append(pg.PolygonROI([[2,0], [2.1,0], [2,.1]], pen=(5,9)))
+#rois.append(SpiralROI([20,30], [1,1], pen=mkPen(0)))
+
+## Add each ROI to the scene and link its data to a plot curve with the same color
+for r in rois:
+    v.addItem(r)
+    c = pi1.plot(pen=r.pen)
+    r.curve = c
+    r.sigRegionChanged.connect(updateRoi)
+
+def updateImage():
+    global im1, arr, lastRoi
+    r = abs(np.random.normal(loc=0, scale=(arr.max()-arr.min())*0.1, size=arr.shape))
+    im1.updateImage(arr + r)
+    updateRoi(lastRoi)
+    for r in rois:
+        updateRoiPlot(r)
+    
+## Rapidly update one of the images with random noise    
+t = QtCore.QTimer()
+t.timeout.connect(updateImage)
+t.start(50)
+
+
+
+## Start Qt event loop unless running in interactive mode.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/RemoteGraphicsView.py b/site-packages/pyqtgraph-0.10.0/examples/RemoteGraphicsView.py
new file mode 100644
index 00000000..2b74a8c6
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/RemoteGraphicsView.py
@@ -0,0 +1,34 @@
+# -*- coding: utf-8 -*-
+"""
+Very simple example demonstrating RemoteGraphicsView.
+
+This allows graphics to be rendered in a child process and displayed in the 
+parent, which can improve CPU usage on multi-core processors.
+"""
+import initExample ## Add path to library (just for examples; you do not need this)
+
+from pyqtgraph.Qt import QtGui, QtCore
+import pyqtgraph as pg
+from pyqtgraph.widgets.RemoteGraphicsView import RemoteGraphicsView
+app = pg.mkQApp()
+
+## Create the widget
+v = RemoteGraphicsView(debug=False)  # setting debug=True causes both processes to print information
+                                    # about interprocess communication
+v.show()
+v.setWindowTitle('pyqtgraph example: RemoteGraphicsView')
+
+## v.pg is a proxy to the remote process' pyqtgraph module. All attribute 
+## requests and function calls made with this object are forwarded to the
+## remote process and executed there. See pyqtgraph.multiprocess.remoteproxy
+## for more inormation.
+plt = v.pg.PlotItem()
+v.setCentralItem(plt)
+plt.plot([1,4,2,3,6,2,3,4,2,3], pen='g')
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/RemoteSpeedTest.py b/site-packages/pyqtgraph-0.10.0/examples/RemoteSpeedTest.py
new file mode 100644
index 00000000..03b4430b
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/RemoteSpeedTest.py
@@ -0,0 +1,79 @@
+# -*- coding: utf-8 -*-
+"""
+This example demonstrates the use of RemoteGraphicsView to improve performance in
+applications with heavy load. It works by starting a second process to handle 
+all graphics rendering, thus freeing up the main process to do its work.
+
+In this example, the update() function is very expensive and is called frequently.
+After update() generates a new set of data, it can either plot directly to a local
+plot (bottom) or remotely via a RemoteGraphicsView (top), allowing speed comparison
+between the two cases. IF you have a multi-core CPU, it should be obvious that the 
+remote case is much faster.
+"""
+
+import initExample ## Add path to library (just for examples; you do not need this)
+from pyqtgraph.Qt import QtGui, QtCore
+import pyqtgraph as pg
+import pyqtgraph.widgets.RemoteGraphicsView
+import numpy as np
+
+app = pg.mkQApp()
+
+view = pg.widgets.RemoteGraphicsView.RemoteGraphicsView()
+pg.setConfigOptions(antialias=True)  ## this will be expensive for the local plot
+view.pg.setConfigOptions(antialias=True)  ## prettier plots at no cost to the main process! 
+view.setWindowTitle('pyqtgraph example: RemoteSpeedTest')
+
+label = QtGui.QLabel()
+rcheck = QtGui.QCheckBox('plot remote')
+rcheck.setChecked(True)
+lcheck = QtGui.QCheckBox('plot local')
+lplt = pg.PlotWidget()
+layout = pg.LayoutWidget()
+layout.addWidget(rcheck)
+layout.addWidget(lcheck)
+layout.addWidget(label)
+layout.addWidget(view, row=1, col=0, colspan=3)
+layout.addWidget(lplt, row=2, col=0, colspan=3)
+layout.resize(800,800)
+layout.show()
+
+## Create a PlotItem in the remote process that will be displayed locally
+rplt = view.pg.PlotItem()
+rplt._setProxyOptions(deferGetattr=True)  ## speeds up access to rplt.plot
+view.setCentralItem(rplt)
+
+lastUpdate = pg.ptime.time()
+avgFps = 0.0
+
+def update():
+    global check, label, plt, lastUpdate, avgFps, rpltfunc
+    data = np.random.normal(size=(10000,50)).sum(axis=1)
+    data += 5 * np.sin(np.linspace(0, 10, data.shape[0]))
+    
+    if rcheck.isChecked():
+        rplt.plot(data, clear=True, _callSync='off')  ## We do not expect a return value.
+                                                      ## By turning off callSync, we tell
+                                                      ## the proxy that it does not need to 
+                                                      ## wait for a reply from the remote
+                                                      ## process.
+    if lcheck.isChecked():
+        lplt.plot(data, clear=True)
+        
+    now = pg.ptime.time()
+    fps = 1.0 / (now - lastUpdate)
+    lastUpdate = now
+    avgFps = avgFps * 0.8 + fps * 0.2
+    label.setText("Generating %0.2f fps" % avgFps)
+        
+timer = QtCore.QTimer()
+timer.timeout.connect(update)
+timer.start(0)
+
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/ScaleBar.py b/site-packages/pyqtgraph-0.10.0/examples/ScaleBar.py
new file mode 100644
index 00000000..5f9675e4
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/ScaleBar.py
@@ -0,0 +1,31 @@
+# -*- coding: utf-8 -*-
+"""
+Demonstrates ScaleBar
+"""
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+import numpy as np
+
+pg.mkQApp()
+win = pg.GraphicsWindow()
+win.setWindowTitle('pyqtgraph example: ScaleBar')
+
+vb = win.addViewBox()
+vb.setAspectLocked()
+
+img = pg.ImageItem()
+img.setImage(np.random.normal(size=(100,100)))
+img.scale(0.01, 0.01)
+vb.addItem(img)
+
+scale = pg.ScaleBar(size=0.1)
+scale.setParentItem(vb)
+scale.anchor((1, 1), (1, 1), offset=(-20, -20))
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/ScatterPlot.py b/site-packages/pyqtgraph-0.10.0/examples/ScatterPlot.py
new file mode 100644
index 00000000..72022acc
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/ScatterPlot.py
@@ -0,0 +1,102 @@
+# -*- coding: utf-8 -*-
+"""
+Example demonstrating a variety of scatter plot features.
+"""
+
+
+
+## Add path to library (just for examples; you do not need this)
+import initExample
+
+from pyqtgraph.Qt import QtGui, QtCore
+import pyqtgraph as pg
+import numpy as np
+
+app = QtGui.QApplication([])
+mw = QtGui.QMainWindow()
+mw.resize(800,800)
+view = pg.GraphicsLayoutWidget()  ## GraphicsView with GraphicsLayout inserted by default
+mw.setCentralWidget(view)
+mw.show()
+mw.setWindowTitle('pyqtgraph example: ScatterPlot')
+
+## create four areas to add plots
+w1 = view.addPlot()
+w2 = view.addViewBox()
+w2.setAspectLocked(True)
+view.nextRow()
+w3 = view.addPlot()
+w4 = view.addPlot()
+print("Generating data, this takes a few seconds...")
+
+## There are a few different ways we can draw scatter plots; each is optimized for different types of data:
+
+
+## 1) All spots identical and transform-invariant (top-left plot). 
+## In this case we can get a huge performance boost by pre-rendering the spot 
+## image and just drawing that image repeatedly.
+
+n = 300
+s1 = pg.ScatterPlotItem(size=10, pen=pg.mkPen(None), brush=pg.mkBrush(255, 255, 255, 120))
+pos = np.random.normal(size=(2,n), scale=1e-5)
+spots = [{'pos': pos[:,i], 'data': 1} for i in range(n)] + [{'pos': [0,0], 'data': 1}]
+s1.addPoints(spots)
+w1.addItem(s1)
+
+## Make all plots clickable
+lastClicked = []
+def clicked(plot, points):
+    global lastClicked
+    for p in lastClicked:
+        p.resetPen()
+    print("clicked points", points)
+    for p in points:
+        p.setPen('b', width=2)
+    lastClicked = points
+s1.sigClicked.connect(clicked)
+
+
+
+## 2) Spots are transform-invariant, but not identical (top-right plot). 
+## In this case, drawing is almsot as fast as 1), but there is more startup 
+## overhead and memory usage since each spot generates its own pre-rendered 
+## image.
+
+s2 = pg.ScatterPlotItem(size=10, pen=pg.mkPen('w'), pxMode=True)
+pos = np.random.normal(size=(2,n), scale=1e-5)
+spots = [{'pos': pos[:,i], 'data': 1, 'brush':pg.intColor(i, n), 'symbol': i%5, 'size': 5+i/10.} for i in range(n)]
+s2.addPoints(spots)
+w2.addItem(s2)
+s2.sigClicked.connect(clicked)
+
+
+## 3) Spots are not transform-invariant, not identical (bottom-left). 
+## This is the slowest case, since all spots must be completely re-drawn 
+## every time because their apparent transformation may have changed.
+
+s3 = pg.ScatterPlotItem(pxMode=False)   ## Set pxMode=False to allow spots to transform with the view
+spots3 = []
+for i in range(10):
+    for j in range(10):
+        spots3.append({'pos': (1e-6*i, 1e-6*j), 'size': 1e-6, 'pen': {'color': 'w', 'width': 2}, 'brush':pg.intColor(i*10+j, 100)})
+s3.addPoints(spots3)
+w3.addItem(s3)
+s3.sigClicked.connect(clicked)
+
+
+## Test performance of large scatterplots
+
+s4 = pg.ScatterPlotItem(size=10, pen=pg.mkPen(None), brush=pg.mkBrush(255, 255, 255, 20))
+pos = np.random.normal(size=(2,10000), scale=1e-9)
+s4.addPoints(x=pos[0], y=pos[1])
+w4.addItem(s4)
+s4.sigClicked.connect(clicked)
+
+
+
+## Start Qt event loop unless running in interactive mode.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
+
diff --git a/site-packages/pyqtgraph-0.10.0/examples/ScatterPlotSpeedTest.py b/site-packages/pyqtgraph-0.10.0/examples/ScatterPlotSpeedTest.py
new file mode 100644
index 00000000..9cbf0c63
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/ScatterPlotSpeedTest.py
@@ -0,0 +1,77 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+"""
+For testing rapid updates of ScatterPlotItem under various conditions.
+
+(Scatter plots are still rather slow to draw; expect about 20fps)
+"""
+
+
+
+## Add path to library (just for examples; you do not need this)
+import initExample
+
+
+from pyqtgraph.Qt import QtGui, QtCore, USE_PYSIDE, USE_PYQT5
+import numpy as np
+import pyqtgraph as pg
+from pyqtgraph.ptime import time
+#QtGui.QApplication.setGraphicsSystem('raster')
+app = QtGui.QApplication([])
+#mw = QtGui.QMainWindow()
+#mw.resize(800,800)
+if USE_PYSIDE:
+    from ScatterPlotSpeedTestTemplate_pyside import Ui_Form
+elif USE_PYQT5:
+    from ScatterPlotSpeedTestTemplate_pyqt5 import Ui_Form
+else:
+    from ScatterPlotSpeedTestTemplate_pyqt import Ui_Form
+
+win = QtGui.QWidget()
+win.setWindowTitle('pyqtgraph example: ScatterPlotSpeedTest')
+ui = Ui_Form()
+ui.setupUi(win)
+win.show()
+
+p = ui.plot
+p.setRange(xRange=[-500, 500], yRange=[-500, 500])
+
+data = np.random.normal(size=(50,500), scale=100)
+sizeArray = (np.random.random(500) * 20.).astype(int)
+ptr = 0
+lastTime = time()
+fps = None
+def update():
+    global curve, data, ptr, p, lastTime, fps
+    p.clear()
+    if ui.randCheck.isChecked():
+        size = sizeArray
+    else:
+        size = ui.sizeSpin.value()
+    curve = pg.ScatterPlotItem(x=data[ptr%50], y=data[(ptr+1)%50], 
+                               pen='w', brush='b', size=size, 
+                               pxMode=ui.pixelModeCheck.isChecked())
+    p.addItem(curve)
+    ptr += 1
+    now = time()
+    dt = now - lastTime
+    lastTime = now
+    if fps is None:
+        fps = 1.0/dt
+    else:
+        s = np.clip(dt*3., 0, 1)
+        fps = fps * (1-s) + (1.0/dt) * s
+    p.setTitle('%0.2f fps' % fps)
+    p.repaint()
+    #app.processEvents()  ## force complete redraw for every plot
+timer = QtCore.QTimer()
+timer.timeout.connect(update)
+timer.start(0)
+    
+
+
+## Start Qt event loop unless running in interactive mode.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/ScatterPlotSpeedTestTemplate.ui b/site-packages/pyqtgraph-0.10.0/examples/ScatterPlotSpeedTestTemplate.ui
new file mode 100644
index 00000000..6b87e85d
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/ScatterPlotSpeedTestTemplate.ui
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>Form</class>
+ <widget class="QWidget" name="Form">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>400</width>
+    <height>300</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>Form</string>
+  </property>
+  <layout class="QGridLayout" name="gridLayout">
+   <item row="1" column="1">
+    <widget class="QSpinBox" name="sizeSpin">
+     <property name="value">
+      <number>10</number>
+     </property>
+    </widget>
+   </item>
+   <item row="1" column="3">
+    <widget class="QCheckBox" name="pixelModeCheck">
+     <property name="text">
+      <string>pixel mode</string>
+     </property>
+    </widget>
+   </item>
+   <item row="1" column="0">
+    <widget class="QLabel" name="label">
+     <property name="text">
+      <string>Size</string>
+     </property>
+    </widget>
+   </item>
+   <item row="0" column="0" colspan="4">
+    <widget class="PlotWidget" name="plot"/>
+   </item>
+   <item row="1" column="2">
+    <widget class="QCheckBox" name="randCheck">
+     <property name="text">
+      <string>Randomize</string>
+     </property>
+    </widget>
+   </item>
+  </layout>
+ </widget>
+ <customwidgets>
+  <customwidget>
+   <class>PlotWidget</class>
+   <extends>QGraphicsView</extends>
+   <header>pyqtgraph</header>
+  </customwidget>
+ </customwidgets>
+ <resources/>
+ <connections/>
+</ui>
diff --git a/site-packages/pyqtgraph-0.10.0/examples/ScatterPlotSpeedTestTemplate_pyqt.py b/site-packages/pyqtgraph-0.10.0/examples/ScatterPlotSpeedTestTemplate_pyqt.py
new file mode 100644
index 00000000..22136690
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/ScatterPlotSpeedTestTemplate_pyqt.py
@@ -0,0 +1,49 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file './examples/ScatterPlotSpeedTestTemplate.ui'
+#
+# Created: Fri Sep 21 15:39:09 2012
+#      by: PyQt4 UI code generator 4.9.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt4 import QtCore, QtGui
+
+try:
+    _fromUtf8 = QtCore.QString.fromUtf8
+except AttributeError:
+    _fromUtf8 = lambda s: s
+
+class Ui_Form(object):
+    def setupUi(self, Form):
+        Form.setObjectName(_fromUtf8("Form"))
+        Form.resize(400, 300)
+        self.gridLayout = QtGui.QGridLayout(Form)
+        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
+        self.sizeSpin = QtGui.QSpinBox(Form)
+        self.sizeSpin.setProperty("value", 10)
+        self.sizeSpin.setObjectName(_fromUtf8("sizeSpin"))
+        self.gridLayout.addWidget(self.sizeSpin, 1, 1, 1, 1)
+        self.pixelModeCheck = QtGui.QCheckBox(Form)
+        self.pixelModeCheck.setObjectName(_fromUtf8("pixelModeCheck"))
+        self.gridLayout.addWidget(self.pixelModeCheck, 1, 3, 1, 1)
+        self.label = QtGui.QLabel(Form)
+        self.label.setObjectName(_fromUtf8("label"))
+        self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
+        self.plot = PlotWidget(Form)
+        self.plot.setObjectName(_fromUtf8("plot"))
+        self.gridLayout.addWidget(self.plot, 0, 0, 1, 4)
+        self.randCheck = QtGui.QCheckBox(Form)
+        self.randCheck.setObjectName(_fromUtf8("randCheck"))
+        self.gridLayout.addWidget(self.randCheck, 1, 2, 1, 1)
+
+        self.retranslateUi(Form)
+        QtCore.QMetaObject.connectSlotsByName(Form)
+
+    def retranslateUi(self, Form):
+        Form.setWindowTitle(QtGui.QApplication.translate("Form", "Form", None, QtGui.QApplication.UnicodeUTF8))
+        self.pixelModeCheck.setText(QtGui.QApplication.translate("Form", "pixel mode", None, QtGui.QApplication.UnicodeUTF8))
+        self.label.setText(QtGui.QApplication.translate("Form", "Size", None, QtGui.QApplication.UnicodeUTF8))
+        self.randCheck.setText(QtGui.QApplication.translate("Form", "Randomize", None, QtGui.QApplication.UnicodeUTF8))
+
+from pyqtgraph import PlotWidget
diff --git a/site-packages/pyqtgraph-0.10.0/examples/ScatterPlotSpeedTestTemplate_pyside.py b/site-packages/pyqtgraph-0.10.0/examples/ScatterPlotSpeedTestTemplate_pyside.py
new file mode 100644
index 00000000..690b0990
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/ScatterPlotSpeedTestTemplate_pyside.py
@@ -0,0 +1,44 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file './examples/ScatterPlotSpeedTestTemplate.ui'
+#
+# Created: Fri Sep 21 15:39:09 2012
+#      by: pyside-uic 0.2.13 running on PySide 1.1.0
+#
+# WARNING! All changes made in this file will be lost!
+
+from PySide import QtCore, QtGui
+
+class Ui_Form(object):
+    def setupUi(self, Form):
+        Form.setObjectName("Form")
+        Form.resize(400, 300)
+        self.gridLayout = QtGui.QGridLayout(Form)
+        self.gridLayout.setObjectName("gridLayout")
+        self.sizeSpin = QtGui.QSpinBox(Form)
+        self.sizeSpin.setProperty("value", 10)
+        self.sizeSpin.setObjectName("sizeSpin")
+        self.gridLayout.addWidget(self.sizeSpin, 1, 1, 1, 1)
+        self.pixelModeCheck = QtGui.QCheckBox(Form)
+        self.pixelModeCheck.setObjectName("pixelModeCheck")
+        self.gridLayout.addWidget(self.pixelModeCheck, 1, 3, 1, 1)
+        self.label = QtGui.QLabel(Form)
+        self.label.setObjectName("label")
+        self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
+        self.plot = PlotWidget(Form)
+        self.plot.setObjectName("plot")
+        self.gridLayout.addWidget(self.plot, 0, 0, 1, 4)
+        self.randCheck = QtGui.QCheckBox(Form)
+        self.randCheck.setObjectName("randCheck")
+        self.gridLayout.addWidget(self.randCheck, 1, 2, 1, 1)
+
+        self.retranslateUi(Form)
+        QtCore.QMetaObject.connectSlotsByName(Form)
+
+    def retranslateUi(self, Form):
+        Form.setWindowTitle(QtGui.QApplication.translate("Form", "Form", None, QtGui.QApplication.UnicodeUTF8))
+        self.pixelModeCheck.setText(QtGui.QApplication.translate("Form", "pixel mode", None, QtGui.QApplication.UnicodeUTF8))
+        self.label.setText(QtGui.QApplication.translate("Form", "Size", None, QtGui.QApplication.UnicodeUTF8))
+        self.randCheck.setText(QtGui.QApplication.translate("Form", "Randomize", None, QtGui.QApplication.UnicodeUTF8))
+
+from pyqtgraph import PlotWidget
diff --git a/site-packages/pyqtgraph-0.10.0/examples/ScatterPlotWidget.py b/site-packages/pyqtgraph-0.10.0/examples/ScatterPlotWidget.py
new file mode 100644
index 00000000..33503cab
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/ScatterPlotWidget.py
@@ -0,0 +1,70 @@
+# -*- coding: utf-8 -*-
+"""
+Demonstration of ScatterPlotWidget for exploring structure in tabular data.
+
+The widget consists of four components:
+
+1) A list of column names from which the user may select 1 or 2 columns
+    to plot. If one column is selected, the data for that column will be
+    plotted in a histogram-like manner by using pg.pseudoScatter(). 
+    If two columns are selected, then the
+    scatter plot will be generated with x determined by the first column
+    that was selected and y by the second.
+2) A DataFilter that allows the user to select a subset of the data by 
+    specifying multiple selection criteria.
+3) A ColorMap that allows the user to determine how points are colored by
+    specifying multiple criteria.
+4) A PlotWidget for displaying the data.
+
+"""
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+import numpy as np
+
+pg.mkQApp()
+
+# Make up some tabular data with structure
+data = np.empty(1000, dtype=[('x_pos', float), ('y_pos', float), 
+                             ('count', int), ('amplitude', float), 
+                             ('decay', float), ('type', 'S10')])
+strings = ['Type-A', 'Type-B', 'Type-C', 'Type-D', 'Type-E']
+typeInds = np.random.randint(5, size=1000)
+data['type'] = np.array(strings)[typeInds]
+data['x_pos'] = np.random.normal(size=1000)
+data['x_pos'][data['type'] == 'Type-A'] -= 1
+data['x_pos'][data['type'] == 'Type-B'] -= 1
+data['x_pos'][data['type'] == 'Type-C'] += 2
+data['x_pos'][data['type'] == 'Type-D'] += 2
+data['x_pos'][data['type'] == 'Type-E'] += 2
+data['y_pos'] = np.random.normal(size=1000) + data['x_pos']*0.1
+data['y_pos'][data['type'] == 'Type-A'] += 3
+data['y_pos'][data['type'] == 'Type-B'] += 3
+data['amplitude'] = data['x_pos'] * 1.4 + data['y_pos'] + np.random.normal(size=1000, scale=0.4)
+data['count'] = (np.random.exponential(size=1000, scale=100) * data['x_pos']).astype(int)
+data['decay'] = np.random.normal(size=1000, scale=1e-3) + data['amplitude'] * 1e-4
+data['decay'][data['type'] == 'Type-A'] /= 2
+data['decay'][data['type'] == 'Type-E'] *= 3
+
+
+# Create ScatterPlotWidget and configure its fields
+spw = pg.ScatterPlotWidget()
+spw.setFields([
+    ('x_pos', {'units': 'm'}),
+    ('y_pos', {'units': 'm'}),
+    ('count', {}),
+    ('amplitude', {'units': 'V'}),
+    ('decay', {'units': 's'}),    
+    ('type', {'mode': 'enum', 'values': strings}),
+    ])
+    
+spw.setData(data)
+spw.show()
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/SimplePlot.py b/site-packages/pyqtgraph-0.10.0/examples/SimplePlot.py
new file mode 100644
index 00000000..03ee2204
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/SimplePlot.py
@@ -0,0 +1,12 @@
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+import pyqtgraph.exporters
+import numpy as np
+plt = pg.plot(np.random.normal(size=100), title="Simplest possible plotting example")
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if sys.flags.interactive != 1 or not hasattr(pg.QtCore, 'PYQT_VERSION'):
+        pg.QtGui.QApplication.exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/SpinBox.py b/site-packages/pyqtgraph-0.10.0/examples/SpinBox.py
new file mode 100644
index 00000000..2fa9b161
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/SpinBox.py
@@ -0,0 +1,122 @@
+# -*- coding: utf-8 -*-
+"""
+This example demonstrates the SpinBox widget, which is an extension of 
+QDoubleSpinBox providing some advanced features:
+
+  * SI-prefixed units
+  * Non-linear stepping modes
+  * Bounded/unbounded values
+
+"""
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+import numpy as np
+
+
+app = QtGui.QApplication([])
+
+
+spins = [
+    ("Floating-point spin box, min=0, no maximum.", 
+     pg.SpinBox(value=5.0, bounds=[0, None])),
+    ("Integer spin box, dec stepping<br>(1-9, 10-90, 100-900, etc), decimals=4", 
+     pg.SpinBox(value=10, int=True, dec=True, minStep=1, step=1, decimals=4)),
+    ("Float with SI-prefixed units<br>(n, u, m, k, M, etc)", 
+     pg.SpinBox(value=0.9, suffix='V', siPrefix=True)),
+    ("Float with SI-prefixed units,<br>dec step=0.1, minStep=0.1", 
+     pg.SpinBox(value=1.0, suffix='V', siPrefix=True, dec=True, step=0.1, minStep=0.1)),
+    ("Float with SI-prefixed units,<br>dec step=0.5, minStep=0.01", 
+     pg.SpinBox(value=1.0, suffix='V', siPrefix=True, dec=True, step=0.5, minStep=0.01)),
+    ("Float with SI-prefixed units,<br>dec step=1.0, minStep=0.001", 
+     pg.SpinBox(value=1.0, suffix='V', siPrefix=True, dec=True, step=1.0, minStep=0.001)),
+]
+
+
+win = QtGui.QMainWindow()
+win.setWindowTitle('pyqtgraph example: SpinBox')
+cw = QtGui.QWidget()
+layout = QtGui.QGridLayout()
+cw.setLayout(layout)
+win.setCentralWidget(cw)
+win.show()
+#win.resize(300, 600)
+changingLabel = QtGui.QLabel()  ## updated immediately
+changedLabel = QtGui.QLabel()   ## updated only when editing is finished or mouse wheel has stopped for 0.3sec
+changingLabel.setMinimumWidth(200)
+font = changingLabel.font()
+font.setBold(True)
+font.setPointSize(14)
+changingLabel.setFont(font)
+changedLabel.setFont(font)
+labels = []
+
+
+def valueChanged(sb):
+    changedLabel.setText("Final value: %s" % str(sb.value()))
+
+def valueChanging(sb, value):
+    changingLabel.setText("Value changing: %s" % str(sb.value()))
+
+    
+for text, spin in spins:
+    label = QtGui.QLabel(text)
+    labels.append(label)
+    layout.addWidget(label)
+    layout.addWidget(spin)
+    spin.sigValueChanged.connect(valueChanged)
+    spin.sigValueChanging.connect(valueChanging)
+
+layout.addWidget(changingLabel, 0, 1)
+layout.addWidget(changedLabel, 2, 1)
+
+
+#def mkWin():
+    #win = QtGui.QMainWindow()
+    #g = QtGui.QFormLayout()
+    #w = QtGui.QWidget()
+    #w.setLayout(g)
+    #win.setCentralWidget(w)
+    #s1 = SpinBox(value=5, step=0.1, bounds=[-1.5, None], suffix='units')
+    #t1 = QtGui.QLineEdit()
+    #g.addRow(s1, t1)
+    #s2 = SpinBox(value=10e-6, dec=True, step=0.1, minStep=1e-6, suffix='A', siPrefix=True)
+    #t2 = QtGui.QLineEdit()
+    #g.addRow(s2, t2)
+    #s3 = SpinBox(value=1000, dec=True, step=0.5, minStep=1e-6, bounds=[1, 1e9], suffix='Hz', siPrefix=True)
+    #t3 = QtGui.QLineEdit()
+    #g.addRow(s3, t3)
+    #s4 = SpinBox(int=True, dec=True, step=1, minStep=1, bounds=[-10, 1000])
+    #t4 = QtGui.QLineEdit()
+    #g.addRow(s4, t4)
+
+    #win.show()
+
+    #import sys
+    #for sb in [s1, s2, s3,s4]:
+
+        ##QtCore.QObject.connect(sb, QtCore.SIGNAL('valueChanged(double)'), lambda v: sys.stdout.write(str(sb) + " valueChanged\n"))
+        ##QtCore.QObject.connect(sb, QtCore.SIGNAL('editingFinished()'), lambda: sys.stdout.write(str(sb) + " editingFinished\n"))
+        #sb.sigValueChanged.connect(valueChanged)
+        #sb.sigValueChanging.connect(valueChanging)
+        #sb.editingFinished.connect(lambda: sys.stdout.write(str(sb) + " editingFinished\n"))
+    #return win, w, [s1, s2, s3, s4]
+#a = mkWin()
+
+
+#def test(n=100):
+    #for i in range(n):
+        #win, w, sb = mkWin()
+        #for s in sb:
+            #w.setParent(None)
+            #s.setParent(None)
+            #s.valueChanged.disconnect()
+            #s.editingFinished.disconnect()
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/Symbols.py b/site-packages/pyqtgraph-0.10.0/examples/Symbols.py
new file mode 100644
index 00000000..3dd28e13
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/Symbols.py
@@ -0,0 +1,38 @@
+# -*- coding: utf-8 -*-
+"""
+This example shows all the scatter plot symbols available in pyqtgraph.
+
+These symbols are used to mark point locations for scatter plots and some line
+plots, similar to "markers" in matplotlib and vispy.
+"""
+
+import initExample ## Add path to library (just for examples; you do not need this)
+from pyqtgraph.Qt import QtGui, QtCore
+import pyqtgraph as pg
+
+app = QtGui.QApplication([])
+win = pg.GraphicsWindow(title="Scatter Plot Symbols")
+win.resize(1000,600)
+
+pg.setConfigOptions(antialias=True)
+
+plot = win.addPlot(title="Plotting with symbols")
+plot.addLegend()
+plot.plot([0, 1, 2, 3, 4], pen=(0,0,200), symbolBrush=(0,0,200), symbolPen='w', symbol='o', symbolSize=14, name="symbol='o'")
+plot.plot([1, 2, 3, 4, 5], pen=(0,128,0), symbolBrush=(0,128,0), symbolPen='w', symbol='t', symbolSize=14, name="symbol='t'")
+plot.plot([2, 3, 4, 5, 6], pen=(19,234,201), symbolBrush=(19,234,201), symbolPen='w', symbol='t1', symbolSize=14, name="symbol='t1'")
+plot.plot([3, 4, 5, 6, 7], pen=(195,46,212), symbolBrush=(195,46,212), symbolPen='w', symbol='t2', symbolSize=14, name="symbol='t2'")
+plot.plot([4, 5, 6, 7, 8], pen=(250,194,5), symbolBrush=(250,194,5), symbolPen='w', symbol='t3', symbolSize=14, name="symbol='t3'")
+plot.plot([5, 6, 7, 8, 9], pen=(54,55,55), symbolBrush=(55,55,55), symbolPen='w', symbol='s', symbolSize=14, name="symbol='s'")
+plot.plot([6, 7, 8, 9, 10], pen=(0,114,189), symbolBrush=(0,114,189), symbolPen='w', symbol='p', symbolSize=14, name="symbol='p'")
+plot.plot([7, 8, 9, 10, 11], pen=(217,83,25), symbolBrush=(217,83,25), symbolPen='w', symbol='h', symbolSize=14, name="symbol='h'")
+plot.plot([8, 9, 10, 11, 12], pen=(237,177,32), symbolBrush=(237,177,32), symbolPen='w', symbol='star', symbolSize=14, name="symbol='star'")
+plot.plot([9, 10, 11, 12, 13], pen=(126,47,142), symbolBrush=(126,47,142), symbolPen='w', symbol='+', symbolSize=14, name="symbol='+'")
+plot.plot([10, 11, 12, 13, 14], pen=(119,172,48), symbolBrush=(119,172,48), symbolPen='w', symbol='d', symbolSize=14, name="symbol='d'")
+plot.setXRange(-2, 4)
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/TableWidget.py b/site-packages/pyqtgraph-0.10.0/examples/TableWidget.py
new file mode 100644
index 00000000..cfeac399
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/TableWidget.py
@@ -0,0 +1,34 @@
+# -*- coding: utf-8 -*-
+"""
+Simple demonstration of TableWidget, which is an extension of QTableWidget
+that automatically displays a variety of tabluar data formats.
+"""
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+import numpy as np
+
+app = QtGui.QApplication([])
+
+w = pg.TableWidget()
+w.show()
+w.resize(500,500)
+w.setWindowTitle('pyqtgraph example: TableWidget')
+
+    
+data = np.array([
+    (1,   1.6,   'x'),
+    (3,   5.4,   'y'),
+    (8,   12.5,  'z'),
+    (443, 1e-12, 'w'),
+    ], dtype=[('Column 1', int), ('Column 2', float), ('Column 3', object)])
+    
+w.setData(data)
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/TreeWidget.py b/site-packages/pyqtgraph-0.10.0/examples/TreeWidget.py
new file mode 100644
index 00000000..b1ad3847
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/TreeWidget.py
@@ -0,0 +1,55 @@
+# -*- coding: utf-8 -*-
+"""
+Simple demonstration of TreeWidget, which is an extension of QTreeWidget
+that allows widgets to be added and dragged within the tree more easily.
+"""
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+import numpy as np
+
+
+app = QtGui.QApplication([])
+
+w = pg.TreeWidget()
+w.setColumnCount(2)
+w.show()
+w.setWindowTitle('pyqtgraph example: TreeWidget')
+
+i1  = QtGui.QTreeWidgetItem(["Item 1"])
+i11  = QtGui.QTreeWidgetItem(["Item 1.1"])
+i12  = QtGui.QTreeWidgetItem(["Item 1.2"])
+i2  = QtGui.QTreeWidgetItem(["Item 2"])
+i21  = QtGui.QTreeWidgetItem(["Item 2.1"])
+i211  = pg.TreeWidgetItem(["Item 2.1.1"])
+i212  = pg.TreeWidgetItem(["Item 2.1.2"])
+i22  = pg.TreeWidgetItem(["Item 2.2"])
+i3  = pg.TreeWidgetItem(["Item 3"])
+i4  = pg.TreeWidgetItem(["Item 4"])
+i5  = pg.TreeWidgetItem(["Item 5"])
+b5 = QtGui.QPushButton('Button')
+i5.setWidget(1, b5)
+
+
+
+w.addTopLevelItem(i1)
+w.addTopLevelItem(i2)
+w.addTopLevelItem(i3)
+w.addTopLevelItem(i4)
+w.addTopLevelItem(i5)
+i1.addChild(i11)
+i1.addChild(i12)
+i2.addChild(i21)
+i21.addChild(i211)
+i21.addChild(i212)
+i2.addChild(i22)
+
+b1 = QtGui.QPushButton("Button")
+w.setItemWidget(i1, 1, b1)
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/VideoSpeedTest.py b/site-packages/pyqtgraph-0.10.0/examples/VideoSpeedTest.py
new file mode 100644
index 00000000..e7189bf5
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/VideoSpeedTest.py
@@ -0,0 +1,203 @@
+# -*- coding: utf-8 -*-
+"""
+Tests the speed of image updates for an ImageItem and RawImageWidget.
+The speed will generally depend on the type of data being shown, whether
+it is being scaled and/or converted by lookup table, and whether OpenGL
+is used by the view widget
+"""
+
+
+import initExample ## Add path to library (just for examples; you do not need this)
+
+
+from pyqtgraph.Qt import QtGui, QtCore, USE_PYSIDE, USE_PYQT5
+import numpy as np
+import pyqtgraph as pg
+import pyqtgraph.ptime as ptime
+
+if USE_PYSIDE:
+    import VideoTemplate_pyside as VideoTemplate
+elif USE_PYQT5:
+    import VideoTemplate_pyqt5 as VideoTemplate
+else:
+    import VideoTemplate_pyqt as VideoTemplate
+    
+
+#QtGui.QApplication.setGraphicsSystem('raster')
+app = QtGui.QApplication([])
+
+win = QtGui.QMainWindow()
+win.setWindowTitle('pyqtgraph example: VideoSpeedTest')
+ui = VideoTemplate.Ui_MainWindow()
+ui.setupUi(win)
+win.show()
+
+try:
+    from pyqtgraph.widgets.RawImageWidget import RawImageGLWidget
+except ImportError:
+    ui.rawGLRadio.setEnabled(False)
+    ui.rawGLRadio.setText(ui.rawGLRadio.text() + " (OpenGL not available)")
+else:
+    ui.rawGLImg = RawImageGLWidget()
+    ui.stack.addWidget(ui.rawGLImg)
+
+ui.maxSpin1.setOpts(value=255, step=1)
+ui.minSpin1.setOpts(value=0, step=1)
+
+#ui.graphicsView.useOpenGL()  ## buggy, but you can try it if you need extra speed.
+
+vb = pg.ViewBox()
+ui.graphicsView.setCentralItem(vb)
+vb.setAspectLocked()
+img = pg.ImageItem()
+vb.addItem(img)
+vb.setRange(QtCore.QRectF(0, 0, 512, 512))
+
+LUT = None
+def updateLUT():
+    global LUT, ui
+    dtype = ui.dtypeCombo.currentText()
+    if dtype == 'uint8':
+        n = 256
+    else:
+        n = 4096
+    LUT = ui.gradient.getLookupTable(n, alpha=ui.alphaCheck.isChecked())
+ui.gradient.sigGradientChanged.connect(updateLUT)
+updateLUT()
+
+ui.alphaCheck.toggled.connect(updateLUT)
+
+def updateScale():
+    global ui
+    spins = [ui.minSpin1, ui.maxSpin1, ui.minSpin2, ui.maxSpin2, ui.minSpin3, ui.maxSpin3]
+    if ui.rgbLevelsCheck.isChecked():
+        for s in spins[2:]:
+            s.setEnabled(True)
+    else:
+        for s in spins[2:]:
+            s.setEnabled(False)
+ui.rgbLevelsCheck.toggled.connect(updateScale)
+    
+cache = {}
+def mkData():
+    with pg.BusyCursor():
+        global data, cache, ui
+        frames = ui.framesSpin.value()
+        width = ui.widthSpin.value()
+        height = ui.heightSpin.value()
+        dtype = (ui.dtypeCombo.currentText(), ui.rgbCheck.isChecked(), frames, width, height)
+        if dtype not in cache:
+            if dtype[0] == 'uint8':
+                dt = np.uint8
+                loc = 128
+                scale = 64
+                mx = 255
+            elif dtype[0] == 'uint16':
+                dt = np.uint16
+                loc = 4096
+                scale = 1024
+                mx = 2**16
+            elif dtype[0] == 'float':
+                dt = np.float
+                loc = 1.0
+                scale = 0.1
+            
+            if ui.rgbCheck.isChecked():
+                data = np.random.normal(size=(frames,width,height,3), loc=loc, scale=scale)
+                data = pg.gaussianFilter(data, (0, 6, 6, 0))
+            else:
+                data = np.random.normal(size=(frames,width,height), loc=loc, scale=scale)
+                data = pg.gaussianFilter(data, (0, 6, 6))
+            if dtype[0] != 'float':
+                data = np.clip(data, 0, mx)
+            data = data.astype(dt)
+            data[:, 10, 10:50] = mx
+            data[:, 9:12, 48] = mx
+            data[:, 8:13, 47] = mx
+            cache = {dtype: data} # clear to save memory (but keep one to prevent unnecessary regeneration)
+            
+        data = cache[dtype]
+        updateLUT()
+        updateSize()
+
+def updateSize():
+    global ui
+    frames = ui.framesSpin.value()
+    width = ui.widthSpin.value()
+    height = ui.heightSpin.value()
+    dtype = np.dtype(str(ui.dtypeCombo.currentText()))
+    rgb = 3 if ui.rgbCheck.isChecked() else 1
+    ui.sizeLabel.setText('%d MB' % (frames * width * height * rgb * dtype.itemsize / 1e6))
+    
+
+mkData()
+
+
+ui.dtypeCombo.currentIndexChanged.connect(mkData)
+ui.rgbCheck.toggled.connect(mkData)
+ui.widthSpin.editingFinished.connect(mkData)
+ui.heightSpin.editingFinished.connect(mkData)
+ui.framesSpin.editingFinished.connect(mkData)
+
+ui.widthSpin.valueChanged.connect(updateSize)
+ui.heightSpin.valueChanged.connect(updateSize)
+ui.framesSpin.valueChanged.connect(updateSize)
+
+
+
+ptr = 0
+lastTime = ptime.time()
+fps = None
+def update():
+    global ui, ptr, lastTime, fps, LUT, img
+    if ui.lutCheck.isChecked():
+        useLut = LUT
+    else:
+        useLut = None
+        
+    downsample = ui.downsampleCheck.isChecked()
+
+    if ui.scaleCheck.isChecked():
+        if ui.rgbLevelsCheck.isChecked():
+            useScale = [
+                [ui.minSpin1.value(), ui.maxSpin1.value()], 
+                [ui.minSpin2.value(), ui.maxSpin2.value()], 
+                [ui.minSpin3.value(), ui.maxSpin3.value()]]
+        else:
+            useScale = [ui.minSpin1.value(), ui.maxSpin1.value()]
+    else:
+        useScale = None
+
+    if ui.rawRadio.isChecked():
+        ui.rawImg.setImage(data[ptr%data.shape[0]], lut=useLut, levels=useScale)
+        ui.stack.setCurrentIndex(1)
+    elif ui.rawGLRadio.isChecked():
+        ui.rawGLImg.setImage(data[ptr%data.shape[0]], lut=useLut, levels=useScale)
+        ui.stack.setCurrentIndex(2)
+    else:
+        img.setImage(data[ptr%data.shape[0]], autoLevels=False, levels=useScale, lut=useLut, autoDownsample=downsample)
+        ui.stack.setCurrentIndex(0)
+        #img.setImage(data[ptr%data.shape[0]], autoRange=False)
+        
+    ptr += 1
+    now = ptime.time()
+    dt = now - lastTime
+    lastTime = now
+    if fps is None:
+        fps = 1.0/dt
+    else:
+        s = np.clip(dt*3., 0, 1)
+        fps = fps * (1-s) + (1.0/dt) * s
+    ui.fpsLabel.setText('%0.2f fps' % fps)
+    app.processEvents()  ## force complete redraw for every plot
+timer = QtCore.QTimer()
+timer.timeout.connect(update)
+timer.start(0)
+    
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/VideoTemplate.ui b/site-packages/pyqtgraph-0.10.0/examples/VideoTemplate.ui
new file mode 100644
index 00000000..7da18327
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/VideoTemplate.ui
@@ -0,0 +1,339 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>MainWindow</class>
+ <widget class="QMainWindow" name="MainWindow">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>695</width>
+    <height>798</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>MainWindow</string>
+  </property>
+  <widget class="QWidget" name="centralwidget">
+   <layout class="QGridLayout" name="gridLayout_2">
+    <item row="8" column="0" colspan="2">
+     <widget class="QCheckBox" name="downsampleCheck">
+      <property name="text">
+       <string>Auto downsample</string>
+      </property>
+     </widget>
+    </item>
+    <item row="4" column="0">
+     <widget class="QCheckBox" name="scaleCheck">
+      <property name="text">
+       <string>Scale Data</string>
+      </property>
+     </widget>
+    </item>
+    <item row="1" column="0" colspan="4">
+     <layout class="QGridLayout" name="gridLayout">
+      <item row="3" column="0">
+       <widget class="QRadioButton" name="rawRadio">
+        <property name="text">
+         <string>RawImageWidget</string>
+        </property>
+       </widget>
+      </item>
+      <item row="2" column="0">
+       <widget class="QRadioButton" name="gfxRadio">
+        <property name="text">
+         <string>GraphicsView + ImageItem</string>
+        </property>
+        <property name="checked">
+         <bool>true</bool>
+        </property>
+       </widget>
+      </item>
+      <item row="0" column="0">
+       <widget class="QStackedWidget" name="stack">
+        <property name="currentIndex">
+         <number>1</number>
+        </property>
+        <widget class="QWidget" name="page">
+         <layout class="QGridLayout" name="gridLayout_3">
+          <item row="0" column="0">
+           <widget class="GraphicsView" name="graphicsView"/>
+          </item>
+         </layout>
+        </widget>
+        <widget class="QWidget" name="page_2">
+         <layout class="QGridLayout" name="gridLayout_4">
+          <item row="0" column="0">
+           <widget class="RawImageWidget" name="rawImg" native="true">
+            <property name="sizePolicy">
+             <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
+              <horstretch>0</horstretch>
+              <verstretch>0</verstretch>
+             </sizepolicy>
+            </property>
+           </widget>
+          </item>
+         </layout>
+        </widget>
+       </widget>
+      </item>
+      <item row="4" column="0">
+       <widget class="QRadioButton" name="rawGLRadio">
+        <property name="text">
+         <string>RawGLImageWidget</string>
+        </property>
+       </widget>
+      </item>
+     </layout>
+    </item>
+    <item row="3" column="2">
+     <widget class="QComboBox" name="dtypeCombo">
+      <item>
+       <property name="text">
+        <string>uint8</string>
+       </property>
+      </item>
+      <item>
+       <property name="text">
+        <string>uint16</string>
+       </property>
+      </item>
+      <item>
+       <property name="text">
+        <string>float</string>
+       </property>
+      </item>
+     </widget>
+    </item>
+    <item row="3" column="0">
+     <widget class="QLabel" name="label">
+      <property name="text">
+       <string>Data type</string>
+      </property>
+     </widget>
+    </item>
+    <item row="4" column="1">
+     <widget class="QCheckBox" name="rgbLevelsCheck">
+      <property name="text">
+       <string>RGB</string>
+      </property>
+     </widget>
+    </item>
+    <item row="5" column="2">
+     <layout class="QHBoxLayout" name="horizontalLayout_2">
+      <item>
+       <widget class="SpinBox" name="minSpin2">
+        <property name="enabled">
+         <bool>false</bool>
+        </property>
+       </widget>
+      </item>
+      <item>
+       <widget class="QLabel" name="label_3">
+        <property name="text">
+         <string>&lt;---&gt;</string>
+        </property>
+        <property name="alignment">
+         <set>Qt::AlignCenter</set>
+        </property>
+       </widget>
+      </item>
+      <item>
+       <widget class="SpinBox" name="maxSpin2">
+        <property name="enabled">
+         <bool>false</bool>
+        </property>
+       </widget>
+      </item>
+     </layout>
+    </item>
+    <item row="4" column="2">
+     <layout class="QHBoxLayout" name="horizontalLayout">
+      <item>
+       <widget class="SpinBox" name="minSpin1"/>
+      </item>
+      <item>
+       <widget class="QLabel" name="label_2">
+        <property name="text">
+         <string>&lt;---&gt;</string>
+        </property>
+        <property name="alignment">
+         <set>Qt::AlignCenter</set>
+        </property>
+       </widget>
+      </item>
+      <item>
+       <widget class="SpinBox" name="maxSpin1"/>
+      </item>
+     </layout>
+    </item>
+    <item row="6" column="2">
+     <layout class="QHBoxLayout" name="horizontalLayout_3">
+      <item>
+       <widget class="SpinBox" name="minSpin3">
+        <property name="enabled">
+         <bool>false</bool>
+        </property>
+       </widget>
+      </item>
+      <item>
+       <widget class="QLabel" name="label_4">
+        <property name="text">
+         <string>&lt;---&gt;</string>
+        </property>
+        <property name="alignment">
+         <set>Qt::AlignCenter</set>
+        </property>
+       </widget>
+      </item>
+      <item>
+       <widget class="SpinBox" name="maxSpin3">
+        <property name="enabled">
+         <bool>false</bool>
+        </property>
+       </widget>
+      </item>
+     </layout>
+    </item>
+    <item row="7" column="0">
+     <widget class="QCheckBox" name="lutCheck">
+      <property name="text">
+       <string>Use Lookup  Table</string>
+      </property>
+     </widget>
+    </item>
+    <item row="7" column="1">
+     <widget class="QCheckBox" name="alphaCheck">
+      <property name="text">
+       <string>alpha</string>
+      </property>
+     </widget>
+    </item>
+    <item row="7" column="2" colspan="2">
+     <widget class="GradientWidget" name="gradient" native="true">
+      <property name="sizePolicy">
+       <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
+        <horstretch>0</horstretch>
+        <verstretch>0</verstretch>
+       </sizepolicy>
+      </property>
+     </widget>
+    </item>
+    <item row="3" column="3">
+     <spacer name="horizontalSpacer">
+      <property name="orientation">
+       <enum>Qt::Horizontal</enum>
+      </property>
+      <property name="sizeHint" stdset="0">
+       <size>
+        <width>40</width>
+        <height>20</height>
+       </size>
+      </property>
+     </spacer>
+    </item>
+    <item row="0" column="0" colspan="4">
+     <widget class="QLabel" name="fpsLabel">
+      <property name="font">
+       <font>
+        <pointsize>12</pointsize>
+       </font>
+      </property>
+      <property name="text">
+       <string>FPS</string>
+      </property>
+      <property name="alignment">
+       <set>Qt::AlignCenter</set>
+      </property>
+     </widget>
+    </item>
+    <item row="3" column="1">
+     <widget class="QCheckBox" name="rgbCheck">
+      <property name="text">
+       <string>RGB</string>
+      </property>
+     </widget>
+    </item>
+    <item row="2" column="0">
+     <widget class="QLabel" name="label_5">
+      <property name="text">
+       <string>Image size</string>
+      </property>
+     </widget>
+    </item>
+    <item row="2" column="1" colspan="2">
+     <layout class="QHBoxLayout" name="horizontalLayout_4">
+      <item>
+       <widget class="QSpinBox" name="framesSpin">
+        <property name="buttonSymbols">
+         <enum>QAbstractSpinBox::NoButtons</enum>
+        </property>
+        <property name="value">
+         <number>10</number>
+        </property>
+       </widget>
+      </item>
+      <item>
+       <widget class="QSpinBox" name="widthSpin">
+        <property name="buttonSymbols">
+         <enum>QAbstractSpinBox::PlusMinus</enum>
+        </property>
+        <property name="maximum">
+         <number>10000</number>
+        </property>
+        <property name="value">
+         <number>512</number>
+        </property>
+       </widget>
+      </item>
+      <item>
+       <widget class="QSpinBox" name="heightSpin">
+        <property name="buttonSymbols">
+         <enum>QAbstractSpinBox::NoButtons</enum>
+        </property>
+        <property name="maximum">
+         <number>10000</number>
+        </property>
+        <property name="value">
+         <number>512</number>
+        </property>
+       </widget>
+      </item>
+     </layout>
+    </item>
+    <item row="2" column="3">
+     <widget class="QLabel" name="sizeLabel">
+      <property name="text">
+       <string/>
+      </property>
+     </widget>
+    </item>
+   </layout>
+  </widget>
+ </widget>
+ <customwidgets>
+  <customwidget>
+   <class>GraphicsView</class>
+   <extends>QGraphicsView</extends>
+   <header>pyqtgraph</header>
+  </customwidget>
+  <customwidget>
+   <class>RawImageWidget</class>
+   <extends>QWidget</extends>
+   <header>pyqtgraph.widgets.RawImageWidget</header>
+   <container>1</container>
+  </customwidget>
+  <customwidget>
+   <class>GradientWidget</class>
+   <extends>QWidget</extends>
+   <header>pyqtgraph</header>
+   <container>1</container>
+  </customwidget>
+  <customwidget>
+   <class>SpinBox</class>
+   <extends>QDoubleSpinBox</extends>
+   <header>pyqtgraph</header>
+  </customwidget>
+ </customwidgets>
+ <resources/>
+ <connections/>
+</ui>
diff --git a/site-packages/pyqtgraph-0.10.0/examples/VideoTemplate_pyqt.py b/site-packages/pyqtgraph-0.10.0/examples/VideoTemplate_pyqt.py
new file mode 100644
index 00000000..b93bedeb
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/VideoTemplate_pyqt.py
@@ -0,0 +1,212 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'examples/VideoTemplate.ui'
+#
+# Created by: PyQt4 UI code generator 4.11.4
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt4 import QtCore, QtGui
+
+try:
+    _fromUtf8 = QtCore.QString.fromUtf8
+except AttributeError:
+    def _fromUtf8(s):
+        return s
+
+try:
+    _encoding = QtGui.QApplication.UnicodeUTF8
+    def _translate(context, text, disambig):
+        return QtGui.QApplication.translate(context, text, disambig, _encoding)
+except AttributeError:
+    def _translate(context, text, disambig):
+        return QtGui.QApplication.translate(context, text, disambig)
+
+class Ui_MainWindow(object):
+    def setupUi(self, MainWindow):
+        MainWindow.setObjectName(_fromUtf8("MainWindow"))
+        MainWindow.resize(695, 798)
+        self.centralwidget = QtGui.QWidget(MainWindow)
+        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
+        self.gridLayout_2 = QtGui.QGridLayout(self.centralwidget)
+        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
+        self.downsampleCheck = QtGui.QCheckBox(self.centralwidget)
+        self.downsampleCheck.setObjectName(_fromUtf8("downsampleCheck"))
+        self.gridLayout_2.addWidget(self.downsampleCheck, 8, 0, 1, 2)
+        self.scaleCheck = QtGui.QCheckBox(self.centralwidget)
+        self.scaleCheck.setObjectName(_fromUtf8("scaleCheck"))
+        self.gridLayout_2.addWidget(self.scaleCheck, 4, 0, 1, 1)
+        self.gridLayout = QtGui.QGridLayout()
+        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
+        self.rawRadio = QtGui.QRadioButton(self.centralwidget)
+        self.rawRadio.setObjectName(_fromUtf8("rawRadio"))
+        self.gridLayout.addWidget(self.rawRadio, 3, 0, 1, 1)
+        self.gfxRadio = QtGui.QRadioButton(self.centralwidget)
+        self.gfxRadio.setChecked(True)
+        self.gfxRadio.setObjectName(_fromUtf8("gfxRadio"))
+        self.gridLayout.addWidget(self.gfxRadio, 2, 0, 1, 1)
+        self.stack = QtGui.QStackedWidget(self.centralwidget)
+        self.stack.setObjectName(_fromUtf8("stack"))
+        self.page = QtGui.QWidget()
+        self.page.setObjectName(_fromUtf8("page"))
+        self.gridLayout_3 = QtGui.QGridLayout(self.page)
+        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
+        self.graphicsView = GraphicsView(self.page)
+        self.graphicsView.setObjectName(_fromUtf8("graphicsView"))
+        self.gridLayout_3.addWidget(self.graphicsView, 0, 0, 1, 1)
+        self.stack.addWidget(self.page)
+        self.page_2 = QtGui.QWidget()
+        self.page_2.setObjectName(_fromUtf8("page_2"))
+        self.gridLayout_4 = QtGui.QGridLayout(self.page_2)
+        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
+        self.rawImg = RawImageWidget(self.page_2)
+        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
+        sizePolicy.setHorizontalStretch(0)
+        sizePolicy.setVerticalStretch(0)
+        sizePolicy.setHeightForWidth(self.rawImg.sizePolicy().hasHeightForWidth())
+        self.rawImg.setSizePolicy(sizePolicy)
+        self.rawImg.setObjectName(_fromUtf8("rawImg"))
+        self.gridLayout_4.addWidget(self.rawImg, 0, 0, 1, 1)
+        self.stack.addWidget(self.page_2)
+        self.gridLayout.addWidget(self.stack, 0, 0, 1, 1)
+        self.rawGLRadio = QtGui.QRadioButton(self.centralwidget)
+        self.rawGLRadio.setObjectName(_fromUtf8("rawGLRadio"))
+        self.gridLayout.addWidget(self.rawGLRadio, 4, 0, 1, 1)
+        self.gridLayout_2.addLayout(self.gridLayout, 1, 0, 1, 4)
+        self.dtypeCombo = QtGui.QComboBox(self.centralwidget)
+        self.dtypeCombo.setObjectName(_fromUtf8("dtypeCombo"))
+        self.dtypeCombo.addItem(_fromUtf8(""))
+        self.dtypeCombo.addItem(_fromUtf8(""))
+        self.dtypeCombo.addItem(_fromUtf8(""))
+        self.gridLayout_2.addWidget(self.dtypeCombo, 3, 2, 1, 1)
+        self.label = QtGui.QLabel(self.centralwidget)
+        self.label.setObjectName(_fromUtf8("label"))
+        self.gridLayout_2.addWidget(self.label, 3, 0, 1, 1)
+        self.rgbLevelsCheck = QtGui.QCheckBox(self.centralwidget)
+        self.rgbLevelsCheck.setObjectName(_fromUtf8("rgbLevelsCheck"))
+        self.gridLayout_2.addWidget(self.rgbLevelsCheck, 4, 1, 1, 1)
+        self.horizontalLayout_2 = QtGui.QHBoxLayout()
+        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
+        self.minSpin2 = SpinBox(self.centralwidget)
+        self.minSpin2.setEnabled(False)
+        self.minSpin2.setObjectName(_fromUtf8("minSpin2"))
+        self.horizontalLayout_2.addWidget(self.minSpin2)
+        self.label_3 = QtGui.QLabel(self.centralwidget)
+        self.label_3.setAlignment(QtCore.Qt.AlignCenter)
+        self.label_3.setObjectName(_fromUtf8("label_3"))
+        self.horizontalLayout_2.addWidget(self.label_3)
+        self.maxSpin2 = SpinBox(self.centralwidget)
+        self.maxSpin2.setEnabled(False)
+        self.maxSpin2.setObjectName(_fromUtf8("maxSpin2"))
+        self.horizontalLayout_2.addWidget(self.maxSpin2)
+        self.gridLayout_2.addLayout(self.horizontalLayout_2, 5, 2, 1, 1)
+        self.horizontalLayout = QtGui.QHBoxLayout()
+        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
+        self.minSpin1 = SpinBox(self.centralwidget)
+        self.minSpin1.setObjectName(_fromUtf8("minSpin1"))
+        self.horizontalLayout.addWidget(self.minSpin1)
+        self.label_2 = QtGui.QLabel(self.centralwidget)
+        self.label_2.setAlignment(QtCore.Qt.AlignCenter)
+        self.label_2.setObjectName(_fromUtf8("label_2"))
+        self.horizontalLayout.addWidget(self.label_2)
+        self.maxSpin1 = SpinBox(self.centralwidget)
+        self.maxSpin1.setObjectName(_fromUtf8("maxSpin1"))
+        self.horizontalLayout.addWidget(self.maxSpin1)
+        self.gridLayout_2.addLayout(self.horizontalLayout, 4, 2, 1, 1)
+        self.horizontalLayout_3 = QtGui.QHBoxLayout()
+        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
+        self.minSpin3 = SpinBox(self.centralwidget)
+        self.minSpin3.setEnabled(False)
+        self.minSpin3.setObjectName(_fromUtf8("minSpin3"))
+        self.horizontalLayout_3.addWidget(self.minSpin3)
+        self.label_4 = QtGui.QLabel(self.centralwidget)
+        self.label_4.setAlignment(QtCore.Qt.AlignCenter)
+        self.label_4.setObjectName(_fromUtf8("label_4"))
+        self.horizontalLayout_3.addWidget(self.label_4)
+        self.maxSpin3 = SpinBox(self.centralwidget)
+        self.maxSpin3.setEnabled(False)
+        self.maxSpin3.setObjectName(_fromUtf8("maxSpin3"))
+        self.horizontalLayout_3.addWidget(self.maxSpin3)
+        self.gridLayout_2.addLayout(self.horizontalLayout_3, 6, 2, 1, 1)
+        self.lutCheck = QtGui.QCheckBox(self.centralwidget)
+        self.lutCheck.setObjectName(_fromUtf8("lutCheck"))
+        self.gridLayout_2.addWidget(self.lutCheck, 7, 0, 1, 1)
+        self.alphaCheck = QtGui.QCheckBox(self.centralwidget)
+        self.alphaCheck.setObjectName(_fromUtf8("alphaCheck"))
+        self.gridLayout_2.addWidget(self.alphaCheck, 7, 1, 1, 1)
+        self.gradient = GradientWidget(self.centralwidget)
+        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
+        sizePolicy.setHorizontalStretch(0)
+        sizePolicy.setVerticalStretch(0)
+        sizePolicy.setHeightForWidth(self.gradient.sizePolicy().hasHeightForWidth())
+        self.gradient.setSizePolicy(sizePolicy)
+        self.gradient.setObjectName(_fromUtf8("gradient"))
+        self.gridLayout_2.addWidget(self.gradient, 7, 2, 1, 2)
+        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
+        self.gridLayout_2.addItem(spacerItem, 3, 3, 1, 1)
+        self.fpsLabel = QtGui.QLabel(self.centralwidget)
+        font = QtGui.QFont()
+        font.setPointSize(12)
+        self.fpsLabel.setFont(font)
+        self.fpsLabel.setAlignment(QtCore.Qt.AlignCenter)
+        self.fpsLabel.setObjectName(_fromUtf8("fpsLabel"))
+        self.gridLayout_2.addWidget(self.fpsLabel, 0, 0, 1, 4)
+        self.rgbCheck = QtGui.QCheckBox(self.centralwidget)
+        self.rgbCheck.setObjectName(_fromUtf8("rgbCheck"))
+        self.gridLayout_2.addWidget(self.rgbCheck, 3, 1, 1, 1)
+        self.label_5 = QtGui.QLabel(self.centralwidget)
+        self.label_5.setObjectName(_fromUtf8("label_5"))
+        self.gridLayout_2.addWidget(self.label_5, 2, 0, 1, 1)
+        self.horizontalLayout_4 = QtGui.QHBoxLayout()
+        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
+        self.framesSpin = QtGui.QSpinBox(self.centralwidget)
+        self.framesSpin.setButtonSymbols(QtGui.QAbstractSpinBox.NoButtons)
+        self.framesSpin.setProperty("value", 10)
+        self.framesSpin.setObjectName(_fromUtf8("framesSpin"))
+        self.horizontalLayout_4.addWidget(self.framesSpin)
+        self.widthSpin = QtGui.QSpinBox(self.centralwidget)
+        self.widthSpin.setButtonSymbols(QtGui.QAbstractSpinBox.PlusMinus)
+        self.widthSpin.setMaximum(10000)
+        self.widthSpin.setProperty("value", 512)
+        self.widthSpin.setObjectName(_fromUtf8("widthSpin"))
+        self.horizontalLayout_4.addWidget(self.widthSpin)
+        self.heightSpin = QtGui.QSpinBox(self.centralwidget)
+        self.heightSpin.setButtonSymbols(QtGui.QAbstractSpinBox.NoButtons)
+        self.heightSpin.setMaximum(10000)
+        self.heightSpin.setProperty("value", 512)
+        self.heightSpin.setObjectName(_fromUtf8("heightSpin"))
+        self.horizontalLayout_4.addWidget(self.heightSpin)
+        self.gridLayout_2.addLayout(self.horizontalLayout_4, 2, 1, 1, 2)
+        self.sizeLabel = QtGui.QLabel(self.centralwidget)
+        self.sizeLabel.setText(_fromUtf8(""))
+        self.sizeLabel.setObjectName(_fromUtf8("sizeLabel"))
+        self.gridLayout_2.addWidget(self.sizeLabel, 2, 3, 1, 1)
+        MainWindow.setCentralWidget(self.centralwidget)
+
+        self.retranslateUi(MainWindow)
+        self.stack.setCurrentIndex(1)
+        QtCore.QMetaObject.connectSlotsByName(MainWindow)
+
+    def retranslateUi(self, MainWindow):
+        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None))
+        self.downsampleCheck.setText(_translate("MainWindow", "Auto downsample", None))
+        self.scaleCheck.setText(_translate("MainWindow", "Scale Data", None))
+        self.rawRadio.setText(_translate("MainWindow", "RawImageWidget", None))
+        self.gfxRadio.setText(_translate("MainWindow", "GraphicsView + ImageItem", None))
+        self.rawGLRadio.setText(_translate("MainWindow", "RawGLImageWidget", None))
+        self.dtypeCombo.setItemText(0, _translate("MainWindow", "uint8", None))
+        self.dtypeCombo.setItemText(1, _translate("MainWindow", "uint16", None))
+        self.dtypeCombo.setItemText(2, _translate("MainWindow", "float", None))
+        self.label.setText(_translate("MainWindow", "Data type", None))
+        self.rgbLevelsCheck.setText(_translate("MainWindow", "RGB", None))
+        self.label_3.setText(_translate("MainWindow", "<--->", None))
+        self.label_2.setText(_translate("MainWindow", "<--->", None))
+        self.label_4.setText(_translate("MainWindow", "<--->", None))
+        self.lutCheck.setText(_translate("MainWindow", "Use Lookup  Table", None))
+        self.alphaCheck.setText(_translate("MainWindow", "alpha", None))
+        self.fpsLabel.setText(_translate("MainWindow", "FPS", None))
+        self.rgbCheck.setText(_translate("MainWindow", "RGB", None))
+        self.label_5.setText(_translate("MainWindow", "Image size", None))
+
+from pyqtgraph import GradientWidget, GraphicsView, SpinBox
+from pyqtgraph.widgets.RawImageWidget import RawImageWidget
diff --git a/site-packages/pyqtgraph-0.10.0/examples/VideoTemplate_pyqt5.py b/site-packages/pyqtgraph-0.10.0/examples/VideoTemplate_pyqt5.py
new file mode 100644
index 00000000..63153fb5
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/VideoTemplate_pyqt5.py
@@ -0,0 +1,199 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'examples/VideoTemplate.ui'
+#
+# Created by: PyQt5 UI code generator 5.5.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_MainWindow(object):
+    def setupUi(self, MainWindow):
+        MainWindow.setObjectName("MainWindow")
+        MainWindow.resize(695, 798)
+        self.centralwidget = QtWidgets.QWidget(MainWindow)
+        self.centralwidget.setObjectName("centralwidget")
+        self.gridLayout_2 = QtWidgets.QGridLayout(self.centralwidget)
+        self.gridLayout_2.setObjectName("gridLayout_2")
+        self.downsampleCheck = QtWidgets.QCheckBox(self.centralwidget)
+        self.downsampleCheck.setObjectName("downsampleCheck")
+        self.gridLayout_2.addWidget(self.downsampleCheck, 8, 0, 1, 2)
+        self.scaleCheck = QtWidgets.QCheckBox(self.centralwidget)
+        self.scaleCheck.setObjectName("scaleCheck")
+        self.gridLayout_2.addWidget(self.scaleCheck, 4, 0, 1, 1)
+        self.gridLayout = QtWidgets.QGridLayout()
+        self.gridLayout.setObjectName("gridLayout")
+        self.rawRadio = QtWidgets.QRadioButton(self.centralwidget)
+        self.rawRadio.setObjectName("rawRadio")
+        self.gridLayout.addWidget(self.rawRadio, 3, 0, 1, 1)
+        self.gfxRadio = QtWidgets.QRadioButton(self.centralwidget)
+        self.gfxRadio.setChecked(True)
+        self.gfxRadio.setObjectName("gfxRadio")
+        self.gridLayout.addWidget(self.gfxRadio, 2, 0, 1, 1)
+        self.stack = QtWidgets.QStackedWidget(self.centralwidget)
+        self.stack.setObjectName("stack")
+        self.page = QtWidgets.QWidget()
+        self.page.setObjectName("page")
+        self.gridLayout_3 = QtWidgets.QGridLayout(self.page)
+        self.gridLayout_3.setObjectName("gridLayout_3")
+        self.graphicsView = GraphicsView(self.page)
+        self.graphicsView.setObjectName("graphicsView")
+        self.gridLayout_3.addWidget(self.graphicsView, 0, 0, 1, 1)
+        self.stack.addWidget(self.page)
+        self.page_2 = QtWidgets.QWidget()
+        self.page_2.setObjectName("page_2")
+        self.gridLayout_4 = QtWidgets.QGridLayout(self.page_2)
+        self.gridLayout_4.setObjectName("gridLayout_4")
+        self.rawImg = RawImageWidget(self.page_2)
+        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
+        sizePolicy.setHorizontalStretch(0)
+        sizePolicy.setVerticalStretch(0)
+        sizePolicy.setHeightForWidth(self.rawImg.sizePolicy().hasHeightForWidth())
+        self.rawImg.setSizePolicy(sizePolicy)
+        self.rawImg.setObjectName("rawImg")
+        self.gridLayout_4.addWidget(self.rawImg, 0, 0, 1, 1)
+        self.stack.addWidget(self.page_2)
+        self.gridLayout.addWidget(self.stack, 0, 0, 1, 1)
+        self.rawGLRadio = QtWidgets.QRadioButton(self.centralwidget)
+        self.rawGLRadio.setObjectName("rawGLRadio")
+        self.gridLayout.addWidget(self.rawGLRadio, 4, 0, 1, 1)
+        self.gridLayout_2.addLayout(self.gridLayout, 1, 0, 1, 4)
+        self.dtypeCombo = QtWidgets.QComboBox(self.centralwidget)
+        self.dtypeCombo.setObjectName("dtypeCombo")
+        self.dtypeCombo.addItem("")
+        self.dtypeCombo.addItem("")
+        self.dtypeCombo.addItem("")
+        self.gridLayout_2.addWidget(self.dtypeCombo, 3, 2, 1, 1)
+        self.label = QtWidgets.QLabel(self.centralwidget)
+        self.label.setObjectName("label")
+        self.gridLayout_2.addWidget(self.label, 3, 0, 1, 1)
+        self.rgbLevelsCheck = QtWidgets.QCheckBox(self.centralwidget)
+        self.rgbLevelsCheck.setObjectName("rgbLevelsCheck")
+        self.gridLayout_2.addWidget(self.rgbLevelsCheck, 4, 1, 1, 1)
+        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
+        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+        self.minSpin2 = SpinBox(self.centralwidget)
+        self.minSpin2.setEnabled(False)
+        self.minSpin2.setObjectName("minSpin2")
+        self.horizontalLayout_2.addWidget(self.minSpin2)
+        self.label_3 = QtWidgets.QLabel(self.centralwidget)
+        self.label_3.setAlignment(QtCore.Qt.AlignCenter)
+        self.label_3.setObjectName("label_3")
+        self.horizontalLayout_2.addWidget(self.label_3)
+        self.maxSpin2 = SpinBox(self.centralwidget)
+        self.maxSpin2.setEnabled(False)
+        self.maxSpin2.setObjectName("maxSpin2")
+        self.horizontalLayout_2.addWidget(self.maxSpin2)
+        self.gridLayout_2.addLayout(self.horizontalLayout_2, 5, 2, 1, 1)
+        self.horizontalLayout = QtWidgets.QHBoxLayout()
+        self.horizontalLayout.setObjectName("horizontalLayout")
+        self.minSpin1 = SpinBox(self.centralwidget)
+        self.minSpin1.setObjectName("minSpin1")
+        self.horizontalLayout.addWidget(self.minSpin1)
+        self.label_2 = QtWidgets.QLabel(self.centralwidget)
+        self.label_2.setAlignment(QtCore.Qt.AlignCenter)
+        self.label_2.setObjectName("label_2")
+        self.horizontalLayout.addWidget(self.label_2)
+        self.maxSpin1 = SpinBox(self.centralwidget)
+        self.maxSpin1.setObjectName("maxSpin1")
+        self.horizontalLayout.addWidget(self.maxSpin1)
+        self.gridLayout_2.addLayout(self.horizontalLayout, 4, 2, 1, 1)
+        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
+        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
+        self.minSpin3 = SpinBox(self.centralwidget)
+        self.minSpin3.setEnabled(False)
+        self.minSpin3.setObjectName("minSpin3")
+        self.horizontalLayout_3.addWidget(self.minSpin3)
+        self.label_4 = QtWidgets.QLabel(self.centralwidget)
+        self.label_4.setAlignment(QtCore.Qt.AlignCenter)
+        self.label_4.setObjectName("label_4")
+        self.horizontalLayout_3.addWidget(self.label_4)
+        self.maxSpin3 = SpinBox(self.centralwidget)
+        self.maxSpin3.setEnabled(False)
+        self.maxSpin3.setObjectName("maxSpin3")
+        self.horizontalLayout_3.addWidget(self.maxSpin3)
+        self.gridLayout_2.addLayout(self.horizontalLayout_3, 6, 2, 1, 1)
+        self.lutCheck = QtWidgets.QCheckBox(self.centralwidget)
+        self.lutCheck.setObjectName("lutCheck")
+        self.gridLayout_2.addWidget(self.lutCheck, 7, 0, 1, 1)
+        self.alphaCheck = QtWidgets.QCheckBox(self.centralwidget)
+        self.alphaCheck.setObjectName("alphaCheck")
+        self.gridLayout_2.addWidget(self.alphaCheck, 7, 1, 1, 1)
+        self.gradient = GradientWidget(self.centralwidget)
+        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
+        sizePolicy.setHorizontalStretch(0)
+        sizePolicy.setVerticalStretch(0)
+        sizePolicy.setHeightForWidth(self.gradient.sizePolicy().hasHeightForWidth())
+        self.gradient.setSizePolicy(sizePolicy)
+        self.gradient.setObjectName("gradient")
+        self.gridLayout_2.addWidget(self.gradient, 7, 2, 1, 2)
+        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
+        self.gridLayout_2.addItem(spacerItem, 3, 3, 1, 1)
+        self.fpsLabel = QtWidgets.QLabel(self.centralwidget)
+        font = QtGui.QFont()
+        font.setPointSize(12)
+        self.fpsLabel.setFont(font)
+        self.fpsLabel.setAlignment(QtCore.Qt.AlignCenter)
+        self.fpsLabel.setObjectName("fpsLabel")
+        self.gridLayout_2.addWidget(self.fpsLabel, 0, 0, 1, 4)
+        self.rgbCheck = QtWidgets.QCheckBox(self.centralwidget)
+        self.rgbCheck.setObjectName("rgbCheck")
+        self.gridLayout_2.addWidget(self.rgbCheck, 3, 1, 1, 1)
+        self.label_5 = QtWidgets.QLabel(self.centralwidget)
+        self.label_5.setObjectName("label_5")
+        self.gridLayout_2.addWidget(self.label_5, 2, 0, 1, 1)
+        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
+        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
+        self.framesSpin = QtWidgets.QSpinBox(self.centralwidget)
+        self.framesSpin.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
+        self.framesSpin.setProperty("value", 10)
+        self.framesSpin.setObjectName("framesSpin")
+        self.horizontalLayout_4.addWidget(self.framesSpin)
+        self.widthSpin = QtWidgets.QSpinBox(self.centralwidget)
+        self.widthSpin.setButtonSymbols(QtWidgets.QAbstractSpinBox.PlusMinus)
+        self.widthSpin.setMaximum(10000)
+        self.widthSpin.setProperty("value", 512)
+        self.widthSpin.setObjectName("widthSpin")
+        self.horizontalLayout_4.addWidget(self.widthSpin)
+        self.heightSpin = QtWidgets.QSpinBox(self.centralwidget)
+        self.heightSpin.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
+        self.heightSpin.setMaximum(10000)
+        self.heightSpin.setProperty("value", 512)
+        self.heightSpin.setObjectName("heightSpin")
+        self.horizontalLayout_4.addWidget(self.heightSpin)
+        self.gridLayout_2.addLayout(self.horizontalLayout_4, 2, 1, 1, 2)
+        self.sizeLabel = QtWidgets.QLabel(self.centralwidget)
+        self.sizeLabel.setText("")
+        self.sizeLabel.setObjectName("sizeLabel")
+        self.gridLayout_2.addWidget(self.sizeLabel, 2, 3, 1, 1)
+        MainWindow.setCentralWidget(self.centralwidget)
+
+        self.retranslateUi(MainWindow)
+        self.stack.setCurrentIndex(1)
+        QtCore.QMetaObject.connectSlotsByName(MainWindow)
+
+    def retranslateUi(self, MainWindow):
+        _translate = QtCore.QCoreApplication.translate
+        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
+        self.downsampleCheck.setText(_translate("MainWindow", "Auto downsample"))
+        self.scaleCheck.setText(_translate("MainWindow", "Scale Data"))
+        self.rawRadio.setText(_translate("MainWindow", "RawImageWidget"))
+        self.gfxRadio.setText(_translate("MainWindow", "GraphicsView + ImageItem"))
+        self.rawGLRadio.setText(_translate("MainWindow", "RawGLImageWidget"))
+        self.dtypeCombo.setItemText(0, _translate("MainWindow", "uint8"))
+        self.dtypeCombo.setItemText(1, _translate("MainWindow", "uint16"))
+        self.dtypeCombo.setItemText(2, _translate("MainWindow", "float"))
+        self.label.setText(_translate("MainWindow", "Data type"))
+        self.rgbLevelsCheck.setText(_translate("MainWindow", "RGB"))
+        self.label_3.setText(_translate("MainWindow", "<--->"))
+        self.label_2.setText(_translate("MainWindow", "<--->"))
+        self.label_4.setText(_translate("MainWindow", "<--->"))
+        self.lutCheck.setText(_translate("MainWindow", "Use Lookup  Table"))
+        self.alphaCheck.setText(_translate("MainWindow", "alpha"))
+        self.fpsLabel.setText(_translate("MainWindow", "FPS"))
+        self.rgbCheck.setText(_translate("MainWindow", "RGB"))
+        self.label_5.setText(_translate("MainWindow", "Image size"))
+
+from pyqtgraph import GradientWidget, GraphicsView, SpinBox
+from pyqtgraph.widgets.RawImageWidget import RawImageWidget
diff --git a/site-packages/pyqtgraph-0.10.0/examples/VideoTemplate_pyside.py b/site-packages/pyqtgraph-0.10.0/examples/VideoTemplate_pyside.py
new file mode 100644
index 00000000..4af85249
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/VideoTemplate_pyside.py
@@ -0,0 +1,199 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'examples/VideoTemplate.ui'
+#
+# Created: Wed Oct 26 09:21:01 2016
+#      by: pyside-uic 0.2.15 running on PySide 1.2.2
+#
+# WARNING! All changes made in this file will be lost!
+
+from PySide import QtCore, QtGui
+
+class Ui_MainWindow(object):
+    def setupUi(self, MainWindow):
+        MainWindow.setObjectName("MainWindow")
+        MainWindow.resize(695, 798)
+        self.centralwidget = QtGui.QWidget(MainWindow)
+        self.centralwidget.setObjectName("centralwidget")
+        self.gridLayout_2 = QtGui.QGridLayout(self.centralwidget)
+        self.gridLayout_2.setObjectName("gridLayout_2")
+        self.downsampleCheck = QtGui.QCheckBox(self.centralwidget)
+        self.downsampleCheck.setObjectName("downsampleCheck")
+        self.gridLayout_2.addWidget(self.downsampleCheck, 8, 0, 1, 2)
+        self.scaleCheck = QtGui.QCheckBox(self.centralwidget)
+        self.scaleCheck.setObjectName("scaleCheck")
+        self.gridLayout_2.addWidget(self.scaleCheck, 4, 0, 1, 1)
+        self.gridLayout = QtGui.QGridLayout()
+        self.gridLayout.setObjectName("gridLayout")
+        self.rawRadio = QtGui.QRadioButton(self.centralwidget)
+        self.rawRadio.setObjectName("rawRadio")
+        self.gridLayout.addWidget(self.rawRadio, 3, 0, 1, 1)
+        self.gfxRadio = QtGui.QRadioButton(self.centralwidget)
+        self.gfxRadio.setChecked(True)
+        self.gfxRadio.setObjectName("gfxRadio")
+        self.gridLayout.addWidget(self.gfxRadio, 2, 0, 1, 1)
+        self.stack = QtGui.QStackedWidget(self.centralwidget)
+        self.stack.setObjectName("stack")
+        self.page = QtGui.QWidget()
+        self.page.setObjectName("page")
+        self.gridLayout_3 = QtGui.QGridLayout(self.page)
+        self.gridLayout_3.setObjectName("gridLayout_3")
+        self.graphicsView = GraphicsView(self.page)
+        self.graphicsView.setObjectName("graphicsView")
+        self.gridLayout_3.addWidget(self.graphicsView, 0, 0, 1, 1)
+        self.stack.addWidget(self.page)
+        self.page_2 = QtGui.QWidget()
+        self.page_2.setObjectName("page_2")
+        self.gridLayout_4 = QtGui.QGridLayout(self.page_2)
+        self.gridLayout_4.setObjectName("gridLayout_4")
+        self.rawImg = RawImageWidget(self.page_2)
+        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
+        sizePolicy.setHorizontalStretch(0)
+        sizePolicy.setVerticalStretch(0)
+        sizePolicy.setHeightForWidth(self.rawImg.sizePolicy().hasHeightForWidth())
+        self.rawImg.setSizePolicy(sizePolicy)
+        self.rawImg.setObjectName("rawImg")
+        self.gridLayout_4.addWidget(self.rawImg, 0, 0, 1, 1)
+        self.stack.addWidget(self.page_2)
+        self.gridLayout.addWidget(self.stack, 0, 0, 1, 1)
+        self.rawGLRadio = QtGui.QRadioButton(self.centralwidget)
+        self.rawGLRadio.setObjectName("rawGLRadio")
+        self.gridLayout.addWidget(self.rawGLRadio, 4, 0, 1, 1)
+        self.gridLayout_2.addLayout(self.gridLayout, 1, 0, 1, 4)
+        self.dtypeCombo = QtGui.QComboBox(self.centralwidget)
+        self.dtypeCombo.setObjectName("dtypeCombo")
+        self.dtypeCombo.addItem("")
+        self.dtypeCombo.addItem("")
+        self.dtypeCombo.addItem("")
+        self.gridLayout_2.addWidget(self.dtypeCombo, 3, 2, 1, 1)
+        self.label = QtGui.QLabel(self.centralwidget)
+        self.label.setObjectName("label")
+        self.gridLayout_2.addWidget(self.label, 3, 0, 1, 1)
+        self.rgbLevelsCheck = QtGui.QCheckBox(self.centralwidget)
+        self.rgbLevelsCheck.setObjectName("rgbLevelsCheck")
+        self.gridLayout_2.addWidget(self.rgbLevelsCheck, 4, 1, 1, 1)
+        self.horizontalLayout_2 = QtGui.QHBoxLayout()
+        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+        self.minSpin2 = SpinBox(self.centralwidget)
+        self.minSpin2.setEnabled(False)
+        self.minSpin2.setObjectName("minSpin2")
+        self.horizontalLayout_2.addWidget(self.minSpin2)
+        self.label_3 = QtGui.QLabel(self.centralwidget)
+        self.label_3.setAlignment(QtCore.Qt.AlignCenter)
+        self.label_3.setObjectName("label_3")
+        self.horizontalLayout_2.addWidget(self.label_3)
+        self.maxSpin2 = SpinBox(self.centralwidget)
+        self.maxSpin2.setEnabled(False)
+        self.maxSpin2.setObjectName("maxSpin2")
+        self.horizontalLayout_2.addWidget(self.maxSpin2)
+        self.gridLayout_2.addLayout(self.horizontalLayout_2, 5, 2, 1, 1)
+        self.horizontalLayout = QtGui.QHBoxLayout()
+        self.horizontalLayout.setObjectName("horizontalLayout")
+        self.minSpin1 = SpinBox(self.centralwidget)
+        self.minSpin1.setObjectName("minSpin1")
+        self.horizontalLayout.addWidget(self.minSpin1)
+        self.label_2 = QtGui.QLabel(self.centralwidget)
+        self.label_2.setAlignment(QtCore.Qt.AlignCenter)
+        self.label_2.setObjectName("label_2")
+        self.horizontalLayout.addWidget(self.label_2)
+        self.maxSpin1 = SpinBox(self.centralwidget)
+        self.maxSpin1.setObjectName("maxSpin1")
+        self.horizontalLayout.addWidget(self.maxSpin1)
+        self.gridLayout_2.addLayout(self.horizontalLayout, 4, 2, 1, 1)
+        self.horizontalLayout_3 = QtGui.QHBoxLayout()
+        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
+        self.minSpin3 = SpinBox(self.centralwidget)
+        self.minSpin3.setEnabled(False)
+        self.minSpin3.setObjectName("minSpin3")
+        self.horizontalLayout_3.addWidget(self.minSpin3)
+        self.label_4 = QtGui.QLabel(self.centralwidget)
+        self.label_4.setAlignment(QtCore.Qt.AlignCenter)
+        self.label_4.setObjectName("label_4")
+        self.horizontalLayout_3.addWidget(self.label_4)
+        self.maxSpin3 = SpinBox(self.centralwidget)
+        self.maxSpin3.setEnabled(False)
+        self.maxSpin3.setObjectName("maxSpin3")
+        self.horizontalLayout_3.addWidget(self.maxSpin3)
+        self.gridLayout_2.addLayout(self.horizontalLayout_3, 6, 2, 1, 1)
+        self.lutCheck = QtGui.QCheckBox(self.centralwidget)
+        self.lutCheck.setObjectName("lutCheck")
+        self.gridLayout_2.addWidget(self.lutCheck, 7, 0, 1, 1)
+        self.alphaCheck = QtGui.QCheckBox(self.centralwidget)
+        self.alphaCheck.setObjectName("alphaCheck")
+        self.gridLayout_2.addWidget(self.alphaCheck, 7, 1, 1, 1)
+        self.gradient = GradientWidget(self.centralwidget)
+        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
+        sizePolicy.setHorizontalStretch(0)
+        sizePolicy.setVerticalStretch(0)
+        sizePolicy.setHeightForWidth(self.gradient.sizePolicy().hasHeightForWidth())
+        self.gradient.setSizePolicy(sizePolicy)
+        self.gradient.setObjectName("gradient")
+        self.gridLayout_2.addWidget(self.gradient, 7, 2, 1, 2)
+        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
+        self.gridLayout_2.addItem(spacerItem, 3, 3, 1, 1)
+        self.fpsLabel = QtGui.QLabel(self.centralwidget)
+        font = QtGui.QFont()
+        font.setPointSize(12)
+        self.fpsLabel.setFont(font)
+        self.fpsLabel.setAlignment(QtCore.Qt.AlignCenter)
+        self.fpsLabel.setObjectName("fpsLabel")
+        self.gridLayout_2.addWidget(self.fpsLabel, 0, 0, 1, 4)
+        self.rgbCheck = QtGui.QCheckBox(self.centralwidget)
+        self.rgbCheck.setObjectName("rgbCheck")
+        self.gridLayout_2.addWidget(self.rgbCheck, 3, 1, 1, 1)
+        self.label_5 = QtGui.QLabel(self.centralwidget)
+        self.label_5.setObjectName("label_5")
+        self.gridLayout_2.addWidget(self.label_5, 2, 0, 1, 1)
+        self.horizontalLayout_4 = QtGui.QHBoxLayout()
+        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
+        self.framesSpin = QtGui.QSpinBox(self.centralwidget)
+        self.framesSpin.setButtonSymbols(QtGui.QAbstractSpinBox.NoButtons)
+        self.framesSpin.setProperty("value", 10)
+        self.framesSpin.setObjectName("framesSpin")
+        self.horizontalLayout_4.addWidget(self.framesSpin)
+        self.widthSpin = QtGui.QSpinBox(self.centralwidget)
+        self.widthSpin.setButtonSymbols(QtGui.QAbstractSpinBox.PlusMinus)
+        self.widthSpin.setMaximum(10000)
+        self.widthSpin.setProperty("value", 512)
+        self.widthSpin.setObjectName("widthSpin")
+        self.horizontalLayout_4.addWidget(self.widthSpin)
+        self.heightSpin = QtGui.QSpinBox(self.centralwidget)
+        self.heightSpin.setButtonSymbols(QtGui.QAbstractSpinBox.NoButtons)
+        self.heightSpin.setMaximum(10000)
+        self.heightSpin.setProperty("value", 512)
+        self.heightSpin.setObjectName("heightSpin")
+        self.horizontalLayout_4.addWidget(self.heightSpin)
+        self.gridLayout_2.addLayout(self.horizontalLayout_4, 2, 1, 1, 2)
+        self.sizeLabel = QtGui.QLabel(self.centralwidget)
+        self.sizeLabel.setText("")
+        self.sizeLabel.setObjectName("sizeLabel")
+        self.gridLayout_2.addWidget(self.sizeLabel, 2, 3, 1, 1)
+        MainWindow.setCentralWidget(self.centralwidget)
+
+        self.retranslateUi(MainWindow)
+        self.stack.setCurrentIndex(1)
+        QtCore.QMetaObject.connectSlotsByName(MainWindow)
+
+    def retranslateUi(self, MainWindow):
+        MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "MainWindow", None, QtGui.QApplication.UnicodeUTF8))
+        self.downsampleCheck.setText(QtGui.QApplication.translate("MainWindow", "Auto downsample", None, QtGui.QApplication.UnicodeUTF8))
+        self.scaleCheck.setText(QtGui.QApplication.translate("MainWindow", "Scale Data", None, QtGui.QApplication.UnicodeUTF8))
+        self.rawRadio.setText(QtGui.QApplication.translate("MainWindow", "RawImageWidget", None, QtGui.QApplication.UnicodeUTF8))
+        self.gfxRadio.setText(QtGui.QApplication.translate("MainWindow", "GraphicsView + ImageItem", None, QtGui.QApplication.UnicodeUTF8))
+        self.rawGLRadio.setText(QtGui.QApplication.translate("MainWindow", "RawGLImageWidget", None, QtGui.QApplication.UnicodeUTF8))
+        self.dtypeCombo.setItemText(0, QtGui.QApplication.translate("MainWindow", "uint8", None, QtGui.QApplication.UnicodeUTF8))
+        self.dtypeCombo.setItemText(1, QtGui.QApplication.translate("MainWindow", "uint16", None, QtGui.QApplication.UnicodeUTF8))
+        self.dtypeCombo.setItemText(2, QtGui.QApplication.translate("MainWindow", "float", None, QtGui.QApplication.UnicodeUTF8))
+        self.label.setText(QtGui.QApplication.translate("MainWindow", "Data type", None, QtGui.QApplication.UnicodeUTF8))
+        self.rgbLevelsCheck.setText(QtGui.QApplication.translate("MainWindow", "RGB", None, QtGui.QApplication.UnicodeUTF8))
+        self.label_3.setText(QtGui.QApplication.translate("MainWindow", "<--->", None, QtGui.QApplication.UnicodeUTF8))
+        self.label_2.setText(QtGui.QApplication.translate("MainWindow", "<--->", None, QtGui.QApplication.UnicodeUTF8))
+        self.label_4.setText(QtGui.QApplication.translate("MainWindow", "<--->", None, QtGui.QApplication.UnicodeUTF8))
+        self.lutCheck.setText(QtGui.QApplication.translate("MainWindow", "Use Lookup  Table", None, QtGui.QApplication.UnicodeUTF8))
+        self.alphaCheck.setText(QtGui.QApplication.translate("MainWindow", "alpha", None, QtGui.QApplication.UnicodeUTF8))
+        self.fpsLabel.setText(QtGui.QApplication.translate("MainWindow", "FPS", None, QtGui.QApplication.UnicodeUTF8))
+        self.rgbCheck.setText(QtGui.QApplication.translate("MainWindow", "RGB", None, QtGui.QApplication.UnicodeUTF8))
+        self.label_5.setText(QtGui.QApplication.translate("MainWindow", "Image size", None, QtGui.QApplication.UnicodeUTF8))
+
+from pyqtgraph.widgets.RawImageWidget import RawImageWidget
+from pyqtgraph import SpinBox, GradientWidget, GraphicsView
diff --git a/site-packages/pyqtgraph-0.10.0/examples/ViewBox.py b/site-packages/pyqtgraph-0.10.0/examples/ViewBox.py
new file mode 100644
index 00000000..2ba2094c
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/ViewBox.py
@@ -0,0 +1,100 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+"""
+ViewBox is the general-purpose graphical container that allows the user to 
+zoom / pan to inspect any area of a 2D coordinate system. 
+
+This unimaginative example demonstrates the constrution of a ViewBox-based
+plot area with axes, very similar to the way PlotItem is built.
+"""
+
+
+## Add path to library (just for examples; you do not need this)
+import initExample
+
+## This example uses a ViewBox to create a PlotWidget-like interface
+
+import numpy as np
+from pyqtgraph.Qt import QtGui, QtCore
+import pyqtgraph as pg
+
+app = QtGui.QApplication([])
+mw = QtGui.QMainWindow()
+mw.setWindowTitle('pyqtgraph example: ViewBox')
+mw.show()
+mw.resize(800, 600)
+
+gv = pg.GraphicsView()
+mw.setCentralWidget(gv)
+l = QtGui.QGraphicsGridLayout()
+l.setHorizontalSpacing(0)
+l.setVerticalSpacing(0)
+
+vb = pg.ViewBox()
+
+p1 = pg.PlotDataItem()
+vb.addItem(p1)
+
+## Just something to play with inside the ViewBox
+class movableRect(QtGui.QGraphicsRectItem):
+    def __init__(self, *args):
+        QtGui.QGraphicsRectItem.__init__(self, *args)
+        self.setAcceptHoverEvents(True)
+    def hoverEnterEvent(self, ev):
+        self.savedPen = self.pen()
+        self.setPen(pg.mkPen(255, 255, 255))
+        ev.ignore()
+    def hoverLeaveEvent(self, ev):
+        self.setPen(self.savedPen)
+        ev.ignore()
+    def mousePressEvent(self, ev):
+        if ev.button() == QtCore.Qt.LeftButton:
+            ev.accept()
+            self.pressDelta = self.mapToParent(ev.pos()) - self.pos()
+        else:
+            ev.ignore()     
+    def mouseMoveEvent(self, ev):
+        self.setPos(self.mapToParent(ev.pos()) - self.pressDelta)
+        
+rect = movableRect(QtCore.QRectF(0, 0, 1, 1))
+rect.setPen(pg.mkPen(100, 200, 100))
+vb.addItem(rect)
+
+l.addItem(vb, 0, 1)
+gv.centralWidget.setLayout(l)
+
+
+xScale = pg.AxisItem(orientation='bottom', linkView=vb)
+l.addItem(xScale, 1, 1)
+yScale = pg.AxisItem(orientation='left', linkView=vb)
+l.addItem(yScale, 0, 0)
+
+xScale.setLabel(text="<span style='color: #ff0000; font-weight: bold'>X</span> <i>Axis</i>", units="s")
+yScale.setLabel('Y Axis', units='V')
+
+def rand(n):
+    data = np.random.random(n)
+    data[int(n*0.1):int(n*0.13)] += .5
+    data[int(n*0.18)] += 2
+    data[int(n*0.1):int(n*0.13)] *= 5
+    data[int(n*0.18)] *= 20
+    return data, np.arange(n, n+len(data)) / float(n)
+    
+
+def updateData():
+    yd, xd = rand(10000)
+    p1.setData(y=yd, x=xd)
+
+yd, xd = rand(10000)
+updateData()
+vb.autoRange()
+
+t = QtCore.QTimer()
+t.timeout.connect(updateData)
+t.start(50)
+
+## Start Qt event loop unless running in interactive mode.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/ViewBoxFeatures.py b/site-packages/pyqtgraph-0.10.0/examples/ViewBoxFeatures.py
new file mode 100644
index 00000000..6388e41b
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/ViewBoxFeatures.py
@@ -0,0 +1,90 @@
+# -*- coding: utf-8 -*-
+"""
+ViewBox is the general-purpose graphical container that allows the user to 
+zoom / pan to inspect any area of a 2D coordinate system. 
+
+This example demonstrates many of the features ViewBox provides.
+"""
+
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+import numpy as np
+
+x = np.arange(1000, dtype=float)
+y = np.random.normal(size=1000)
+y += 5 * np.sin(x/100) 
+
+win = pg.GraphicsWindow()
+win.setWindowTitle('pyqtgraph example: ____')
+win.resize(1000, 800)
+win.ci.setBorder((50, 50, 100))
+
+sub1 = win.addLayout()
+sub1.addLabel("<b>Standard mouse interaction:</b><br>left-drag to pan, right-drag to zoom.")
+sub1.nextRow()
+v1 = sub1.addViewBox()
+l1 = pg.PlotDataItem(y)
+v1.addItem(l1)
+
+
+sub2 = win.addLayout()
+sub2.addLabel("<b>One-button mouse interaction:</b><br>left-drag zoom to box, wheel to zoom out.")
+sub2.nextRow()
+v2 = sub2.addViewBox()
+v2.setMouseMode(v2.RectMode)
+l2 = pg.PlotDataItem(y)
+v2.addItem(l2)
+
+win.nextRow()
+
+sub3 = win.addLayout()
+sub3.addLabel("<b>Locked aspect ratio when zooming.</b>")
+sub3.nextRow()
+v3 = sub3.addViewBox()
+v3.setAspectLocked(1.0)
+l3 = pg.PlotDataItem(y)
+v3.addItem(l3)
+
+sub4 = win.addLayout()
+sub4.addLabel("<b>View limits:</b><br>prevent panning or zooming past limits.")
+sub4.nextRow()
+v4 = sub4.addViewBox()
+v4.setLimits(xMin=-100, xMax=1100, 
+             minXRange=20, maxXRange=500, 
+             yMin=-10, yMax=10,
+             minYRange=1, maxYRange=10)
+l4 = pg.PlotDataItem(y)
+v4.addItem(l4)
+
+win.nextRow()
+
+sub5 = win.addLayout()
+sub5.addLabel("<b>Linked axes:</b> Data in this plot is always X-aligned to<br>the plot above.")
+sub5.nextRow()
+v5 = sub5.addViewBox()
+v5.setXLink(v3)
+l5 = pg.PlotDataItem(y)
+v5.addItem(l5)
+
+sub6 = win.addLayout()
+sub6.addLabel("<b>Disable mouse:</b> Per-axis control over mouse input.<br>"
+              "<b>Auto-scale-visible:</b> Automatically fit *visible* data within view<br>"
+              "(try panning left-right).")
+sub6.nextRow()
+v6 = sub6.addViewBox()
+v6.setMouseEnabled(x=True, y=False)
+v6.enableAutoRange(x=False, y=True)
+v6.setXRange(300, 450)
+v6.setAutoVisible(x=False, y=True)
+l6 = pg.PlotDataItem(y)
+v6.addItem(l6)
+
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/ViewLimits.py b/site-packages/pyqtgraph-0.10.0/examples/ViewLimits.py
new file mode 100644
index 00000000..c8f0dd21
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/ViewLimits.py
@@ -0,0 +1,15 @@
+import initExample ## Add path to library (just for examples; you do not need this)
+
+from pyqtgraph.Qt import QtGui, QtCore
+import pyqtgraph as pg
+import numpy as np
+
+plt = pg.plot(np.random.normal(size=100), title="View limit example")
+plt.centralWidget.vb.setLimits(xMin=-20, xMax=120, minXRange=5, maxXRange=100)
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if sys.flags.interactive != 1 or not hasattr(QtCore, 'PYQT_VERSION'):
+        pg.QtGui.QApplication.exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/__init__.py b/site-packages/pyqtgraph-0.10.0/examples/__init__.py
new file mode 100644
index 00000000..76a71e14
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/__init__.py
@@ -0,0 +1 @@
+from .__main__ import run
diff --git a/site-packages/pyqtgraph-0.10.0/examples/__main__.py b/site-packages/pyqtgraph-0.10.0/examples/__main__.py
new file mode 100644
index 00000000..03c41119
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/__main__.py
@@ -0,0 +1,143 @@
+import sys, os
+if __name__ == "__main__" and (__package__ is None or __package__==''):
+    parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+    sys.path.insert(0, parent_dir)
+    import examples
+    __package__ = "examples"
+import pyqtgraph as pg
+import subprocess
+from pyqtgraph.python2_3 import basestring
+from pyqtgraph.Qt import QtGui, USE_PYSIDE, USE_PYQT5
+
+
+from .utils import buildFileList, testFile, path, examples
+
+if USE_PYSIDE:
+    from .exampleLoaderTemplate_pyside import Ui_Form
+elif USE_PYQT5:
+    from .exampleLoaderTemplate_pyqt5 import Ui_Form
+else:
+    from .exampleLoaderTemplate_pyqt import Ui_Form
+
+class ExampleLoader(QtGui.QMainWindow):
+    def __init__(self):
+        QtGui.QMainWindow.__init__(self)
+        self.ui = Ui_Form()
+        self.cw = QtGui.QWidget()
+        self.setCentralWidget(self.cw)
+        self.ui.setupUi(self.cw)
+
+        self.codeBtn = QtGui.QPushButton('Run Edited Code')
+        self.codeLayout = QtGui.QGridLayout()
+        self.ui.codeView.setLayout(self.codeLayout)
+        self.codeLayout.addItem(QtGui.QSpacerItem(100,100,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Expanding), 0, 0)
+        self.codeLayout.addWidget(self.codeBtn, 1, 1)
+        self.codeBtn.hide()
+
+        global examples
+        self.itemCache = []
+        self.populateTree(self.ui.exampleTree.invisibleRootItem(), examples)
+        self.ui.exampleTree.expandAll()
+
+        self.resize(1000,500)
+        self.show()
+        self.ui.splitter.setSizes([250,750])
+        self.ui.loadBtn.clicked.connect(self.loadFile)
+        self.ui.exampleTree.currentItemChanged.connect(self.showFile)
+        self.ui.exampleTree.itemDoubleClicked.connect(self.loadFile)
+        self.ui.codeView.textChanged.connect(self.codeEdited)
+        self.codeBtn.clicked.connect(self.runEditedCode)
+
+    def populateTree(self, root, examples):
+        for key, val in examples.items():
+            item = QtGui.QTreeWidgetItem([key])
+            self.itemCache.append(item) # PyQt 4.9.6 no longer keeps references to these wrappers,
+                                        # so we need to make an explicit reference or else the .file
+                                        # attribute will disappear.
+            if isinstance(val, basestring):
+                item.file = val
+            else:
+                self.populateTree(item, val)
+            root.addChild(item)
+
+    def currentFile(self):
+        item = self.ui.exampleTree.currentItem()
+        if hasattr(item, 'file'):
+            global path
+            return os.path.join(path, item.file)
+        return None
+
+    def loadFile(self, edited=False):
+
+        extra = []
+        qtLib = str(self.ui.qtLibCombo.currentText())
+        gfxSys = str(self.ui.graphicsSystemCombo.currentText())
+
+        if qtLib != 'default':
+            extra.append(qtLib.lower())
+        elif gfxSys != 'default':
+            extra.append(gfxSys)
+
+        if edited:
+            path = os.path.abspath(os.path.dirname(__file__))
+            proc = subprocess.Popen([sys.executable, '-'] + extra, stdin=subprocess.PIPE, cwd=path)
+            code = str(self.ui.codeView.toPlainText()).encode('UTF-8')
+            proc.stdin.write(code)
+            proc.stdin.close()
+        else:
+            fn = self.currentFile()
+            if fn is None:
+                return
+            if sys.platform.startswith('win'):
+                os.spawnl(os.P_NOWAIT, sys.executable, '"'+sys.executable+'"', '"' + fn + '"', *extra)
+            else:
+                os.spawnl(os.P_NOWAIT, sys.executable, sys.executable, fn, *extra)
+
+    def showFile(self):
+        fn = self.currentFile()
+        if fn is None:
+            self.ui.codeView.clear()
+            return
+        if os.path.isdir(fn):
+            fn = os.path.join(fn, '__main__.py')
+        text = open(fn).read()
+        self.ui.codeView.setPlainText(text)
+        self.ui.loadedFileLabel.setText(fn)
+        self.codeBtn.hide()
+
+    def codeEdited(self):
+        self.codeBtn.show()
+
+    def runEditedCode(self):
+        self.loadFile(edited=True)
+
+def run():
+    app = QtGui.QApplication([])
+    loader = ExampleLoader()
+
+    app.exec_()
+
+if __name__ == '__main__':
+
+    args = sys.argv[1:]
+        
+    if '--test' in args:
+        # get rid of orphaned cache files first
+        pg.renamePyc(path)
+        
+        files = buildFileList(examples)
+        if '--pyside' in args:
+            lib = 'PySide'
+        elif '--pyqt' in args or '--pyqt4' in args:
+            lib = 'PyQt4'
+        elif '--pyqt5' in args:
+            lib = 'PyQt5'
+        else:
+            lib = ''
+            
+        exe = sys.executable
+        print("Running tests:", lib, sys.executable)
+        for f in files:
+            testFile(f[0], f[1], exe, lib)
+    else: 
+        run()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/beeswarm.py b/site-packages/pyqtgraph-0.10.0/examples/beeswarm.py
new file mode 100644
index 00000000..48ee4236
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/beeswarm.py
@@ -0,0 +1,38 @@
+# -*- coding: utf-8 -*-
+"""
+Example beeswarm / bar chart
+"""
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+import numpy as np
+
+win = pg.plot()
+win.setWindowTitle('pyqtgraph example: beeswarm')
+
+data = np.random.normal(size=(4,20))
+data[0] += 5
+data[1] += 7
+data[2] += 5
+data[3] = 10 + data[3] * 2
+
+## Make bar graph
+#bar = pg.BarGraphItem(x=range(4), height=data.mean(axis=1), width=0.5, brush=0.4)
+#win.addItem(bar)
+
+## add scatter plots on top
+for i in range(4):
+    xvals = pg.pseudoScatter(data[i], spacing=0.4, bidir=True) * 0.2
+    win.plot(x=xvals+i, y=data[i], pen=None, symbol='o', symbolBrush=pg.intColor(i,6,maxValue=128))
+
+## Make error bars
+err = pg.ErrorBarItem(x=np.arange(4), y=data.mean(axis=1), height=data.std(axis=1), beam=0.5, pen={'color':'w', 'width':2})
+win.addItem(err)
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/contextMenu.py b/site-packages/pyqtgraph-0.10.0/examples/contextMenu.py
new file mode 100644
index 00000000..c2c5918d
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/contextMenu.py
@@ -0,0 +1,142 @@
+# -*- coding: utf-8 -*-
+"""
+Demonstrates adding a custom context menu to a GraphicsItem
+and extending the context menu of a ViewBox.
+
+PyQtGraph implements a system that allows each item in a scene to implement its 
+own context menu, and for the menus of its parent items to be automatically 
+displayed as well. 
+
+"""
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+import numpy as np
+
+win = pg.GraphicsWindow()
+win.setWindowTitle('pyqtgraph example: context menu')
+
+
+view = win.addViewBox()
+
+# add two new actions to the ViewBox context menu:
+zoom1 = view.menu.addAction('Zoom to box 1')
+zoom2 = view.menu.addAction('Zoom to box 2')
+
+# define callbacks for these actions
+def zoomTo1():
+    # note that box1 is defined below
+    view.autoRange(items=[box1])
+zoom1.triggered.connect(zoomTo1)
+
+def zoomTo2():
+    # note that box1 is defined below
+    view.autoRange(items=[box2])
+zoom2.triggered.connect(zoomTo2)
+
+
+
+class MenuBox(pg.GraphicsObject):
+    """
+    This class draws a rectangular area. Right-clicking inside the area will
+    raise a custom context menu which also includes the context menus of
+    its parents.    
+    """
+    def __init__(self, name):
+        self.name = name
+        self.pen = pg.mkPen('r')
+        
+        # menu creation is deferred because it is expensive and often
+        # the user will never see the menu anyway.
+        self.menu = None
+        
+        # note that the use of super() is often avoided because Qt does not 
+        # allow to inherit from multiple QObject subclasses.
+        pg.GraphicsObject.__init__(self) 
+
+    
+    # All graphics items must have paint() and boundingRect() defined.
+    def boundingRect(self):
+        return QtCore.QRectF(0, 0, 10, 10)
+    
+    def paint(self, p, *args):
+        p.setPen(self.pen)
+        p.drawRect(self.boundingRect())
+    
+    
+    # On right-click, raise the context menu
+    def mouseClickEvent(self, ev):
+        if ev.button() == QtCore.Qt.RightButton:
+            if self.raiseContextMenu(ev):
+                ev.accept()
+
+    def raiseContextMenu(self, ev):
+        menu = self.getContextMenus()
+        
+        # Let the scene add on to the end of our context menu
+        # (this is optional)
+        menu = self.scene().addParentContextMenus(self, menu, ev)
+        
+        pos = ev.screenPos()
+        menu.popup(QtCore.QPoint(pos.x(), pos.y()))
+        return True
+
+    # This method will be called when this item's _children_ want to raise
+    # a context menu that includes their parents' menus.
+    def getContextMenus(self, event=None):
+        if self.menu is None:
+            self.menu = QtGui.QMenu()
+            self.menu.setTitle(self.name+ " options..")
+            
+            green = QtGui.QAction("Turn green", self.menu)
+            green.triggered.connect(self.setGreen)
+            self.menu.addAction(green)
+            self.menu.green = green
+            
+            blue = QtGui.QAction("Turn blue", self.menu)
+            blue.triggered.connect(self.setBlue)
+            self.menu.addAction(blue)
+            self.menu.green = blue
+            
+            alpha = QtGui.QWidgetAction(self.menu)
+            alphaSlider = QtGui.QSlider()
+            alphaSlider.setOrientation(QtCore.Qt.Horizontal)
+            alphaSlider.setMaximum(255)
+            alphaSlider.setValue(255)
+            alphaSlider.valueChanged.connect(self.setAlpha)
+            alpha.setDefaultWidget(alphaSlider)
+            self.menu.addAction(alpha)
+            self.menu.alpha = alpha
+            self.menu.alphaSlider = alphaSlider
+        return self.menu
+
+    # Define context menu callbacks
+    def setGreen(self):
+        self.pen = pg.mkPen('g')
+        # inform Qt that this item must be redrawn.
+        self.update()
+
+    def setBlue(self):
+        self.pen = pg.mkPen('b')
+        self.update()
+
+    def setAlpha(self, a):
+        self.setOpacity(a/255.)
+
+
+# This box's context menu will include the ViewBox's menu
+box1 = MenuBox("Menu Box #1")
+view.addItem(box1)
+
+# This box's context menu will include both the ViewBox's menu and box1's menu
+box2 = MenuBox("Menu Box #2")
+box2.setParentItem(box1)
+box2.setPos(5, 5)
+box2.scale(0.2, 0.2)
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/crosshair.py b/site-packages/pyqtgraph-0.10.0/examples/crosshair.py
new file mode 100644
index 00000000..076fab49
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/crosshair.py
@@ -0,0 +1,87 @@
+"""
+Demonstrates some customized mouse interaction by drawing a crosshair that follows 
+the mouse.
+
+
+"""
+
+import initExample ## Add path to library (just for examples; you do not need this)
+import numpy as np
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtGui, QtCore
+from pyqtgraph.Point import Point
+
+#generate layout
+app = QtGui.QApplication([])
+win = pg.GraphicsWindow()
+win.setWindowTitle('pyqtgraph example: crosshair')
+label = pg.LabelItem(justify='right')
+win.addItem(label)
+p1 = win.addPlot(row=1, col=0)
+p2 = win.addPlot(row=2, col=0)
+
+region = pg.LinearRegionItem()
+region.setZValue(10)
+# Add the LinearRegionItem to the ViewBox, but tell the ViewBox to exclude this 
+# item when doing auto-range calculations.
+p2.addItem(region, ignoreBounds=True)
+
+#pg.dbg()
+p1.setAutoVisible(y=True)
+
+
+#create numpy arrays
+#make the numbers large to show that the xrange shows data from 10000 to all the way 0
+data1 = 10000 + 15000 * pg.gaussianFilter(np.random.random(size=10000), 10) + 3000 * np.random.random(size=10000)
+data2 = 15000 + 15000 * pg.gaussianFilter(np.random.random(size=10000), 10) + 3000 * np.random.random(size=10000)
+
+p1.plot(data1, pen="r")
+p1.plot(data2, pen="g")
+
+p2.plot(data1, pen="w")
+
+def update():
+    region.setZValue(10)
+    minX, maxX = region.getRegion()
+    p1.setXRange(minX, maxX, padding=0)    
+
+region.sigRegionChanged.connect(update)
+
+def updateRegion(window, viewRange):
+    rgn = viewRange[0]
+    region.setRegion(rgn)
+
+p1.sigRangeChanged.connect(updateRegion)
+
+region.setRegion([1000, 2000])
+
+#cross hair
+vLine = pg.InfiniteLine(angle=90, movable=False)
+hLine = pg.InfiniteLine(angle=0, movable=False)
+p1.addItem(vLine, ignoreBounds=True)
+p1.addItem(hLine, ignoreBounds=True)
+
+
+vb = p1.vb
+
+def mouseMoved(evt):
+    pos = evt[0]  ## using signal proxy turns original arguments into a tuple
+    if p1.sceneBoundingRect().contains(pos):
+        mousePoint = vb.mapSceneToView(pos)
+        index = int(mousePoint.x())
+        if index > 0 and index < len(data1):
+            label.setText("<span style='font-size: 12pt'>x=%0.1f,   <span style='color: red'>y1=%0.1f</span>,   <span style='color: green'>y2=%0.1f</span>" % (mousePoint.x(), data1[index], data2[index]))
+        vLine.setPos(mousePoint.x())
+        hLine.setPos(mousePoint.y())
+
+
+
+proxy = pg.SignalProxy(p1.scene().sigMouseMoved, rateLimit=60, slot=mouseMoved)
+#p1.scene().sigMouseMoved.connect(mouseMoved)
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/customGraphicsItem.py b/site-packages/pyqtgraph-0.10.0/examples/customGraphicsItem.py
new file mode 100644
index 00000000..9723b83a
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/customGraphicsItem.py
@@ -0,0 +1,61 @@
+"""
+Demonstrate creation of a custom graphic (a candlestick plot)
+
+"""
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph import QtCore, QtGui
+
+## Create a subclass of GraphicsObject.
+## The only required methods are paint() and boundingRect() 
+## (see QGraphicsItem documentation)
+class CandlestickItem(pg.GraphicsObject):
+    def __init__(self, data):
+        pg.GraphicsObject.__init__(self)
+        self.data = data  ## data must have fields: time, open, close, min, max
+        self.generatePicture()
+    
+    def generatePicture(self):
+        ## pre-computing a QPicture object allows paint() to run much more quickly, 
+        ## rather than re-drawing the shapes every time.
+        self.picture = QtGui.QPicture()
+        p = QtGui.QPainter(self.picture)
+        p.setPen(pg.mkPen('w'))
+        w = (self.data[1][0] - self.data[0][0]) / 3.
+        for (t, open, close, min, max) in self.data:
+            p.drawLine(QtCore.QPointF(t, min), QtCore.QPointF(t, max))
+            if open > close:
+                p.setBrush(pg.mkBrush('r'))
+            else:
+                p.setBrush(pg.mkBrush('g'))
+            p.drawRect(QtCore.QRectF(t-w, open, w*2, close-open))
+        p.end()
+    
+    def paint(self, p, *args):
+        p.drawPicture(0, 0, self.picture)
+    
+    def boundingRect(self):
+        ## boundingRect _must_ indicate the entire area that will be drawn on
+        ## or else we will get artifacts and possibly crashing.
+        ## (in this case, QPicture does all the work of computing the bouning rect for us)
+        return QtCore.QRectF(self.picture.boundingRect())
+
+data = [  ## fields are (time, open, close, min, max).
+    (1., 10, 13, 5, 15),
+    (2., 13, 17, 9, 20),
+    (3., 17, 14, 11, 23),
+    (4., 14, 15, 5, 19),
+    (5., 15, 9, 8, 22),
+    (6., 9, 15, 8, 16),
+]
+item = CandlestickItem(data)
+plt = pg.plot()
+plt.addItem(item)
+plt.setWindowTitle('pyqtgraph example: customGraphicsItem')
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/customPlot.py b/site-packages/pyqtgraph-0.10.0/examples/customPlot.py
new file mode 100644
index 00000000..b523fd17
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/customPlot.py
@@ -0,0 +1,84 @@
+# -*- coding: utf-8 -*-
+"""
+This example demonstrates the creation of a plot with a customized
+AxisItem and ViewBox. 
+"""
+
+
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+import numpy as np
+import time
+
+class DateAxis(pg.AxisItem):
+    def tickStrings(self, values, scale, spacing):
+        strns = []
+        rng = max(values)-min(values)
+        #if rng < 120:
+        #    return pg.AxisItem.tickStrings(self, values, scale, spacing)
+        if rng < 3600*24:
+            string = '%H:%M:%S'
+            label1 = '%b %d -'
+            label2 = ' %b %d, %Y'
+        elif rng >= 3600*24 and rng < 3600*24*30:
+            string = '%d'
+            label1 = '%b - '
+            label2 = '%b, %Y'
+        elif rng >= 3600*24*30 and rng < 3600*24*30*24:
+            string = '%b'
+            label1 = '%Y -'
+            label2 = ' %Y'
+        elif rng >=3600*24*30*24:
+            string = '%Y'
+            label1 = ''
+            label2 = ''
+        for x in values:
+            try:
+                strns.append(time.strftime(string, time.localtime(x)))
+            except ValueError:  ## Windows can't handle dates before 1970
+                strns.append('')
+        try:
+            label = time.strftime(label1, time.localtime(min(values)))+time.strftime(label2, time.localtime(max(values)))
+        except ValueError:
+            label = ''
+        #self.setLabel(text=label)
+        return strns
+
+class CustomViewBox(pg.ViewBox):
+    def __init__(self, *args, **kwds):
+        pg.ViewBox.__init__(self, *args, **kwds)
+        self.setMouseMode(self.RectMode)
+        
+    ## reimplement right-click to zoom out
+    def mouseClickEvent(self, ev):
+        if ev.button() == QtCore.Qt.RightButton:
+            self.autoRange()
+            
+    def mouseDragEvent(self, ev):
+        if ev.button() == QtCore.Qt.RightButton:
+            ev.ignore()
+        else:
+            pg.ViewBox.mouseDragEvent(self, ev)
+
+
+app = pg.mkQApp()
+
+axis = DateAxis(orientation='bottom')
+vb = CustomViewBox()
+
+pw = pg.PlotWidget(viewBox=vb, axisItems={'bottom': axis}, enableMenu=False, title="PlotItem with custom axis and ViewBox<br>Menu disabled, mouse behavior changed: left-drag to zoom, right-click to reset zoom")
+dates = np.arange(8) * (3600*24*356)
+pw.plot(x=dates, y=[1,6,2,4,3,5,6,8], symbol='o')
+pw.show()
+pw.setWindowTitle('pyqtgraph example: customPlot')
+
+r = pg.PolyLineROI([(0,0), (10, 10)])
+pw.addItem(r)
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/cx_freeze/plotTest.py b/site-packages/pyqtgraph-0.10.0/examples/cx_freeze/plotTest.py
new file mode 100644
index 00000000..1a53a984
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/cx_freeze/plotTest.py
@@ -0,0 +1,20 @@
+import sys
+from PyQt4 import QtGui
+import pyqtgraph as pg
+from pyqtgraph.graphicsItems import TextItem
+# For packages that require scipy, these may be needed: 
+#   from scipy.stats import futil
+#   from scipy.sparse.csgraph import _validation
+
+from pyqtgraph import setConfigOption
+pg.setConfigOption('background','w')
+pg.setConfigOption('foreground','k')
+app = QtGui.QApplication(sys.argv)
+
+pw = pg.plot(x = [0, 1, 2, 4], y = [4, 5, 9, 6])
+pw.showGrid(x=True,y=True)
+text = pg.TextItem(html='<div style="text-align: center"><span style="color: #000000;"> %s</span></div>' % "here",anchor=(0.0, 0.0)) 
+text.setPos(1.0, 5.0)
+pw.addItem(text)
+status = app.exec_()
+sys.exit(status)
diff --git a/site-packages/pyqtgraph-0.10.0/examples/cx_freeze/setup.py b/site-packages/pyqtgraph-0.10.0/examples/cx_freeze/setup.py
new file mode 100644
index 00000000..bdace733
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/cx_freeze/setup.py
@@ -0,0 +1,36 @@
+# Build with `python setup.py build_exe`
+from cx_Freeze import setup, Executable
+
+import shutil
+from glob import glob
+# Remove the build folder
+shutil.rmtree("build", ignore_errors=True)
+shutil.rmtree("dist", ignore_errors=True)
+import sys
+
+includes = ['PyQt4.QtCore', 'PyQt4.QtGui', 'sip', 'pyqtgraph.graphicsItems',
+            'numpy', 'atexit']
+excludes = ['cvxopt','_gtkagg', '_tkagg', 'bsddb', 'curses', 'email', 'pywin.debugger',
+    'pywin.debugger.dbgcon', 'pywin.dialogs', 'tcl','tables',
+    'Tkconstants', 'Tkinter', 'zmq','PySide','pysideuic','scipy','matplotlib']
+
+if sys.version[0] == '2':
+    # causes syntax error on py2
+    excludes.append('PyQt4.uic.port_v3')
+
+base = None
+if sys.platform == "win32":
+    base = "Win32GUI"
+
+build_exe_options = {'excludes': excludes,
+    'includes':includes, 'include_msvcr':True,
+    'compressed':True, 'copy_dependent_files':True, 'create_shared_zip':True,
+    'include_in_shared_zip':True, 'optimize':2}
+
+setup(name = "cx_freeze plot test",
+      version = "0.1",
+      description = "cx_freeze plot test",
+      options = {"build_exe": build_exe_options},
+      executables = [Executable("plotTest.py", base=base)])
+
+
diff --git a/site-packages/pyqtgraph-0.10.0/examples/designerExample.py b/site-packages/pyqtgraph-0.10.0/examples/designerExample.py
new file mode 100644
index 00000000..812eff6b
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/designerExample.py
@@ -0,0 +1,46 @@
+# -*- coding: utf-8 -*-
+"""
+Simple example of loading UI template created with Qt Designer.
+
+This example uses uic.loadUiType to parse and load the ui at runtime. It is also
+possible to pre-compile the .ui file using pyuic (see VideoSpeedTest and 
+ScatterPlotSpeedTest examples; these .ui files have been compiled with the
+tools/rebuildUi.py script).
+"""
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+import numpy as np
+import os
+
+pg.mkQApp()
+
+## Define main window class from template
+path = os.path.dirname(os.path.abspath(__file__))
+uiFile = os.path.join(path, 'designerExample.ui')
+WindowTemplate, TemplateBaseClass = pg.Qt.loadUiType(uiFile)
+
+class MainWindow(TemplateBaseClass):  
+    def __init__(self):
+        TemplateBaseClass.__init__(self)
+        self.setWindowTitle('pyqtgraph example: Qt Designer')
+        
+        # Create the main window
+        self.ui = WindowTemplate()
+        self.ui.setupUi(self)
+        self.ui.plotBtn.clicked.connect(self.plot)
+        
+        self.show()
+        
+    def plot(self):
+        self.ui.plot.plot(np.random.normal(size=100), clear=True)
+        
+win = MainWindow()
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/designerExample.ui b/site-packages/pyqtgraph-0.10.0/examples/designerExample.ui
new file mode 100644
index 00000000..41d06089
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/designerExample.ui
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>Form</class>
+ <widget class="QWidget" name="Form">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>400</width>
+    <height>300</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>Form</string>
+  </property>
+  <layout class="QGridLayout" name="gridLayout">
+   <item row="0" column="0">
+    <widget class="QPushButton" name="plotBtn">
+     <property name="text">
+      <string>Plot!</string>
+     </property>
+    </widget>
+   </item>
+   <item row="1" column="0">
+    <widget class="PlotWidget" name="plot"/>
+   </item>
+  </layout>
+ </widget>
+ <customwidgets>
+  <customwidget>
+   <class>PlotWidget</class>
+   <extends>QGraphicsView</extends>
+   <header>pyqtgraph</header>
+  </customwidget>
+ </customwidgets>
+ <resources/>
+ <connections/>
+</ui>
diff --git a/site-packages/pyqtgraph-0.10.0/examples/dockarea.py b/site-packages/pyqtgraph-0.10.0/examples/dockarea.py
new file mode 100644
index 00000000..9cc79f1b
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/dockarea.py
@@ -0,0 +1,118 @@
+# -*- coding: utf-8 -*-
+"""
+This example demonstrates the use of pyqtgraph's dock widget system.
+
+The dockarea system allows the design of user interfaces which can be rearranged by
+the user at runtime. Docks can be moved, resized, stacked, and torn out of the main
+window. This is similar in principle to the docking system built into Qt, but 
+offers a more deterministic dock placement API (in Qt it is very difficult to 
+programatically generate complex dock arrangements). Additionally, Qt's docks are 
+designed to be used as small panels around the outer edge of a window. Pyqtgraph's 
+docks were created with the notion that the entire window (or any portion of it) 
+would consist of dockable components.
+
+"""
+
+
+
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+import pyqtgraph.console
+import numpy as np
+
+from pyqtgraph.dockarea import *
+
+app = QtGui.QApplication([])
+win = QtGui.QMainWindow()
+area = DockArea()
+win.setCentralWidget(area)
+win.resize(1000,500)
+win.setWindowTitle('pyqtgraph example: dockarea')
+
+## Create docks, place them into the window one at a time.
+## Note that size arguments are only a suggestion; docks will still have to
+## fill the entire dock area and obey the limits of their internal widgets.
+d1 = Dock("Dock1", size=(1, 1))     ## give this dock the minimum possible size
+d2 = Dock("Dock2 - Console", size=(500,300), closable=True)
+d3 = Dock("Dock3", size=(500,400))
+d4 = Dock("Dock4 (tabbed) - Plot", size=(500,200))
+d5 = Dock("Dock5 - Image", size=(500,200))
+d6 = Dock("Dock6 (tabbed) - Plot", size=(500,200))
+area.addDock(d1, 'left')      ## place d1 at left edge of dock area (it will fill the whole space since there are no other docks yet)
+area.addDock(d2, 'right')     ## place d2 at right edge of dock area
+area.addDock(d3, 'bottom', d1)## place d3 at bottom edge of d1
+area.addDock(d4, 'right')     ## place d4 at right edge of dock area
+area.addDock(d5, 'left', d1)  ## place d5 at left edge of d1
+area.addDock(d6, 'top', d4)   ## place d5 at top edge of d4
+
+## Test ability to move docks programatically after they have been placed
+area.moveDock(d4, 'top', d2)     ## move d4 to top edge of d2
+area.moveDock(d6, 'above', d4)   ## move d6 to stack on top of d4
+area.moveDock(d5, 'top', d2)     ## move d5 to top edge of d2
+
+
+## Add widgets into each dock
+
+## first dock gets save/restore buttons
+w1 = pg.LayoutWidget()
+label = QtGui.QLabel(""" -- DockArea Example -- 
+This window has 6 Dock widgets in it. Each dock can be dragged
+by its title bar to occupy a different space within the window 
+but note that one dock has its title bar hidden). Additionally,
+the borders between docks may be dragged to resize. Docks that are dragged on top
+of one another are stacked in a tabbed layout. Double-click a dock title
+bar to place it in its own window.
+""")
+saveBtn = QtGui.QPushButton('Save dock state')
+restoreBtn = QtGui.QPushButton('Restore dock state')
+restoreBtn.setEnabled(False)
+w1.addWidget(label, row=0, col=0)
+w1.addWidget(saveBtn, row=1, col=0)
+w1.addWidget(restoreBtn, row=2, col=0)
+d1.addWidget(w1)
+state = None
+def save():
+    global state
+    state = area.saveState()
+    restoreBtn.setEnabled(True)
+def load():
+    global state
+    area.restoreState(state)
+saveBtn.clicked.connect(save)
+restoreBtn.clicked.connect(load)
+
+
+w2 = pg.console.ConsoleWidget()
+d2.addWidget(w2)
+
+## Hide title bar on dock 3
+d3.hideTitleBar()
+w3 = pg.PlotWidget(title="Plot inside dock with no title bar")
+w3.plot(np.random.normal(size=100))
+d3.addWidget(w3)
+
+w4 = pg.PlotWidget(title="Dock 4 plot")
+w4.plot(np.random.normal(size=100))
+d4.addWidget(w4)
+
+w5 = pg.ImageView()
+w5.setImage(np.random.normal(size=(100,100)))
+d5.addWidget(w5)
+
+w6 = pg.PlotWidget(title="Dock 6 plot")
+w6.plot(np.random.normal(size=100))
+d6.addWidget(w6)
+
+
+
+win.show()
+
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/exampleLoaderTemplate.ui b/site-packages/pyqtgraph-0.10.0/examples/exampleLoaderTemplate.ui
new file mode 100644
index 00000000..a1d6bc19
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/exampleLoaderTemplate.ui
@@ -0,0 +1,142 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>Form</class>
+ <widget class="QWidget" name="Form">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>846</width>
+    <height>552</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>Form</string>
+  </property>
+  <layout class="QGridLayout" name="gridLayout_2">
+   <item row="0" column="0">
+    <widget class="QSplitter" name="splitter">
+     <property name="orientation">
+      <enum>Qt::Horizontal</enum>
+     </property>
+     <widget class="QWidget" name="">
+      <layout class="QGridLayout" name="gridLayout">
+       <item row="0" column="0" colspan="2">
+        <widget class="QTreeWidget" name="exampleTree">
+         <attribute name="headerVisible">
+          <bool>false</bool>
+         </attribute>
+         <column>
+          <property name="text">
+           <string notr="true">1</string>
+          </property>
+         </column>
+        </widget>
+       </item>
+       <item row="2" column="1">
+        <widget class="QComboBox" name="graphicsSystemCombo">
+         <item>
+          <property name="text">
+           <string>default</string>
+          </property>
+         </item>
+         <item>
+          <property name="text">
+           <string>native</string>
+          </property>
+         </item>
+         <item>
+          <property name="text">
+           <string>raster</string>
+          </property>
+         </item>
+         <item>
+          <property name="text">
+           <string>opengl</string>
+          </property>
+         </item>
+        </widget>
+       </item>
+       <item row="1" column="1">
+        <widget class="QComboBox" name="qtLibCombo">
+         <item>
+          <property name="text">
+           <string>default</string>
+          </property>
+         </item>
+         <item>
+          <property name="text">
+           <string>PyQt4</string>
+          </property>
+         </item>
+         <item>
+          <property name="text">
+           <string>PySide</string>
+          </property>
+         </item>
+         <item>
+          <property name="text">
+           <string>PyQt5</string>
+          </property>
+         </item>
+        </widget>
+       </item>
+       <item row="2" column="0">
+        <widget class="QLabel" name="label_2">
+         <property name="text">
+          <string>Graphics System:</string>
+         </property>
+        </widget>
+       </item>
+       <item row="1" column="0">
+        <widget class="QLabel" name="label">
+         <property name="text">
+          <string>Qt Library:</string>
+         </property>
+        </widget>
+       </item>
+       <item row="3" column="1">
+        <widget class="QPushButton" name="loadBtn">
+         <property name="text">
+          <string>Run Example</string>
+         </property>
+        </widget>
+       </item>
+      </layout>
+     </widget>
+     <widget class="QWidget" name="">
+      <layout class="QVBoxLayout" name="verticalLayout">
+       <item>
+        <widget class="QLabel" name="loadedFileLabel">
+         <property name="font">
+          <font>
+           <weight>75</weight>
+           <bold>true</bold>
+          </font>
+         </property>
+         <property name="text">
+          <string/>
+         </property>
+         <property name="alignment">
+          <set>Qt::AlignCenter</set>
+         </property>
+        </widget>
+       </item>
+       <item>
+        <widget class="QPlainTextEdit" name="codeView">
+         <property name="font">
+          <font>
+           <family>FreeMono</family>
+          </font>
+         </property>
+        </widget>
+       </item>
+      </layout>
+     </widget>
+    </widget>
+   </item>
+  </layout>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>
diff --git a/site-packages/pyqtgraph-0.10.0/examples/exampleLoaderTemplate_pyqt.py b/site-packages/pyqtgraph-0.10.0/examples/exampleLoaderTemplate_pyqt.py
new file mode 100644
index 00000000..708839f5
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/exampleLoaderTemplate_pyqt.py
@@ -0,0 +1,106 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'exampleLoaderTemplate.ui'
+#
+# Created: Sat Feb 28 10:30:29 2015
+#      by: PyQt4 UI code generator 4.10.4
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt4 import QtCore, QtGui
+
+try:
+    _fromUtf8 = QtCore.QString.fromUtf8
+except AttributeError:
+    def _fromUtf8(s):
+        return s
+
+try:
+    _encoding = QtGui.QApplication.UnicodeUTF8
+    def _translate(context, text, disambig):
+        return QtGui.QApplication.translate(context, text, disambig, _encoding)
+except AttributeError:
+    def _translate(context, text, disambig):
+        return QtGui.QApplication.translate(context, text, disambig)
+
+class Ui_Form(object):
+    def setupUi(self, Form):
+        Form.setObjectName(_fromUtf8("Form"))
+        Form.resize(846, 552)
+        self.gridLayout_2 = QtGui.QGridLayout(Form)
+        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
+        self.splitter = QtGui.QSplitter(Form)
+        self.splitter.setOrientation(QtCore.Qt.Horizontal)
+        self.splitter.setObjectName(_fromUtf8("splitter"))
+        self.widget = QtGui.QWidget(self.splitter)
+        self.widget.setObjectName(_fromUtf8("widget"))
+        self.gridLayout = QtGui.QGridLayout(self.widget)
+        self.gridLayout.setMargin(0)
+        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
+        self.exampleTree = QtGui.QTreeWidget(self.widget)
+        self.exampleTree.setObjectName(_fromUtf8("exampleTree"))
+        self.exampleTree.headerItem().setText(0, _fromUtf8("1"))
+        self.exampleTree.header().setVisible(False)
+        self.gridLayout.addWidget(self.exampleTree, 0, 0, 1, 2)
+        self.graphicsSystemCombo = QtGui.QComboBox(self.widget)
+        self.graphicsSystemCombo.setObjectName(_fromUtf8("graphicsSystemCombo"))
+        self.graphicsSystemCombo.addItem(_fromUtf8(""))
+        self.graphicsSystemCombo.addItem(_fromUtf8(""))
+        self.graphicsSystemCombo.addItem(_fromUtf8(""))
+        self.graphicsSystemCombo.addItem(_fromUtf8(""))
+        self.gridLayout.addWidget(self.graphicsSystemCombo, 2, 1, 1, 1)
+        self.qtLibCombo = QtGui.QComboBox(self.widget)
+        self.qtLibCombo.setObjectName(_fromUtf8("qtLibCombo"))
+        self.qtLibCombo.addItem(_fromUtf8(""))
+        self.qtLibCombo.addItem(_fromUtf8(""))
+        self.qtLibCombo.addItem(_fromUtf8(""))
+        self.qtLibCombo.addItem(_fromUtf8(""))
+        self.gridLayout.addWidget(self.qtLibCombo, 1, 1, 1, 1)
+        self.label_2 = QtGui.QLabel(self.widget)
+        self.label_2.setObjectName(_fromUtf8("label_2"))
+        self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1)
+        self.label = QtGui.QLabel(self.widget)
+        self.label.setObjectName(_fromUtf8("label"))
+        self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
+        self.loadBtn = QtGui.QPushButton(self.widget)
+        self.loadBtn.setObjectName(_fromUtf8("loadBtn"))
+        self.gridLayout.addWidget(self.loadBtn, 3, 1, 1, 1)
+        self.widget1 = QtGui.QWidget(self.splitter)
+        self.widget1.setObjectName(_fromUtf8("widget1"))
+        self.verticalLayout = QtGui.QVBoxLayout(self.widget1)
+        self.verticalLayout.setMargin(0)
+        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
+        self.loadedFileLabel = QtGui.QLabel(self.widget1)
+        font = QtGui.QFont()
+        font.setBold(True)
+        font.setWeight(75)
+        self.loadedFileLabel.setFont(font)
+        self.loadedFileLabel.setText(_fromUtf8(""))
+        self.loadedFileLabel.setAlignment(QtCore.Qt.AlignCenter)
+        self.loadedFileLabel.setObjectName(_fromUtf8("loadedFileLabel"))
+        self.verticalLayout.addWidget(self.loadedFileLabel)
+        self.codeView = QtGui.QPlainTextEdit(self.widget1)
+        font = QtGui.QFont()
+        font.setFamily(_fromUtf8("FreeMono"))
+        self.codeView.setFont(font)
+        self.codeView.setObjectName(_fromUtf8("codeView"))
+        self.verticalLayout.addWidget(self.codeView)
+        self.gridLayout_2.addWidget(self.splitter, 0, 0, 1, 1)
+
+        self.retranslateUi(Form)
+        QtCore.QMetaObject.connectSlotsByName(Form)
+
+    def retranslateUi(self, Form):
+        Form.setWindowTitle(_translate("Form", "Form", None))
+        self.graphicsSystemCombo.setItemText(0, _translate("Form", "default", None))
+        self.graphicsSystemCombo.setItemText(1, _translate("Form", "native", None))
+        self.graphicsSystemCombo.setItemText(2, _translate("Form", "raster", None))
+        self.graphicsSystemCombo.setItemText(3, _translate("Form", "opengl", None))
+        self.qtLibCombo.setItemText(0, _translate("Form", "default", None))
+        self.qtLibCombo.setItemText(1, _translate("Form", "PyQt4", None))
+        self.qtLibCombo.setItemText(2, _translate("Form", "PySide", None))
+        self.qtLibCombo.setItemText(3, _translate("Form", "PyQt5", None))
+        self.label_2.setText(_translate("Form", "Graphics System:", None))
+        self.label.setText(_translate("Form", "Qt Library:", None))
+        self.loadBtn.setText(_translate("Form", "Run Example", None))
+
diff --git a/site-packages/pyqtgraph-0.10.0/examples/exampleLoaderTemplate_pyqt5.py b/site-packages/pyqtgraph-0.10.0/examples/exampleLoaderTemplate_pyqt5.py
new file mode 100644
index 00000000..29c00325
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/exampleLoaderTemplate_pyqt5.py
@@ -0,0 +1,93 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'exampleLoaderTemplate.ui'
+#
+# Created: Sat Feb 28 10:28:50 2015
+#      by: PyQt5 UI code generator 5.2.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+class Ui_Form(object):
+    def setupUi(self, Form):
+        Form.setObjectName("Form")
+        Form.resize(846, 552)
+        self.gridLayout_2 = QtWidgets.QGridLayout(Form)
+        self.gridLayout_2.setObjectName("gridLayout_2")
+        self.splitter = QtWidgets.QSplitter(Form)
+        self.splitter.setOrientation(QtCore.Qt.Horizontal)
+        self.splitter.setObjectName("splitter")
+        self.widget = QtWidgets.QWidget(self.splitter)
+        self.widget.setObjectName("widget")
+        self.gridLayout = QtWidgets.QGridLayout(self.widget)
+        self.gridLayout.setContentsMargins(0, 0, 0, 0)
+        self.gridLayout.setObjectName("gridLayout")
+        self.exampleTree = QtWidgets.QTreeWidget(self.widget)
+        self.exampleTree.setObjectName("exampleTree")
+        self.exampleTree.headerItem().setText(0, "1")
+        self.exampleTree.header().setVisible(False)
+        self.gridLayout.addWidget(self.exampleTree, 0, 0, 1, 2)
+        self.graphicsSystemCombo = QtWidgets.QComboBox(self.widget)
+        self.graphicsSystemCombo.setObjectName("graphicsSystemCombo")
+        self.graphicsSystemCombo.addItem("")
+        self.graphicsSystemCombo.addItem("")
+        self.graphicsSystemCombo.addItem("")
+        self.graphicsSystemCombo.addItem("")
+        self.gridLayout.addWidget(self.graphicsSystemCombo, 2, 1, 1, 1)
+        self.qtLibCombo = QtWidgets.QComboBox(self.widget)
+        self.qtLibCombo.setObjectName("qtLibCombo")
+        self.qtLibCombo.addItem("")
+        self.qtLibCombo.addItem("")
+        self.qtLibCombo.addItem("")
+        self.qtLibCombo.addItem("")
+        self.gridLayout.addWidget(self.qtLibCombo, 1, 1, 1, 1)
+        self.label_2 = QtWidgets.QLabel(self.widget)
+        self.label_2.setObjectName("label_2")
+        self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1)
+        self.label = QtWidgets.QLabel(self.widget)
+        self.label.setObjectName("label")
+        self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
+        self.loadBtn = QtWidgets.QPushButton(self.widget)
+        self.loadBtn.setObjectName("loadBtn")
+        self.gridLayout.addWidget(self.loadBtn, 3, 1, 1, 1)
+        self.widget1 = QtWidgets.QWidget(self.splitter)
+        self.widget1.setObjectName("widget1")
+        self.verticalLayout = QtWidgets.QVBoxLayout(self.widget1)
+        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
+        self.verticalLayout.setObjectName("verticalLayout")
+        self.loadedFileLabel = QtWidgets.QLabel(self.widget1)
+        font = QtGui.QFont()
+        font.setBold(True)
+        font.setWeight(75)
+        self.loadedFileLabel.setFont(font)
+        self.loadedFileLabel.setText("")
+        self.loadedFileLabel.setAlignment(QtCore.Qt.AlignCenter)
+        self.loadedFileLabel.setObjectName("loadedFileLabel")
+        self.verticalLayout.addWidget(self.loadedFileLabel)
+        self.codeView = QtWidgets.QPlainTextEdit(self.widget1)
+        font = QtGui.QFont()
+        font.setFamily("FreeMono")
+        self.codeView.setFont(font)
+        self.codeView.setObjectName("codeView")
+        self.verticalLayout.addWidget(self.codeView)
+        self.gridLayout_2.addWidget(self.splitter, 0, 0, 1, 1)
+
+        self.retranslateUi(Form)
+        QtCore.QMetaObject.connectSlotsByName(Form)
+
+    def retranslateUi(self, Form):
+        _translate = QtCore.QCoreApplication.translate
+        Form.setWindowTitle(_translate("Form", "Form"))
+        self.graphicsSystemCombo.setItemText(0, _translate("Form", "default"))
+        self.graphicsSystemCombo.setItemText(1, _translate("Form", "native"))
+        self.graphicsSystemCombo.setItemText(2, _translate("Form", "raster"))
+        self.graphicsSystemCombo.setItemText(3, _translate("Form", "opengl"))
+        self.qtLibCombo.setItemText(0, _translate("Form", "default"))
+        self.qtLibCombo.setItemText(1, _translate("Form", "PyQt4"))
+        self.qtLibCombo.setItemText(2, _translate("Form", "PySide"))
+        self.qtLibCombo.setItemText(3, _translate("Form", "PyQt5"))
+        self.label_2.setText(_translate("Form", "Graphics System:"))
+        self.label.setText(_translate("Form", "Qt Library:"))
+        self.loadBtn.setText(_translate("Form", "Run Example"))
+
diff --git a/site-packages/pyqtgraph-0.10.0/examples/exampleLoaderTemplate_pyside.py b/site-packages/pyqtgraph-0.10.0/examples/exampleLoaderTemplate_pyside.py
new file mode 100644
index 00000000..61f1d09f
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/exampleLoaderTemplate_pyside.py
@@ -0,0 +1,92 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'exampleLoaderTemplate.ui'
+#
+# Created: Sat Feb 28 10:31:57 2015
+#      by: pyside-uic 0.2.15 running on PySide 1.2.1
+#
+# WARNING! All changes made in this file will be lost!
+
+from PySide import QtCore, QtGui
+
+class Ui_Form(object):
+    def setupUi(self, Form):
+        Form.setObjectName("Form")
+        Form.resize(846, 552)
+        self.gridLayout_2 = QtGui.QGridLayout(Form)
+        self.gridLayout_2.setObjectName("gridLayout_2")
+        self.splitter = QtGui.QSplitter(Form)
+        self.splitter.setOrientation(QtCore.Qt.Horizontal)
+        self.splitter.setObjectName("splitter")
+        self.widget = QtGui.QWidget(self.splitter)
+        self.widget.setObjectName("widget")
+        self.gridLayout = QtGui.QGridLayout(self.widget)
+        self.gridLayout.setContentsMargins(0, 0, 0, 0)
+        self.gridLayout.setObjectName("gridLayout")
+        self.exampleTree = QtGui.QTreeWidget(self.widget)
+        self.exampleTree.setObjectName("exampleTree")
+        self.exampleTree.headerItem().setText(0, "1")
+        self.exampleTree.header().setVisible(False)
+        self.gridLayout.addWidget(self.exampleTree, 0, 0, 1, 2)
+        self.graphicsSystemCombo = QtGui.QComboBox(self.widget)
+        self.graphicsSystemCombo.setObjectName("graphicsSystemCombo")
+        self.graphicsSystemCombo.addItem("")
+        self.graphicsSystemCombo.addItem("")
+        self.graphicsSystemCombo.addItem("")
+        self.graphicsSystemCombo.addItem("")
+        self.gridLayout.addWidget(self.graphicsSystemCombo, 2, 1, 1, 1)
+        self.qtLibCombo = QtGui.QComboBox(self.widget)
+        self.qtLibCombo.setObjectName("qtLibCombo")
+        self.qtLibCombo.addItem("")
+        self.qtLibCombo.addItem("")
+        self.qtLibCombo.addItem("")
+        self.qtLibCombo.addItem("")
+        self.gridLayout.addWidget(self.qtLibCombo, 1, 1, 1, 1)
+        self.label_2 = QtGui.QLabel(self.widget)
+        self.label_2.setObjectName("label_2")
+        self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1)
+        self.label = QtGui.QLabel(self.widget)
+        self.label.setObjectName("label")
+        self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
+        self.loadBtn = QtGui.QPushButton(self.widget)
+        self.loadBtn.setObjectName("loadBtn")
+        self.gridLayout.addWidget(self.loadBtn, 3, 1, 1, 1)
+        self.widget1 = QtGui.QWidget(self.splitter)
+        self.widget1.setObjectName("widget1")
+        self.verticalLayout = QtGui.QVBoxLayout(self.widget1)
+        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
+        self.verticalLayout.setObjectName("verticalLayout")
+        self.loadedFileLabel = QtGui.QLabel(self.widget1)
+        font = QtGui.QFont()
+        font.setWeight(75)
+        font.setBold(True)
+        self.loadedFileLabel.setFont(font)
+        self.loadedFileLabel.setText("")
+        self.loadedFileLabel.setAlignment(QtCore.Qt.AlignCenter)
+        self.loadedFileLabel.setObjectName("loadedFileLabel")
+        self.verticalLayout.addWidget(self.loadedFileLabel)
+        self.codeView = QtGui.QPlainTextEdit(self.widget1)
+        font = QtGui.QFont()
+        font.setFamily("FreeMono")
+        self.codeView.setFont(font)
+        self.codeView.setObjectName("codeView")
+        self.verticalLayout.addWidget(self.codeView)
+        self.gridLayout_2.addWidget(self.splitter, 0, 0, 1, 1)
+
+        self.retranslateUi(Form)
+        QtCore.QMetaObject.connectSlotsByName(Form)
+
+    def retranslateUi(self, Form):
+        Form.setWindowTitle(QtGui.QApplication.translate("Form", "Form", None, QtGui.QApplication.UnicodeUTF8))
+        self.graphicsSystemCombo.setItemText(0, QtGui.QApplication.translate("Form", "default", None, QtGui.QApplication.UnicodeUTF8))
+        self.graphicsSystemCombo.setItemText(1, QtGui.QApplication.translate("Form", "native", None, QtGui.QApplication.UnicodeUTF8))
+        self.graphicsSystemCombo.setItemText(2, QtGui.QApplication.translate("Form", "raster", None, QtGui.QApplication.UnicodeUTF8))
+        self.graphicsSystemCombo.setItemText(3, QtGui.QApplication.translate("Form", "opengl", None, QtGui.QApplication.UnicodeUTF8))
+        self.qtLibCombo.setItemText(0, QtGui.QApplication.translate("Form", "default", None, QtGui.QApplication.UnicodeUTF8))
+        self.qtLibCombo.setItemText(1, QtGui.QApplication.translate("Form", "PyQt4", None, QtGui.QApplication.UnicodeUTF8))
+        self.qtLibCombo.setItemText(2, QtGui.QApplication.translate("Form", "PySide", None, QtGui.QApplication.UnicodeUTF8))
+        self.qtLibCombo.setItemText(3, QtGui.QApplication.translate("Form", "PyQt5", None, QtGui.QApplication.UnicodeUTF8))
+        self.label_2.setText(QtGui.QApplication.translate("Form", "Graphics System:", None, QtGui.QApplication.UnicodeUTF8))
+        self.label.setText(QtGui.QApplication.translate("Form", "Qt Library:", None, QtGui.QApplication.UnicodeUTF8))
+        self.loadBtn.setText(QtGui.QApplication.translate("Form", "Run Example", None, QtGui.QApplication.UnicodeUTF8))
+
diff --git a/site-packages/pyqtgraph-0.10.0/examples/hdf5.py b/site-packages/pyqtgraph-0.10.0/examples/hdf5.py
new file mode 100644
index 00000000..3cd5de29
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/hdf5.py
@@ -0,0 +1,155 @@
+# -*- coding: utf-8 -*-
+"""
+In this example we create a subclass of PlotCurveItem for displaying a very large 
+data set from an HDF5 file that does not fit in memory. 
+
+The basic approach is to override PlotCurveItem.viewRangeChanged such that it
+reads only the portion of the HDF5 data that is necessary to display the visible
+portion of the data. This is further downsampled to reduce the number of samples 
+being displayed.
+
+A more clever implementation of this class would employ some kind of caching 
+to avoid re-reading the entire visible waveform at every update.
+"""
+
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import sys, os
+import numpy as np
+import h5py
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+
+pg.mkQApp()
+
+
+plt = pg.plot()
+plt.setWindowTitle('pyqtgraph example: HDF5 big data')
+plt.enableAutoRange(False, False)
+plt.setXRange(0, 500)
+
+class HDF5Plot(pg.PlotCurveItem):
+    def __init__(self, *args, **kwds):
+        self.hdf5 = None
+        self.limit = 10000 # maximum number of samples to be plotted
+        pg.PlotCurveItem.__init__(self, *args, **kwds)
+        
+    def setHDF5(self, data):
+        self.hdf5 = data
+        self.updateHDF5Plot()
+        
+    def viewRangeChanged(self):
+        self.updateHDF5Plot()
+        
+    def updateHDF5Plot(self):
+        if self.hdf5 is None:
+            self.setData([])
+            return
+        
+        vb = self.getViewBox()
+        if vb is None:
+            return  # no ViewBox yet
+        
+        # Determine what data range must be read from HDF5
+        xrange = vb.viewRange()[0]
+        start = max(0,int(xrange[0])-1)
+        stop = min(len(self.hdf5), int(xrange[1]+2))
+        
+        # Decide by how much we should downsample 
+        ds = int((stop-start) / self.limit) + 1
+        
+        if ds == 1:
+            # Small enough to display with no intervention.
+            visible = self.hdf5[start:stop]
+            scale = 1
+        else:
+            # Here convert data into a down-sampled array suitable for visualizing.
+            # Must do this piecewise to limit memory usage.        
+            samples = 1 + ((stop-start) // ds)
+            visible = np.zeros(samples*2, dtype=self.hdf5.dtype)
+            sourcePtr = start
+            targetPtr = 0
+            
+            # read data in chunks of ~1M samples
+            chunkSize = (1000000//ds) * ds
+            while sourcePtr < stop-1: 
+                chunk = self.hdf5[sourcePtr:min(stop,sourcePtr+chunkSize)]
+                sourcePtr += len(chunk)
+                
+                # reshape chunk to be integral multiple of ds
+                chunk = chunk[:(len(chunk)//ds) * ds].reshape(len(chunk)//ds, ds)
+                
+                # compute max and min
+                chunkMax = chunk.max(axis=1)
+                chunkMin = chunk.min(axis=1)
+                
+                # interleave min and max into plot data to preserve envelope shape
+                visible[targetPtr:targetPtr+chunk.shape[0]*2:2] = chunkMin
+                visible[1+targetPtr:1+targetPtr+chunk.shape[0]*2:2] = chunkMax
+                targetPtr += chunk.shape[0]*2
+            
+            visible = visible[:targetPtr]
+            scale = ds * 0.5
+            
+        self.setData(visible) # update the plot
+        self.setPos(start, 0) # shift to match starting index
+        self.resetTransform()
+        self.scale(scale, 1)  # scale to match downsampling
+
+        
+
+
+def createFile(finalSize=2000000000):
+    """Create a large HDF5 data file for testing.
+    Data consists of 1M random samples tiled through the end of the array.
+    """
+    
+    chunk = np.random.normal(size=1000000).astype(np.float32)
+    
+    f = h5py.File('test.hdf5', 'w')
+    f.create_dataset('data', data=chunk, chunks=True, maxshape=(None,))
+    data = f['data']
+
+    nChunks = finalSize // (chunk.size * chunk.itemsize)
+    with pg.ProgressDialog("Generating test.hdf5...", 0, nChunks) as dlg:
+        for i in range(nChunks):
+            newshape = [data.shape[0] + chunk.shape[0]]
+            data.resize(newshape)
+            data[-chunk.shape[0]:] = chunk
+            dlg += 1
+            if dlg.wasCanceled():
+                f.close()
+                os.remove('test.hdf5')
+                sys.exit()
+        dlg += 1
+    f.close()
+    
+if len(sys.argv) > 1:
+    fileName = sys.argv[1]
+else:
+    fileName = 'test.hdf5'
+    if not os.path.isfile(fileName):
+        size, ok = QtGui.QInputDialog.getDouble(None, "Create HDF5 Dataset?", "This demo requires a large HDF5 array. To generate a file, enter the array size (in GB) and press OK.", 2.0)
+        if not ok:
+            sys.exit(0)
+        else:
+            createFile(int(size*1e9))
+        #raise Exception("No suitable HDF5 file found. Use createFile() to generate an example file.")
+
+f = h5py.File(fileName, 'r')
+curve = HDF5Plot()
+curve.setHDF5(f['data'])
+plt.addItem(curve)
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    
+    
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
+
+
+
+
diff --git a/site-packages/pyqtgraph-0.10.0/examples/histogram.py b/site-packages/pyqtgraph-0.10.0/examples/histogram.py
new file mode 100644
index 00000000..2674ba30
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/histogram.py
@@ -0,0 +1,36 @@
+# -*- coding: utf-8 -*-
+"""
+In this example we draw two different kinds of histogram.
+"""
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+import numpy as np
+
+win = pg.GraphicsWindow()
+win.resize(800,350)
+win.setWindowTitle('pyqtgraph example: Histogram')
+plt1 = win.addPlot()
+plt2 = win.addPlot()
+
+## make interesting distribution of values
+vals = np.hstack([np.random.normal(size=500), np.random.normal(size=260, loc=4)])
+
+## compute standard histogram
+y,x = np.histogram(vals, bins=np.linspace(-3, 8, 40))
+
+## Using stepMode=True causes the plot to draw two lines for each sample.
+## notice that len(x) == len(y)+1
+plt1.plot(x, y, stepMode=True, fillLevel=0, brush=(0,0,255,150))
+
+## Now draw all points as a nicely-spaced scatter plot
+y = pg.pseudoScatter(vals, spacing=0.15)
+#plt2.plot(vals, y, pen=None, symbol='o', symbolSize=5)
+plt2.plot(vals, y, pen=None, symbol='o', symbolSize=5, symbolPen=(255,255,255,200), symbolBrush=(0,0,255,150))
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/imageAnalysis.py b/site-packages/pyqtgraph-0.10.0/examples/imageAnalysis.py
new file mode 100644
index 00000000..13adf5ac
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/imageAnalysis.py
@@ -0,0 +1,101 @@
+# -*- coding: utf-8 -*-
+"""
+Demonstrates common image analysis tools.
+
+Many of the features demonstrated here are already provided by the ImageView
+widget, but here we present a lower-level approach that provides finer control
+over the user interface.
+"""
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+import numpy as np
+
+
+# Interpret image data as row-major instead of col-major
+pg.setConfigOptions(imageAxisOrder='row-major')
+
+pg.mkQApp()
+win = pg.GraphicsLayoutWidget()
+win.setWindowTitle('pyqtgraph example: Image Analysis')
+
+# A plot area (ViewBox + axes) for displaying the image
+p1 = win.addPlot()
+
+# Item for displaying image data
+img = pg.ImageItem()
+p1.addItem(img)
+
+# Custom ROI for selecting an image region
+roi = pg.ROI([-8, 14], [6, 5])
+roi.addScaleHandle([0.5, 1], [0.5, 0.5])
+roi.addScaleHandle([0, 0.5], [0.5, 0.5])
+p1.addItem(roi)
+roi.setZValue(10)  # make sure ROI is drawn above image
+
+# Isocurve drawing
+iso = pg.IsocurveItem(level=0.8, pen='g')
+iso.setParentItem(img)
+iso.setZValue(5)
+
+# Contrast/color control
+hist = pg.HistogramLUTItem()
+hist.setImageItem(img)
+win.addItem(hist)
+
+# Draggable line for setting isocurve level
+isoLine = pg.InfiniteLine(angle=0, movable=True, pen='g')
+hist.vb.addItem(isoLine)
+hist.vb.setMouseEnabled(y=False) # makes user interaction a little easier
+isoLine.setValue(0.8)
+isoLine.setZValue(1000) # bring iso line above contrast controls
+
+# Another plot area for displaying ROI data
+win.nextRow()
+p2 = win.addPlot(colspan=2)
+p2.setMaximumHeight(250)
+win.resize(800, 800)
+win.show()
+
+
+# Generate image data
+data = np.random.normal(size=(200, 100))
+data[20:80, 20:80] += 2.
+data = pg.gaussianFilter(data, (3, 3))
+data += np.random.normal(size=(200, 100)) * 0.1
+img.setImage(data)
+hist.setLevels(data.min(), data.max())
+
+# build isocurves from smoothed data
+iso.setData(pg.gaussianFilter(data, (2, 2)))
+
+# set position and scale of image
+img.scale(0.2, 0.2)
+img.translate(-50, 0)
+
+# zoom to fit imageo
+p1.autoRange()  
+
+
+# Callbacks for handling user interaction
+def updatePlot():
+    global img, roi, data, p2
+    selected = roi.getArrayRegion(data, img)
+    p2.plot(selected.mean(axis=0), clear=True)
+
+roi.sigRegionChanged.connect(updatePlot)
+updatePlot()
+
+def updateIsocurve():
+    global isoLine, iso
+    iso.setLevel(isoLine.value())
+
+isoLine.sigDragged.connect(updateIsocurve)
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/infiniteline_performance.py b/site-packages/pyqtgraph-0.10.0/examples/infiniteline_performance.py
new file mode 100644
index 00000000..86264142
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/infiniteline_performance.py
@@ -0,0 +1,52 @@
+#!/usr/bin/python
+
+import initExample ## Add path to library (just for examples; you do not need this)
+from pyqtgraph.Qt import QtGui, QtCore
+import numpy as np
+import pyqtgraph as pg
+from pyqtgraph.ptime import time
+app = QtGui.QApplication([])
+
+p = pg.plot()
+p.setWindowTitle('pyqtgraph performance: InfiniteLine')
+p.setRange(QtCore.QRectF(0, -10, 5000, 20))
+p.setLabel('bottom', 'Index', units='B')
+curve = p.plot()
+
+# Add a large number of horizontal InfiniteLine to plot
+for i in range(100):
+    line = pg.InfiniteLine(pos=np.random.randint(5000), movable=True)
+    p.addItem(line)
+
+data = np.random.normal(size=(50, 5000))
+ptr = 0
+lastTime = time()
+fps = None
+
+
+def update():
+    global curve, data, ptr, p, lastTime, fps
+    curve.setData(data[ptr % 10])
+    ptr += 1
+    now = time()
+    dt = now - lastTime
+    lastTime = now
+    if fps is None:
+        fps = 1.0/dt
+    else:
+        s = np.clip(dt*3., 0, 1)
+        fps = fps * (1-s) + (1.0/dt) * s
+    p.setTitle('%0.2f fps' % fps)
+    app.processEvents()  # force complete redraw for every plot
+
+
+timer = QtCore.QTimer()
+timer.timeout.connect(update)
+timer.start(0)
+
+
+# Start Qt event loop unless running in interactive mode.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
\ No newline at end of file
diff --git a/site-packages/pyqtgraph-0.10.0/examples/initExample.py b/site-packages/pyqtgraph-0.10.0/examples/initExample.py
new file mode 100644
index 00000000..c10de84e
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/initExample.py
@@ -0,0 +1,50 @@
+## make this version of pyqtgraph importable before any others
+## we do this to make sure that, when running examples, the correct library
+## version is imported (if there are multiple versions present).
+import sys, os
+
+if not hasattr(sys, 'frozen'):
+    if __file__ == '<stdin>':
+        path = os.getcwd()
+    else:
+        path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
+    path.rstrip(os.path.sep)
+    if 'pyqtgraph' in os.listdir(path):
+        sys.path.insert(0, path) ## examples adjacent to pyqtgraph (as in source tree)
+    else:
+        for p in sys.path:
+            if len(p) < 3:
+                continue
+            if path.startswith(p):  ## If the example is already in an importable location, promote that location
+                sys.path.remove(p)
+                sys.path.insert(0, p)
+
+## should force example to use PySide instead of PyQt
+if 'pyside' in sys.argv:  
+    from PySide import QtGui
+elif 'pyqt' in sys.argv: 
+    from PyQt4 import QtGui
+elif 'pyqt5' in sys.argv: 
+    from PyQt5 import QtGui
+else:
+    from pyqtgraph.Qt import QtGui
+
+import pyqtgraph as pg    
+    
+## Force use of a specific graphics system
+use_gs = 'default'
+for gs in ['raster', 'native', 'opengl']:
+    if gs in sys.argv:
+        use_gs = gs
+        QtGui.QApplication.setGraphicsSystem(gs)
+        break
+
+print("Using %s (%s graphics system)" % (pg.Qt.QT_LIB, use_gs))
+
+## Enable fault handling to give more helpful error messages on crash. 
+## Only available in python 3.3+
+try:
+    import faulthandler
+    faulthandler.enable()
+except ImportError:
+    pass
\ No newline at end of file
diff --git a/site-packages/pyqtgraph-0.10.0/examples/isocurve.py b/site-packages/pyqtgraph-0.10.0/examples/isocurve.py
new file mode 100644
index 00000000..b401dfe1
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/isocurve.py
@@ -0,0 +1,60 @@
+# -*- coding: utf-8 -*-
+"""
+Tests use of IsoCurve item displayed with image
+"""
+
+
+import initExample ## Add path to library (just for examples; you do not need this)
+
+
+from pyqtgraph.Qt import QtGui, QtCore
+import numpy as np
+import pyqtgraph as pg
+
+app = QtGui.QApplication([])
+
+## make pretty looping data
+frames = 200
+data = np.random.normal(size=(frames,30,30), loc=0, scale=100)
+data = np.concatenate([data, data], axis=0)
+data = pg.gaussianFilter(data, (10, 10, 10))[frames/2:frames + frames/2]
+data[:, 15:16, 15:17] += 1
+
+win = pg.GraphicsWindow()
+win.setWindowTitle('pyqtgraph example: Isocurve')
+vb = win.addViewBox()
+img = pg.ImageItem(data[0])
+vb.addItem(img)
+vb.setAspectLocked()
+
+## generate empty curves
+curves = []
+levels = np.linspace(data.min(), data.max(), 10)
+for i in range(len(levels)):
+    v = levels[i]
+    ## generate isocurve with automatic color selection
+    c = pg.IsocurveItem(level=v, pen=(i, len(levels)*1.5))
+    c.setParentItem(img)  ## make sure isocurve is always correctly displayed over image
+    c.setZValue(10)
+    curves.append(c)
+
+## animate!
+ptr = 0
+imgLevels = (data.min(), data.max() * 2)
+def update():
+    global data, curves, img, ptr, imgLevels
+    ptr = (ptr + 1) % data.shape[0]
+    data[ptr]
+    img.setImage(data[ptr], levels=imgLevels)
+    for c in curves:
+        c.setData(data[ptr])
+
+timer = QtCore.QTimer()
+timer.timeout.connect(update)
+timer.start(50)
+    
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/linkedViews.py b/site-packages/pyqtgraph-0.10.0/examples/linkedViews.py
new file mode 100644
index 00000000..e7eb18af
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/linkedViews.py
@@ -0,0 +1,50 @@
+# -*- coding: utf-8 -*-
+"""
+This example demonstrates the ability to link the axes of views together
+Views can be linked manually using the context menu, but only if they are given 
+names.
+"""
+
+import initExample ## Add path to library (just for examples; you do not need this)
+
+
+from pyqtgraph.Qt import QtGui, QtCore
+import numpy as np
+import pyqtgraph as pg
+
+#QtGui.QApplication.setGraphicsSystem('raster')
+app = QtGui.QApplication([])
+#mw = QtGui.QMainWindow()
+#mw.resize(800,800)
+
+x = np.linspace(-50, 50, 1000)
+y = np.sin(x) / x
+
+win = pg.GraphicsWindow(title="pyqtgraph example: Linked Views")
+win.resize(800,600)
+
+win.addLabel("Linked Views", colspan=2)
+win.nextRow()
+
+p1 = win.addPlot(x=x, y=y, name="Plot1", title="Plot1")
+p2 = win.addPlot(x=x, y=y, name="Plot2", title="Plot2: Y linked with Plot1")
+p2.setLabel('bottom', "Label to test offset")
+p2.setYLink('Plot1')  ## test linking by name
+
+
+## create plots 3 and 4 out of order
+p4 = win.addPlot(x=x, y=y, name="Plot4", title="Plot4: X -> Plot3 (deferred), Y -> Plot1", row=2, col=1)
+p4.setXLink('Plot3')  ## Plot3 has not been created yet, but this should still work anyway.
+p4.setYLink(p1)
+p3 = win.addPlot(x=x, y=y, name="Plot3", title="Plot3: X linked with Plot1", row=2, col=0)
+p3.setXLink(p1)
+p3.setLabel('left', "Label to test offset")
+#QtGui.QApplication.processEvents()
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
+
diff --git a/site-packages/pyqtgraph-0.10.0/examples/logAxis.py b/site-packages/pyqtgraph-0.10.0/examples/logAxis.py
new file mode 100644
index 00000000..a0c7fc53
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/logAxis.py
@@ -0,0 +1,42 @@
+# -*- coding: utf-8 -*-
+"""
+Test programmatically setting log transformation modes.
+"""
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import numpy as np
+from pyqtgraph.Qt import QtGui, QtCore
+import pyqtgraph as pg
+
+
+app = QtGui.QApplication([])
+
+w = pg.GraphicsWindow()
+w.setWindowTitle('pyqtgraph example: logAxis')
+p1 = w.addPlot(0,0, title="X Semilog")
+p2 = w.addPlot(1,0, title="Y Semilog")
+p3 = w.addPlot(2,0, title="XY Log")
+p1.showGrid(True, True)
+p2.showGrid(True, True)
+p3.showGrid(True, True)
+p1.setLogMode(True, False)
+p2.setLogMode(False, True)
+p3.setLogMode(True, True)
+w.show()
+
+y = np.random.normal(size=1000)
+x = np.linspace(0, 1, 1000)
+p1.plot(x, y)
+p2.plot(x, y)
+p3.plot(x, y)
+
+
+
+#p.getAxis('bottom').setLogMode(True)
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/multiplePlotSpeedTest.py b/site-packages/pyqtgraph-0.10.0/examples/multiplePlotSpeedTest.py
new file mode 100644
index 00000000..07df7522
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/multiplePlotSpeedTest.py
@@ -0,0 +1,93 @@
+# -*- coding: utf-8 -*-
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+import numpy as np
+
+app = pg.mkQApp()
+plt = pg.PlotWidget()
+
+app.processEvents()
+
+## Putting this at the beginning or end does not have much effect
+plt.show()   
+
+## The auto-range is recomputed after each item is added,
+## so disabling it before plotting helps
+plt.enableAutoRange(False, False)
+
+def plot():
+    start = pg.ptime.time()
+    n = 15
+    pts = 100
+    x = np.linspace(0, 0.8, pts)
+    y = np.random.random(size=pts)*0.8
+    for i in range(n):
+        for j in range(n):
+            ## calling PlotWidget.plot() generates a PlotDataItem, which 
+            ## has a bit more overhead than PlotCurveItem, which is all 
+            ## we need here. This overhead adds up quickly and makes a big
+            ## difference in speed.
+            
+            #plt.plot(x=x+i, y=y+j)
+            plt.addItem(pg.PlotCurveItem(x=x+i, y=y+j))
+            
+            #path = pg.arrayToQPath(x+i, y+j)
+            #item = QtGui.QGraphicsPathItem(path)
+            #item.setPen(pg.mkPen('w'))
+            #plt.addItem(item)
+            
+    dt = pg.ptime.time() - start
+    print("Create plots took: %0.3fms" % (dt*1000))
+
+## Plot and clear 5 times, printing the time it took
+for i in range(5):
+    plt.clear()
+    plot()
+    app.processEvents()
+    plt.autoRange()
+
+
+
+
+
+def fastPlot():
+    ## Different approach:  generate a single item with all data points.
+    ## This runs about 20x faster.
+    start = pg.ptime.time()
+    n = 15
+    pts = 100
+    x = np.linspace(0, 0.8, pts)
+    y = np.random.random(size=pts)*0.8
+    xdata = np.empty((n, n, pts))
+    xdata[:] = x.reshape(1,1,pts) + np.arange(n).reshape(n,1,1)
+    ydata = np.empty((n, n, pts))
+    ydata[:] = y.reshape(1,1,pts) + np.arange(n).reshape(1,n,1)
+    conn = np.ones((n*n,pts))
+    conn[:,-1] = False # make sure plots are disconnected
+    path = pg.arrayToQPath(xdata.flatten(), ydata.flatten(), conn.flatten())
+    item = QtGui.QGraphicsPathItem(path)
+    item.setPen(pg.mkPen('w'))
+    plt.addItem(item)
+    
+    dt = pg.ptime.time() - start
+    print("Create plots took: %0.3fms" % (dt*1000))
+
+
+## Plot and clear 5 times, printing the time it took
+if hasattr(pg, 'arrayToQPath'):
+    for i in range(5):
+        plt.clear()
+        fastPlot()
+        app.processEvents()
+else:
+    print("Skipping fast tests--arrayToQPath function is missing.")
+
+plt.autoRange()
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/multiprocess.py b/site-packages/pyqtgraph-0.10.0/examples/multiprocess.py
new file mode 100644
index 00000000..ba550f7f
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/multiprocess.py
@@ -0,0 +1,59 @@
+# -*- coding: utf-8 -*-
+import initExample ## Add path to library (just for examples; you do not need this)
+import numpy as np
+import pyqtgraph.multiprocess as mp
+import pyqtgraph as pg
+import time
+
+
+
+
+print("\n=================\nStart Process")
+proc = mp.Process()
+import os
+print("parent:", os.getpid(), "child:", proc.proc.pid)
+print("started")
+rnp = proc._import('numpy')
+arr = rnp.array([1,2,3,4])
+print(repr(arr))
+print(str(arr))
+print("return value:", repr(arr.mean(_returnType='value')))
+print( "return proxy:", repr(arr.mean(_returnType='proxy')))
+print( "return auto: ", repr(arr.mean(_returnType='auto')))
+proc.join()
+print( "process finished")
+
+
+
+print( "\n=================\nStart ForkedProcess")
+proc = mp.ForkedProcess()
+rnp = proc._import('numpy')
+arr = rnp.array([1,2,3,4])
+print( repr(arr))
+print( str(arr))
+print( repr(arr.mean()))
+proc.join()
+print( "process finished")
+
+
+
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+app = pg.QtGui.QApplication([])
+
+print( "\n=================\nStart QtProcess")
+import sys
+if (sys.flags.interactive != 1):
+    print( "   (not interactive; remote process will exit immediately.)")
+proc = mp.QtProcess()
+d1 = proc.transfer(np.random.normal(size=1000))
+d2 = proc.transfer(np.random.normal(size=1000))
+rpg = proc._import('pyqtgraph')
+plt = rpg.plot(d1+d2)
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+#import sys
+#if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+    #QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/optics/__init__.py b/site-packages/pyqtgraph-0.10.0/examples/optics/__init__.py
new file mode 100644
index 00000000..b3d31cd0
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/optics/__init__.py
@@ -0,0 +1 @@
+from .pyoptic import *
\ No newline at end of file
diff --git a/site-packages/pyqtgraph-0.10.0/examples/optics/pyoptic.py b/site-packages/pyqtgraph-0.10.0/examples/optics/pyoptic.py
new file mode 100644
index 00000000..c2cb2ba2
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/optics/pyoptic.py
@@ -0,0 +1,582 @@
+# -*- coding: utf-8 -*-
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtGui, QtCore
+import numpy as np
+import csv, gzip, os
+from pyqtgraph import Point
+
+class GlassDB:
+    """
+    Database of dispersion coefficients for Schott glasses
+     + Corning 7980
+    """
+    def __init__(self, fileName='schott_glasses.csv'):
+        path = os.path.dirname(__file__)
+        fh = gzip.open(os.path.join(path, 'schott_glasses.csv.gz'), 'rb')
+        r = csv.reader(map(str, fh.readlines()))
+        lines = [x for x in r]
+        self.data = {}
+        header = lines[0]
+        for l in lines[1:]:
+            info = {}
+            for i in range(1, len(l)):
+                info[header[i]] = l[i]
+            self.data[l[0]] = info
+        self.data['Corning7980'] = {   ## Thorlabs UV fused silica--not in schott catalog.
+            'B1': 0.68374049400,
+            'B2': 0.42032361300,
+            'B3': 0.58502748000,
+            'C1': 0.00460352869,
+            'C2': 0.01339688560,
+            'C3': 64.49327320000,
+            'TAUI25/250': 0.95,    ## transmission data is fabricated, but close.
+            'TAUI25/1400': 0.98,
+        }
+        
+        for k in self.data:
+            self.data[k]['ior_cache'] = {}
+            
+
+    def ior(self, glass, wl):
+        """
+        Return the index of refraction for *glass* at wavelength *wl*.
+        
+        The *glass* argument must be a key in self.data.
+        """
+        info = self.data[glass]
+        cache = info['ior_cache']
+        if wl not in cache:
+            B = list(map(float, [info['B1'], info['B2'], info['B3']]))
+            C = list(map(float, [info['C1'], info['C2'], info['C3']]))
+            w2 = (wl/1000.)**2
+            n = np.sqrt(1.0 + (B[0]*w2 / (w2-C[0])) + (B[1]*w2 / (w2-C[1])) + (B[2]*w2 / (w2-C[2])))
+            cache[wl] = n
+        return cache[wl]
+        
+    def transmissionCurve(self, glass):
+        data = self.data[glass]
+        keys = [int(x[7:]) for x in data.keys() if 'TAUI25' in x]
+        keys.sort()
+        curve = np.empty((2,len(keys)))
+        for i in range(len(keys)):
+            curve[0][i] = keys[i]
+            key = 'TAUI25/%d' % keys[i]
+            val = data[key]
+            if val == '':
+                val = 0
+            else:
+                val = float(val)
+            curve[1][i] = val
+        return curve
+            
+
+GLASSDB = GlassDB()
+
+
+def wlPen(wl):
+    """Return a pen representing the given wavelength"""
+    l1 = 400
+    l2 = 700
+    hue = np.clip(((l2-l1) - (wl-l1)) * 0.8 / (l2-l1), 0, 0.8)
+    val = 1.0
+    if wl > 700:
+        val = 1.0 * (((700-wl)/700.) + 1)
+    elif wl < 400:
+        val = wl * 1.0/400.
+    #print hue, val
+    color = pg.hsvColor(hue, 1.0, val)
+    pen = pg.mkPen(color)
+    return pen
+
+
+class ParamObj(object):
+    # Just a helper for tracking parameters and responding to changes
+    def __init__(self):
+        self.__params = {}
+    
+    def __setitem__(self, item, val):
+        self.setParam(item, val)
+        
+    def setParam(self, param, val):
+        self.setParams(**{param:val})
+        
+    def setParams(self, **params):
+        """Set parameters for this optic. This is a good function to override for subclasses."""
+        self.__params.update(params)
+        self.paramStateChanged()
+
+    def paramStateChanged(self):
+        pass
+
+    def __getitem__(self, item):
+        # bug in pyside 1.2.2 causes getitem to be called inside QGraphicsObject.parentItem:
+        return self.getParam(item)  # PySide bug: https://bugreports.qt.io/browse/PYSIDE-441
+
+    def getParam(self, param):
+        return self.__params[param]
+
+
+class Optic(pg.GraphicsObject, ParamObj):
+    
+    sigStateChanged = QtCore.Signal()
+    
+    
+    def __init__(self, gitem, **params):
+        ParamObj.__init__(self)
+        pg.GraphicsObject.__init__(self) #, [0,0], [1,1])
+
+        self.gitem = gitem
+        self.surfaces = gitem.surfaces
+        gitem.setParentItem(self)
+        
+        self.roi = pg.ROI([0,0], [1,1])
+        self.roi.addRotateHandle([1, 1], [0.5, 0.5])
+        self.roi.setParentItem(self)
+        
+        defaults = {
+            'pos': Point(0,0),
+            'angle': 0,
+        }
+        defaults.update(params)
+        self._ior_cache = {}
+        self.roi.sigRegionChanged.connect(self.roiChanged)
+        self.setParams(**defaults)
+        
+    def updateTransform(self):
+        self.resetTransform()
+        self.setPos(0, 0)
+        self.translate(Point(self['pos']))
+        self.rotate(self['angle'])
+        
+    def setParam(self, param, val):
+        ParamObj.setParam(self, param, val)
+
+    def paramStateChanged(self):
+        """Some parameters of the optic have changed."""
+        # Move graphics item
+        self.gitem.setPos(Point(self['pos']))
+        self.gitem.resetTransform()
+        self.gitem.rotate(self['angle'])
+        
+        # Move ROI to match
+        try:
+            self.roi.sigRegionChanged.disconnect(self.roiChanged)
+            br = self.gitem.boundingRect()
+            o = self.gitem.mapToParent(br.topLeft())
+            self.roi.setAngle(self['angle'])
+            self.roi.setPos(o)
+            self.roi.setSize([br.width(), br.height()])
+        finally:
+            self.roi.sigRegionChanged.connect(self.roiChanged)
+        
+        self.sigStateChanged.emit()
+
+    def roiChanged(self, *args):
+        pos = self.roi.pos()
+        # rotate gitem temporarily so we can decide where it will need to move
+        self.gitem.resetTransform()
+        self.gitem.rotate(self.roi.angle())
+        br = self.gitem.boundingRect()
+        o1 = self.gitem.mapToParent(br.topLeft())
+        self.setParams(angle=self.roi.angle(), pos=pos + (self.gitem.pos() - o1))
+        
+    def boundingRect(self):
+        return QtCore.QRectF()
+        
+    def paint(self, p, *args):
+        pass
+
+    def ior(self, wavelength):
+        return GLASSDB.ior(self['glass'], wavelength)
+        
+
+
+class Lens(Optic):
+    def __init__(self, **params):
+        defaults = {
+            'dia': 25.4,  ## diameter of lens
+            'r1': 50.,    ## positive means convex, use 0 for planar
+            'r2': 0,   ## negative means convex
+            'd': 4.0,
+            'glass': 'N-BK7',
+            'reflect': False,
+        }
+        defaults.update(params)
+        d = defaults.pop('d')
+        defaults['x1'] = -d/2.
+        defaults['x2'] = d/2.
+        
+        gitem = CircularSolid(brush=(100, 100, 130, 100), **defaults)
+        Optic.__init__(self, gitem, **defaults)
+        
+    def propagateRay(self, ray):
+        """Refract, reflect, absorb, and/or scatter ray. This function may create and return new rays"""
+
+        """
+        NOTE:: We can probably use this to compute refractions faster: (from GLSL 120 docs)
+
+        For the incident vector I and surface normal N, and the
+        ratio of indices of refraction eta, return the refraction
+        vector. The result is computed by
+        k = 1.0 - eta * eta * (1.0 - dot(N, I) * dot(N, I))
+        if (k < 0.0)
+            return genType(0.0)
+        else
+            return eta * I - (eta * dot(N, I) + sqrt(k)) * N
+        The input parameters for the incident vector I and the
+        surface normal N must already be normalized to get the
+        desired results. eta == ratio of IORs
+
+
+        For reflection:
+        For the incident vector I and surface orientation N,
+        returns the reflection direction:
+        I – 2 ∗ dot(N, I) ∗ N
+        N must already be normalized in order to achieve the
+        desired result.
+        """
+
+
+
+        iors = [self.ior(ray['wl']), 1.0]
+        for i in [0,1]:
+            surface = self.surfaces[i]
+            ior = iors[i]
+            p1, ai = surface.intersectRay(ray)
+            #print "surface intersection:", p1, ai*180/3.14159
+            #trans = self.sceneTransform().inverted()[0] * surface.sceneTransform()
+            #p1 = trans.map(p1)
+            if p1 is None:
+                ray.setEnd(None)
+                break
+            p1 = surface.mapToItem(ray, p1)
+            
+            #print "adjusted position:", p1
+            #ior = self.ior(ray['wl'])
+            rd = ray['dir']
+            a1 = np.arctan2(rd[1], rd[0])
+            ar = a1 - ai + np.arcsin((np.sin(ai) * ray['ior'] / ior))
+            #print [x for x in [a1, ai, (np.sin(ai) * ray['ior'] / ior), ar]]
+            #print ai, np.sin(ai), ray['ior'],  ior
+            ray.setEnd(p1)
+            dp = Point(np.cos(ar), np.sin(ar))
+            #p2 = p1+dp
+            #p1p = self.mapToScene(p1)
+            #p2p = self.mapToScene(p2)
+            #dpp = Point(p2p-p1p)
+            ray = Ray(parent=ray, ior=ior, dir=dp)
+        return [ray]
+        
+
+class Mirror(Optic):
+    def __init__(self, **params):
+        defaults = {
+            'r1': 0,
+            'r2': 0,
+            'd': 0.01,
+        }
+        defaults.update(params)
+        d = defaults.pop('d')
+        defaults['x1'] = -d/2.
+        defaults['x2'] = d/2.
+        gitem = CircularSolid(brush=(100,100,100,255), **defaults)
+        Optic.__init__(self, gitem, **defaults)
+        
+    def propagateRay(self, ray):
+        """Refract, reflect, absorb, and/or scatter ray. This function may create and return new rays"""
+        
+        surface = self.surfaces[0]
+        p1, ai = surface.intersectRay(ray)
+        if p1 is not None:
+            p1 = surface.mapToItem(ray, p1)
+            rd = ray['dir']
+            a1 = np.arctan2(rd[1], rd[0])
+            ar = a1  + np.pi - 2*ai
+            ray.setEnd(p1)
+            dp = Point(np.cos(ar), np.sin(ar))
+            ray = Ray(parent=ray, dir=dp)
+        else:
+            ray.setEnd(None)
+        return [ray]
+
+
+class CircularSolid(pg.GraphicsObject, ParamObj):
+    """GraphicsObject with two circular or flat surfaces."""
+    def __init__(self, pen=None, brush=None, **opts):
+        """
+        Arguments for each surface are:
+           x1,x2 - position of center of _physical surface_
+           r1,r2 - radius of curvature
+           d1,d2 - diameter of optic
+        """
+        defaults = dict(x1=-2, r1=100, d1=25.4, x2=2, r2=100, d2=25.4)
+        defaults.update(opts)
+        ParamObj.__init__(self)
+        self.surfaces = [CircleSurface(defaults['r1'], defaults['d1']), CircleSurface(-defaults['r2'], defaults['d2'])]
+        pg.GraphicsObject.__init__(self)
+        for s in self.surfaces:
+            s.setParentItem(self)
+        
+        if pen is None:
+            self.pen = pg.mkPen((220,220,255,200), width=1, cosmetic=True)
+        else:
+            self.pen = pg.mkPen(pen)
+        
+        if brush is None: 
+            self.brush = pg.mkBrush((230, 230, 255, 30))
+        else:
+            self.brush = pg.mkBrush(brush)
+
+        self.setParams(**defaults)
+
+    def paramStateChanged(self):
+        self.updateSurfaces()
+
+    def updateSurfaces(self):
+        self.surfaces[0].setParams(self['r1'], self['d1'])
+        self.surfaces[1].setParams(-self['r2'], self['d2'])
+        self.surfaces[0].setPos(self['x1'], 0)
+        self.surfaces[1].setPos(self['x2'], 0)
+        
+        self.path = QtGui.QPainterPath()
+        self.path.connectPath(self.surfaces[0].path.translated(self.surfaces[0].pos()))
+        self.path.connectPath(self.surfaces[1].path.translated(self.surfaces[1].pos()).toReversed())
+        self.path.closeSubpath()
+        
+    def boundingRect(self):
+        return self.path.boundingRect()
+        
+    def shape(self):
+        return self.path
+    
+    def paint(self, p, *args):
+        p.setRenderHints(p.renderHints() | p.Antialiasing)
+        p.setPen(self.pen)
+        p.fillPath(self.path, self.brush)
+        p.drawPath(self.path)
+        
+
+class CircleSurface(pg.GraphicsObject):
+    def __init__(self, radius=None, diameter=None):
+        """center of physical surface is at 0,0
+        radius is the radius of the surface. If radius is None, the surface is flat. 
+        diameter is of the optic's edge."""
+        pg.GraphicsObject.__init__(self)
+        
+        self.r = radius
+        self.d = diameter
+        self.mkPath()
+        
+    def setParams(self, r, d):
+        self.r = r
+        self.d = d
+        self.mkPath()
+        
+    def mkPath(self):
+        self.prepareGeometryChange()
+        r = self.r
+        d = self.d
+        h2 = d/2.
+        self.path = QtGui.QPainterPath()
+        if r == 0:  ## flat surface
+            self.path.moveTo(0, h2)
+            self.path.lineTo(0, -h2)
+        else:
+            ## half-height of surface can't be larger than radius
+            h2 = min(h2, abs(r))
+            
+            #dx = abs(r) - (abs(r)**2 - abs(h2)**2)**0.5
+            #p.moveTo(-d*w/2.+ d*dx, d*h2)
+            arc = QtCore.QRectF(0, -r, r*2, r*2)
+            #self.surfaces.append((arc.center(), r, h2))
+            a1 = np.arcsin(h2/r) * 180. / np.pi
+            a2 = -2*a1
+            a1 += 180.
+            self.path.arcMoveTo(arc, a1)
+            self.path.arcTo(arc, a1, a2)
+            #if d == -1:
+                #p1 = QtGui.QPainterPath()
+                #p1.addRect(arc)
+                #self.paths.append(p1)
+        self.h2 = h2
+        
+    def boundingRect(self):
+        return self.path.boundingRect()
+        
+    def paint(self, p, *args):
+        return  ## usually we let the optic draw.
+        #p.setPen(pg.mkPen('r'))
+        #p.drawPath(self.path)
+            
+    def intersectRay(self, ray):
+        ## return the point of intersection and the angle of incidence
+        #print "intersect ray"
+        h = self.h2
+        r = self.r
+        p, dir = ray.currentState(relativeTo=self)  # position and angle of ray in local coords.
+        #print "  ray: ", p, dir
+        p = p - Point(r, 0)  ## move position so center of circle is at 0,0
+        #print "  adj: ", p, r
+        
+        if r == 0:
+            #print "  flat"
+            if dir[0] == 0:
+                y = 0
+            else:
+                y = p[1] - p[0] * dir[1]/dir[0]
+            if abs(y) > h:
+                return None, None
+            else:
+                return (Point(0, y), np.arctan2(dir[1], dir[0]))
+        else:
+            #print "  curve"
+            ## find intersection of circle and line (quadratic formula)
+            dx = dir[0]
+            dy = dir[1]
+            dr = (dx**2 + dy**2) ** 0.5
+            D = p[0] * (p[1]+dy) - (p[0]+dx) * p[1]
+            idr2 = 1.0 / dr**2
+            disc = r**2 * dr**2 - D**2
+            if disc < 0:
+                return None, None
+            disc2 = disc**0.5
+            if dy < 0:
+                sgn = -1
+            else:
+                sgn = 1
+            
+        
+            br = self.path.boundingRect()
+            x1 = (D*dy + sgn*dx*disc2) * idr2
+            y1 = (-D*dx + abs(dy)*disc2) * idr2
+            if br.contains(x1+r, y1):
+                pt = Point(x1, y1)
+            else:
+                x2 = (D*dy - sgn*dx*disc2) * idr2
+                y2 = (-D*dx - abs(dy)*disc2) * idr2
+                pt = Point(x2, y2)
+                if not br.contains(x2+r, y2):
+                    return None, None
+                    raise Exception("No intersection!")
+                
+            norm = np.arctan2(pt[1], pt[0])
+            if r < 0:
+                norm += np.pi
+            #print "  norm:", norm*180/3.1415
+            dp = p - pt
+            #print "  dp:", dp
+            ang = np.arctan2(dp[1], dp[0]) 
+            #print "  ang:", ang*180/3.1415
+            #print "  ai:", (ang-norm)*180/3.1415
+            
+            #print "  intersection:", pt
+            return pt + Point(r, 0), ang-norm
+
+            
+class Ray(pg.GraphicsObject, ParamObj):
+    """Represents a single straight segment of a ray"""
+    
+    sigStateChanged = QtCore.Signal()
+    
+    def __init__(self, **params):
+        ParamObj.__init__(self)
+        defaults = {
+            'ior': 1.0,
+            'wl': 500,
+            'end': None,
+            'dir': Point(1,0),
+        }
+        self.params = {}
+        pg.GraphicsObject.__init__(self)
+        self.children = []
+        parent = params.get('parent', None)
+        if parent is not None:
+            defaults['start'] = parent['end']
+            defaults['wl'] = parent['wl']
+            self['ior'] = parent['ior']
+            self['dir'] = parent['dir']
+            parent.addChild(self)
+        
+        defaults.update(params)
+        defaults['dir'] = Point(defaults['dir'])
+        self.setParams(**defaults)
+        self.mkPath()
+        
+    def clearChildren(self):
+        for c in self.children:
+            c.clearChildren()
+            c.setParentItem(None)
+            self.scene().removeItem(c)
+        self.children = []
+        
+    def paramStateChanged(self):
+        pass
+        
+    def addChild(self, ch):
+        self.children.append(ch)
+        ch.setParentItem(self)
+        
+    def currentState(self, relativeTo=None):
+        pos = self['start']
+        dir = self['dir']
+        if relativeTo is None:
+            return pos, dir
+        else:
+            trans = self.itemTransform(relativeTo)[0]
+            p1 = trans.map(pos)
+            p2 = trans.map(pos + dir)
+            return Point(p1), Point(p2-p1)
+            
+            
+    def setEnd(self, end):
+        self['end'] = end
+        self.mkPath()
+
+    def boundingRect(self):
+        return self.path.boundingRect()
+        
+    def paint(self, p, *args):
+        #p.setPen(pg.mkPen((255,0,0, 150)))
+        p.setRenderHints(p.renderHints() | p.Antialiasing)
+        p.setCompositionMode(p.CompositionMode_Plus)
+        p.setPen(wlPen(self['wl']))
+        p.drawPath(self.path)
+        
+    def mkPath(self):
+        self.prepareGeometryChange()
+        self.path = QtGui.QPainterPath()
+        self.path.moveTo(self['start'])
+        if self['end'] is not None:
+            self.path.lineTo(self['end'])
+        else:
+            self.path.lineTo(self['start']+500*self['dir'])
+
+
+def trace(rays, optics):
+    if len(optics) < 1 or len(rays) < 1:
+        return
+    for r in rays:
+        r.clearChildren()
+        o = optics[0]
+        r2 = o.propagateRay(r)
+        trace(r2, optics[1:])
+
+class Tracer(QtCore.QObject):
+    """
+    Simple ray tracer. 
+    
+    Initialize with a list of rays and optics; 
+    calling trace() will cause rays to be extended by propagating them through
+    each optic in sequence.
+    """
+    def __init__(self, rays, optics):
+        QtCore.QObject.__init__(self)
+        self.optics = optics
+        self.rays = rays
+        for o in self.optics:
+            o.sigStateChanged.connect(self.trace)
+        self.trace()
+            
+    def trace(self):
+        trace(self.rays, self.optics)
+
diff --git a/site-packages/pyqtgraph-0.10.0/examples/optics/schott_glasses.csv.gz b/site-packages/pyqtgraph-0.10.0/examples/optics/schott_glasses.csv.gz
new file mode 100644
index 0000000000000000000000000000000000000000..8df4ae14a38b916d5591749d049804097f8e86b8
GIT binary patch
literal 37232
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
U^Jl%D_IUaK11%8E&C$650DFv+FaQ7m

literal 0
HcmV?d00001

diff --git a/site-packages/pyqtgraph-0.10.0/examples/optics_demos.py b/site-packages/pyqtgraph-0.10.0/examples/optics_demos.py
new file mode 100644
index 00000000..36bfc7f9
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/optics_demos.py
@@ -0,0 +1,170 @@
+# -*- coding: utf-8 -*-
+"""
+Optical system design demo
+
+
+
+"""
+
+import initExample ## Add path to library (just for examples; you do not need this)
+
+from optics import *
+
+import pyqtgraph as pg
+
+import numpy as np
+from pyqtgraph import Point
+
+app = pg.QtGui.QApplication([])
+
+w = pg.GraphicsWindow(border=0.5)
+w.resize(1000, 900)
+w.show()
+
+
+
+### Curved mirror demo
+
+view = w.addViewBox()
+view.setAspectLocked()
+#grid = pg.GridItem()
+#view.addItem(grid)
+view.setRange(pg.QtCore.QRectF(-50, -30, 100, 100))
+
+optics = []
+rays = []
+m1 = Mirror(r1=-100, pos=(5,0), d=5, angle=-15)
+optics.append(m1)
+m2 = Mirror(r1=-70, pos=(-40, 30), d=6, angle=180-15)
+optics.append(m2)
+
+allRays = []
+for y in np.linspace(-10, 10, 21):
+    r = Ray(start=Point(-100, y))
+    view.addItem(r)
+    allRays.append(r)
+
+for o in optics:
+    view.addItem(o)
+    
+t1 = Tracer(allRays, optics)
+
+
+
+### Dispersion demo
+
+optics = []
+
+view = w.addViewBox()
+
+view.setAspectLocked()
+#grid = pg.GridItem()
+#view.addItem(grid)
+view.setRange(pg.QtCore.QRectF(-10, -50, 90, 60))
+
+optics = []
+rays = []
+l1 = Lens(r1=20, r2=20, d=10, angle=8, glass='Corning7980')
+optics.append(l1)
+
+allRays = []
+for wl in np.linspace(355,1040, 25):
+    for y in [10]:
+        r = Ray(start=Point(-100, y), wl=wl)
+        view.addItem(r)
+        allRays.append(r)
+
+for o in optics:
+    view.addItem(o)
+
+t2 = Tracer(allRays, optics)
+
+
+
+### Scanning laser microscopy demo
+
+w.nextRow()
+view = w.addViewBox(colspan=2)
+
+optics = []
+
+
+#view.setAspectLocked()
+view.setRange(QtCore.QRectF(200, -50, 500, 200))
+
+
+
+## Scan mirrors
+scanx = 250
+scany = 20
+m1 = Mirror(dia=4.2, d=0.001, pos=(scanx, 0), angle=315)
+m2 = Mirror(dia=8.4, d=0.001, pos=(scanx, scany), angle=135)
+
+## Scan lenses
+l3 = Lens(r1=23.0, r2=0, d=5.8, pos=(scanx+50, scany), glass='Corning7980')  ## 50mm  UVFS  (LA4148)
+l4 = Lens(r1=0, r2=69.0, d=3.2, pos=(scanx+250, scany), glass='Corning7980')  ## 150mm UVFS  (LA4874)
+
+## Objective
+obj = Lens(r1=15, r2=15, d=10, dia=8, pos=(scanx+400, scany), glass='Corning7980')
+
+IROptics = [m1, m2, l3, l4, obj]
+
+
+
+## Scan mirrors
+scanx = 250
+scany = 30
+m1a = Mirror(dia=4.2, d=0.001, pos=(scanx, 2*scany), angle=315)
+m2a = Mirror(dia=8.4, d=0.001, pos=(scanx, 3*scany), angle=135)
+
+## Scan lenses
+l3a = Lens(r1=46, r2=0, d=3.8, pos=(scanx+50, 3*scany), glass='Corning7980') ## 100mm UVFS  (LA4380)
+l4a = Lens(r1=0, r2=46, d=3.8, pos=(scanx+250, 3*scany), glass='Corning7980') ## 100mm UVFS  (LA4380)
+
+## Objective
+obja = Lens(r1=15, r2=15, d=10, dia=8, pos=(scanx+400, 3*scany), glass='Corning7980')
+
+IROptics2 = [m1a, m2a, l3a, l4a, obja]
+
+
+
+for o in set(IROptics+IROptics2):
+    view.addItem(o)
+    
+IRRays = []
+IRRays2 = []
+
+for dy in [-0.4, -0.15, 0, 0.15, 0.4]:
+    IRRays.append(Ray(start=Point(-50, dy), dir=(1, 0), wl=780))
+    IRRays2.append(Ray(start=Point(-50, dy+2*scany), dir=(1, 0), wl=780))
+    
+for r in set(IRRays+IRRays2):
+    view.addItem(r)
+
+IRTracer = Tracer(IRRays, IROptics)
+IRTracer2 = Tracer(IRRays2, IROptics2)
+
+phase = 0.0
+def update():
+    global phase
+    if phase % (8*np.pi) > 4*np.pi:
+        m1['angle'] = 315 + 1.5*np.sin(phase)
+        m1a['angle'] = 315 + 1.5*np.sin(phase)
+    else:
+        m2['angle'] = 135 + 1.5*np.sin(phase)
+        m2a['angle'] = 135 + 1.5*np.sin(phase)
+    phase += 0.2
+    
+timer = QtCore.QTimer()
+timer.timeout.connect(update)
+timer.start(40)
+
+
+
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/parallelize.py b/site-packages/pyqtgraph-0.10.0/examples/parallelize.py
new file mode 100644
index 00000000..b309aa31
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/parallelize.py
@@ -0,0 +1,65 @@
+# -*- coding: utf-8 -*-
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import time
+import numpy as np
+import pyqtgraph.multiprocess as mp
+import pyqtgraph as pg
+from pyqtgraph.python2_3 import xrange
+
+print( "\n=================\nParallelize")
+
+## Do a simple task: 
+##   for x in range(N):
+##      sum([x*i for i in range(M)])
+##
+## We'll do this three times
+##   - once without Parallelize
+##   - once with Parallelize, but forced to use a single worker
+##   - once with Parallelize automatically determining how many workers to use
+##
+
+tasks = range(10)
+results = [None] * len(tasks)
+results2 = results[:]
+results3 = results[:]
+size = 2000000
+
+pg.mkQApp()
+
+### Purely serial processing
+start = time.time()
+with pg.ProgressDialog('processing serially..', maximum=len(tasks)) as dlg:
+    for i, x in enumerate(tasks):
+        tot = 0
+        for j in xrange(size):
+            tot += j * x
+        results[i] = tot
+        dlg += 1
+        if dlg.wasCanceled():
+            raise Exception('processing canceled')
+print( "Serial time: %0.2f" % (time.time() - start))
+
+### Use parallelize, but force a single worker
+### (this simulates the behavior seen on windows, which lacks os.fork)
+start = time.time()
+with mp.Parallelize(enumerate(tasks), results=results2, workers=1, progressDialog='processing serially (using Parallelizer)..') as tasker:
+    for i, x in tasker:
+        tot = 0
+        for j in xrange(size):
+            tot += j * x
+        tasker.results[i] = tot
+print( "\nParallel time, 1 worker: %0.2f" % (time.time() - start))
+print( "Results match serial:  %s" % str(results2 == results))
+
+### Use parallelize with multiple workers
+start = time.time()
+with mp.Parallelize(enumerate(tasks), results=results3, progressDialog='processing in parallel..') as tasker:
+    for i, x in tasker:
+        tot = 0
+        for j in xrange(size):
+            tot += j * x
+        tasker.results[i] = tot
+print( "\nParallel time, %d workers: %0.2f" % (mp.Parallelize.suggestedWorkerCount(), time.time() - start))
+print( "Results match serial:      %s" % str(results3 == results))
+
diff --git a/site-packages/pyqtgraph-0.10.0/examples/parametertree.py b/site-packages/pyqtgraph-0.10.0/examples/parametertree.py
new file mode 100644
index 00000000..8d8a7352
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/parametertree.py
@@ -0,0 +1,175 @@
+# -*- coding: utf-8 -*-
+"""
+This example demonstrates the use of pyqtgraph's parametertree system. This provides
+a simple way to generate user interfaces that control sets of parameters. The example
+demonstrates a variety of different parameter types (int, float, list, etc.)
+as well as some customized parameter types
+
+"""
+
+
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+
+
+app = QtGui.QApplication([])
+import pyqtgraph.parametertree.parameterTypes as pTypes
+from pyqtgraph.parametertree import Parameter, ParameterTree, ParameterItem, registerParameterType
+
+
+## test subclassing parameters
+## This parameter automatically generates two child parameters which are always reciprocals of each other
+class ComplexParameter(pTypes.GroupParameter):
+    def __init__(self, **opts):
+        opts['type'] = 'bool'
+        opts['value'] = True
+        pTypes.GroupParameter.__init__(self, **opts)
+        
+        self.addChild({'name': 'A = 1/B', 'type': 'float', 'value': 7, 'suffix': 'Hz', 'siPrefix': True})
+        self.addChild({'name': 'B = 1/A', 'type': 'float', 'value': 1/7., 'suffix': 's', 'siPrefix': True})
+        self.a = self.param('A = 1/B')
+        self.b = self.param('B = 1/A')
+        self.a.sigValueChanged.connect(self.aChanged)
+        self.b.sigValueChanged.connect(self.bChanged)
+        
+    def aChanged(self):
+        self.b.setValue(1.0 / self.a.value(), blockSignal=self.bChanged)
+
+    def bChanged(self):
+        self.a.setValue(1.0 / self.b.value(), blockSignal=self.aChanged)
+
+
+## test add/remove
+## this group includes a menu allowing the user to add new parameters into its child list
+class ScalableGroup(pTypes.GroupParameter):
+    def __init__(self, **opts):
+        opts['type'] = 'group'
+        opts['addText'] = "Add"
+        opts['addList'] = ['str', 'float', 'int']
+        pTypes.GroupParameter.__init__(self, **opts)
+    
+    def addNew(self, typ):
+        val = {
+            'str': '',
+            'float': 0.0,
+            'int': 0
+        }[typ]
+        self.addChild(dict(name="ScalableParam %d" % (len(self.childs)+1), type=typ, value=val, removable=True, renamable=True))
+
+
+
+
+params = [
+    {'name': 'Basic parameter data types', 'type': 'group', 'children': [
+        {'name': 'Integer', 'type': 'int', 'value': 10},
+        {'name': 'Float', 'type': 'float', 'value': 10.5, 'step': 0.1},
+        {'name': 'String', 'type': 'str', 'value': "hi"},
+        {'name': 'List', 'type': 'list', 'values': [1,2,3], 'value': 2},
+        {'name': 'Named List', 'type': 'list', 'values': {"one": 1, "two": "twosies", "three": [3,3,3]}, 'value': 2},
+        {'name': 'Boolean', 'type': 'bool', 'value': True, 'tip': "This is a checkbox"},
+        {'name': 'Color', 'type': 'color', 'value': "FF0", 'tip': "This is a color button"},
+        {'name': 'Gradient', 'type': 'colormap'},
+        {'name': 'Subgroup', 'type': 'group', 'children': [
+            {'name': 'Sub-param 1', 'type': 'int', 'value': 10},
+            {'name': 'Sub-param 2', 'type': 'float', 'value': 1.2e6},
+        ]},
+        {'name': 'Text Parameter', 'type': 'text', 'value': 'Some text...'},
+        {'name': 'Action Parameter', 'type': 'action'},
+    ]},
+    {'name': 'Numerical Parameter Options', 'type': 'group', 'children': [
+        {'name': 'Units + SI prefix', 'type': 'float', 'value': 1.2e-6, 'step': 1e-6, 'siPrefix': True, 'suffix': 'V'},
+        {'name': 'Limits (min=7;max=15)', 'type': 'int', 'value': 11, 'limits': (7, 15), 'default': -6},
+        {'name': 'DEC stepping', 'type': 'float', 'value': 1.2e6, 'dec': True, 'step': 1, 'siPrefix': True, 'suffix': 'Hz'},
+        
+    ]},
+    {'name': 'Save/Restore functionality', 'type': 'group', 'children': [
+        {'name': 'Save State', 'type': 'action'},
+        {'name': 'Restore State', 'type': 'action', 'children': [
+            {'name': 'Add missing items', 'type': 'bool', 'value': True},
+            {'name': 'Remove extra items', 'type': 'bool', 'value': True},
+        ]},
+    ]},
+    {'name': 'Extra Parameter Options', 'type': 'group', 'children': [
+        {'name': 'Read-only', 'type': 'float', 'value': 1.2e6, 'siPrefix': True, 'suffix': 'Hz', 'readonly': True},
+        {'name': 'Renamable', 'type': 'float', 'value': 1.2e6, 'siPrefix': True, 'suffix': 'Hz', 'renamable': True},
+        {'name': 'Removable', 'type': 'float', 'value': 1.2e6, 'siPrefix': True, 'suffix': 'Hz', 'removable': True},
+    ]},
+    ComplexParameter(name='Custom parameter group (reciprocal values)'),
+    ScalableGroup(name="Expandable Parameter Group", children=[
+        {'name': 'ScalableParam 1', 'type': 'str', 'value': "default param 1"},
+        {'name': 'ScalableParam 2', 'type': 'str', 'value': "default param 2"},
+    ]),
+]
+
+## Create tree of Parameter objects
+p = Parameter.create(name='params', type='group', children=params)
+
+## If anything changes in the tree, print a message
+def change(param, changes):
+    print("tree changes:")
+    for param, change, data in changes:
+        path = p.childPath(param)
+        if path is not None:
+            childName = '.'.join(path)
+        else:
+            childName = param.name()
+        print('  parameter: %s'% childName)
+        print('  change:    %s'% change)
+        print('  data:      %s'% str(data))
+        print('  ----------')
+    
+p.sigTreeStateChanged.connect(change)
+
+
+def valueChanging(param, value):
+    print("Value changing (not finalized): %s %s" % (param, value))
+    
+# Too lazy for recursion:
+for child in p.children():
+    child.sigValueChanging.connect(valueChanging)
+    for ch2 in child.children():
+        ch2.sigValueChanging.connect(valueChanging)
+        
+
+
+def save():
+    global state
+    state = p.saveState()
+    
+def restore():
+    global state
+    add = p['Save/Restore functionality', 'Restore State', 'Add missing items']
+    rem = p['Save/Restore functionality', 'Restore State', 'Remove extra items']
+    p.restoreState(state, addChildren=add, removeChildren=rem)
+p.param('Save/Restore functionality', 'Save State').sigActivated.connect(save)
+p.param('Save/Restore functionality', 'Restore State').sigActivated.connect(restore)
+
+
+## Create two ParameterTree widgets, both accessing the same data
+t = ParameterTree()
+t.setParameters(p, showTop=False)
+t.setWindowTitle('pyqtgraph example: Parameter Tree')
+t2 = ParameterTree()
+t2.setParameters(p, showTop=False)
+
+win = QtGui.QWidget()
+layout = QtGui.QGridLayout()
+win.setLayout(layout)
+layout.addWidget(QtGui.QLabel("These are two views of the same data. They should always display the same values."), 0,  0, 1, 2)
+layout.addWidget(t, 1, 0, 1, 1)
+layout.addWidget(t2, 1, 1, 1, 1)
+win.show()
+win.resize(800,800)
+
+## test save/restore
+s = p.saveState()
+p.restoreState(s)
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/py2exe/plotTest.py b/site-packages/pyqtgraph-0.10.0/examples/py2exe/plotTest.py
new file mode 100644
index 00000000..1a53a984
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/py2exe/plotTest.py
@@ -0,0 +1,20 @@
+import sys
+from PyQt4 import QtGui
+import pyqtgraph as pg
+from pyqtgraph.graphicsItems import TextItem
+# For packages that require scipy, these may be needed: 
+#   from scipy.stats import futil
+#   from scipy.sparse.csgraph import _validation
+
+from pyqtgraph import setConfigOption
+pg.setConfigOption('background','w')
+pg.setConfigOption('foreground','k')
+app = QtGui.QApplication(sys.argv)
+
+pw = pg.plot(x = [0, 1, 2, 4], y = [4, 5, 9, 6])
+pw.showGrid(x=True,y=True)
+text = pg.TextItem(html='<div style="text-align: center"><span style="color: #000000;"> %s</span></div>' % "here",anchor=(0.0, 0.0)) 
+text.setPos(1.0, 5.0)
+pw.addItem(text)
+status = app.exec_()
+sys.exit(status)
diff --git a/site-packages/pyqtgraph-0.10.0/examples/py2exe/setup.py b/site-packages/pyqtgraph-0.10.0/examples/py2exe/setup.py
new file mode 100644
index 00000000..c342f90d
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/py2exe/setup.py
@@ -0,0 +1,36 @@
+from distutils.core import setup
+
+import shutil
+from glob import glob
+# Remove the build folder
+shutil.rmtree("build", ignore_errors=True)
+shutil.rmtree("dist", ignore_errors=True)
+import py2exe
+import sys
+
+includes = ['PyQt4', 'PyQt4.QtGui', 'PyQt4.QtSvg', 'sip', 'pyqtgraph.graphicsItems']
+excludes = ['_gtkagg', '_tkagg', 'bsddb', 'curses', 'email', 'pywin.debugger',
+            'pywin.debugger.dbgcon', 'pywin.dialogs', 'tcl',
+            'Tkconstants', 'Tkinter', 'zmq']
+if sys.version[0] == '2':
+    # causes syntax error on py2
+    excludes.append('PyQt4.uic.port_v3')
+
+packages = []
+dll_excludes = ['libgdk-win32-2.0-0.dll', 'libgobject-2.0-0.dll', 'tcl84.dll',
+                'tk84.dll', 'MSVCP90.dll']
+icon_resources = []
+bitmap_resources = []
+other_resources = []
+data_files = []
+setup(
+  data_files=data_files,
+  console=['plotTest.py'] ,
+  options={"py2exe": {"excludes": excludes,
+                      "includes": includes,
+                      "dll_excludes": dll_excludes,
+                      "optimize": 0,
+                      "compressed": 2,
+                      "bundle_files": 1}},
+  zipfile=None,
+) 
diff --git a/site-packages/pyqtgraph-0.10.0/examples/relativity/__init__.py b/site-packages/pyqtgraph-0.10.0/examples/relativity/__init__.py
new file mode 100644
index 00000000..f1acf528
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/relativity/__init__.py
@@ -0,0 +1 @@
+from .relativity import *
diff --git a/site-packages/pyqtgraph-0.10.0/examples/relativity/presets/Grid Expansion.cfg b/site-packages/pyqtgraph-0.10.0/examples/relativity/presets/Grid Expansion.cfg
new file mode 100644
index 00000000..0ab77795
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/relativity/presets/Grid Expansion.cfg	
@@ -0,0 +1,411 @@
+name: 'params'
+strictNaming: False
+default: None
+renamable: False
+enabled: True
+value: None
+visible: True
+readonly: False
+removable: False
+type: 'group'
+children:
+    Load Preset..:
+        name: 'Load Preset..'
+        limits: ['', 'Twin Paradox (grid)', 'Twin Paradox']
+        strictNaming: False
+        default: None
+        renamable: False
+        enabled: True
+        value: 'Twin Paradox (grid)'
+        visible: True
+        readonly: False
+        values: []
+        removable: False
+        type: 'list'
+        children:
+    Duration:
+        name: 'Duration'
+        limits: [0.1, None]
+        strictNaming: False
+        default: 10.0
+        renamable: False
+        enabled: True
+        readonly: False
+        value: 20.0
+        visible: True
+        step: 0.1
+        removable: False
+        type: 'float'
+        children:
+    Reference Frame:
+        name: 'Reference Frame'
+        limits: ['Grid00', 'Grid01', 'Grid02', 'Grid03', 'Grid04']
+        strictNaming: False
+        default: None
+        renamable: False
+        enabled: True
+        value: 'Grid02'
+        visible: True
+        readonly: False
+        values: []
+        removable: False
+        type: 'list'
+        children:
+    Animate:
+        name: 'Animate'
+        strictNaming: False
+        default: True
+        renamable: False
+        enabled: True
+        value: True
+        visible: True
+        readonly: False
+        removable: False
+        type: 'bool'
+        children:
+    Animation Speed:
+        name: 'Animation Speed'
+        limits: [0.0001, None]
+        strictNaming: False
+        default: 1.0
+        renamable: False
+        enabled: True
+        readonly: False
+        value: 1.0
+        visible: True
+        step: 0.1
+        removable: False
+        dec: True
+        type: 'float'
+        children:
+    Recalculate Worldlines:
+        name: 'Recalculate Worldlines'
+        strictNaming: False
+        default: None
+        renamable: False
+        enabled: True
+        value: None
+        visible: True
+        readonly: False
+        removable: False
+        type: 'action'
+        children:
+    Save:
+        name: 'Save'
+        strictNaming: False
+        default: None
+        renamable: False
+        enabled: True
+        value: None
+        visible: True
+        readonly: False
+        removable: False
+        type: 'action'
+        children:
+    Load:
+        name: 'Load'
+        strictNaming: False
+        default: None
+        renamable: False
+        enabled: True
+        value: None
+        visible: True
+        readonly: False
+        removable: False
+        type: 'action'
+        children:
+    Objects:
+        name: 'Objects'
+        strictNaming: False
+        default: None
+        renamable: False
+        addText: 'Add New..'
+        enabled: True
+        value: None
+        visible: True
+        readonly: False
+        removable: False
+        type: None
+        children:
+            Grid:
+                name: 'Grid'
+                strictNaming: False
+                default: None
+                renamable: True
+                enabled: True
+                value: None
+                visible: True
+                readonly: False
+                removable: True
+                type: 'Grid'
+                autoIncrementName: True
+                children:
+                    Number of Clocks:
+                        name: 'Number of Clocks'
+                        limits: [1, None]
+                        strictNaming: False
+                        default: 5
+                        renamable: False
+                        enabled: True
+                        value: 5
+                        visible: True
+                        readonly: False
+                        removable: False
+                        type: 'int'
+                        children:
+                    Spacing:
+                        name: 'Spacing'
+                        strictNaming: False
+                        default: 1.0
+                        renamable: False
+                        enabled: True
+                        readonly: False
+                        value: 1.0
+                        visible: True
+                        step: 0.1
+                        removable: False
+                        type: 'float'
+                        children:
+                    ClockTemplate:
+                        name: 'ClockTemplate'
+                        strictNaming: False
+                        default: None
+                        renamable: True
+                        enabled: True
+                        value: None
+                        visible: True
+                        readonly: False
+                        removable: True
+                        type: 'Clock'
+                        autoIncrementName: True
+                        children:
+                            Initial Position:
+                                name: 'Initial Position'
+                                strictNaming: False
+                                default: 0.0
+                                renamable: False
+                                enabled: True
+                                readonly: False
+                                value: -2.0
+                                visible: True
+                                step: 0.1
+                                removable: False
+                                type: 'float'
+                                children:
+                            Acceleration:
+                                name: 'Acceleration'
+                                strictNaming: False
+                                default: None
+                                renamable: False
+                                addText: 'Add Command..'
+                                enabled: True
+                                value: None
+                                visible: True
+                                readonly: False
+                                removable: False
+                                type: 'AccelerationGroup'
+                                children:
+                                    Command:
+                                        name: 'Command'
+                                        strictNaming: False
+                                        default: None
+                                        renamable: True
+                                        enabled: True
+                                        value: None
+                                        visible: True
+                                        readonly: False
+                                        removable: True
+                                        type: None
+                                        autoIncrementName: True
+                                        children:
+                                            Proper Time:
+                                                name: 'Proper Time'
+                                                strictNaming: False
+                                                default: 0.0
+                                                renamable: False
+                                                enabled: True
+                                                value: 1.0
+                                                visible: True
+                                                readonly: False
+                                                removable: False
+                                                type: 'float'
+                                                children:
+                                            Acceleration:
+                                                name: 'Acceleration'
+                                                strictNaming: False
+                                                default: 0.0
+                                                renamable: False
+                                                enabled: True
+                                                readonly: False
+                                                value: 0.5
+                                                visible: True
+                                                step: 0.1
+                                                removable: False
+                                                type: 'float'
+                                                children:
+                                    Command2:
+                                        name: 'Command2'
+                                        strictNaming: False
+                                        default: None
+                                        renamable: True
+                                        enabled: True
+                                        value: None
+                                        visible: True
+                                        readonly: False
+                                        removable: True
+                                        type: None
+                                        autoIncrementName: True
+                                        children:
+                                            Proper Time:
+                                                name: 'Proper Time'
+                                                strictNaming: False
+                                                default: 2.0
+                                                renamable: False
+                                                enabled: True
+                                                value: 3.0
+                                                visible: True
+                                                readonly: False
+                                                removable: False
+                                                type: 'float'
+                                                children:
+                                            Acceleration:
+                                                name: 'Acceleration'
+                                                strictNaming: False
+                                                default: 0.0
+                                                renamable: False
+                                                enabled: True
+                                                readonly: False
+                                                value: 0.0
+                                                visible: True
+                                                step: 0.1
+                                                removable: False
+                                                type: 'float'
+                                                children:
+                                    Command3:
+                                        name: 'Command3'
+                                        strictNaming: False
+                                        default: None
+                                        renamable: True
+                                        enabled: True
+                                        value: None
+                                        visible: True
+                                        readonly: False
+                                        removable: True
+                                        type: None
+                                        autoIncrementName: True
+                                        children:
+                                            Proper Time:
+                                                name: 'Proper Time'
+                                                strictNaming: False
+                                                default: 4.0
+                                                renamable: False
+                                                enabled: True
+                                                value: 11.0
+                                                visible: True
+                                                readonly: False
+                                                removable: False
+                                                type: 'float'
+                                                children:
+                                            Acceleration:
+                                                name: 'Acceleration'
+                                                strictNaming: False
+                                                default: 0.0
+                                                renamable: False
+                                                enabled: True
+                                                readonly: False
+                                                value: -0.5
+                                                visible: True
+                                                step: 0.1
+                                                removable: False
+                                                type: 'float'
+                                                children:
+                                    Command4:
+                                        name: 'Command4'
+                                        strictNaming: False
+                                        default: None
+                                        renamable: True
+                                        enabled: True
+                                        value: None
+                                        visible: True
+                                        readonly: False
+                                        removable: True
+                                        type: None
+                                        autoIncrementName: True
+                                        children:
+                                            Proper Time:
+                                                name: 'Proper Time'
+                                                strictNaming: False
+                                                default: 8.0
+                                                renamable: False
+                                                enabled: True
+                                                value: 13.0
+                                                visible: True
+                                                readonly: False
+                                                removable: False
+                                                type: 'float'
+                                                children:
+                                            Acceleration:
+                                                name: 'Acceleration'
+                                                strictNaming: False
+                                                default: 0.0
+                                                renamable: False
+                                                enabled: True
+                                                readonly: False
+                                                value: 0.0
+                                                visible: True
+                                                step: 0.1
+                                                removable: False
+                                                type: 'float'
+                                                children:
+                            Rest Mass:
+                                name: 'Rest Mass'
+                                limits: [1e-09, None]
+                                strictNaming: False
+                                default: 1.0
+                                renamable: False
+                                enabled: True
+                                readonly: False
+                                value: 1.0
+                                visible: True
+                                step: 0.1
+                                removable: False
+                                type: 'float'
+                                children:
+                            Color:
+                                name: 'Color'
+                                strictNaming: False
+                                default: (100, 100, 150)
+                                renamable: False
+                                enabled: True
+                                value: (100, 100, 150, 255)
+                                visible: True
+                                readonly: False
+                                removable: False
+                                type: 'color'
+                                children:
+                            Size:
+                                name: 'Size'
+                                strictNaming: False
+                                default: 0.5
+                                renamable: False
+                                enabled: True
+                                value: 0.5
+                                visible: True
+                                readonly: False
+                                removable: False
+                                type: 'float'
+                                children:
+                            Vertical Position:
+                                name: 'Vertical Position'
+                                strictNaming: False
+                                default: 0.0
+                                renamable: False
+                                enabled: True
+                                readonly: False
+                                value: 0.0
+                                visible: True
+                                step: 0.1
+                                removable: False
+                                type: 'float'
+                                children:
+        addList: ['Clock', 'Grid']
diff --git a/site-packages/pyqtgraph-0.10.0/examples/relativity/presets/Twin Paradox (grid).cfg b/site-packages/pyqtgraph-0.10.0/examples/relativity/presets/Twin Paradox (grid).cfg
new file mode 100644
index 00000000..ebe366bf
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/relativity/presets/Twin Paradox (grid).cfg	
@@ -0,0 +1,667 @@
+name: 'params'
+strictNaming: False
+default: None
+renamable: False
+enabled: True
+value: None
+visible: True
+readonly: False
+removable: False
+type: 'group'
+children:
+    Load Preset..:
+        name: 'Load Preset..'
+        limits: ['', 'Twin Paradox (grid)', 'Twin Paradox']
+        strictNaming: False
+        default: None
+        renamable: False
+        enabled: True
+        value: 'Twin Paradox (grid)'
+        visible: True
+        readonly: False
+        values: []
+        removable: False
+        type: 'list'
+        children:
+    Duration:
+        name: 'Duration'
+        limits: [0.1, None]
+        strictNaming: False
+        default: 10.0
+        renamable: False
+        enabled: True
+        readonly: False
+        value: 27.0
+        visible: True
+        step: 0.1
+        removable: False
+        type: 'float'
+        children:
+    Reference Frame:
+        name: 'Reference Frame'
+        limits: ['Grid00', 'Grid01', 'Grid02', 'Grid03', 'Grid04', 'Grid05', 'Grid06', 'Grid07', 'Grid08', 'Grid09', 'Grid10', 'Alice', 'Bob']
+        strictNaming: False
+        default: None
+        renamable: False
+        enabled: True
+        value: 'Alice'
+        visible: True
+        readonly: False
+        values: []
+        removable: False
+        type: 'list'
+        children:
+    Animate:
+        name: 'Animate'
+        strictNaming: False
+        default: True
+        renamable: False
+        enabled: True
+        value: True
+        visible: True
+        readonly: False
+        removable: False
+        type: 'bool'
+        children:
+    Animation Speed:
+        name: 'Animation Speed'
+        limits: [0.0001, None]
+        strictNaming: False
+        default: 1.0
+        renamable: False
+        enabled: True
+        readonly: False
+        value: 1.0
+        visible: True
+        step: 0.1
+        removable: False
+        dec: True
+        type: 'float'
+        children:
+    Recalculate Worldlines:
+        name: 'Recalculate Worldlines'
+        strictNaming: False
+        default: None
+        renamable: False
+        enabled: True
+        value: None
+        visible: True
+        readonly: False
+        removable: False
+        type: 'action'
+        children:
+    Save:
+        name: 'Save'
+        strictNaming: False
+        default: None
+        renamable: False
+        enabled: True
+        value: None
+        visible: True
+        readonly: False
+        removable: False
+        type: 'action'
+        children:
+    Load:
+        name: 'Load'
+        strictNaming: False
+        default: None
+        renamable: False
+        enabled: True
+        value: None
+        visible: True
+        readonly: False
+        removable: False
+        type: 'action'
+        children:
+    Objects:
+        name: 'Objects'
+        strictNaming: False
+        default: None
+        renamable: False
+        addText: 'Add New..'
+        enabled: True
+        value: None
+        visible: True
+        readonly: False
+        removable: False
+        type: None
+        children:
+            Grid:
+                name: 'Grid'
+                strictNaming: False
+                default: None
+                renamable: True
+                enabled: True
+                value: None
+                visible: True
+                readonly: False
+                removable: True
+                type: 'Grid'
+                autoIncrementName: True
+                children:
+                    Number of Clocks:
+                        name: 'Number of Clocks'
+                        limits: [1, None]
+                        strictNaming: False
+                        default: 5
+                        renamable: False
+                        enabled: True
+                        value: 11
+                        visible: True
+                        readonly: False
+                        removable: False
+                        type: 'int'
+                        children:
+                    Spacing:
+                        name: 'Spacing'
+                        strictNaming: False
+                        default: 1.0
+                        renamable: False
+                        enabled: True
+                        readonly: False
+                        value: 2.0
+                        visible: True
+                        step: 0.1
+                        removable: False
+                        type: 'float'
+                        children:
+                    ClockTemplate:
+                        name: 'ClockTemplate'
+                        strictNaming: False
+                        default: None
+                        renamable: True
+                        enabled: True
+                        value: None
+                        visible: True
+                        readonly: False
+                        removable: True
+                        type: 'Clock'
+                        autoIncrementName: True
+                        children:
+                            Initial Position:
+                                name: 'Initial Position'
+                                strictNaming: False
+                                default: 0.0
+                                renamable: False
+                                enabled: True
+                                readonly: False
+                                value: -10.0
+                                visible: True
+                                step: 0.1
+                                removable: False
+                                type: 'float'
+                                children:
+                            Acceleration:
+                                name: 'Acceleration'
+                                strictNaming: False
+                                default: None
+                                renamable: False
+                                addText: 'Add Command..'
+                                enabled: True
+                                value: None
+                                visible: True
+                                readonly: False
+                                removable: False
+                                type: 'AccelerationGroup'
+                                children:
+                            Rest Mass:
+                                name: 'Rest Mass'
+                                limits: [1e-09, None]
+                                strictNaming: False
+                                default: 1.0
+                                renamable: False
+                                enabled: True
+                                readonly: False
+                                value: 1.0
+                                visible: True
+                                step: 0.1
+                                removable: False
+                                type: 'float'
+                                children:
+                            Color:
+                                name: 'Color'
+                                strictNaming: False
+                                default: (100, 100, 150)
+                                renamable: False
+                                enabled: True
+                                value: (77, 77, 77, 255)
+                                visible: True
+                                readonly: False
+                                removable: False
+                                type: 'color'
+                                children:
+                            Size:
+                                name: 'Size'
+                                strictNaming: False
+                                default: 0.5
+                                renamable: False
+                                enabled: True
+                                value: 1.0
+                                visible: True
+                                readonly: False
+                                removable: False
+                                type: 'float'
+                                children:
+                            Vertical Position:
+                                name: 'Vertical Position'
+                                strictNaming: False
+                                default: 0.0
+                                renamable: False
+                                enabled: True
+                                readonly: False
+                                value: -2.0
+                                visible: True
+                                step: 0.1
+                                removable: False
+                                type: 'float'
+                                children:
+            Alice:
+                name: 'Alice'
+                strictNaming: False
+                default: None
+                renamable: True
+                enabled: True
+                value: None
+                visible: True
+                readonly: False
+                removable: True
+                type: 'Clock'
+                autoIncrementName: True
+                children:
+                    Initial Position:
+                        name: 'Initial Position'
+                        strictNaming: False
+                        default: 0.0
+                        renamable: False
+                        enabled: True
+                        readonly: False
+                        value: 0.0
+                        visible: True
+                        step: 0.1
+                        removable: False
+                        type: 'float'
+                        children:
+                    Acceleration:
+                        name: 'Acceleration'
+                        strictNaming: False
+                        default: None
+                        renamable: False
+                        addText: 'Add Command..'
+                        enabled: True
+                        value: None
+                        visible: True
+                        readonly: False
+                        removable: False
+                        type: 'AccelerationGroup'
+                        children:
+                            Command:
+                                name: 'Command'
+                                strictNaming: False
+                                default: None
+                                renamable: True
+                                enabled: True
+                                value: None
+                                visible: True
+                                readonly: False
+                                removable: True
+                                type: None
+                                autoIncrementName: True
+                                children:
+                                    Proper Time:
+                                        name: 'Proper Time'
+                                        strictNaming: False
+                                        default: 0.0
+                                        renamable: False
+                                        enabled: True
+                                        value: 1.0
+                                        visible: True
+                                        readonly: False
+                                        removable: False
+                                        type: 'float'
+                                        children:
+                                    Acceleration:
+                                        name: 'Acceleration'
+                                        strictNaming: False
+                                        default: 0.0
+                                        renamable: False
+                                        enabled: True
+                                        readonly: False
+                                        value: 0.5
+                                        visible: True
+                                        step: 0.1
+                                        removable: False
+                                        type: 'float'
+                                        children:
+                            Command2:
+                                name: 'Command2'
+                                strictNaming: False
+                                default: None
+                                renamable: True
+                                enabled: True
+                                value: None
+                                visible: True
+                                readonly: False
+                                removable: True
+                                type: None
+                                autoIncrementName: True
+                                children:
+                                    Proper Time:
+                                        name: 'Proper Time'
+                                        strictNaming: False
+                                        default: 2.0
+                                        renamable: False
+                                        enabled: True
+                                        value: 3.0
+                                        visible: True
+                                        readonly: False
+                                        removable: False
+                                        type: 'float'
+                                        children:
+                                    Acceleration:
+                                        name: 'Acceleration'
+                                        strictNaming: False
+                                        default: 0.0
+                                        renamable: False
+                                        enabled: True
+                                        readonly: False
+                                        value: 0.0
+                                        visible: True
+                                        step: 0.1
+                                        removable: False
+                                        type: 'float'
+                                        children:
+                            Command3:
+                                name: 'Command3'
+                                strictNaming: False
+                                default: None
+                                renamable: True
+                                enabled: True
+                                value: None
+                                visible: True
+                                readonly: False
+                                removable: True
+                                type: None
+                                autoIncrementName: True
+                                children:
+                                    Proper Time:
+                                        name: 'Proper Time'
+                                        strictNaming: False
+                                        default: 3.0
+                                        renamable: False
+                                        enabled: True
+                                        value: 8.0
+                                        visible: True
+                                        readonly: False
+                                        removable: False
+                                        type: 'float'
+                                        children:
+                                    Acceleration:
+                                        name: 'Acceleration'
+                                        strictNaming: False
+                                        default: 0.0
+                                        renamable: False
+                                        enabled: True
+                                        readonly: False
+                                        value: -0.5
+                                        visible: True
+                                        step: 0.1
+                                        removable: False
+                                        type: 'float'
+                                        children:
+                            Command4:
+                                name: 'Command4'
+                                strictNaming: False
+                                default: None
+                                renamable: True
+                                enabled: True
+                                value: None
+                                visible: True
+                                readonly: False
+                                removable: True
+                                type: None
+                                autoIncrementName: True
+                                children:
+                                    Proper Time:
+                                        name: 'Proper Time'
+                                        strictNaming: False
+                                        default: 4.0
+                                        renamable: False
+                                        enabled: True
+                                        value: 12.0
+                                        visible: True
+                                        readonly: False
+                                        removable: False
+                                        type: 'float'
+                                        children:
+                                    Acceleration:
+                                        name: 'Acceleration'
+                                        strictNaming: False
+                                        default: 0.0
+                                        renamable: False
+                                        enabled: True
+                                        readonly: False
+                                        value: 0.0
+                                        visible: True
+                                        step: 0.1
+                                        removable: False
+                                        type: 'float'
+                                        children:
+                            Command5:
+                                name: 'Command5'
+                                strictNaming: False
+                                default: None
+                                renamable: True
+                                enabled: True
+                                value: None
+                                visible: True
+                                readonly: False
+                                removable: True
+                                type: None
+                                autoIncrementName: True
+                                children:
+                                    Proper Time:
+                                        name: 'Proper Time'
+                                        strictNaming: False
+                                        default: 6.0
+                                        renamable: False
+                                        enabled: True
+                                        value: 17.0
+                                        visible: True
+                                        readonly: False
+                                        removable: False
+                                        type: 'float'
+                                        children:
+                                    Acceleration:
+                                        name: 'Acceleration'
+                                        strictNaming: False
+                                        default: 0.0
+                                        renamable: False
+                                        enabled: True
+                                        readonly: False
+                                        value: 0.5
+                                        visible: True
+                                        step: 0.1
+                                        removable: False
+                                        type: 'float'
+                                        children:
+                            Command6:
+                                name: 'Command6'
+                                strictNaming: False
+                                default: None
+                                renamable: True
+                                enabled: True
+                                value: None
+                                visible: True
+                                readonly: False
+                                removable: True
+                                type: None
+                                autoIncrementName: True
+                                children:
+                                    Proper Time:
+                                        name: 'Proper Time'
+                                        strictNaming: False
+                                        default: 7.0
+                                        renamable: False
+                                        enabled: True
+                                        value: 19.0
+                                        visible: True
+                                        readonly: False
+                                        removable: False
+                                        type: 'float'
+                                        children:
+                                    Acceleration:
+                                        name: 'Acceleration'
+                                        strictNaming: False
+                                        default: 0.0
+                                        renamable: False
+                                        enabled: True
+                                        readonly: False
+                                        value: 0.0
+                                        visible: True
+                                        step: 0.1
+                                        removable: False
+                                        type: 'float'
+                                        children:
+                    Rest Mass:
+                        name: 'Rest Mass'
+                        limits: [1e-09, None]
+                        strictNaming: False
+                        default: 1.0
+                        renamable: False
+                        enabled: True
+                        readonly: False
+                        value: 1.0
+                        visible: True
+                        step: 0.1
+                        removable: False
+                        type: 'float'
+                        children:
+                    Color:
+                        name: 'Color'
+                        strictNaming: False
+                        default: (100, 100, 150)
+                        renamable: False
+                        enabled: True
+                        value: (82, 123, 44, 255)
+                        visible: True
+                        readonly: False
+                        removable: False
+                        type: 'color'
+                        children:
+                    Size:
+                        name: 'Size'
+                        strictNaming: False
+                        default: 0.5
+                        renamable: False
+                        enabled: True
+                        value: 1.5
+                        visible: True
+                        readonly: False
+                        removable: False
+                        type: 'float'
+                        children:
+                    Vertical Position:
+                        name: 'Vertical Position'
+                        strictNaming: False
+                        default: 0.0
+                        renamable: False
+                        enabled: True
+                        readonly: False
+                        value: 3.0
+                        visible: True
+                        step: 0.1
+                        removable: False
+                        type: 'float'
+                        children:
+            Bob:
+                name: 'Bob'
+                strictNaming: False
+                default: None
+                renamable: True
+                enabled: True
+                value: None
+                visible: True
+                readonly: False
+                removable: True
+                type: 'Clock'
+                autoIncrementName: True
+                children:
+                    Initial Position:
+                        name: 'Initial Position'
+                        strictNaming: False
+                        default: 0.0
+                        renamable: False
+                        enabled: True
+                        readonly: False
+                        value: 0.0
+                        visible: True
+                        step: 0.1
+                        removable: False
+                        type: 'float'
+                        children:
+                    Acceleration:
+                        name: 'Acceleration'
+                        strictNaming: False
+                        default: None
+                        renamable: False
+                        addText: 'Add Command..'
+                        enabled: True
+                        value: None
+                        visible: True
+                        readonly: False
+                        removable: False
+                        type: 'AccelerationGroup'
+                        children:
+                    Rest Mass:
+                        name: 'Rest Mass'
+                        limits: [1e-09, None]
+                        strictNaming: False
+                        default: 1.0
+                        renamable: False
+                        enabled: True
+                        readonly: False
+                        value: 1.0
+                        visible: True
+                        step: 0.1
+                        removable: False
+                        type: 'float'
+                        children:
+                    Color:
+                        name: 'Color'
+                        strictNaming: False
+                        default: (100, 100, 150)
+                        renamable: False
+                        enabled: True
+                        value: (69, 69, 126, 255)
+                        visible: True
+                        readonly: False
+                        removable: False
+                        type: 'color'
+                        children:
+                    Size:
+                        name: 'Size'
+                        strictNaming: False
+                        default: 0.5
+                        renamable: False
+                        enabled: True
+                        value: 1.5
+                        visible: True
+                        readonly: False
+                        removable: False
+                        type: 'float'
+                        children:
+                    Vertical Position:
+                        name: 'Vertical Position'
+                        strictNaming: False
+                        default: 0.0
+                        renamable: False
+                        enabled: True
+                        readonly: False
+                        value: 0.0
+                        visible: True
+                        step: 0.1
+                        removable: False
+                        type: 'float'
+                        children:
+        addList: ['Clock', 'Grid']
diff --git a/site-packages/pyqtgraph-0.10.0/examples/relativity/presets/Twin Paradox.cfg b/site-packages/pyqtgraph-0.10.0/examples/relativity/presets/Twin Paradox.cfg
new file mode 100644
index 00000000..569c3a04
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/relativity/presets/Twin Paradox.cfg	
@@ -0,0 +1,538 @@
+name: 'params'
+strictNaming: False
+default: None
+renamable: False
+enabled: True
+value: None
+visible: True
+readonly: False
+removable: False
+type: 'group'
+children:
+    Load Preset..:
+        name: 'Load Preset..'
+        limits: ['', 'Twin Paradox', 'test']
+        strictNaming: False
+        default: None
+        renamable: False
+        enabled: True
+        value: 'Twin Paradox'
+        visible: True
+        readonly: False
+        values: []
+        removable: False
+        type: 'list'
+        children:
+    Duration:
+        name: 'Duration'
+        limits: [0.1, None]
+        strictNaming: False
+        default: 10.0
+        renamable: False
+        enabled: True
+        readonly: False
+        value: 27.0
+        visible: True
+        step: 0.1
+        removable: False
+        type: 'float'
+        children:
+    Reference Frame:
+        name: 'Reference Frame'
+        limits: ['Alice', 'Bob']
+        strictNaming: False
+        default: None
+        renamable: False
+        enabled: True
+        value: 'Alice'
+        visible: True
+        readonly: False
+        values: []
+        removable: False
+        type: 'list'
+        children:
+    Animate:
+        name: 'Animate'
+        strictNaming: False
+        default: True
+        renamable: False
+        enabled: True
+        value: True
+        visible: True
+        readonly: False
+        removable: False
+        type: 'bool'
+        children:
+    Animation Speed:
+        name: 'Animation Speed'
+        limits: [0.0001, None]
+        strictNaming: False
+        default: 1.0
+        renamable: False
+        enabled: True
+        readonly: False
+        value: 1.0
+        visible: True
+        step: 0.1
+        removable: False
+        dec: True
+        type: 'float'
+        children:
+    Recalculate Worldlines:
+        name: 'Recalculate Worldlines'
+        strictNaming: False
+        default: None
+        renamable: False
+        enabled: True
+        value: None
+        visible: True
+        readonly: False
+        removable: False
+        type: 'action'
+        children:
+    Save:
+        name: 'Save'
+        strictNaming: False
+        default: None
+        renamable: False
+        enabled: True
+        value: None
+        visible: True
+        readonly: False
+        removable: False
+        type: 'action'
+        children:
+    Load:
+        name: 'Load'
+        strictNaming: False
+        default: None
+        renamable: False
+        enabled: True
+        value: None
+        visible: True
+        readonly: False
+        removable: False
+        type: 'action'
+        children:
+    Objects:
+        name: 'Objects'
+        strictNaming: False
+        default: None
+        renamable: False
+        addText: 'Add New..'
+        enabled: True
+        value: None
+        visible: True
+        readonly: False
+        removable: False
+        type: None
+        children:
+            Alice:
+                name: 'Alice'
+                strictNaming: False
+                default: None
+                renamable: True
+                enabled: True
+                value: None
+                visible: True
+                readonly: False
+                removable: True
+                type: 'Clock'
+                autoIncrementName: True
+                children:
+                    Initial Position:
+                        name: 'Initial Position'
+                        strictNaming: False
+                        default: 0.0
+                        renamable: False
+                        enabled: True
+                        readonly: False
+                        value: 0.0
+                        visible: True
+                        step: 0.1
+                        removable: False
+                        type: 'float'
+                        children:
+                    Acceleration:
+                        name: 'Acceleration'
+                        strictNaming: False
+                        default: None
+                        renamable: False
+                        addText: 'Add Command..'
+                        enabled: True
+                        value: None
+                        visible: True
+                        readonly: False
+                        removable: False
+                        type: 'AccelerationGroup'
+                        children:
+                            Command:
+                                name: 'Command'
+                                strictNaming: False
+                                default: None
+                                renamable: True
+                                enabled: True
+                                value: None
+                                visible: True
+                                readonly: False
+                                removable: True
+                                type: None
+                                autoIncrementName: True
+                                children:
+                                    Proper Time:
+                                        name: 'Proper Time'
+                                        strictNaming: False
+                                        default: 0.0
+                                        renamable: False
+                                        enabled: True
+                                        value: 1.0
+                                        visible: True
+                                        readonly: False
+                                        removable: False
+                                        type: 'float'
+                                        children:
+                                    Acceleration:
+                                        name: 'Acceleration'
+                                        strictNaming: False
+                                        default: 0.0
+                                        renamable: False
+                                        enabled: True
+                                        readonly: False
+                                        value: 0.5
+                                        visible: True
+                                        step: 0.1
+                                        removable: False
+                                        type: 'float'
+                                        children:
+                            Command2:
+                                name: 'Command2'
+                                strictNaming: False
+                                default: None
+                                renamable: True
+                                enabled: True
+                                value: None
+                                visible: True
+                                readonly: False
+                                removable: True
+                                type: None
+                                autoIncrementName: True
+                                children:
+                                    Proper Time:
+                                        name: 'Proper Time'
+                                        strictNaming: False
+                                        default: 2.0
+                                        renamable: False
+                                        enabled: True
+                                        value: 3.0
+                                        visible: True
+                                        readonly: False
+                                        removable: False
+                                        type: 'float'
+                                        children:
+                                    Acceleration:
+                                        name: 'Acceleration'
+                                        strictNaming: False
+                                        default: 0.0
+                                        renamable: False
+                                        enabled: True
+                                        readonly: False
+                                        value: 0.0
+                                        visible: True
+                                        step: 0.1
+                                        removable: False
+                                        type: 'float'
+                                        children:
+                            Command3:
+                                name: 'Command3'
+                                strictNaming: False
+                                default: None
+                                renamable: True
+                                enabled: True
+                                value: None
+                                visible: True
+                                readonly: False
+                                removable: True
+                                type: None
+                                autoIncrementName: True
+                                children:
+                                    Proper Time:
+                                        name: 'Proper Time'
+                                        strictNaming: False
+                                        default: 3.0
+                                        renamable: False
+                                        enabled: True
+                                        value: 8.0
+                                        visible: True
+                                        readonly: False
+                                        removable: False
+                                        type: 'float'
+                                        children:
+                                    Acceleration:
+                                        name: 'Acceleration'
+                                        strictNaming: False
+                                        default: 0.0
+                                        renamable: False
+                                        enabled: True
+                                        readonly: False
+                                        value: -0.5
+                                        visible: True
+                                        step: 0.1
+                                        removable: False
+                                        type: 'float'
+                                        children:
+                            Command4:
+                                name: 'Command4'
+                                strictNaming: False
+                                default: None
+                                renamable: True
+                                enabled: True
+                                value: None
+                                visible: True
+                                readonly: False
+                                removable: True
+                                type: None
+                                autoIncrementName: True
+                                children:
+                                    Proper Time:
+                                        name: 'Proper Time'
+                                        strictNaming: False
+                                        default: 4.0
+                                        renamable: False
+                                        enabled: True
+                                        value: 12.0
+                                        visible: True
+                                        readonly: False
+                                        removable: False
+                                        type: 'float'
+                                        children:
+                                    Acceleration:
+                                        name: 'Acceleration'
+                                        strictNaming: False
+                                        default: 0.0
+                                        renamable: False
+                                        enabled: True
+                                        readonly: False
+                                        value: 0.0
+                                        visible: True
+                                        step: 0.1
+                                        removable: False
+                                        type: 'float'
+                                        children:
+                            Command5:
+                                name: 'Command5'
+                                strictNaming: False
+                                default: None
+                                renamable: True
+                                enabled: True
+                                value: None
+                                visible: True
+                                readonly: False
+                                removable: True
+                                type: None
+                                autoIncrementName: True
+                                children:
+                                    Proper Time:
+                                        name: 'Proper Time'
+                                        strictNaming: False
+                                        default: 6.0
+                                        renamable: False
+                                        enabled: True
+                                        value: 17.0
+                                        visible: True
+                                        readonly: False
+                                        removable: False
+                                        type: 'float'
+                                        children:
+                                    Acceleration:
+                                        name: 'Acceleration'
+                                        strictNaming: False
+                                        default: 0.0
+                                        renamable: False
+                                        enabled: True
+                                        readonly: False
+                                        value: 0.5
+                                        visible: True
+                                        step: 0.1
+                                        removable: False
+                                        type: 'float'
+                                        children:
+                            Command6:
+                                name: 'Command6'
+                                strictNaming: False
+                                default: None
+                                renamable: True
+                                enabled: True
+                                value: None
+                                visible: True
+                                readonly: False
+                                removable: True
+                                type: None
+                                autoIncrementName: True
+                                children:
+                                    Proper Time:
+                                        name: 'Proper Time'
+                                        strictNaming: False
+                                        default: 7.0
+                                        renamable: False
+                                        enabled: True
+                                        value: 19.0
+                                        visible: True
+                                        readonly: False
+                                        removable: False
+                                        type: 'float'
+                                        children:
+                                    Acceleration:
+                                        name: 'Acceleration'
+                                        strictNaming: False
+                                        default: 0.0
+                                        renamable: False
+                                        enabled: True
+                                        readonly: False
+                                        value: 0.0
+                                        visible: True
+                                        step: 0.1
+                                        removable: False
+                                        type: 'float'
+                                        children:
+                    Rest Mass:
+                        name: 'Rest Mass'
+                        limits: [1e-09, None]
+                        strictNaming: False
+                        default: 1.0
+                        renamable: False
+                        enabled: True
+                        readonly: False
+                        value: 1.0
+                        visible: True
+                        step: 0.1
+                        removable: False
+                        type: 'float'
+                        children:
+                    Color:
+                        name: 'Color'
+                        strictNaming: False
+                        default: (100, 100, 150)
+                        renamable: False
+                        enabled: True
+                        value: (82, 123, 44, 255)
+                        visible: True
+                        readonly: False
+                        removable: False
+                        type: 'color'
+                        children:
+                    Size:
+                        name: 'Size'
+                        strictNaming: False
+                        default: 0.5
+                        renamable: False
+                        enabled: True
+                        value: 0.5
+                        visible: True
+                        readonly: False
+                        removable: False
+                        type: 'float'
+                        children:
+                    Vertical Position:
+                        name: 'Vertical Position'
+                        strictNaming: False
+                        default: 0.0
+                        renamable: False
+                        enabled: True
+                        readonly: False
+                        value: 0.5
+                        visible: True
+                        step: 0.1
+                        removable: False
+                        type: 'float'
+                        children:
+            Bob:
+                name: 'Bob'
+                strictNaming: False
+                default: None
+                renamable: True
+                enabled: True
+                value: None
+                visible: True
+                readonly: False
+                removable: True
+                type: 'Clock'
+                autoIncrementName: True
+                children:
+                    Initial Position:
+                        name: 'Initial Position'
+                        strictNaming: False
+                        default: 0.0
+                        renamable: False
+                        enabled: True
+                        readonly: False
+                        value: 0.0
+                        visible: True
+                        step: 0.1
+                        removable: False
+                        type: 'float'
+                        children:
+                    Acceleration:
+                        name: 'Acceleration'
+                        strictNaming: False
+                        default: None
+                        renamable: False
+                        addText: 'Add Command..'
+                        enabled: True
+                        value: None
+                        visible: True
+                        readonly: False
+                        removable: False
+                        type: 'AccelerationGroup'
+                        children:
+                    Rest Mass:
+                        name: 'Rest Mass'
+                        limits: [1e-09, None]
+                        strictNaming: False
+                        default: 1.0
+                        renamable: False
+                        enabled: True
+                        readonly: False
+                        value: 1.0
+                        visible: True
+                        step: 0.1
+                        removable: False
+                        type: 'float'
+                        children:
+                    Color:
+                        name: 'Color'
+                        strictNaming: False
+                        default: (100, 100, 150)
+                        renamable: False
+                        enabled: True
+                        value: (69, 69, 126, 255)
+                        visible: True
+                        readonly: False
+                        removable: False
+                        type: 'color'
+                        children:
+                    Size:
+                        name: 'Size'
+                        strictNaming: False
+                        default: 0.5
+                        renamable: False
+                        enabled: True
+                        value: 0.5
+                        visible: True
+                        readonly: False
+                        removable: False
+                        type: 'float'
+                        children:
+                    Vertical Position:
+                        name: 'Vertical Position'
+                        strictNaming: False
+                        default: 0.0
+                        renamable: False
+                        enabled: True
+                        readonly: False
+                        value: 0.0
+                        visible: True
+                        step: 0.1
+                        removable: False
+                        type: 'float'
+                        children:
+        addList: ['Clock', 'Grid']
diff --git a/site-packages/pyqtgraph-0.10.0/examples/relativity/relativity.py b/site-packages/pyqtgraph-0.10.0/examples/relativity/relativity.py
new file mode 100644
index 00000000..e3f2c435
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/relativity/relativity.py
@@ -0,0 +1,772 @@
+import numpy as np
+import collections
+import sys, os
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtGui, QtCore
+from pyqtgraph.parametertree import Parameter, ParameterTree
+from pyqtgraph.parametertree import types as pTypes
+import pyqtgraph.configfile
+from pyqtgraph.python2_3 import xrange
+
+
+class RelativityGUI(QtGui.QWidget):
+    def __init__(self):
+        QtGui.QWidget.__init__(self)
+        
+        self.animations = []
+        self.animTimer = QtCore.QTimer()
+        self.animTimer.timeout.connect(self.stepAnimation)
+        self.animTime = 0
+        self.animDt = .016
+        self.lastAnimTime = 0
+        
+        self.setupGUI()
+        
+        self.objectGroup = ObjectGroupParam()
+        
+        self.params = Parameter.create(name='params', type='group', children=[
+            dict(name='Load Preset..', type='list', values=[]),
+            #dict(name='Unit System', type='list', values=['', 'MKS']),
+            dict(name='Duration', type='float', value=10.0, step=0.1, limits=[0.1, None]),
+            dict(name='Reference Frame', type='list', values=[]),
+            dict(name='Animate', type='bool', value=True),
+            dict(name='Animation Speed', type='float', value=1.0, dec=True, step=0.1, limits=[0.0001, None]),
+            dict(name='Recalculate Worldlines', type='action'),
+            dict(name='Save', type='action'),
+            dict(name='Load', type='action'),
+            self.objectGroup,
+            ])
+        self.tree.setParameters(self.params, showTop=False)
+        self.params.param('Recalculate Worldlines').sigActivated.connect(self.recalculate)
+        self.params.param('Save').sigActivated.connect(self.save)
+        self.params.param('Load').sigActivated.connect(self.load)
+        self.params.param('Load Preset..').sigValueChanged.connect(self.loadPreset)
+        self.params.sigTreeStateChanged.connect(self.treeChanged)
+        
+        ## read list of preset configs
+        presetDir = os.path.join(os.path.abspath(os.path.dirname(sys.argv[0])), 'presets')
+        if os.path.exists(presetDir):
+            presets = [os.path.splitext(p)[0] for p in os.listdir(presetDir)]
+            self.params.param('Load Preset..').setLimits(['']+presets)
+        
+        
+        
+        
+    def setupGUI(self):
+        self.layout = QtGui.QVBoxLayout()
+        self.layout.setContentsMargins(0,0,0,0)
+        self.setLayout(self.layout)
+        self.splitter = QtGui.QSplitter()
+        self.splitter.setOrientation(QtCore.Qt.Horizontal)
+        self.layout.addWidget(self.splitter)
+        
+        self.tree = ParameterTree(showHeader=False)
+        self.splitter.addWidget(self.tree)
+        
+        self.splitter2 = QtGui.QSplitter()
+        self.splitter2.setOrientation(QtCore.Qt.Vertical)
+        self.splitter.addWidget(self.splitter2)
+        
+        self.worldlinePlots = pg.GraphicsLayoutWidget()
+        self.splitter2.addWidget(self.worldlinePlots)
+        
+        self.animationPlots = pg.GraphicsLayoutWidget()
+        self.splitter2.addWidget(self.animationPlots)
+        
+        self.splitter2.setSizes([int(self.height()*0.8), int(self.height()*0.2)])
+        
+        self.inertWorldlinePlot = self.worldlinePlots.addPlot()
+        self.refWorldlinePlot = self.worldlinePlots.addPlot()
+        
+        self.inertAnimationPlot = self.animationPlots.addPlot()
+        self.inertAnimationPlot.setAspectLocked(1)
+        self.refAnimationPlot = self.animationPlots.addPlot()
+        self.refAnimationPlot.setAspectLocked(1)
+        
+        self.inertAnimationPlot.setXLink(self.inertWorldlinePlot)
+        self.refAnimationPlot.setXLink(self.refWorldlinePlot)
+
+    def recalculate(self):
+        ## build 2 sets of clocks
+        clocks1 = collections.OrderedDict()
+        clocks2 = collections.OrderedDict()
+        for cl in self.params.param('Objects'):
+            clocks1.update(cl.buildClocks())
+            clocks2.update(cl.buildClocks())
+        
+        ## Inertial simulation
+        dt = self.animDt * self.params['Animation Speed']
+        sim1 = Simulation(clocks1, ref=None, duration=self.params['Duration'], dt=dt)
+        sim1.run()
+        sim1.plot(self.inertWorldlinePlot)
+        self.inertWorldlinePlot.autoRange(padding=0.1)
+        
+        ## reference simulation
+        ref = self.params['Reference Frame']
+        dur = clocks1[ref].refData['pt'][-1] ## decide how long to run the reference simulation
+        sim2 = Simulation(clocks2, ref=clocks2[ref], duration=dur, dt=dt)
+        sim2.run()
+        sim2.plot(self.refWorldlinePlot)
+        self.refWorldlinePlot.autoRange(padding=0.1)
+        
+        
+        ## create animations
+        self.refAnimationPlot.clear()
+        self.inertAnimationPlot.clear()
+        self.animTime = 0
+        
+        self.animations = [Animation(sim1), Animation(sim2)]
+        self.inertAnimationPlot.addItem(self.animations[0])
+        self.refAnimationPlot.addItem(self.animations[1])
+        
+        ## create lines representing all that is visible to a particular reference
+        #self.inertSpaceline = Spaceline(sim1, ref)
+        #self.refSpaceline = Spaceline(sim2)
+        self.inertWorldlinePlot.addItem(self.animations[0].items[ref].spaceline())
+        self.refWorldlinePlot.addItem(self.animations[1].items[ref].spaceline())
+        
+        
+        
+
+    def setAnimation(self, a):
+        if a:
+            self.lastAnimTime = pg.ptime.time()
+            self.animTimer.start(self.animDt*1000)
+        else:
+            self.animTimer.stop()
+            
+    def stepAnimation(self):
+        now = pg.ptime.time()
+        dt = (now-self.lastAnimTime) * self.params['Animation Speed']
+        self.lastAnimTime = now
+        self.animTime += dt
+        if self.animTime > self.params['Duration']:
+            self.animTime = 0
+            for a in self.animations:
+                a.restart()
+            
+        for a in self.animations:
+            a.stepTo(self.animTime)
+            
+        
+    def treeChanged(self, *args):
+        clocks = []
+        for c in self.params.param('Objects'):
+            clocks.extend(c.clockNames())
+        #for param, change, data in args[1]:
+            #if change == 'childAdded':
+        self.params.param('Reference Frame').setLimits(clocks)
+        self.setAnimation(self.params['Animate'])
+        
+    def save(self):
+        fn = str(pg.QtGui.QFileDialog.getSaveFileName(self, "Save State..", "untitled.cfg", "Config Files (*.cfg)"))
+        if fn == '':
+            return
+        state = self.params.saveState()
+        pg.configfile.writeConfigFile(state, fn) 
+        
+    def load(self):
+        fn = str(pg.QtGui.QFileDialog.getOpenFileName(self, "Save State..", "", "Config Files (*.cfg)"))
+        if fn == '':
+            return
+        state = pg.configfile.readConfigFile(fn) 
+        self.loadState(state)
+        
+    def loadPreset(self, param, preset):
+        if preset == '':
+            return
+        path = os.path.abspath(os.path.dirname(__file__))
+        fn = os.path.join(path, 'presets', preset+".cfg")
+        state = pg.configfile.readConfigFile(fn)
+        self.loadState(state)
+        
+    def loadState(self, state):
+        if 'Load Preset..' in state['children']:
+            del state['children']['Load Preset..']['limits']
+            del state['children']['Load Preset..']['value']
+        self.params.param('Objects').clearChildren()
+        self.params.restoreState(state, removeChildren=False)
+        self.recalculate()
+        
+        
+class ObjectGroupParam(pTypes.GroupParameter):
+    def __init__(self):
+        pTypes.GroupParameter.__init__(self, name="Objects", addText="Add New..", addList=['Clock', 'Grid'])
+        
+    def addNew(self, typ):
+        if typ == 'Clock':
+            self.addChild(ClockParam())
+        elif typ == 'Grid':
+            self.addChild(GridParam())
+
+class ClockParam(pTypes.GroupParameter):
+    def __init__(self, **kwds):
+        defs = dict(name="Clock", autoIncrementName=True, renamable=True, removable=True, children=[
+            dict(name='Initial Position', type='float', value=0.0, step=0.1),
+            #dict(name='V0', type='float', value=0.0, step=0.1),
+            AccelerationGroup(),
+            
+            dict(name='Rest Mass', type='float', value=1.0, step=0.1, limits=[1e-9, None]),
+            dict(name='Color', type='color', value=(100,100,150)),
+            dict(name='Size', type='float', value=0.5),
+            dict(name='Vertical Position', type='float', value=0.0, step=0.1),
+            ])
+        #defs.update(kwds)
+        pTypes.GroupParameter.__init__(self, **defs)
+        self.restoreState(kwds, removeChildren=False)
+            
+    def buildClocks(self):
+        x0 = self['Initial Position']
+        y0 = self['Vertical Position']
+        color = self['Color']
+        m = self['Rest Mass']
+        size = self['Size']
+        prog = self.param('Acceleration').generate()
+        c = Clock(x0=x0, m0=m, y0=y0, color=color, prog=prog, size=size)
+        return {self.name(): c}
+        
+    def clockNames(self):
+        return [self.name()]
+
+pTypes.registerParameterType('Clock', ClockParam)
+    
+class GridParam(pTypes.GroupParameter):
+    def __init__(self, **kwds):
+        defs = dict(name="Grid", autoIncrementName=True, renamable=True, removable=True, children=[
+            dict(name='Number of Clocks', type='int', value=5, limits=[1, None]),
+            dict(name='Spacing', type='float', value=1.0, step=0.1),
+            ClockParam(name='ClockTemplate'),
+            ])
+        #defs.update(kwds)
+        pTypes.GroupParameter.__init__(self, **defs)
+        self.restoreState(kwds, removeChildren=False)
+            
+    def buildClocks(self):
+        clocks = {}
+        template = self.param('ClockTemplate')
+        spacing = self['Spacing']
+        for i in range(self['Number of Clocks']):
+            c = list(template.buildClocks().values())[0]
+            c.x0 += i * spacing
+            clocks[self.name() + '%02d' % i] = c
+        return clocks
+        
+    def clockNames(self):
+        return [self.name() + '%02d' % i for i in range(self['Number of Clocks'])]
+
+pTypes.registerParameterType('Grid', GridParam)
+
+class AccelerationGroup(pTypes.GroupParameter):
+    def __init__(self, **kwds):
+        defs = dict(name="Acceleration", addText="Add Command..")
+        pTypes.GroupParameter.__init__(self, **defs)
+        self.restoreState(kwds, removeChildren=False)
+        
+    def addNew(self):
+        nextTime = 0.0
+        if self.hasChildren():
+            nextTime = self.children()[-1]['Proper Time'] + 1
+        self.addChild(Parameter.create(name='Command', autoIncrementName=True, type=None, renamable=True, removable=True, children=[
+            dict(name='Proper Time', type='float', value=nextTime),
+            dict(name='Acceleration', type='float', value=0.0, step=0.1),
+            ]))
+            
+    def generate(self):
+        prog = []
+        for cmd in self:
+            prog.append((cmd['Proper Time'], cmd['Acceleration']))
+        return prog    
+        
+pTypes.registerParameterType('AccelerationGroup', AccelerationGroup)
+
+            
+class Clock(object):
+    nClocks = 0
+    
+    def __init__(self, x0=0.0, y0=0.0, m0=1.0, v0=0.0, t0=0.0, color=None, prog=None, size=0.5):
+        Clock.nClocks += 1
+        self.pen = pg.mkPen(color)
+        self.brush = pg.mkBrush(color)
+        self.y0 = y0
+        self.x0 = x0
+        self.v0 = v0
+        self.m0 = m0
+        self.t0 = t0
+        self.prog = prog
+        self.size = size
+
+    def init(self, nPts):
+        ## Keep records of object from inertial frame as well as reference frame
+        self.inertData = np.empty(nPts, dtype=[('x', float), ('t', float), ('v', float), ('pt', float), ('m', float), ('f', float)])
+        self.refData = np.empty(nPts, dtype=[('x', float), ('t', float), ('v', float), ('pt', float), ('m', float), ('f', float)])
+        
+        ## Inertial frame variables
+        self.x = self.x0
+        self.v = self.v0
+        self.m = self.m0
+        self.t = 0.0       ## reference clock always starts at 0
+        self.pt = self.t0      ## proper time starts at t0
+        
+        ## reference frame variables
+        self.refx = None
+        self.refv = None
+        self.refm = None
+        self.reft = None
+        
+        self.recordFrame(0)
+        
+    def recordFrame(self, i):
+        f = self.force()
+        self.inertData[i] = (self.x, self.t, self.v, self.pt, self.m, f)
+        self.refData[i] = (self.refx, self.reft, self.refv, self.pt, self.refm, f)
+        
+    def force(self, t=None):
+        if len(self.prog) == 0:
+            return 0.0
+        if t is None:
+            t = self.pt
+        
+        ret = 0.0
+        for t1,f in self.prog:
+            if t >= t1:
+                ret = f
+        return ret
+        
+    def acceleration(self, t=None):
+        return self.force(t) / self.m0
+        
+    def accelLimits(self):
+        ## return the proper time values which bound the current acceleration command
+        if len(self.prog) == 0:
+            return -np.inf, np.inf
+        t = self.pt
+        ind = -1
+        for i, v in enumerate(self.prog):
+            t1,f = v
+            if t >= t1:
+                ind = i
+        
+        if ind == -1:
+            return -np.inf, self.prog[0][0]
+        elif ind == len(self.prog)-1:
+            return self.prog[-1][0], np.inf
+        else:
+            return self.prog[ind][0], self.prog[ind+1][0]
+        
+        
+    def getCurve(self, ref=True):
+        
+        if ref is False:
+            data = self.inertData
+        else:
+            data = self.refData[1:]
+            
+        x = data['x']
+        y = data['t']
+        
+        curve = pg.PlotCurveItem(x=x, y=y, pen=self.pen)
+            #x = self.data['x'] - ref.data['x']
+            #y = self.data['t']
+        
+        step = 1.0
+        #mod = self.data['pt'] % step
+        #inds = np.argwhere(abs(mod[1:] - mod[:-1]) > step*0.9)
+        inds = [0]
+        pt = data['pt']
+        for i in range(1,len(pt)):
+            diff = pt[i] - pt[inds[-1]]
+            if abs(diff) >= step:
+                inds.append(i)
+        inds = np.array(inds)
+        
+        #t = self.data['t'][inds]
+        #x = self.data['x'][inds]   
+        pts = []
+        for i in inds:
+            x = data['x'][i]
+            y = data['t'][i]
+            if i+1 < len(data):
+                dpt = data['pt'][i+1]-data['pt'][i]
+                dt = data['t'][i+1]-data['t'][i]
+            else:
+                dpt = 1
+                
+            if dpt > 0:
+                c = pg.mkBrush((0,0,0))
+            else:
+                c = pg.mkBrush((200,200,200))
+            pts.append({'pos': (x, y), 'brush': c})
+            
+        points = pg.ScatterPlotItem(pts, pen=self.pen, size=7)
+        
+        return curve, points
+
+
+class Simulation:
+    def __init__(self, clocks, ref, duration, dt):
+        self.clocks = clocks
+        self.ref = ref
+        self.duration = duration
+        self.dt = dt
+    
+    @staticmethod
+    def hypTStep(dt, v0, x0, tau0, g):
+        ## Hyperbolic step. 
+        ## If an object has proper acceleration g and starts at position x0 with speed v0 and proper time tau0
+        ## as seen from an inertial frame, then return the new v, x, tau after time dt has elapsed.
+        if g == 0:
+            return v0, x0 + v0*dt, tau0 + dt * (1. - v0**2)**0.5
+        v02 = v0**2
+        g2 = g**2
+        
+        tinit = v0 / (g * (1 - v02)**0.5)
+        
+        B = (1 + (g2 * (dt+tinit)**2))**0.5
+        
+        v1 = g * (dt+tinit) / B
+        
+        dtau = (np.arcsinh(g * (dt+tinit)) - np.arcsinh(g * tinit)) / g
+        
+        tau1 = tau0 + dtau
+        
+        x1 = x0 + (1.0 / g) * ( B - 1. / (1.-v02)**0.5 )
+        
+        return v1, x1, tau1
+
+
+    @staticmethod
+    def tStep(dt, v0, x0, tau0, g):
+        ## Linear step.
+        ## Probably not as accurate as hyperbolic step, but certainly much faster.
+        gamma = (1. - v0**2)**-0.5
+        dtau = dt / gamma
+        return v0 + dtau * g, x0 + v0*dt, tau0 + dtau
+
+    @staticmethod
+    def tauStep(dtau, v0, x0, t0, g):
+        ## linear step in proper time of clock.
+        ## If an object has proper acceleration g and starts at position x0 with speed v0 at time t0
+        ## as seen from an inertial frame, then return the new v, x, t after proper time dtau has elapsed.
+        
+
+        ## Compute how much t will change given a proper-time step of dtau
+        gamma = (1. - v0**2)**-0.5
+        if g == 0:
+            dt = dtau * gamma
+        else:
+            v0g = v0 * gamma
+            dt = (np.sinh(dtau * g + np.arcsinh(v0g)) - v0g) / g
+        
+        #return v0 + dtau * g, x0 + v0*dt, t0 + dt
+        v1, x1, t1 = Simulation.hypTStep(dt, v0, x0, t0, g)
+        return v1, x1, t0+dt
+        
+    @staticmethod
+    def hypIntersect(x0r, t0r, vr, x0, t0, v0, g):
+        ## given a reference clock (seen from inertial frame) has rx, rt, and rv,
+        ## and another clock starts at x0, t0, and v0, with acceleration g,
+        ## compute the intersection time of the object clock's hyperbolic path with 
+        ## the reference plane.
+        
+        ## I'm sure we can simplify this...
+        
+        if g == 0:   ## no acceleration, path is linear (and hyperbola is undefined)
+            #(-t0r + t0 v0 vr - vr x0 + vr x0r)/(-1 + v0 vr)
+            
+            t = (-t0r + t0 *v0 *vr - vr *x0 + vr *x0r)/(-1 + v0 *vr)
+            return t
+        
+        gamma = (1.0-v0**2)**-0.5
+        sel = (1 if g>0 else 0) + (1 if vr<0 else 0)
+        sel = sel%2
+        if sel == 0:
+            #(1/(g^2 (-1 + vr^2)))(-g^2 t0r + g gamma vr + g^2 t0 vr^2 - 
+            #g gamma v0 vr^2 - g^2 vr x0 + 
+            #g^2 vr x0r + \[Sqrt](g^2 vr^2 (1 + gamma^2 (v0 - vr)^2 - vr^2 + 
+            #2 g gamma (v0 - vr) (-t0 + t0r + vr (x0 - x0r)) + 
+            #g^2 (t0 - t0r + vr (-x0 + x0r))^2)))
+            
+            t = (1./(g**2 *(-1. + vr**2)))*(-g**2 *t0r + g *gamma *vr + g**2 *t0 *vr**2 - g *gamma *v0 *vr**2 - g**2 *vr *x0 + g**2 *vr *x0r + np.sqrt(g**2 *vr**2 *(1. + gamma**2 *(v0 - vr)**2 - vr**2 + 2 *g *gamma *(v0 - vr)* (-t0 + t0r + vr *(x0 - x0r)) + g**2 *(t0 - t0r + vr* (-x0 + x0r))**2)))
+            
+        else:
+            
+            #-(1/(g^2 (-1 + vr^2)))(g^2 t0r - g gamma vr - g^2 t0 vr^2 + 
+            #g gamma v0 vr^2 + g^2 vr x0 - 
+            #g^2 vr x0r + \[Sqrt](g^2 vr^2 (1 + gamma^2 (v0 - vr)^2 - vr^2 + 
+            #2 g gamma (v0 - vr) (-t0 + t0r + vr (x0 - x0r)) + 
+            #g^2 (t0 - t0r + vr (-x0 + x0r))^2)))
+        
+            t = -(1./(g**2 *(-1. + vr**2)))*(g**2 *t0r - g *gamma* vr - g**2 *t0 *vr**2 + g *gamma *v0 *vr**2 + g**2* vr* x0 - g**2 *vr *x0r + np.sqrt(g**2* vr**2 *(1. + gamma**2 *(v0 - vr)**2 - vr**2 + 2 *g *gamma *(v0 - vr) *(-t0 + t0r + vr *(x0 - x0r)) + g**2 *(t0 - t0r + vr *(-x0 + x0r))**2)))
+        return t
+        
+    def run(self):
+        nPts = int(self.duration/self.dt)+1
+        for cl in self.clocks.values():
+            cl.init(nPts)
+            
+        if self.ref is None:
+            self.runInertial(nPts)
+        else:
+            self.runReference(nPts)
+        
+    def runInertial(self, nPts):
+        clocks = self.clocks
+        dt = self.dt
+        tVals = np.linspace(0, dt*(nPts-1), nPts)
+        for cl in self.clocks.values():
+            for i in xrange(1,nPts):
+                nextT = tVals[i]
+                while True:
+                    tau1, tau2 = cl.accelLimits()
+                    x = cl.x
+                    v = cl.v
+                    tau = cl.pt
+                    g = cl.acceleration()
+                    
+                    v1, x1, tau1 = self.hypTStep(dt, v, x, tau, g)
+                    if tau1 > tau2:
+                        dtau = tau2-tau
+                        cl.v, cl.x, cl.t = self.tauStep(dtau, v, x, cl.t, g)
+                        cl.pt = tau2
+                    else:
+                        cl.v, cl.x, cl.pt = v1, x1, tau1
+                        cl.t += dt
+                        
+                    if cl.t >= nextT:
+                        cl.refx = cl.x
+                        cl.refv = cl.v
+                        cl.reft = cl.t
+                        cl.recordFrame(i)
+                        break
+            
+        
+    def runReference(self, nPts):
+        clocks = self.clocks
+        ref = self.ref
+        dt = self.dt
+        dur = self.duration
+        
+        ## make sure reference clock is not present in the list of clocks--this will be handled separately.
+        clocks = clocks.copy()
+        for k,v in clocks.items():
+            if v is ref:
+                del clocks[k]
+                break
+        
+        ref.refx = 0
+        ref.refv = 0
+        ref.refm = ref.m0
+        
+        ## These are the set of proper times (in the reference frame) that will be simulated
+        ptVals = np.linspace(ref.pt, ref.pt + dt*(nPts-1), nPts)
+        
+        for i in xrange(1,nPts):
+                
+            ## step reference clock ahead one time step in its proper time
+            nextPt = ptVals[i]  ## this is where (when) we want to end up
+            while True:
+                tau1, tau2 = ref.accelLimits()
+                dtau = min(nextPt-ref.pt, tau2-ref.pt)  ## do not step past the next command boundary
+                g = ref.acceleration()
+                v, x, t = Simulation.tauStep(dtau, ref.v, ref.x, ref.t, g)
+                ref.pt += dtau
+                ref.v = v
+                ref.x = x
+                ref.t = t
+                ref.reft = ref.pt
+                if ref.pt >= nextPt:
+                    break
+                #else:
+                    #print "Stepped to", tau2, "instead of", nextPt
+            ref.recordFrame(i)
+            
+            ## determine plane visible to reference clock
+            ## this plane goes through the point ref.x, ref.t and has slope = ref.v
+            
+            
+            ## update all other clocks
+            for cl in clocks.values():
+                while True:
+                    g = cl.acceleration()
+                    tau1, tau2 = cl.accelLimits()
+                    ##Given current position / speed of clock, determine where it will intersect reference plane
+                    #t1 = (ref.v * (cl.x - cl.v * cl.t) + (ref.t - ref.v * ref.x)) / (1. - cl.v)
+                    t1 = Simulation.hypIntersect(ref.x, ref.t, ref.v, cl.x, cl.t, cl.v, g)
+                    dt1 = t1 - cl.t
+                    
+                    ## advance clock by correct time step
+                    v, x, tau = Simulation.hypTStep(dt1, cl.v, cl.x, cl.pt, g)
+                    
+                    ## check to see whether we have gone past an acceleration command boundary.
+                    ## if so, we must instead advance the clock to the boundary and start again
+                    if tau < tau1:
+                        dtau = tau1 - cl.pt
+                        cl.v, cl.x, cl.t = Simulation.tauStep(dtau, cl.v, cl.x, cl.t, g)
+                        cl.pt = tau1-0.000001  
+                        continue
+                    if tau > tau2:
+                        dtau = tau2 - cl.pt
+                        cl.v, cl.x, cl.t = Simulation.tauStep(dtau, cl.v, cl.x, cl.t, g)
+                        cl.pt = tau2
+                        continue
+                    
+                    ## Otherwise, record the new values and exit the loop
+                    cl.v = v
+                    cl.x = x
+                    cl.pt = tau
+                    cl.t = t1
+                    cl.m = None
+                    break
+                
+                ## transform position into reference frame
+                x = cl.x - ref.x
+                t = cl.t - ref.t
+                gamma = (1.0 - ref.v**2) ** -0.5
+                vg = -ref.v * gamma
+                
+                cl.refx = gamma * (x - ref.v * t)
+                cl.reft = ref.pt  #  + gamma * (t - ref.v * x)   # this term belongs here, but it should always be equal to 0.
+                cl.refv = (cl.v - ref.v) / (1.0 - cl.v * ref.v)
+                cl.refm = None
+                cl.recordFrame(i)
+                
+            t += dt
+        
+    def plot(self, plot):
+        plot.clear()
+        for cl in self.clocks.values():
+            c, p = cl.getCurve()
+            plot.addItem(c)
+            plot.addItem(p)
+
+class Animation(pg.ItemGroup):
+    def __init__(self, sim):
+        pg.ItemGroup.__init__(self)
+        self.sim = sim
+        self.clocks = sim.clocks
+        
+        self.items = {}
+        for name, cl in self.clocks.items():
+            item = ClockItem(cl)
+            self.addItem(item)
+            self.items[name] = item
+            
+        #self.timer = timer
+        #self.timer.timeout.connect(self.step)
+        
+    #def run(self, run):
+        #if not run:
+            #self.timer.stop()
+        #else:
+            #self.timer.start(self.dt)
+        
+    def restart(self):
+        for cl in self.items.values():
+            cl.reset()
+        
+    def stepTo(self, t):
+        for i in self.items.values():
+            i.stepTo(t)
+        
+
+class ClockItem(pg.ItemGroup):
+    def __init__(self, clock):
+        pg.ItemGroup.__init__(self)
+        self.size = clock.size
+        self.item = QtGui.QGraphicsEllipseItem(QtCore.QRectF(0, 0, self.size, self.size))
+        self.item.translate(-self.size*0.5, -self.size*0.5)
+        self.item.setPen(pg.mkPen(100,100,100))
+        self.item.setBrush(clock.brush)
+        self.hand = QtGui.QGraphicsLineItem(0, 0, 0, self.size*0.5)
+        self.hand.setPen(pg.mkPen('w'))
+        self.hand.setZValue(10)
+        self.flare = QtGui.QGraphicsPolygonItem(QtGui.QPolygonF([
+            QtCore.QPointF(0, -self.size*0.25),
+            QtCore.QPointF(0, self.size*0.25),
+            QtCore.QPointF(self.size*1.5, 0),
+            QtCore.QPointF(0, -self.size*0.25),
+            ]))
+        self.flare.setPen(pg.mkPen('y'))
+        self.flare.setBrush(pg.mkBrush(255,150,0))
+        self.flare.setZValue(-10)
+        self.addItem(self.hand)
+        self.addItem(self.item)
+        self.addItem(self.flare)
+ 
+        self.clock = clock
+        self.i = 1
+        
+        self._spaceline = None
+        
+        
+    def spaceline(self):
+        if self._spaceline is None:
+            self._spaceline = pg.InfiniteLine()
+            self._spaceline.setPen(self.clock.pen)
+        return self._spaceline
+        
+    def stepTo(self, t):
+        data = self.clock.refData
+        
+        while self.i < len(data)-1 and data['t'][self.i] < t:
+            self.i += 1
+        while self.i > 1 and data['t'][self.i-1] >= t:
+            self.i -= 1
+        
+        self.setPos(data['x'][self.i], self.clock.y0)
+        
+        t = data['pt'][self.i]
+        self.hand.setRotation(-0.25 * t * 360.)
+        
+        self.resetTransform()
+        v = data['v'][self.i]
+        gam = (1.0 - v**2)**0.5
+        self.scale(gam, 1.0)
+        
+        f = data['f'][self.i]
+        self.flare.resetTransform()
+        if f < 0:
+            self.flare.translate(self.size*0.4, 0)
+        else:
+            self.flare.translate(-self.size*0.4, 0)
+        
+        self.flare.scale(-f * (0.5+np.random.random()*0.1), 1.0)
+        
+        if self._spaceline is not None:
+            self._spaceline.setPos(pg.Point(data['x'][self.i], data['t'][self.i]))
+            self._spaceline.setAngle(data['v'][self.i] * 45.)
+        
+        
+    def reset(self):
+        self.i = 1
+        
+
+#class Spaceline(pg.InfiniteLine):
+    #def __init__(self, sim, frame):
+        #self.sim = sim
+        #self.frame = frame
+        #pg.InfiniteLine.__init__(self)
+        #self.setPen(sim.clocks[frame].pen)
+        
+    #def stepTo(self, t):
+        #self.setAngle(0)
+        
+        #pass
+
+if __name__ == '__main__':
+    pg.mkQApp()
+    #import pyqtgraph.console
+    #cw = pyqtgraph.console.ConsoleWidget()
+    #cw.show()
+    #cw.catchNextException()
+    win = RelativityGUI()
+    win.setWindowTitle("Relativity!")
+    win.show()
+    win.resize(1100,700)
+    
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
+    
+    
+    #win.params.param('Objects').restoreState(state, removeChildren=False)
+
diff --git a/site-packages/pyqtgraph-0.10.0/examples/relativity_demo.py b/site-packages/pyqtgraph-0.10.0/examples/relativity_demo.py
new file mode 100644
index 00000000..24a1f476
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/relativity_demo.py
@@ -0,0 +1,23 @@
+# -*- coding: utf-8 -*-
+"""
+Special relativity simulation 
+
+
+
+"""
+import initExample ## Add path to library (just for examples; you do not need this)
+import pyqtgraph as pg
+from relativity import RelativityGUI
+
+pg.mkQApp()
+win = RelativityGUI()
+win.setWindowTitle("Relativity!")
+win.resize(1100,700)
+win.show()
+win.loadPreset(None, 'Twin Paradox (grid)')
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(pg.QtCore, 'PYQT_VERSION'):
+        pg.QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/scrollingPlots.py b/site-packages/pyqtgraph-0.10.0/examples/scrollingPlots.py
new file mode 100644
index 00000000..623b9ab1
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/scrollingPlots.py
@@ -0,0 +1,118 @@
+# -*- coding: utf-8 -*-
+"""
+Various methods of drawing scrolling plots.
+"""
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+import numpy as np
+
+win = pg.GraphicsWindow()
+win.setWindowTitle('pyqtgraph example: Scrolling Plots')
+
+
+# 1) Simplest approach -- update data in the array such that plot appears to scroll
+#    In these examples, the array size is fixed.
+p1 = win.addPlot()
+p2 = win.addPlot()
+data1 = np.random.normal(size=300)
+curve1 = p1.plot(data1)
+curve2 = p2.plot(data1)
+ptr1 = 0
+def update1():
+    global data1, curve1, ptr1
+    data1[:-1] = data1[1:]  # shift data in the array one sample left
+                            # (see also: np.roll)
+    data1[-1] = np.random.normal()
+    curve1.setData(data1)
+    
+    ptr1 += 1
+    curve2.setData(data1)
+    curve2.setPos(ptr1, 0)
+    
+
+# 2) Allow data to accumulate. In these examples, the array doubles in length
+#    whenever it is full. 
+win.nextRow()
+p3 = win.addPlot()
+p4 = win.addPlot()
+# Use automatic downsampling and clipping to reduce the drawing load
+p3.setDownsampling(mode='peak')
+p4.setDownsampling(mode='peak')
+p3.setClipToView(True)
+p4.setClipToView(True)
+p3.setRange(xRange=[-100, 0])
+p3.setLimits(xMax=0)
+curve3 = p3.plot()
+curve4 = p4.plot()
+
+data3 = np.empty(100)
+ptr3 = 0
+
+def update2():
+    global data3, ptr3
+    data3[ptr3] = np.random.normal()
+    ptr3 += 1
+    if ptr3 >= data3.shape[0]:
+        tmp = data3
+        data3 = np.empty(data3.shape[0] * 2)
+        data3[:tmp.shape[0]] = tmp
+    curve3.setData(data3[:ptr3])
+    curve3.setPos(-ptr3, 0)
+    curve4.setData(data3[:ptr3])
+
+
+# 3) Plot in chunks, adding one new plot curve for every 100 samples
+chunkSize = 100
+# Remove chunks after we have 10
+maxChunks = 10
+startTime = pg.ptime.time()
+win.nextRow()
+p5 = win.addPlot(colspan=2)
+p5.setLabel('bottom', 'Time', 's')
+p5.setXRange(-10, 0)
+curves = []
+data5 = np.empty((chunkSize+1,2))
+ptr5 = 0
+
+def update3():
+    global p5, data5, ptr5, curves
+    now = pg.ptime.time()
+    for c in curves:
+        c.setPos(-(now-startTime), 0)
+    
+    i = ptr5 % chunkSize
+    if i == 0:
+        curve = p5.plot()
+        curves.append(curve)
+        last = data5[-1]
+        data5 = np.empty((chunkSize+1,2))        
+        data5[0] = last
+        while len(curves) > maxChunks:
+            c = curves.pop(0)
+            p5.removeItem(c)
+    else:
+        curve = curves[-1]
+    data5[i+1,0] = now - startTime
+    data5[i+1,1] = np.random.normal()
+    curve.setData(x=data5[:i+2, 0], y=data5[:i+2, 1])
+    ptr5 += 1
+
+
+# update all plots
+def update():
+    update1()
+    update2()
+    update3()
+timer = pg.QtCore.QTimer()
+timer.timeout.connect(update)
+timer.start(50)
+
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/template.py b/site-packages/pyqtgraph-0.10.0/examples/template.py
new file mode 100644
index 00000000..6b5e1f75
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/template.py
@@ -0,0 +1,22 @@
+# -*- coding: utf-8 -*-
+"""
+
+Description of example
+
+
+"""
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+import numpy as np
+
+app = QtGui.QApplication([])
+
+# win.setWindowTitle('pyqtgraph example: ____')
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/test_examples.py b/site-packages/pyqtgraph-0.10.0/examples/test_examples.py
new file mode 100644
index 00000000..3e6b8200
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/test_examples.py
@@ -0,0 +1,37 @@
+from __future__ import print_function, division, absolute_import
+from pyqtgraph import Qt
+from . import utils
+import itertools
+import pytest
+
+# apparently importlib does not exist in python 2.6...
+try:
+    import importlib
+except ImportError:
+    # we are on python 2.6
+    print("If you want to test the examples, please install importlib from "
+          "pypi\n\npip install importlib\n\n")
+    pass
+
+files = utils.buildFileList(utils.examples)
+frontends = {Qt.PYQT4: False, Qt.PYSIDE: False}
+# sort out which of the front ends are available
+for frontend in frontends.keys():
+    try:
+        importlib.import_module(frontend)
+        frontends[frontend] = True
+    except ImportError:
+        pass
+
+
+@pytest.mark.parametrize(
+    "frontend, f", itertools.product(sorted(list(frontends.keys())), files))
+def test_examples(frontend, f):
+    # Test the examples with all available front-ends
+    print('frontend = %s. f = %s' % (frontend, f))
+    if not frontends[frontend]:
+        pytest.skip('%s is not installed. Skipping tests' % frontend)
+    utils.testFile(f[0], f[1], utils.sys.executable, frontend)
+
+if __name__ == "__main__":
+    pytest.cmdline.main()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/text.py b/site-packages/pyqtgraph-0.10.0/examples/text.py
new file mode 100644
index 00000000..bf9bd6b9
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/text.py
@@ -0,0 +1,61 @@
+# -*- coding: utf-8 -*-
+"""
+This example shows how to insert text into a scene using TextItem. This class 
+is for displaying text that is anchored to a particular location in the data
+coordinate system, but which is always displayed unscaled. 
+
+For text that scales with the data, use QTextItem. 
+For text that can be placed in a layout, use LabelItem.
+"""
+
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+import numpy as np
+
+
+x = np.linspace(-20, 20, 1000)
+y = np.sin(x) / x
+plot = pg.plot()   ## create an empty plot widget
+plot.setYRange(-1, 2)
+plot.setWindowTitle('pyqtgraph example: text')
+curve = plot.plot(x,y)  ## add a single curve
+
+## Create text object, use HTML tags to specify color/size
+text = pg.TextItem(html='<div style="text-align: center"><span style="color: #FFF;">This is the</span><br><span style="color: #FF0; font-size: 16pt;">PEAK</span></div>', anchor=(-0.3,0.5), angle=45, border='w', fill=(0, 0, 255, 100))
+plot.addItem(text)
+text.setPos(0, y.max())
+
+## Draw an arrowhead next to the text box
+arrow = pg.ArrowItem(pos=(0, y.max()), angle=-45)
+plot.addItem(arrow)
+
+
+## Set up an animated arrow and text that track the curve
+curvePoint = pg.CurvePoint(curve)
+plot.addItem(curvePoint)
+text2 = pg.TextItem("test", anchor=(0.5, -1.0))
+text2.setParentItem(curvePoint)
+arrow2 = pg.ArrowItem(angle=90)
+arrow2.setParentItem(curvePoint)
+
+## update position every 10ms
+index = 0
+def update():
+    global curvePoint, index
+    index = (index + 1) % len(x)
+    curvePoint.setPos(float(index)/(len(x)-1))
+    text2.setText('[%0.1f, %0.1f]' % (x[index], y[index]))
+    
+timer = QtCore.QTimer()
+timer.timeout.connect(update)
+timer.start(10)
+
+
+
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/examples/utils.py b/site-packages/pyqtgraph-0.10.0/examples/utils.py
new file mode 100644
index 00000000..cbdf69c6
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/utils.py
@@ -0,0 +1,165 @@
+from __future__ import division, print_function, absolute_import
+import subprocess
+import time
+import os
+import sys
+from pyqtgraph.pgcollections import OrderedDict
+from pyqtgraph.python2_3 import basestring
+
+path = os.path.abspath(os.path.dirname(__file__))
+
+
+examples = OrderedDict([
+    ('Command-line usage', 'CLIexample.py'),
+    ('Basic Plotting', 'Plotting.py'),
+    ('ImageView', 'ImageView.py'),
+    ('ParameterTree', 'parametertree.py'),
+    ('Crosshair / Mouse interaction', 'crosshair.py'),
+    ('Data Slicing', 'DataSlicing.py'),
+    ('Plot Customization', 'customPlot.py'),
+    ('Image Analysis', 'imageAnalysis.py'),
+    ('Dock widgets', 'dockarea.py'),
+    ('Console', 'ConsoleWidget.py'),
+    ('Histograms', 'histogram.py'),
+    ('Beeswarm plot', 'beeswarm.py'),
+    ('Symbols', 'Symbols.py'),
+    ('Auto-range', 'PlotAutoRange.py'),
+    ('Remote Plotting', 'RemoteSpeedTest.py'),
+    ('Scrolling plots', 'scrollingPlots.py'),
+    ('HDF5 big data', 'hdf5.py'),
+    ('Demos', OrderedDict([
+        ('Optics', 'optics_demos.py'),
+        ('Special relativity', 'relativity_demo.py'),
+        ('Verlet chain', 'verlet_chain_demo.py'),
+    ])),
+    ('GraphicsItems', OrderedDict([
+        ('Scatter Plot', 'ScatterPlot.py'),
+        #('PlotItem', 'PlotItem.py'),
+        ('IsocurveItem', 'isocurve.py'),
+        ('GraphItem', 'GraphItem.py'),
+        ('ErrorBarItem', 'ErrorBarItem.py'),
+        ('FillBetweenItem', 'FillBetweenItem.py'),
+        ('ImageItem - video', 'ImageItem.py'),
+        ('ImageItem - draw', 'Draw.py'),
+        ('Region-of-Interest', 'ROIExamples.py'),
+        ('Bar Graph', 'BarGraphItem.py'),
+        ('GraphicsLayout', 'GraphicsLayout.py'),
+        ('LegendItem', 'Legend.py'),
+        ('Text Item', 'text.py'),
+        ('Linked Views', 'linkedViews.py'),
+        ('Arrow', 'Arrow.py'),
+        ('ViewBox', 'ViewBox.py'),
+        ('Custom Graphics', 'customGraphicsItem.py'),
+        ('Labeled Graph', 'CustomGraphItem.py'),
+    ])),
+    ('Benchmarks', OrderedDict([
+        ('Video speed test', 'VideoSpeedTest.py'),
+        ('Line Plot update', 'PlotSpeedTest.py'),
+        ('Scatter Plot update', 'ScatterPlotSpeedTest.py'),
+        ('Multiple plots', 'MultiPlotSpeedTest.py'),
+    ])),
+    ('3D Graphics', OrderedDict([
+        ('Volumetric', 'GLVolumeItem.py'),
+        ('Isosurface', 'GLIsosurface.py'),
+        ('Surface Plot', 'GLSurfacePlot.py'),
+        ('Scatter Plot', 'GLScatterPlotItem.py'),
+        ('Shaders', 'GLshaders.py'),
+        ('Line Plot', 'GLLinePlotItem.py'),
+        ('Mesh', 'GLMeshItem.py'),
+        ('Image', 'GLImageItem.py'),
+    ])),
+    ('Widgets', OrderedDict([
+        ('PlotWidget', 'PlotWidget.py'),
+        ('SpinBox', 'SpinBox.py'),
+        ('ConsoleWidget', 'ConsoleWidget.py'),
+        ('Histogram / lookup table', 'HistogramLUT.py'),
+        ('TreeWidget', 'TreeWidget.py'),
+        ('ScatterPlotWidget', 'ScatterPlotWidget.py'),
+        ('DataTreeWidget', 'DataTreeWidget.py'),
+        ('GradientWidget', 'GradientWidget.py'),
+        ('TableWidget', 'TableWidget.py'),
+        ('ColorButton', 'ColorButton.py'),
+        #('CheckTable', '../widgets/CheckTable.py'),
+        #('VerticalLabel', '../widgets/VerticalLabel.py'),
+        ('JoystickButton', 'JoystickButton.py'),
+    ])),
+
+    ('Flowcharts', 'Flowchart.py'),
+    ('Custom Flowchart Nodes', 'FlowchartCustomNode.py'),
+])
+
+
+def buildFileList(examples, files=None):
+    if files == None:
+        files = []
+    for key, val in examples.items():
+        #item = QtGui.QTreeWidgetItem([key])
+        if isinstance(val, basestring):
+            #item.file = val
+            files.append((key,val))
+        else:
+            buildFileList(val, files)
+    return files
+
+def testFile(name, f, exe, lib, graphicsSystem=None):
+    global path
+    fn = os.path.join(path,f)
+    #print "starting process: ", fn
+    os.chdir(path)
+    sys.stdout.write(name)
+    sys.stdout.flush()
+
+    import1 = "import %s" % lib if lib != '' else ''
+    import2 = os.path.splitext(os.path.split(fn)[1])[0]
+    graphicsSystem = '' if graphicsSystem is None else "pg.QtGui.QApplication.setGraphicsSystem('%s')" % graphicsSystem
+    code = """
+try:
+    %s
+    import initExample
+    import pyqtgraph as pg
+    %s
+    import %s
+    import sys
+    print("test complete")
+    sys.stdout.flush()
+    import time
+    while True:  ## run a little event loop
+        pg.QtGui.QApplication.processEvents()
+        time.sleep(0.01)
+except:
+    print("test failed")
+    raise
+
+""" % (import1, graphicsSystem, import2)
+
+    if sys.platform.startswith('win'):
+        process = subprocess.Popen([exe], stdin=subprocess.PIPE, stderr=subprocess.PIPE, stdout=subprocess.PIPE)
+        process.stdin.write(code.encode('UTF-8'))
+        process.stdin.close()
+    else:
+        process = subprocess.Popen(['exec %s -i' % (exe)], shell=True, stdin=subprocess.PIPE, stderr=subprocess.PIPE, stdout=subprocess.PIPE)
+        process.stdin.write(code.encode('UTF-8'))
+        process.stdin.close() ##?
+    output = ''
+    fail = False
+    while True:
+        c = process.stdout.read(1).decode()
+        output += c
+        #sys.stdout.write(c)
+        #sys.stdout.flush()
+        if output.endswith('test complete'):
+            break
+        if output.endswith('test failed'):
+            fail = True
+            break
+    time.sleep(1)
+    process.kill()
+    #res = process.communicate()
+    res = (process.stdout.read(), process.stderr.read())
+
+    if fail or 'exception' in res[1].decode().lower() or 'error' in res[1].decode().lower():
+        print('.' * (50-len(name)) + 'FAILED')
+        print(res[0].decode())
+        print(res[1].decode())
+    else:
+        print('.' * (50-len(name)) + 'passed')
diff --git a/site-packages/pyqtgraph-0.10.0/examples/verlet_chain/__init__.py b/site-packages/pyqtgraph-0.10.0/examples/verlet_chain/__init__.py
new file mode 100644
index 00000000..f473190f
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/verlet_chain/__init__.py
@@ -0,0 +1 @@
+from .chain import ChainSim
\ No newline at end of file
diff --git a/site-packages/pyqtgraph-0.10.0/examples/verlet_chain/chain.py b/site-packages/pyqtgraph-0.10.0/examples/verlet_chain/chain.py
new file mode 100644
index 00000000..6eb3501a
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/verlet_chain/chain.py
@@ -0,0 +1,115 @@
+import pyqtgraph as pg
+import numpy as np
+import time
+from . import relax
+
+
+class ChainSim(pg.QtCore.QObject):
+    
+    stepped = pg.QtCore.Signal()
+    relaxed = pg.QtCore.Signal()
+    
+    def __init__(self):
+        pg.QtCore.QObject.__init__(self)
+        
+        self.damping = 0.1  # 0=full damping, 1=no damping
+        self.relaxPerStep = 10
+        self.maxTimeStep = 0.01
+        
+        self.pos = None      # (Npts, 2) float
+        self.mass = None     # (Npts) float
+        self.fixed = None    # (Npts) bool
+        self.links = None    # (Nlinks, 2), uint
+        self.lengths = None  # (Nlinks), float
+        self.push = None     # (Nlinks), bool
+        self.pull = None     # (Nlinks), bool
+        
+        self.initialized = False
+        self.lasttime = None
+        self.lastpos = None
+        
+    def init(self):
+        if self.initialized:
+            return
+        
+        assert None not in [self.pos, self.mass, self.links, self.lengths]
+        
+        if self.fixed is None:
+            self.fixed = np.zeros(self.pos.shape[0], dtype=bool)
+        if self.push is None:
+            self.push = np.ones(self.links.shape[0], dtype=bool)
+        if self.pull is None:
+            self.pull = np.ones(self.links.shape[0], dtype=bool)
+            
+        
+        # precompute relative masses across links
+        l1 = self.links[:,0]
+        l2 = self.links[:,1]
+        m1 = self.mass[l1]
+        m2 = self.mass[l2]
+        self.mrel1 = (m1 / (m1+m2))[:,np.newaxis]
+        self.mrel1[self.fixed[l1]] = 1  # fixed point constraint
+        self.mrel1[self.fixed[l2]] = 0
+        self.mrel2 = 1.0 - self.mrel1
+
+        for i in range(10):
+            self.relax(n=10)
+        
+        self.initialized = True
+        
+    def makeGraph(self):
+        #g1 = pg.GraphItem(pos=self.pos, adj=self.links[self.rope], pen=0.2, symbol=None)
+        brushes = np.where(self.fixed, pg.mkBrush(0,0,0,255), pg.mkBrush(50,50,200,255))
+        g2 = pg.GraphItem(pos=self.pos, adj=self.links[self.push & self.pull], pen=0.5, brush=brushes, symbol='o', size=(self.mass**0.33), pxMode=False)
+        p = pg.ItemGroup()
+        #p.addItem(g1)
+        p.addItem(g2)
+        return p
+    
+    def update(self):
+        # approximate physics with verlet integration
+        
+        now = pg.ptime.time()
+        if self.lasttime is None:
+            dt = 0
+        else:
+            dt = now - self.lasttime
+        self.lasttime = now
+        
+        # limit amount of work to be done between frames
+        if not relax.COMPILED:
+            dt = self.maxTimeStep
+
+        if self.lastpos is None:
+            self.lastpos = self.pos
+
+        # remember fixed positions
+        fixedpos = self.pos[self.fixed]
+        
+        while dt > 0:
+            dt1 = min(self.maxTimeStep, dt)
+            dt -= dt1
+            
+            # compute motion since last timestep
+            dx = self.pos - self.lastpos
+            self.lastpos = self.pos
+            
+            # update positions for gravity and inertia
+            acc = np.array([[0, -5]]) * dt1
+            inertia = dx * (self.damping**(dt1/self.mass))[:,np.newaxis]  # with mass-dependent damping
+            self.pos = self.pos + inertia + acc
+
+            self.pos[self.fixed] = fixedpos  # fixed point constraint
+            
+            # correct for link constraints
+            self.relax(self.relaxPerStep)
+        self.stepped.emit()
+        
+        
+    def relax(self, n=50):
+        # speed up with C magic if possible
+        relax.relax(self.pos, self.links, self.mrel1, self.mrel2, self.lengths, self.push, self.pull, n)
+        self.relaxed.emit()
+        
+        
+
diff --git a/site-packages/pyqtgraph-0.10.0/examples/verlet_chain/make b/site-packages/pyqtgraph-0.10.0/examples/verlet_chain/make
new file mode 100644
index 00000000..78503f2a
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/verlet_chain/make
@@ -0,0 +1,3 @@
+gcc -fPIC -c relax.c
+gcc -shared -o maths.so relax.o
+
diff --git a/site-packages/pyqtgraph-0.10.0/examples/verlet_chain/relax.c b/site-packages/pyqtgraph-0.10.0/examples/verlet_chain/relax.c
new file mode 100644
index 00000000..a81ac70c
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/verlet_chain/relax.c
@@ -0,0 +1,48 @@
+#include <math.h>
+#include <stdio.h>
+
+void relax(
+    double* pos, 
+    long* links, 
+    double* mrel1, 
+    double* mrel2, 
+    double* lengths, 
+    char* push, 
+    char* pull, 
+    int nlinks, 
+    int iters) 
+    {
+    int i, l, p1, p2;
+    double x1, x2, y1, y2, dx, dy, dist, change;
+//     printf("%d, %d\n", iters, nlinks);
+    for( i=0; i<iters; i++ ) {
+        for( l=0; l<nlinks; l++ ) {
+            p1 = 2*links[l*2];
+            p2 = 2*links[l*2 + 1];
+            x1 = pos[p1];
+            y1 = pos[p1 + 1];
+            x2 = pos[p2];
+            y2 = pos[p2 + 1];
+            
+            dx = x2 - x1;
+            dy = y2 - y1;
+            
+//             dist = pow(dx*dx + dy*dy, 0.5);
+            dist = sqrt(dx*dx + dy*dy);
+            
+            if( push[l]==0 && dist < lengths[l] )
+                dist = lengths[l];
+            if( pull[l]==0 && dist > lengths[l] )
+                dist = lengths[l];
+            
+            change = (lengths[l]-dist) / dist;
+            dx *= change;
+            dy *= change;
+        
+            pos[p1]   -= mrel2[l] * dx;
+            pos[p1+1] -= mrel2[l] * dy;
+            pos[p2]   += mrel1[l] * dx;
+            pos[p2+1] += mrel1[l] * dy;
+        }
+    }
+}
\ No newline at end of file
diff --git a/site-packages/pyqtgraph-0.10.0/examples/verlet_chain/relax.py b/site-packages/pyqtgraph-0.10.0/examples/verlet_chain/relax.py
new file mode 100644
index 00000000..22c54d62
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/verlet_chain/relax.py
@@ -0,0 +1,70 @@
+import ctypes
+import os
+
+so = os.path.join(os.path.dirname(__file__), 'maths.so')
+try:
+    lib = ctypes.CDLL(so)
+    COMPILED = True
+except OSError:
+    COMPILED = False
+
+
+if COMPILED:
+    lib.relax.argtypes = [
+        ctypes.c_void_p,
+        ctypes.c_void_p,
+        ctypes.c_void_p,
+        ctypes.c_void_p,
+        ctypes.c_void_p,
+        ctypes.c_void_p,
+        ctypes.c_void_p,
+        ctypes.c_int,
+        ctypes.c_int,
+        ]
+
+    def relax(pos, links, mrel1, mrel2, lengths, push, pull, iters):
+        nlinks = links.shape[0]
+        lib.relax(pos.ctypes, links.ctypes, mrel1.ctypes, mrel2.ctypes, lengths.ctypes, push.ctypes, pull.ctypes, nlinks, iters)
+        
+else:
+    def relax(pos, links, mrel1, mrel2, lengths, push, pull, iters):
+        lengths2 = lengths**2
+        for i in range(iters):
+            #p1 = links[:, 0]
+            #p2 = links[:, 1]
+            #x1 = pos[p1]
+            #x2 = pos[p2]
+            
+            #dx = x2 - x1
+            
+            #dist = (dx**2).sum(axis=1)**0.5
+            
+            #mask = (npush & (dist < lengths)) | (npull & (dist > lengths))
+            ##dist[mask] = lengths[mask]
+            #change = (lengths-dist) / dist
+            #change[mask] = 0
+            
+            #dx *= change[:, np.newaxis]
+            #print dx
+            
+            ##pos[p1] -= mrel2 * dx
+            ##pos[p2] += mrel1 * dx
+            #for j in range(links.shape[0]):
+                #pos[links[j,0]] -= mrel2[j] * dx[j]
+                #pos[links[j,1]] += mrel1[j] * dx[j]
+                
+            
+            for l in range(links.shape[0]):
+                p1, p2 = links[l];
+                x1 = pos[p1]
+                x2 = pos[p2]
+                
+                dx = x2 - x1
+                dist2 = (dx**2).sum()
+               
+                if (push[l] and dist2 < lengths2[l]) or (pull[l] and dist2 > lengths2[l]):
+                    dist = dist2 ** 0.5
+                    change = (lengths[l]-dist) / dist
+                    dx *= change
+                    pos[p1] -= mrel2[l] * dx
+                    pos[p2] += mrel1[l] * dx
diff --git a/site-packages/pyqtgraph-0.10.0/examples/verlet_chain_demo.py b/site-packages/pyqtgraph-0.10.0/examples/verlet_chain_demo.py
new file mode 100644
index 00000000..1197344d
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/examples/verlet_chain_demo.py
@@ -0,0 +1,126 @@
+"""
+Mechanical simulation of a chain using verlet integration.
+
+Use the mouse to interact with one of the chains.
+
+By default, this uses a slow, pure-python integrator to solve the chain link
+positions. Unix users may compile a small math library to speed this up by 
+running the `examples/verlet_chain/make` script.
+
+"""
+
+import initExample ## Add path to library (just for examples; you do not need this)
+
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtGui
+import numpy as np
+
+import verlet_chain
+
+sim = verlet_chain.ChainSim()
+
+if verlet_chain.relax.COMPILED:
+    # Use more complex chain if compiled mad library is available.
+    chlen1 = 80
+    chlen2 = 60
+    linklen = 1
+else:
+    chlen1 = 10
+    chlen2 = 8
+    linklen = 8
+    
+npts = chlen1 + chlen2
+
+sim.mass = np.ones(npts)
+sim.mass[int(chlen1 * 0.8)] = 100
+sim.mass[chlen1-1] = 500
+sim.mass[npts-1] = 200
+
+sim.fixed = np.zeros(npts, dtype=bool)
+sim.fixed[0] = True
+sim.fixed[chlen1] = True
+
+sim.pos = np.empty((npts, 2))
+sim.pos[:chlen1, 0] = 0
+sim.pos[chlen1:, 0] = 10
+sim.pos[:chlen1, 1] = np.arange(chlen1) * linklen
+sim.pos[chlen1:, 1] = np.arange(chlen2) * linklen
+# to prevent miraculous balancing acts:
+sim.pos += np.random.normal(size=sim.pos.shape, scale=1e-3)
+
+links1 = [(j, i+j+1) for i in range(chlen1) for j in range(chlen1-i-1)]
+links2 = [(j, i+j+1) for i in range(chlen2) for j in range(chlen2-i-1)]
+sim.links = np.concatenate([np.array(links1), np.array(links2)+chlen1, np.array([[chlen1-1, npts-1]])])
+
+p1 = sim.pos[sim.links[:,0]]
+p2 = sim.pos[sim.links[:,1]]
+dif = p2-p1
+sim.lengths = (dif**2).sum(axis=1) ** 0.5
+sim.lengths[(chlen1-1):len(links1)] *= 1.05  # let auxiliary links stretch a little
+sim.lengths[(len(links1)+chlen2-1):] *= 1.05
+sim.lengths[-1] = 7
+
+push1 = np.ones(len(links1), dtype=bool)
+push1[chlen1:] = False
+push2 = np.ones(len(links2), dtype=bool)
+push2[chlen2:] = False
+sim.push = np.concatenate([push1, push2, np.array([True], dtype=bool)])
+
+sim.pull = np.ones(sim.links.shape[0], dtype=bool)
+sim.pull[-1] = False
+
+# move chain initially just to generate some motion if the mouse is not over the window
+mousepos = np.array([30, 20])
+
+
+def display():
+    global view, sim
+    view.clear()
+    view.addItem(sim.makeGraph())
+    
+def relaxed():
+    global app
+    display()
+    app.processEvents()
+    
+def mouse(pos):
+    global mousepos
+    pos = view.mapSceneToView(pos)
+    mousepos = np.array([pos.x(), pos.y()])
+
+def update():
+    global mousepos
+    #sim.pos[0] = sim.pos[0] * 0.9 + mousepos * 0.1
+    s = 0.9
+    sim.pos[0] = sim.pos[0] * s + mousepos * (1.0-s)
+    sim.update()
+
+app = pg.mkQApp()
+win = pg.GraphicsLayoutWidget()
+win.show()
+view = win.addViewBox()
+view.setAspectLocked(True)
+view.setXRange(-100, 100)
+#view.autoRange()
+
+view.scene().sigMouseMoved.connect(mouse)
+
+#display()
+#app.processEvents()
+
+sim.relaxed.connect(relaxed)
+sim.init()
+sim.relaxed.disconnect(relaxed)
+
+sim.stepped.connect(display)
+
+timer = pg.QtCore.QTimer()
+timer.timeout.connect(update)
+timer.start(16)
+
+    
+## Start Qt event loop unless running in interactive mode or using pyside.
+if __name__ == '__main__':
+    import sys
+    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
+        QtGui.QApplication.instance().exec_()
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/GraphicsScene/GraphicsScene.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/GraphicsScene/GraphicsScene.py
new file mode 100644
index 00000000..952a2415
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/GraphicsScene/GraphicsScene.py
@@ -0,0 +1,550 @@
+import weakref
+from ..Qt import QtCore, QtGui
+from ..python2_3 import sortList, cmp
+from ..Point import Point
+from .. import functions as fn
+from .. import ptime as ptime
+from .mouseEvents import *
+from .. import debug as debug
+
+
+if hasattr(QtCore, 'PYQT_VERSION'):
+    try:
+        import sip
+        HAVE_SIP = True
+    except ImportError:
+        HAVE_SIP = False
+else:
+    HAVE_SIP = False
+
+
+__all__ = ['GraphicsScene']
+
+class GraphicsScene(QtGui.QGraphicsScene):
+    """
+    Extension of QGraphicsScene that implements a complete, parallel mouse event system.
+    (It would have been preferred to just alter the way QGraphicsScene creates and delivers 
+    events, but this turned out to be impossible because the constructor for QGraphicsMouseEvent
+    is private)
+    
+    *  Generates MouseClicked events in addition to the usual press/move/release events. 
+       (This works around a problem where it is impossible to have one item respond to a 
+       drag if another is watching for a click.)
+    *  Adjustable radius around click that will catch objects so you don't have to click *exactly* over small/thin objects
+    *  Global context menu--if an item implements a context menu, then its parent(s) may also add items to the menu.
+    *  Allows items to decide _before_ a mouse click which item will be the recipient of mouse events.
+       This lets us indicate unambiguously to the user which item they are about to click/drag on
+    *  Eats mouseMove events that occur too soon after a mouse press.
+    *  Reimplements items() and itemAt() to circumvent PyQt bug
+    
+    Mouse interaction is as follows:
+    
+    1) Every time the mouse moves, the scene delivers both the standard hoverEnter/Move/LeaveEvents 
+       as well as custom HoverEvents. 
+    2) Items are sent HoverEvents in Z-order and each item may optionally call event.acceptClicks(button), 
+       acceptDrags(button) or both. If this method call returns True, this informs the item that _if_ 
+       the user clicks/drags the specified mouse button, the item is guaranteed to be the 
+       recipient of click/drag events (the item may wish to change its appearance to indicate this).
+       If the call to acceptClicks/Drags returns False, then the item is guaranteed to *not* receive
+       the requested event (because another item has already accepted it). 
+    3) If the mouse is clicked, a mousePressEvent is generated as usual. If any items accept this press event, then
+       No click/drag events will be generated and mouse interaction proceeds as defined by Qt. This allows
+       items to function properly if they are expecting the usual press/move/release sequence of events.
+       (It is recommended that items do NOT accept press events, and instead use click/drag events)
+       Note: The default implementation of QGraphicsItem.mousePressEvent will *accept* the event if the 
+       item is has its Selectable or Movable flags enabled. You may need to override this behavior.
+    4) If no item accepts the mousePressEvent, then the scene will begin delivering mouseDrag and/or mouseClick events.
+       If the mouse is moved a sufficient distance (or moved slowly enough) before the button is released, 
+       then a mouseDragEvent is generated.
+       If no drag events are generated before the button is released, then a mouseClickEvent is generated. 
+    5) Click/drag events are delivered to the item that called acceptClicks/acceptDrags on the HoverEvent
+       in step 1. If no such items exist, then the scene attempts to deliver the events to items near the event. 
+       ClickEvents may be delivered in this way even if no
+       item originally claimed it could accept the click. DragEvents may only be delivered this way if it is the initial
+       move in a drag.
+    """
+    
+    sigMouseHover = QtCore.Signal(object)   ## emits a list of objects hovered over
+    sigMouseMoved = QtCore.Signal(object)   ## emits position of mouse on every move
+    sigMouseClicked = QtCore.Signal(object)   ## emitted when mouse is clicked. Check for event.isAccepted() to see whether the event has already been acted on.
+    
+    sigPrepareForPaint = QtCore.Signal()  ## emitted immediately before the scene is about to be rendered
+    
+    _addressCache = weakref.WeakValueDictionary()
+    
+    ExportDirectory = None
+    
+    @classmethod
+    def registerObject(cls, obj):
+        """
+        Workaround for PyQt bug in qgraphicsscene.items()
+        All subclasses of QGraphicsObject must register themselves with this function.
+        (otherwise, mouse interaction with those objects will likely fail)
+        """
+        if HAVE_SIP and isinstance(obj, sip.wrapper):
+            cls._addressCache[sip.unwrapinstance(sip.cast(obj, QtGui.QGraphicsItem))] = obj
+            
+            
+    def __init__(self, clickRadius=2, moveDistance=5, parent=None):
+        QtGui.QGraphicsScene.__init__(self, parent)
+        self.setClickRadius(clickRadius)
+        self.setMoveDistance(moveDistance)
+        self.exportDirectory = None
+        
+        self.clickEvents = []
+        self.dragButtons = []
+        self.mouseGrabber = None
+        self.dragItem = None
+        self.lastDrag = None
+        self.hoverItems = weakref.WeakKeyDictionary()
+        self.lastHoverEvent = None
+        self.minDragTime = 0.5  # drags shorter than 0.5 sec are interpreted as clicks
+        
+        self.contextMenu = [QtGui.QAction("Export...", self)]
+        self.contextMenu[0].triggered.connect(self.showExportDialog)
+        
+        self.exportDialog = None
+        
+    def render(self, *args):
+        self.prepareForPaint()
+        return QtGui.QGraphicsScene.render(self, *args)
+
+    def prepareForPaint(self):
+        """Called before every render. This method will inform items that the scene is about to
+        be rendered by emitting sigPrepareForPaint.
+        
+        This allows items to delay expensive processing until they know a paint will be required."""
+        self.sigPrepareForPaint.emit()
+    
+
+    def setClickRadius(self, r):
+        """
+        Set the distance away from mouse clicks to search for interacting items.
+        When clicking, the scene searches first for items that directly intersect the click position
+        followed by any other items that are within a rectangle that extends r pixels away from the 
+        click position. 
+        """
+        self._clickRadius = r
+        
+    def setMoveDistance(self, d):
+        """
+        Set the distance the mouse must move after a press before mouseMoveEvents will be delivered.
+        This ensures that clicks with a small amount of movement are recognized as clicks instead of
+        drags.
+        """
+        self._moveDistance = d
+
+    def mousePressEvent(self, ev):
+        QtGui.QGraphicsScene.mousePressEvent(self, ev)
+        if self.mouseGrabberItem() is None:  ## nobody claimed press; we are free to generate drag/click events
+            if self.lastHoverEvent is not None:
+                # If the mouse has moved since the last hover event, send a new one.
+                # This can happen if a context menu is open while the mouse is moving.
+                if ev.scenePos() != self.lastHoverEvent.scenePos():
+                    self.sendHoverEvents(ev)
+            
+            self.clickEvents.append(MouseClickEvent(ev))
+            
+            ## set focus on the topmost focusable item under this click
+            items = self.items(ev.scenePos())
+            for i in items:
+                if i.isEnabled() and i.isVisible() and int(i.flags() & i.ItemIsFocusable) > 0:
+                    i.setFocus(QtCore.Qt.MouseFocusReason)
+                    break
+        
+    def mouseMoveEvent(self, ev):
+        self.sigMouseMoved.emit(ev.scenePos())
+        
+        ## First allow QGraphicsScene to deliver hoverEnter/Move/ExitEvents
+        QtGui.QGraphicsScene.mouseMoveEvent(self, ev)
+        
+        ## Next deliver our own HoverEvents
+        self.sendHoverEvents(ev)
+        
+        if int(ev.buttons()) != 0:  ## button is pressed; send mouseMoveEvents and mouseDragEvents
+            QtGui.QGraphicsScene.mouseMoveEvent(self, ev)
+            if self.mouseGrabberItem() is None:
+                now = ptime.time()
+                init = False
+                ## keep track of which buttons are involved in dragging
+                for btn in [QtCore.Qt.LeftButton, QtCore.Qt.MidButton, QtCore.Qt.RightButton]:
+                    if int(ev.buttons() & btn) == 0:
+                        continue
+                    if int(btn) not in self.dragButtons:  ## see if we've dragged far enough yet
+                        cev = [e for e in self.clickEvents if int(e.button()) == int(btn)][0]
+                        dist = Point(ev.scenePos() - cev.scenePos()).length()
+                        if dist == 0 or (dist < self._moveDistance and now - cev.time() < self.minDragTime):
+                            continue
+                        init = init or (len(self.dragButtons) == 0)  ## If this is the first button to be dragged, then init=True
+                        self.dragButtons.append(int(btn))
+                        
+                ## If we have dragged buttons, deliver a drag event
+                if len(self.dragButtons) > 0:
+                    if self.sendDragEvent(ev, init=init):
+                        ev.accept()
+                
+    def leaveEvent(self, ev):  ## inform items that mouse is gone
+        if len(self.dragButtons) == 0:
+            self.sendHoverEvents(ev, exitOnly=True)
+                
+    def mouseReleaseEvent(self, ev):
+        if self.mouseGrabberItem() is None:
+            if ev.button() in self.dragButtons:
+                if self.sendDragEvent(ev, final=True):
+                    #print "sent drag event"
+                    ev.accept()
+                self.dragButtons.remove(ev.button())
+            else:
+                cev = [e for e in self.clickEvents if int(e.button()) == int(ev.button())]
+                if self.sendClickEvent(cev[0]):
+                    #print "sent click event"
+                    ev.accept()
+                self.clickEvents.remove(cev[0])
+                
+        if int(ev.buttons()) == 0:
+            self.dragItem = None
+            self.dragButtons = []
+            self.clickEvents = []
+            self.lastDrag = None
+        QtGui.QGraphicsScene.mouseReleaseEvent(self, ev)
+        
+        self.sendHoverEvents(ev)  ## let items prepare for next click/drag
+
+    def mouseDoubleClickEvent(self, ev):
+        QtGui.QGraphicsScene.mouseDoubleClickEvent(self, ev)
+        if self.mouseGrabberItem() is None:  ## nobody claimed press; we are free to generate drag/click events
+            self.clickEvents.append(MouseClickEvent(ev, double=True))
+        
+    def sendHoverEvents(self, ev, exitOnly=False):
+        ## if exitOnly, then just inform all previously hovered items that the mouse has left.
+        
+        if exitOnly:
+            acceptable=False
+            items = []
+            event = HoverEvent(None, acceptable)
+        else:
+            acceptable = int(ev.buttons()) == 0  ## if we are in mid-drag, do not allow items to accept the hover event.
+            event = HoverEvent(ev, acceptable)
+            items = self.itemsNearEvent(event, hoverable=True)
+            self.sigMouseHover.emit(items)
+            
+        prevItems = list(self.hoverItems.keys())
+            
+        for item in items:
+            if hasattr(item, 'hoverEvent'):
+                event.currentItem = item
+                if item not in self.hoverItems:
+                    self.hoverItems[item] = None
+                    event.enter = True
+                else:
+                    prevItems.remove(item)
+                    event.enter = False
+                    
+                try:
+                    item.hoverEvent(event)
+                except:
+                    debug.printExc("Error sending hover event:")
+        
+        event.enter = False
+        event.exit = True
+        #print "hover exit items:", prevItems
+        for item in prevItems:
+            event.currentItem = item
+            try:
+                item.hoverEvent(event)
+            except:
+                debug.printExc("Error sending hover exit event:")
+            finally:
+                del self.hoverItems[item]
+        
+        # Update last hover event unless:
+        #   - mouse is dragging (move+buttons); in this case we want the dragged
+        #     item to continue receiving events until the drag is over
+        #   - event is not a mouse event (QEvent.Leave sometimes appears here)
+        if (ev.type() == ev.GraphicsSceneMousePress or 
+            (ev.type() == ev.GraphicsSceneMouseMove and int(ev.buttons()) == 0)):
+            self.lastHoverEvent = event  ## save this so we can ask about accepted events later.
+
+    def sendDragEvent(self, ev, init=False, final=False):
+        ## Send a MouseDragEvent to the current dragItem or to 
+        ## items near the beginning of the drag
+        event = MouseDragEvent(ev, self.clickEvents[0], self.lastDrag, start=init, finish=final)
+        #print "dragEvent: init=", init, 'final=', final, 'self.dragItem=', self.dragItem
+        if init and self.dragItem is None:
+            if self.lastHoverEvent is not None:
+                acceptedItem = self.lastHoverEvent.dragItems().get(event.button(), None)
+            else:
+                acceptedItem = None
+                
+            if acceptedItem is not None:
+                #print "Drag -> pre-selected item:", acceptedItem
+                self.dragItem = acceptedItem
+                event.currentItem = self.dragItem
+                try:
+                    self.dragItem.mouseDragEvent(event)
+                except:
+                    debug.printExc("Error sending drag event:")
+                    
+            else:
+                #print "drag -> new item"
+                for item in self.itemsNearEvent(event):
+                    #print "check item:", item
+                    if not item.isVisible() or not item.isEnabled():
+                        continue
+                    if hasattr(item, 'mouseDragEvent'):
+                        event.currentItem = item
+                        try:
+                            item.mouseDragEvent(event)
+                        except:
+                            debug.printExc("Error sending drag event:")
+                        if event.isAccepted():
+                            #print "   --> accepted"
+                            self.dragItem = item
+                            if int(item.flags() & item.ItemIsFocusable) > 0:
+                                item.setFocus(QtCore.Qt.MouseFocusReason)
+                            break
+        elif self.dragItem is not None:
+            event.currentItem = self.dragItem
+            try:
+                self.dragItem.mouseDragEvent(event)
+            except:
+                debug.printExc("Error sending hover exit event:")
+            
+        self.lastDrag = event
+        
+        return event.isAccepted()
+            
+        
+    def sendClickEvent(self, ev):
+        ## if we are in mid-drag, click events may only go to the dragged item.
+        if self.dragItem is not None and hasattr(self.dragItem, 'mouseClickEvent'):
+            ev.currentItem = self.dragItem
+            self.dragItem.mouseClickEvent(ev)
+            
+        ## otherwise, search near the cursor
+        else:
+            if self.lastHoverEvent is not None:
+                acceptedItem = self.lastHoverEvent.clickItems().get(ev.button(), None)
+            else:
+                acceptedItem = None
+            if acceptedItem is not None:
+                ev.currentItem = acceptedItem
+                try:
+                    acceptedItem.mouseClickEvent(ev)
+                except:
+                    debug.printExc("Error sending click event:")
+            else:
+                for item in self.itemsNearEvent(ev):
+                    if not item.isVisible() or not item.isEnabled():
+                        continue
+                    if hasattr(item, 'mouseClickEvent'):
+                        ev.currentItem = item
+                        try:
+                            item.mouseClickEvent(ev)
+                        except:
+                            debug.printExc("Error sending click event:")
+                            
+                        if ev.isAccepted():
+                            if int(item.flags() & item.ItemIsFocusable) > 0:
+                                item.setFocus(QtCore.Qt.MouseFocusReason)
+                            break
+        self.sigMouseClicked.emit(ev)
+        return ev.isAccepted()
+        
+    def items(self, *args):
+        #print 'args:', args
+        items = QtGui.QGraphicsScene.items(self, *args)
+        ## PyQt bug: items() returns a list of QGraphicsItem instances. If the item is subclassed from QGraphicsObject,
+        ## then the object returned will be different than the actual item that was originally added to the scene
+        items2 = list(map(self.translateGraphicsItem, items))
+        #if HAVE_SIP and isinstance(self, sip.wrapper):
+            #items2 = []
+            #for i in items:
+                #addr = sip.unwrapinstance(sip.cast(i, QtGui.QGraphicsItem))
+                #i2 = GraphicsScene._addressCache.get(addr, i)
+                ##print i, "==>", i2
+                #items2.append(i2)
+        #print 'items:', items
+        return items2
+    
+    def selectedItems(self, *args):
+        items = QtGui.QGraphicsScene.selectedItems(self, *args)
+        ## PyQt bug: items() returns a list of QGraphicsItem instances. If the item is subclassed from QGraphicsObject,
+        ## then the object returned will be different than the actual item that was originally added to the scene
+        #if HAVE_SIP and isinstance(self, sip.wrapper):
+            #items2 = []
+            #for i in items:
+                #addr = sip.unwrapinstance(sip.cast(i, QtGui.QGraphicsItem))
+                #i2 = GraphicsScene._addressCache.get(addr, i)
+                ##print i, "==>", i2
+                #items2.append(i2)
+        items2 = list(map(self.translateGraphicsItem, items))
+
+        #print 'items:', items
+        return items2
+
+    def itemAt(self, *args):
+        item = QtGui.QGraphicsScene.itemAt(self, *args)
+        
+        ## PyQt bug: items() returns a list of QGraphicsItem instances. If the item is subclassed from QGraphicsObject,
+        ## then the object returned will be different than the actual item that was originally added to the scene
+        #if HAVE_SIP and isinstance(self, sip.wrapper):
+            #addr = sip.unwrapinstance(sip.cast(item, QtGui.QGraphicsItem))
+            #item = GraphicsScene._addressCache.get(addr, item)
+        #return item
+        return self.translateGraphicsItem(item)
+
+    def itemsNearEvent(self, event, selMode=QtCore.Qt.IntersectsItemShape, sortOrder=QtCore.Qt.DescendingOrder, hoverable=False):
+        """
+        Return an iterator that iterates first through the items that directly intersect point (in Z order)
+        followed by any other items that are within the scene's click radius.
+        """
+        #tr = self.getViewWidget(event.widget()).transform()
+        view = self.views()[0]
+        tr = view.viewportTransform()
+        r = self._clickRadius
+        rect = view.mapToScene(QtCore.QRect(0, 0, 2*r, 2*r)).boundingRect()
+        
+        seen = set()
+        if hasattr(event, 'buttonDownScenePos'):
+            point = event.buttonDownScenePos()
+        else:
+            point = event.scenePos()
+        w = rect.width()
+        h = rect.height()
+        rgn = QtCore.QRectF(point.x()-w, point.y()-h, 2*w, 2*h)
+        #self.searchRect.setRect(rgn)
+
+
+        items = self.items(point, selMode, sortOrder, tr)
+        
+        ## remove items whose shape does not contain point (scene.items() apparently sucks at this)
+        items2 = []
+        for item in items:
+            if hoverable and not hasattr(item, 'hoverEvent'):
+                continue
+            shape = item.shape() # Note: default shape() returns boundingRect()
+            if shape is None:
+                continue
+            if shape.contains(item.mapFromScene(point)):
+                items2.append(item)
+        
+        ## Sort by descending Z-order (don't trust scene.itms() to do this either)
+        ## use 'absolute' z value, which is the sum of all item/parent ZValues
+        def absZValue(item):
+            if item is None:
+                return 0
+            return item.zValue() + absZValue(item.parentItem())
+        
+        sortList(items2, lambda a,b: cmp(absZValue(b), absZValue(a)))
+        
+        return items2
+        
+        #for item in items:
+            ##seen.add(item)
+
+            #shape = item.mapToScene(item.shape())
+            #if not shape.contains(point):
+                #continue
+            #yield item
+        #for item in self.items(rgn, selMode, sortOrder, tr):
+            ##if item not in seen:
+            #yield item
+        
+    def getViewWidget(self):
+        return self.views()[0]
+    
+    #def getViewWidget(self, widget):
+        ### same pyqt bug -- mouseEvent.widget() doesn't give us the original python object.
+        ### [[doesn't seem to work correctly]]
+        #if HAVE_SIP and isinstance(self, sip.wrapper):
+            #addr = sip.unwrapinstance(sip.cast(widget, QtGui.QWidget))
+            ##print "convert", widget, addr
+            #for v in self.views():
+                #addr2 = sip.unwrapinstance(sip.cast(v, QtGui.QWidget))
+                ##print "   check:", v, addr2
+                #if addr2 == addr:
+                    #return v
+        #else:
+            #return widget
+
+    def addParentContextMenus(self, item, menu, event):
+        """
+        Can be called by any item in the scene to expand its context menu to include parent context menus.
+        Parents may implement getContextMenus to add new menus / actions to the existing menu.
+        getContextMenus must accept 1 argument (the event that generated the original menu) and
+        return a single QMenu or a list of QMenus.
+        
+        The final menu will look like:
+        
+            |    Original Item 1
+            |    Original Item 2
+            |    ...
+            |    Original Item N
+            |    ------------------
+            |    Parent Item 1
+            |    Parent Item 2
+            |    ...
+            |    Grandparent Item 1
+            |    ...
+            
+        
+        ==============  ==================================================
+        **Arguments:**
+        item            The item that initially created the context menu 
+                        (This is probably the item making the call to this function)
+        menu            The context menu being shown by the item
+        event           The original event that triggered the menu to appear.
+        ==============  ==================================================
+        """
+
+        menusToAdd = []
+        while item is not self:
+            item = item.parentItem()
+            if item is None:
+                item = self
+            if not hasattr(item, "getContextMenus"):
+                continue
+            subMenus = item.getContextMenus(event) or []
+            if isinstance(subMenus, list): ## so that some items (like FlowchartViewBox) can return multiple menus
+                menusToAdd.extend(subMenus)
+            else:
+                menusToAdd.append(subMenus)
+
+        if menusToAdd:
+            menu.addSeparator()
+
+        for m in menusToAdd:
+            if isinstance(m, QtGui.QMenu):
+                menu.addMenu(m)
+            elif isinstance(m, QtGui.QAction):
+                menu.addAction(m)
+            else:
+                raise Exception("Cannot add object %s (type=%s) to QMenu." % (str(m), str(type(m))))
+            
+        return menu
+
+    def getContextMenus(self, event):
+        self.contextMenuItem = event.acceptedItem
+        return self.contextMenu
+
+    def showExportDialog(self):
+        if self.exportDialog is None:
+            from . import exportDialog
+            self.exportDialog = exportDialog.ExportDialog(self)
+        self.exportDialog.show(self.contextMenuItem)
+
+    @staticmethod
+    def translateGraphicsItem(item):
+        ## for fixing pyqt bugs where the wrong item is returned
+        if HAVE_SIP and isinstance(item, sip.wrapper):
+            addr = sip.unwrapinstance(sip.cast(item, QtGui.QGraphicsItem))
+            item = GraphicsScene._addressCache.get(addr, item)
+        return item
+
+    @staticmethod
+    def translateGraphicsItems(items):
+        return list(map(GraphicsScene.translateGraphicsItem, items))
+
+
+
diff --git a/libs/pyqtgraph/GraphicsScene/__init__.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/GraphicsScene/__init__.py
similarity index 100%
rename from libs/pyqtgraph/GraphicsScene/__init__.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/GraphicsScene/__init__.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/GraphicsScene/exportDialog.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/GraphicsScene/exportDialog.py
new file mode 100644
index 00000000..2676a3b4
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/GraphicsScene/exportDialog.py
@@ -0,0 +1,144 @@
+from ..Qt import QtCore, QtGui, USE_PYSIDE, USE_PYQT5
+from .. import exporters as exporters
+from .. import functions as fn
+from ..graphicsItems.ViewBox import ViewBox
+from ..graphicsItems.PlotItem import PlotItem
+
+if USE_PYSIDE:
+    from . import exportDialogTemplate_pyside as exportDialogTemplate
+elif USE_PYQT5:
+    from . import exportDialogTemplate_pyqt5 as exportDialogTemplate
+else:
+    from . import exportDialogTemplate_pyqt as exportDialogTemplate
+
+
+class ExportDialog(QtGui.QWidget):
+    def __init__(self, scene):
+        QtGui.QWidget.__init__(self)
+        self.setVisible(False)
+        self.setWindowTitle("Export")
+        self.shown = False
+        self.currentExporter = None
+        self.scene = scene
+            
+        self.selectBox = QtGui.QGraphicsRectItem()
+        self.selectBox.setPen(fn.mkPen('y', width=3, style=QtCore.Qt.DashLine))
+        self.selectBox.hide()
+        self.scene.addItem(self.selectBox)
+        
+        self.ui = exportDialogTemplate.Ui_Form()
+        self.ui.setupUi(self)
+        
+        self.ui.closeBtn.clicked.connect(self.close)
+        self.ui.exportBtn.clicked.connect(self.exportClicked)
+        self.ui.copyBtn.clicked.connect(self.copyClicked)
+        self.ui.itemTree.currentItemChanged.connect(self.exportItemChanged)
+        self.ui.formatList.currentItemChanged.connect(self.exportFormatChanged)
+        
+
+    def show(self, item=None):
+        if item is not None:
+            ## Select next exportable parent of the item originally clicked on
+            while not isinstance(item, ViewBox) and not isinstance(item, PlotItem) and item is not None:
+                item = item.parentItem()
+            ## if this is a ViewBox inside a PlotItem, select the parent instead.
+            if isinstance(item, ViewBox) and isinstance(item.parentItem(), PlotItem):
+                item = item.parentItem()
+            self.updateItemList(select=item)
+        self.setVisible(True)
+        self.activateWindow()
+        self.raise_()
+        self.selectBox.setVisible(True)
+        
+        if not self.shown:
+            self.shown = True
+            vcenter = self.scene.getViewWidget().geometry().center()
+            self.setGeometry(vcenter.x()-self.width()/2, vcenter.y()-self.height()/2, self.width(), self.height())
+        
+    def updateItemList(self, select=None):
+        self.ui.itemTree.clear()
+        si = QtGui.QTreeWidgetItem(["Entire Scene"])
+        si.gitem = self.scene
+        self.ui.itemTree.addTopLevelItem(si)
+        self.ui.itemTree.setCurrentItem(si)
+        si.setExpanded(True)
+        for child in self.scene.items():
+            if child.parentItem() is None:
+                self.updateItemTree(child, si, select=select)
+                
+    def updateItemTree(self, item, treeItem, select=None):
+        si = None
+        if isinstance(item, ViewBox):
+            si = QtGui.QTreeWidgetItem(['ViewBox'])
+        elif isinstance(item, PlotItem):
+            si = QtGui.QTreeWidgetItem(['Plot'])
+            
+        if si is not None:
+            si.gitem = item
+            treeItem.addChild(si)
+            treeItem = si
+            if si.gitem is select:
+                self.ui.itemTree.setCurrentItem(si)
+            
+        for ch in item.childItems():
+            self.updateItemTree(ch, treeItem, select=select)
+        
+            
+    def exportItemChanged(self, item, prev):
+        if item is None:
+            return
+        if item.gitem is self.scene:
+            newBounds = self.scene.views()[0].viewRect()
+        else:
+            newBounds = item.gitem.sceneBoundingRect()
+        self.selectBox.setRect(newBounds)
+        self.selectBox.show()
+        self.updateFormatList()
+        
+    def updateFormatList(self):
+        current = self.ui.formatList.currentItem()
+        if current is not None:
+            current = str(current.text())
+        self.ui.formatList.clear()
+        self.exporterClasses = {}
+        gotCurrent = False
+        for exp in exporters.listExporters():
+            self.ui.formatList.addItem(exp.Name)
+            self.exporterClasses[exp.Name] = exp
+            if exp.Name == current:
+                self.ui.formatList.setCurrentRow(self.ui.formatList.count()-1)
+                gotCurrent = True
+                
+        if not gotCurrent:
+            self.ui.formatList.setCurrentRow(0)
+        
+    def exportFormatChanged(self, item, prev):
+        if item is None:
+            self.currentExporter = None
+            self.ui.paramTree.clear()
+            return
+        expClass = self.exporterClasses[str(item.text())]
+        exp = expClass(item=self.ui.itemTree.currentItem().gitem)
+        params = exp.parameters()
+        if params is None:
+            self.ui.paramTree.clear()
+        else:
+            self.ui.paramTree.setParameters(params)
+        self.currentExporter = exp
+        self.ui.copyBtn.setEnabled(exp.allowCopy)
+        
+    def exportClicked(self):
+        self.selectBox.hide()
+        self.currentExporter.export()
+        
+    def copyClicked(self):
+        self.selectBox.hide()
+        self.currentExporter.export(copy=True)
+        
+    def close(self):
+        self.selectBox.setVisible(False)
+        self.setVisible(False)
+
+    def closeEvent(self, event):
+        self.close()
+        QtGui.QWidget.closeEvent(self, event)
diff --git a/libs/pyqtgraph/GraphicsScene/exportDialogTemplate.ui b/site-packages/pyqtgraph-0.10.0/pyqtgraph/GraphicsScene/exportDialogTemplate.ui
similarity index 100%
rename from libs/pyqtgraph/GraphicsScene/exportDialogTemplate.ui
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/GraphicsScene/exportDialogTemplate.ui
diff --git a/libs/pyqtgraph/GraphicsScene/exportDialogTemplate_pyqt.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/GraphicsScene/exportDialogTemplate_pyqt.py
similarity index 100%
rename from libs/pyqtgraph/GraphicsScene/exportDialogTemplate_pyqt.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/GraphicsScene/exportDialogTemplate_pyqt.py
diff --git a/libs/pyqtgraph/GraphicsScene/exportDialogTemplate_pyqt5.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/GraphicsScene/exportDialogTemplate_pyqt5.py
similarity index 100%
rename from libs/pyqtgraph/GraphicsScene/exportDialogTemplate_pyqt5.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/GraphicsScene/exportDialogTemplate_pyqt5.py
diff --git a/libs/pyqtgraph/GraphicsScene/exportDialogTemplate_pyside.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/GraphicsScene/exportDialogTemplate_pyside.py
similarity index 100%
rename from libs/pyqtgraph/GraphicsScene/exportDialogTemplate_pyside.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/GraphicsScene/exportDialogTemplate_pyside.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/GraphicsScene/mouseEvents.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/GraphicsScene/mouseEvents.py
new file mode 100644
index 00000000..fb9d3683
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/GraphicsScene/mouseEvents.py
@@ -0,0 +1,380 @@
+from ..Point import Point
+from ..Qt import QtCore, QtGui
+import weakref
+from .. import ptime as ptime
+
+class MouseDragEvent(object):
+    """
+    Instances of this class are delivered to items in a :class:`GraphicsScene <pyqtgraph.GraphicsScene>` via their mouseDragEvent() method when the item is being mouse-dragged. 
+    
+    """
+    
+    
+    
+    def __init__(self, moveEvent, pressEvent, lastEvent, start=False, finish=False):
+        self.start = start
+        self.finish = finish
+        self.accepted = False
+        self.currentItem = None
+        self._buttonDownScenePos = {}
+        self._buttonDownScreenPos = {}
+        for btn in [QtCore.Qt.LeftButton, QtCore.Qt.MidButton, QtCore.Qt.RightButton]:
+            self._buttonDownScenePos[int(btn)] = moveEvent.buttonDownScenePos(btn)
+            self._buttonDownScreenPos[int(btn)] = moveEvent.buttonDownScreenPos(btn)
+        self._scenePos = moveEvent.scenePos()
+        self._screenPos = moveEvent.screenPos()
+        if lastEvent is None:
+            self._lastScenePos = pressEvent.scenePos()
+            self._lastScreenPos = pressEvent.screenPos()
+        else:
+            self._lastScenePos = lastEvent.scenePos()
+            self._lastScreenPos = lastEvent.screenPos()
+        self._buttons = moveEvent.buttons()
+        self._button = pressEvent.button()
+        self._modifiers = moveEvent.modifiers()
+        self.acceptedItem = None
+        
+    def accept(self):
+        """An item should call this method if it can handle the event. This will prevent the event being delivered to any other items."""
+        self.accepted = True
+        self.acceptedItem = self.currentItem
+        
+    def ignore(self):
+        """An item should call this method if it cannot handle the event. This will allow the event to be delivered to other items."""
+        self.accepted = False
+    
+    def isAccepted(self):
+        return self.accepted
+    
+    def scenePos(self):
+        """Return the current scene position of the mouse."""
+        return Point(self._scenePos)
+    
+    def screenPos(self):
+        """Return the current screen position (pixels relative to widget) of the mouse."""
+        return Point(self._screenPos)
+    
+    def buttonDownScenePos(self, btn=None):
+        """
+        Return the scene position of the mouse at the time *btn* was pressed.
+        If *btn* is omitted, then the button that initiated the drag is assumed.
+        """
+        if btn is None:
+            btn = self.button()
+        return Point(self._buttonDownScenePos[int(btn)])
+    
+    def buttonDownScreenPos(self, btn=None):
+        """
+        Return the screen position (pixels relative to widget) of the mouse at the time *btn* was pressed.
+        If *btn* is omitted, then the button that initiated the drag is assumed.
+        """
+        if btn is None:
+            btn = self.button()
+        return Point(self._buttonDownScreenPos[int(btn)])
+    
+    def lastScenePos(self):
+        """
+        Return the scene position of the mouse immediately prior to this event.
+        """
+        return Point(self._lastScenePos)
+    
+    def lastScreenPos(self):
+        """
+        Return the screen position of the mouse immediately prior to this event.
+        """
+        return Point(self._lastScreenPos)
+    
+    def buttons(self):
+        """
+        Return the buttons currently pressed on the mouse.
+        (see QGraphicsSceneMouseEvent::buttons in the Qt documentation)
+        """
+        return self._buttons
+        
+    def button(self):
+        """Return the button that initiated the drag (may be different from the buttons currently pressed)
+        (see QGraphicsSceneMouseEvent::button in the Qt documentation)
+        
+        """
+        return self._button
+        
+    def pos(self):
+        """
+        Return the current position of the mouse in the coordinate system of the item
+        that the event was delivered to.
+        """
+        return Point(self.currentItem.mapFromScene(self._scenePos))
+    
+    def lastPos(self):
+        """
+        Return the previous position of the mouse in the coordinate system of the item
+        that the event was delivered to.
+        """
+        return Point(self.currentItem.mapFromScene(self._lastScenePos))
+        
+    def buttonDownPos(self, btn=None):
+        """
+        Return the position of the mouse at the time the drag was initiated
+        in the coordinate system of the item that the event was delivered to.
+        """
+        if btn is None:
+            btn = self.button()
+        return Point(self.currentItem.mapFromScene(self._buttonDownScenePos[int(btn)]))
+    
+    def isStart(self):
+        """Returns True if this event is the first since a drag was initiated."""
+        return self.start
+        
+    def isFinish(self):
+        """Returns False if this is the last event in a drag. Note that this
+        event will have the same position as the previous one."""
+        return self.finish
+
+    def __repr__(self):
+        if self.currentItem is None:
+            lp = self._lastScenePos
+            p = self._scenePos
+        else:
+            lp = self.lastPos()
+            p = self.pos()
+        return "<MouseDragEvent (%g,%g)->(%g,%g) buttons=%d start=%s finish=%s>" % (lp.x(), lp.y(), p.x(), p.y(), int(self.buttons()), str(self.isStart()), str(self.isFinish()))
+        
+    def modifiers(self):
+        """Return any keyboard modifiers currently pressed.
+        (see QGraphicsSceneMouseEvent::modifiers in the Qt documentation)
+        
+        """
+        return self._modifiers
+
+
+
+class MouseClickEvent(object):
+    """
+    Instances of this class are delivered to items in a :class:`GraphicsScene <pyqtgraph.GraphicsScene>` via their mouseClickEvent() method when the item is clicked. 
+    
+    
+    """
+    
+    def __init__(self, pressEvent, double=False):
+        self.accepted = False
+        self.currentItem = None
+        self._double = double
+        self._scenePos = pressEvent.scenePos()
+        self._screenPos = pressEvent.screenPos()
+        self._button = pressEvent.button()
+        self._buttons = pressEvent.buttons()
+        self._modifiers = pressEvent.modifiers()
+        self._time = ptime.time()
+        self.acceptedItem = None
+        
+    def accept(self):
+        """An item should call this method if it can handle the event. This will prevent the event being delivered to any other items."""
+        self.accepted = True
+        self.acceptedItem = self.currentItem
+        
+    def ignore(self):
+        """An item should call this method if it cannot handle the event. This will allow the event to be delivered to other items."""
+        self.accepted = False
+    
+    def isAccepted(self):
+        return self.accepted
+    
+    def scenePos(self):
+        """Return the current scene position of the mouse."""
+        return Point(self._scenePos)
+    
+    def screenPos(self):
+        """Return the current screen position (pixels relative to widget) of the mouse."""
+        return Point(self._screenPos)
+    
+    def buttons(self):
+        """
+        Return the buttons currently pressed on the mouse.
+        (see QGraphicsSceneMouseEvent::buttons in the Qt documentation)
+        """
+        return self._buttons
+    
+    def button(self):
+        """Return the mouse button that generated the click event.
+        (see QGraphicsSceneMouseEvent::button in the Qt documentation)
+        """
+        return self._button
+    
+    def double(self):
+        """Return True if this is a double-click."""
+        return self._double
+
+    def pos(self):
+        """
+        Return the current position of the mouse in the coordinate system of the item
+        that the event was delivered to.
+        """
+        return Point(self.currentItem.mapFromScene(self._scenePos))
+    
+    def lastPos(self):
+        """
+        Return the previous position of the mouse in the coordinate system of the item
+        that the event was delivered to.
+        """
+        return Point(self.currentItem.mapFromScene(self._lastScenePos))
+        
+    def modifiers(self):
+        """Return any keyboard modifiers currently pressed.
+        (see QGraphicsSceneMouseEvent::modifiers in the Qt documentation)        
+        """
+        return self._modifiers
+
+    def __repr__(self):
+        try:
+            if self.currentItem is None:
+                p = self._scenePos
+            else:
+                p = self.pos()
+            return "<MouseClickEvent (%g,%g) button=%d>" % (p.x(), p.y(), int(self.button()))
+        except:
+            return "<MouseClickEvent button=%d>" % (int(self.button()))
+
+    def time(self):
+        return self._time
+
+
+
+class HoverEvent(object):
+    """
+    Instances of this class are delivered to items in a :class:`GraphicsScene <pyqtgraph.GraphicsScene>` via their hoverEvent() method when the mouse is hovering over the item.
+    This event class both informs items that the mouse cursor is nearby and allows items to 
+    communicate with one another about whether each item will accept *potential* mouse events. 
+    
+    It is common for multiple overlapping items to receive hover events and respond by changing 
+    their appearance. This can be misleading to the user since, in general, only one item will
+    respond to mouse events. To avoid this, items make calls to event.acceptClicks(button) 
+    and/or acceptDrags(button).
+    
+    Each item may make multiple calls to acceptClicks/Drags, each time for a different button. 
+    If the method returns True, then the item is guaranteed to be
+    the recipient of the claimed event IF the user presses the specified mouse button before
+    moving. If claimEvent returns False, then this item is guaranteed NOT to get the specified
+    event (because another has already claimed it) and the item should change its appearance 
+    accordingly.
+    
+    event.isEnter() returns True if the mouse has just entered the item's shape;
+    event.isExit() returns True if the mouse has just left.
+    """
+    def __init__(self, moveEvent, acceptable):
+        self.enter = False
+        self.acceptable = acceptable
+        self.exit = False
+        self.__clickItems = weakref.WeakValueDictionary()
+        self.__dragItems = weakref.WeakValueDictionary()
+        self.currentItem = None
+        if moveEvent is not None:
+            self._scenePos = moveEvent.scenePos()
+            self._screenPos = moveEvent.screenPos()
+            self._lastScenePos = moveEvent.lastScenePos()
+            self._lastScreenPos = moveEvent.lastScreenPos()
+            self._buttons = moveEvent.buttons()
+            self._modifiers = moveEvent.modifiers()
+        else:
+            self.exit = True
+        
+    def isEnter(self):
+        """Returns True if the mouse has just entered the item's shape"""
+        return self.enter
+        
+    def isExit(self):
+        """Returns True if the mouse has just exited the item's shape"""
+        return self.exit
+        
+    def acceptClicks(self, button):
+        """Inform the scene that the item (that the event was delivered to)
+        would accept a mouse click event if the user were to click before
+        moving the mouse again.
+        
+        Returns True if the request is successful, otherwise returns False (indicating
+        that some other item would receive an incoming click).
+        """
+        if not self.acceptable:
+            return False
+        if button not in self.__clickItems:
+            self.__clickItems[button] = self.currentItem
+            return True
+        return False
+        
+    def acceptDrags(self, button):
+        """Inform the scene that the item (that the event was delivered to)
+        would accept a mouse drag event if the user were to drag before
+        the next hover event.
+        
+        Returns True if the request is successful, otherwise returns False (indicating
+        that some other item would receive an incoming drag event).
+        """
+        if not self.acceptable:
+            return False
+        if button not in self.__dragItems:
+            self.__dragItems[button] = self.currentItem
+            return True
+        return False
+        
+    def scenePos(self):
+        """Return the current scene position of the mouse."""
+        return Point(self._scenePos)
+    
+    def screenPos(self):
+        """Return the current screen position of the mouse."""
+        return Point(self._screenPos)
+    
+    def lastScenePos(self):
+        """Return the previous scene position of the mouse."""
+        return Point(self._lastScenePos)
+    
+    def lastScreenPos(self):
+        """Return the previous screen position of the mouse."""
+        return Point(self._lastScreenPos)
+    
+    def buttons(self):
+        """
+        Return the buttons currently pressed on the mouse.
+        (see QGraphicsSceneMouseEvent::buttons in the Qt documentation)
+        """
+        return self._buttons
+        
+    def pos(self):
+        """
+        Return the current position of the mouse in the coordinate system of the item
+        that the event was delivered to.
+        """
+        return Point(self.currentItem.mapFromScene(self._scenePos))
+    
+    def lastPos(self):
+        """
+        Return the previous position of the mouse in the coordinate system of the item
+        that the event was delivered to.
+        """
+        return Point(self.currentItem.mapFromScene(self._lastScenePos))
+
+    def __repr__(self):
+        if self.exit:
+            return "<HoverEvent exit=True>"
+        
+        if self.currentItem is None:
+            lp = self._lastScenePos
+            p = self._scenePos
+        else:
+            lp = self.lastPos()
+            p = self.pos()
+        return "<HoverEvent (%g,%g)->(%g,%g) buttons=%d enter=%s exit=%s>" % (lp.x(), lp.y(), p.x(), p.y(), int(self.buttons()), str(self.isEnter()), str(self.isExit()))
+        
+    def modifiers(self):
+        """Return any keyboard modifiers currently pressed.
+        (see QGraphicsSceneMouseEvent::modifiers in the Qt documentation)        
+        """
+        return self._modifiers
+    
+    def clickItems(self):
+        return self.__clickItems
+        
+    def dragItems(self):
+        return self.__dragItems
+        
+    
+    
\ No newline at end of file
diff --git a/libs/pyqtgraph/PlotData.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/PlotData.py
similarity index 100%
rename from libs/pyqtgraph/PlotData.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/PlotData.py
diff --git a/libs/pyqtgraph/Point.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/Point.py
similarity index 100%
rename from libs/pyqtgraph/Point.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/Point.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/Qt.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/Qt.py
new file mode 100644
index 00000000..2ed9d6f9
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/Qt.py
@@ -0,0 +1,241 @@
+"""
+This module exists to smooth out some of the differences between PySide and PyQt4:
+
+* Automatically import either PyQt4 or PySide depending on availability
+* Allow to import QtCore/QtGui pyqtgraph.Qt without specifying which Qt wrapper
+  you want to use.
+* Declare QtCore.Signal, .Slot in PyQt4
+* Declare loadUiType function for Pyside
+
+"""
+
+import os, sys, re, time
+
+from .python2_3 import asUnicode
+
+PYSIDE = 'PySide'
+PYQT4 = 'PyQt4'
+PYQT5 = 'PyQt5'
+
+QT_LIB = os.getenv('PYQTGRAPH_QT_LIB')
+
+## Automatically determine whether to use PyQt or PySide (unless specified by
+## environment variable).
+## This is done by first checking to see whether one of the libraries
+## is already imported. If not, then attempt to import PyQt4, then PySide.
+if QT_LIB is None:
+    libOrder = [PYQT4, PYSIDE, PYQT5]
+
+    for lib in libOrder:
+        if lib in sys.modules:
+            QT_LIB = lib
+            break
+
+if QT_LIB is None:
+    for lib in libOrder:
+        try:
+            __import__(lib)
+            QT_LIB = lib
+            break
+        except ImportError:
+            pass
+
+if QT_LIB is None:
+    raise Exception("PyQtGraph requires one of PyQt4, PyQt5 or PySide; none of these packages could be imported.")
+
+if QT_LIB == PYSIDE:
+    from PySide import QtGui, QtCore, QtOpenGL, QtSvg
+    try:
+        from PySide import QtTest
+        if not hasattr(QtTest.QTest, 'qWait'):
+            @staticmethod
+            def qWait(msec):
+                start = time.time()
+                QtGui.QApplication.processEvents()
+                while time.time() < start + msec * 0.001:
+                    QtGui.QApplication.processEvents()
+            QtTest.QTest.qWait = qWait
+                
+    except ImportError:
+        pass
+    import PySide
+    try:
+        from PySide import shiboken
+        isQObjectAlive = shiboken.isValid
+    except ImportError:
+        def isQObjectAlive(obj):
+            try:
+                if hasattr(obj, 'parent'):
+                    obj.parent()
+                elif hasattr(obj, 'parentItem'):
+                    obj.parentItem()
+                else:
+                    raise Exception("Cannot determine whether Qt object %s is still alive." % obj)
+            except RuntimeError:
+                return False
+            else:
+                return True
+    
+    VERSION_INFO = 'PySide ' + PySide.__version__
+    
+    # Make a loadUiType function like PyQt has
+    
+    # Credit:
+    # http://stackoverflow.com/questions/4442286/python-code-genration-with-pyside-uic/14195313#14195313
+
+    class StringIO(object):
+        """Alternative to built-in StringIO needed to circumvent unicode/ascii issues"""
+        def __init__(self):
+            self.data = []
+        
+        def write(self, data):
+            self.data.append(data)
+            
+        def getvalue(self):
+            return ''.join(map(asUnicode, self.data)).encode('utf8')
+        
+    def loadUiType(uiFile):
+        """
+        Pyside "loadUiType" command like PyQt4 has one, so we have to convert
+        the ui file to py code in-memory first and then execute it in a
+        special frame to retrieve the form_class.
+
+        from stackoverflow: http://stackoverflow.com/a/14195313/3781327
+
+        seems like this might also be a legitimate solution, but I'm not sure
+        how to make PyQt4 and pyside look the same...
+            http://stackoverflow.com/a/8717832
+        """
+        import pysideuic
+        import xml.etree.ElementTree as xml
+        #from io import StringIO
+        
+        parsed = xml.parse(uiFile)
+        widget_class = parsed.find('widget').get('class')
+        form_class = parsed.find('class').text
+        
+        with open(uiFile, 'r') as f:
+            o = StringIO()
+            frame = {}
+
+            pysideuic.compileUi(f, o, indent=0)
+            pyc = compile(o.getvalue(), '<string>', 'exec')
+            exec(pyc, frame)
+
+            #Fetch the base_class and form class based on their type in the xml from designer
+            form_class = frame['Ui_%s'%form_class]
+            base_class = eval('QtGui.%s'%widget_class)
+
+        return form_class, base_class
+
+elif QT_LIB == PYQT4:
+
+    from PyQt4 import QtGui, QtCore, uic
+    try:
+        from PyQt4 import QtSvg
+    except ImportError:
+        pass
+    try:
+        from PyQt4 import QtOpenGL
+    except ImportError:
+        pass
+    try:
+        from PyQt4 import QtTest
+    except ImportError:
+        pass
+
+    VERSION_INFO = 'PyQt4 ' + QtCore.PYQT_VERSION_STR + ' Qt ' + QtCore.QT_VERSION_STR
+
+elif QT_LIB == PYQT5:
+    
+    # We're using PyQt5 which has a different structure so we're going to use a shim to
+    # recreate the Qt4 structure for Qt5
+    from PyQt5 import QtGui, QtCore, QtWidgets, uic
+    try:
+        from PyQt5 import QtSvg
+    except ImportError:
+        pass
+    try:
+        from PyQt5 import QtOpenGL
+    except ImportError:
+        pass
+    try:
+        from PyQt5 import QtTest
+        QtTest.QTest.qWaitForWindowShown = QtTest.QTest.qWaitForWindowExposed
+    except ImportError:
+        pass
+
+    # Re-implement deprecated APIs
+
+    __QGraphicsItem_scale = QtWidgets.QGraphicsItem.scale
+
+    def scale(self, *args):
+        if args:
+            sx, sy = args
+            tr = self.transform()
+            tr.scale(sx, sy)
+            self.setTransform(tr)
+        else:
+            return __QGraphicsItem_scale(self)
+
+    QtWidgets.QGraphicsItem.scale = scale
+
+    def rotate(self, angle):
+        tr = self.transform()
+        tr.rotate(angle)
+        self.setTransform(tr)
+    QtWidgets.QGraphicsItem.rotate = rotate
+
+    def translate(self, dx, dy):
+        tr = self.transform()
+        tr.translate(dx, dy)
+        self.setTransform(tr)
+    QtWidgets.QGraphicsItem.translate = translate
+
+    def setMargin(self, i):
+        self.setContentsMargins(i, i, i, i)
+    QtWidgets.QGridLayout.setMargin = setMargin
+
+    def setResizeMode(self, *args):
+        self.setSectionResizeMode(*args)
+    QtWidgets.QHeaderView.setResizeMode = setResizeMode
+
+    
+    QtGui.QApplication = QtWidgets.QApplication
+    QtGui.QGraphicsScene = QtWidgets.QGraphicsScene
+    QtGui.QGraphicsObject = QtWidgets.QGraphicsObject
+    QtGui.QGraphicsWidget = QtWidgets.QGraphicsWidget
+
+    QtGui.QApplication.setGraphicsSystem = None
+    
+    # Import all QtWidgets objects into QtGui
+    for o in dir(QtWidgets):
+        if o.startswith('Q'):
+            setattr(QtGui, o, getattr(QtWidgets,o) )
+    
+    VERSION_INFO = 'PyQt5 ' + QtCore.PYQT_VERSION_STR + ' Qt ' + QtCore.QT_VERSION_STR
+
+else:
+    raise ValueError("Invalid Qt lib '%s'" % QT_LIB)
+
+# Common to PyQt4 and 5
+if QT_LIB.startswith('PyQt'):
+    import sip
+    def isQObjectAlive(obj):
+        return not sip.isdeleted(obj)
+    loadUiType = uic.loadUiType
+
+    QtCore.Signal = QtCore.pyqtSignal
+    
+
+    
+## Make sure we have Qt >= 4.7
+versionReq = [4, 7]
+USE_PYSIDE = QT_LIB == PYSIDE
+USE_PYQT4 = QT_LIB == PYQT4
+USE_PYQT5 = QT_LIB == PYQT5
+QtVersion = PySide.QtCore.__version__ if QT_LIB == PYSIDE else QtCore.QT_VERSION_STR
+m = re.match(r'(\d+)\.(\d+).*', QtVersion)
+if m is not None and list(map(int, m.groups())) < versionReq:
+    print(list(map(int, m.groups())))
+    raise Exception('pyqtgraph requires Qt version >= %d.%d  (your version is %s)' % (versionReq[0], versionReq[1], QtVersion))
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/SRTTransform.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/SRTTransform.py
new file mode 100644
index 00000000..b1aea297
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/SRTTransform.py
@@ -0,0 +1,260 @@
+# -*- coding: utf-8 -*-
+from .Qt import QtCore, QtGui
+from .Point import Point
+import numpy as np
+
+
+class SRTTransform(QtGui.QTransform):
+    """Transform that can always be represented as a combination of 3 matrices: scale * rotate * translate
+    This transform has no shear; angles are always preserved.
+    """
+    def __init__(self, init=None):
+        QtGui.QTransform.__init__(self)
+        self.reset()
+        
+        if init is None:
+            return
+        elif isinstance(init, dict):
+            self.restoreState(init)
+        elif isinstance(init, SRTTransform):
+            self._state = {
+                'pos': Point(init._state['pos']),
+                'scale': Point(init._state['scale']),
+                'angle': init._state['angle']
+            }
+            self.update()
+        elif isinstance(init, QtGui.QTransform):
+            self.setFromQTransform(init)
+        elif isinstance(init, QtGui.QMatrix4x4):
+            self.setFromMatrix4x4(init)
+        else:
+            raise Exception("Cannot create SRTTransform from input type: %s" % str(type(init)))
+
+        
+    def getScale(self):
+        return self._state['scale']
+        
+    def getAngle(self):  
+        ## deprecated; for backward compatibility
+        return self.getRotation()
+        
+    def getRotation(self):
+        return self._state['angle']
+        
+    def getTranslation(self):
+        return self._state['pos']
+    
+    def reset(self):
+        self._state = {
+            'pos': Point(0,0),
+            'scale': Point(1,1),
+            'angle': 0.0  ## in degrees
+        }
+        self.update()
+        
+    def setFromQTransform(self, tr):
+        p1 = Point(tr.map(0., 0.))
+        p2 = Point(tr.map(1., 0.))
+        p3 = Point(tr.map(0., 1.))
+        
+        dp2 = Point(p2-p1)
+        dp3 = Point(p3-p1)
+        
+        ## detect flipped axes
+        if dp2.angle(dp3) > 0:
+            #da = 180
+            da = 0
+            sy = -1.0
+        else:
+            da = 0
+            sy = 1.0
+            
+        self._state = {
+            'pos': Point(p1),
+            'scale': Point(dp2.length(), dp3.length() * sy),
+            'angle': (np.arctan2(dp2[1], dp2[0]) * 180. / np.pi) + da
+        }
+        self.update()
+        
+    def setFromMatrix4x4(self, m):
+        m = SRTTransform3D(m)
+        angle, axis = m.getRotation()
+        if angle != 0 and (axis[0] != 0 or axis[1] != 0 or axis[2] != 1):
+            print("angle: %s  axis: %s" % (str(angle), str(axis)))
+            raise Exception("Can only convert 4x4 matrix to 3x3 if rotation is around Z-axis.")
+        self._state = {
+            'pos': Point(m.getTranslation()),
+            'scale': Point(m.getScale()),
+            'angle': angle
+        }
+        self.update()
+        
+    def translate(self, *args):
+        """Acceptable arguments are: 
+           x, y
+           [x, y]
+           Point(x,y)"""
+        t = Point(*args)
+        self.setTranslate(self._state['pos']+t)
+        
+    def setTranslate(self, *args):
+        """Acceptable arguments are: 
+           x, y
+           [x, y]
+           Point(x,y)"""
+        self._state['pos'] = Point(*args)
+        self.update()
+        
+    def scale(self, *args):
+        """Acceptable arguments are: 
+           x, y
+           [x, y]
+           Point(x,y)"""
+        s = Point(*args)
+        self.setScale(self._state['scale'] * s)
+        
+    def setScale(self, *args):
+        """Acceptable arguments are: 
+           x, y
+           [x, y]
+           Point(x,y)"""
+        self._state['scale'] = Point(*args)
+        self.update()
+        
+    def rotate(self, angle):
+        """Rotate the transformation by angle (in degrees)"""
+        self.setRotate(self._state['angle'] + angle)
+        
+    def setRotate(self, angle):
+        """Set the transformation rotation to angle (in degrees)"""
+        self._state['angle'] = angle
+        self.update()
+
+    def __truediv__(self, t):
+        """A / B  ==  B^-1 * A"""
+        dt = t.inverted()[0] * self
+        return SRTTransform(dt)
+        
+    def __div__(self, t):
+        return self.__truediv__(t)
+        
+    def __mul__(self, t):
+        return SRTTransform(QtGui.QTransform.__mul__(self, t))
+
+    def saveState(self):
+        p = self._state['pos']
+        s = self._state['scale']
+        #if s[0] == 0:
+            #raise Exception('Invalid scale: %s' % str(s))
+        return {'pos': (p[0], p[1]), 'scale': (s[0], s[1]), 'angle': self._state['angle']}
+
+    def restoreState(self, state):
+        self._state['pos'] = Point(state.get('pos', (0,0)))
+        self._state['scale'] = Point(state.get('scale', (1.,1.)))
+        self._state['angle'] = state.get('angle', 0)
+        self.update()
+
+    def update(self):
+        QtGui.QTransform.reset(self)
+        ## modifications to the transform are multiplied on the right, so we need to reverse order here.
+        QtGui.QTransform.translate(self, *self._state['pos'])
+        QtGui.QTransform.rotate(self, self._state['angle'])
+        QtGui.QTransform.scale(self, *self._state['scale'])
+
+    def __repr__(self):
+        return str(self.saveState())
+        
+    def matrix(self):
+        return np.array([[self.m11(), self.m12(), self.m13()],[self.m21(), self.m22(), self.m23()],[self.m31(), self.m32(), self.m33()]])
+
+        
+if __name__ == '__main__':
+    from . import widgets
+    import GraphicsView
+    from .functions import *
+    app = QtGui.QApplication([])
+    win = QtGui.QMainWindow()
+    win.show()
+    cw = GraphicsView.GraphicsView()
+    #cw.enableMouse()  
+    win.setCentralWidget(cw)
+    s = QtGui.QGraphicsScene()
+    cw.setScene(s)
+    win.resize(600,600)
+    cw.enableMouse()
+    cw.setRange(QtCore.QRectF(-100., -100., 200., 200.))
+    
+    class Item(QtGui.QGraphicsItem):
+        def __init__(self):
+            QtGui.QGraphicsItem.__init__(self)
+            self.b = QtGui.QGraphicsRectItem(20, 20, 20, 20, self)
+            self.b.setPen(QtGui.QPen(mkPen('y')))
+            self.t1 = QtGui.QGraphicsTextItem(self)
+            self.t1.setHtml('<span style="color: #F00">R</span>')
+            self.t1.translate(20, 20)
+            self.l1 = QtGui.QGraphicsLineItem(10, 0, -10, 0, self)
+            self.l2 = QtGui.QGraphicsLineItem(0, 10, 0, -10, self)
+            self.l1.setPen(QtGui.QPen(mkPen('y')))
+            self.l2.setPen(QtGui.QPen(mkPen('y')))
+        def boundingRect(self):
+            return QtCore.QRectF()
+        def paint(self, *args):
+            pass
+            
+    #s.addItem(b)
+    #s.addItem(t1)
+    item = Item()
+    s.addItem(item)
+    l1 = QtGui.QGraphicsLineItem(10, 0, -10, 0)
+    l2 = QtGui.QGraphicsLineItem(0, 10, 0, -10)
+    l1.setPen(QtGui.QPen(mkPen('r')))
+    l2.setPen(QtGui.QPen(mkPen('r')))
+    s.addItem(l1)
+    s.addItem(l2)
+    
+    tr1 = SRTTransform()
+    tr2 = SRTTransform()
+    tr3 = QtGui.QTransform()
+    tr3.translate(20, 0)
+    tr3.rotate(45)
+    print("QTransform -> Transform:", SRTTransform(tr3))
+    
+    print("tr1:", tr1)
+    
+    tr2.translate(20, 0)
+    tr2.rotate(45)
+    print("tr2:", tr2)
+    
+    dt = tr2/tr1
+    print("tr2 / tr1 = ", dt)
+    
+    print("tr2 * tr1 = ", tr2*tr1)
+    
+    tr4 = SRTTransform()
+    tr4.scale(-1, 1)
+    tr4.rotate(30)
+    print("tr1 * tr4 = ", tr1*tr4)
+    
+    w1 = widgets.TestROI((19,19), (22, 22), invertible=True)
+    #w2 = widgets.TestROI((0,0), (150, 150))
+    w1.setZValue(10)
+    s.addItem(w1)
+    #s.addItem(w2)
+    w1Base = w1.getState()
+    #w2Base = w2.getState()
+    def update():
+        tr1 = w1.getGlobalTransform(w1Base)
+        #tr2 = w2.getGlobalTransform(w2Base)
+        item.setTransform(tr1)
+        
+    #def update2():
+        #tr1 = w1.getGlobalTransform(w1Base)
+        #tr2 = w2.getGlobalTransform(w2Base)
+        #t1.setTransform(tr1)
+        #w1.setState(w1Base)
+        #w1.applyGlobalTransform(tr2)
+        
+    w1.sigRegionChanged.connect(update)
+    #w2.sigRegionChanged.connect(update2)
+    
+from .SRTTransform3D import SRTTransform3D
diff --git a/libs/pyqtgraph/SRTTransform3D.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/SRTTransform3D.py
similarity index 100%
rename from libs/pyqtgraph/SRTTransform3D.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/SRTTransform3D.py
diff --git a/libs/pyqtgraph/SignalProxy.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/SignalProxy.py
similarity index 100%
rename from libs/pyqtgraph/SignalProxy.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/SignalProxy.py
diff --git a/libs/pyqtgraph/ThreadsafeTimer.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/ThreadsafeTimer.py
similarity index 100%
rename from libs/pyqtgraph/ThreadsafeTimer.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/ThreadsafeTimer.py
diff --git a/libs/pyqtgraph/Transform3D.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/Transform3D.py
similarity index 100%
rename from libs/pyqtgraph/Transform3D.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/Transform3D.py
diff --git a/libs/pyqtgraph/Vector.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/Vector.py
similarity index 100%
rename from libs/pyqtgraph/Vector.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/Vector.py
diff --git a/libs/pyqtgraph/WidgetGroup.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/WidgetGroup.py
similarity index 100%
rename from libs/pyqtgraph/WidgetGroup.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/WidgetGroup.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/__init__.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/__init__.py
new file mode 100644
index 00000000..301f9f1e
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/__init__.py
@@ -0,0 +1,456 @@
+# -*- coding: utf-8 -*-
+"""
+PyQtGraph - Scientific Graphics and GUI Library for Python
+www.pyqtgraph.org
+"""
+
+__version__ = '0.10.0'
+
+### import all the goodies and add some helper functions for easy CLI use
+
+## 'Qt' is a local module; it is intended mainly to cover up the differences
+## between PyQt4 and PySide.
+from .Qt import QtGui
+
+## not really safe--If we accidentally create another QApplication, the process hangs (and it is very difficult to trace the cause)
+#if QtGui.QApplication.instance() is None:
+    #app = QtGui.QApplication([])
+
+import numpy  ## pyqtgraph requires numpy
+              ## (import here to avoid massive error dump later on if numpy is not available)
+
+import os, sys
+
+## check python version
+## Allow anything >= 2.7
+if sys.version_info[0] < 2 or (sys.version_info[0] == 2 and sys.version_info[1] < 6):
+    raise Exception("Pyqtgraph requires Python version 2.6 or greater (this is %d.%d)" % (sys.version_info[0], sys.version_info[1]))
+
+## helpers for 2/3 compatibility
+from . import python2_3
+
+## install workarounds for numpy bugs
+from . import numpy_fix
+
+## in general openGL is poorly supported with Qt+GraphicsView.
+## we only enable it where the performance benefit is critical.
+## Note this only applies to 2D graphics; 3D graphics always use OpenGL.
+if 'linux' in sys.platform:  ## linux has numerous bugs in opengl implementation
+    useOpenGL = False
+elif 'darwin' in sys.platform: ## openGL can have a major impact on mac, but also has serious bugs
+    useOpenGL = False
+    if QtGui.QApplication.instance() is not None:
+        print('Warning: QApplication was created before pyqtgraph was imported; there may be problems (to avoid bugs, call QApplication.setGraphicsSystem("raster") before the QApplication is created).')
+    if QtGui.QApplication.setGraphicsSystem:
+        QtGui.QApplication.setGraphicsSystem('raster')  ## work around a variety of bugs in the native graphics system 
+else:
+    useOpenGL = False  ## on windows there's a more even performance / bugginess tradeoff. 
+                
+CONFIG_OPTIONS = {
+    'useOpenGL': useOpenGL, ## by default, this is platform-dependent (see widgets/GraphicsView). Set to True or False to explicitly enable/disable opengl.
+    'leftButtonPan': True,  ## if false, left button drags a rubber band for zooming in viewbox
+    # foreground/background take any arguments to the 'mkColor' in /pyqtgraph/functions.py
+    'foreground': 'd',  ## default foreground color for axes, labels, etc.
+    'background': 'k',        ## default background for GraphicsWidget
+    'antialias': False,
+    'editorCommand': None,  ## command used to invoke code editor from ConsoleWidgets
+    'useWeave': False,       ## Use weave to speed up some operations, if it is available
+    'weaveDebug': False,    ## Print full error message if weave compile fails
+    'exitCleanup': True,    ## Attempt to work around some exit crash bugs in PyQt and PySide
+    'enableExperimental': False, ## Enable experimental features (the curious can search for this key in the code)
+    'crashWarning': False,  # If True, print warnings about situations that may result in a crash
+    'imageAxisOrder': 'col-major',  # For 'row-major', image data is expected in the standard (row, col) order.
+                                 # For 'col-major', image data is expected in reversed (col, row) order.
+                                 # The default is 'col-major' for backward compatibility, but this may
+                                 # change in the future.
+} 
+
+
+def setConfigOption(opt, value):
+    global CONFIG_OPTIONS
+    if opt not in CONFIG_OPTIONS:
+        raise KeyError('Unknown configuration option "%s"' % opt)
+    if opt == 'imageAxisOrder' and value not in ('row-major', 'col-major'):
+        raise ValueError('imageAxisOrder must be either "row-major" or "col-major"')
+    CONFIG_OPTIONS[opt] = value
+
+def setConfigOptions(**opts):
+    """Set global configuration options. 
+    
+    Each keyword argument sets one global option. 
+    """
+    for k,v in opts.items():
+        setConfigOption(k, v)
+
+def getConfigOption(opt):
+    """Return the value of a single global configuration option.
+    """
+    return CONFIG_OPTIONS[opt]
+
+
+def systemInfo():
+    print("sys.platform: %s" % sys.platform)
+    print("sys.version: %s" % sys.version)
+    from .Qt import VERSION_INFO
+    print("qt bindings: %s" % VERSION_INFO)
+    
+    global __version__
+    rev = None
+    if __version__ is None:  ## this code was probably checked out from bzr; look up the last-revision file
+        lastRevFile = os.path.join(os.path.dirname(__file__), '..', '.bzr', 'branch', 'last-revision')
+        if os.path.exists(lastRevFile):
+            rev = open(lastRevFile, 'r').read().strip()
+    
+    print("pyqtgraph: %s; %s" % (__version__, rev))
+    print("config:")
+    import pprint
+    pprint.pprint(CONFIG_OPTIONS)
+
+## Rename orphaned .pyc files. This is *probably* safe :)
+## We only do this if __version__ is None, indicating the code was probably pulled
+## from the repository. 
+def renamePyc(startDir):
+    ### Used to rename orphaned .pyc files
+    ### When a python file changes its location in the repository, usually the .pyc file
+    ### is left behind, possibly causing mysterious and difficult to track bugs. 
+
+    ### Note that this is no longer necessary for python 3.2; from PEP 3147:
+    ### "If the py source file is missing, the pyc file inside __pycache__ will be ignored. 
+    ### This eliminates the problem of accidental stale pyc file imports."
+    
+    printed = False
+    startDir = os.path.abspath(startDir)
+    for path, dirs, files in os.walk(startDir):
+        if '__pycache__' in path:
+            continue
+        for f in files:
+            fileName = os.path.join(path, f)
+            base, ext = os.path.splitext(fileName)
+            py = base + ".py"
+            if ext == '.pyc' and not os.path.isfile(py):
+                if not printed:
+                    print("NOTE: Renaming orphaned .pyc files:")
+                    printed = True
+                n = 1
+                while True:
+                    name2 = fileName + ".renamed%d" % n
+                    if not os.path.exists(name2):
+                        break
+                    n += 1
+                print("  " + fileName + "  ==>")
+                print("  " + name2)
+                os.rename(fileName, name2)
+                
+path = os.path.split(__file__)[0]
+if __version__ is None and not hasattr(sys, 'frozen') and sys.version_info[0] == 2: ## If we are frozen, there's a good chance we don't have the original .py files anymore.
+    renamePyc(path)
+
+
+## Import almost everything to make it available from a single namespace
+## don't import the more complex systems--canvas, parametertree, flowchart, dockarea
+## these must be imported separately.
+#from . import frozenSupport
+#def importModules(path, globals, locals, excludes=()):
+    #"""Import all modules residing within *path*, return a dict of name: module pairs.
+    
+    #Note that *path* MUST be relative to the module doing the import.    
+    #"""
+    #d = os.path.join(os.path.split(globals['__file__'])[0], path)
+    #files = set()
+    #for f in frozenSupport.listdir(d):
+        #if frozenSupport.isdir(os.path.join(d, f)) and f not in ['__pycache__', 'tests']:
+            #files.add(f)
+        #elif f[-3:] == '.py' and f != '__init__.py':
+            #files.add(f[:-3])
+        #elif f[-4:] == '.pyc' and f != '__init__.pyc':
+            #files.add(f[:-4])
+        
+    #mods = {}
+    #path = path.replace(os.sep, '.')
+    #for modName in files:
+        #if modName in excludes:
+            #continue
+        #try:
+            #if len(path) > 0:
+                #modName = path + '.' + modName
+            #print( "from .%s import * " % modName)
+            #mod = __import__(modName, globals, locals, ['*'], 1)
+            #mods[modName] = mod
+        #except:
+            #import traceback
+            #traceback.print_stack()
+            #sys.excepthook(*sys.exc_info())
+            #print("[Error importing module: %s]" % modName)
+            
+    #return mods
+
+#def importAll(path, globals, locals, excludes=()):
+    #"""Given a list of modules, import all names from each module into the global namespace."""
+    #mods = importModules(path, globals, locals, excludes)
+    #for mod in mods.values():
+        #if hasattr(mod, '__all__'):
+            #names = mod.__all__
+        #else:
+            #names = [n for n in dir(mod) if n[0] != '_']
+        #for k in names:
+            #if hasattr(mod, k):
+                #globals[k] = getattr(mod, k)
+
+# Dynamic imports are disabled. This causes too many problems.
+#importAll('graphicsItems', globals(), locals())
+#importAll('widgets', globals(), locals(),
+          #excludes=['MatplotlibWidget', 'RawImageWidget', 'RemoteGraphicsView'])
+
+from .graphicsItems.VTickGroup import * 
+from .graphicsItems.GraphicsWidget import * 
+from .graphicsItems.ScaleBar import * 
+from .graphicsItems.PlotDataItem import * 
+from .graphicsItems.GraphItem import * 
+from .graphicsItems.TextItem import * 
+from .graphicsItems.GraphicsLayout import * 
+from .graphicsItems.UIGraphicsItem import * 
+from .graphicsItems.GraphicsObject import * 
+from .graphicsItems.PlotItem import * 
+from .graphicsItems.ROI import * 
+from .graphicsItems.InfiniteLine import * 
+from .graphicsItems.HistogramLUTItem import * 
+from .graphicsItems.GridItem import * 
+from .graphicsItems.GradientLegend import * 
+from .graphicsItems.GraphicsItem import * 
+from .graphicsItems.BarGraphItem import * 
+from .graphicsItems.ViewBox import * 
+from .graphicsItems.ArrowItem import * 
+from .graphicsItems.ImageItem import * 
+from .graphicsItems.AxisItem import * 
+from .graphicsItems.LabelItem import * 
+from .graphicsItems.CurvePoint import * 
+from .graphicsItems.GraphicsWidgetAnchor import * 
+from .graphicsItems.PlotCurveItem import * 
+from .graphicsItems.ButtonItem import * 
+from .graphicsItems.GradientEditorItem import * 
+from .graphicsItems.MultiPlotItem import * 
+from .graphicsItems.ErrorBarItem import * 
+from .graphicsItems.IsocurveItem import * 
+from .graphicsItems.LinearRegionItem import * 
+from .graphicsItems.FillBetweenItem import * 
+from .graphicsItems.LegendItem import * 
+from .graphicsItems.ScatterPlotItem import * 
+from .graphicsItems.ItemGroup import * 
+
+from .widgets.MultiPlotWidget import * 
+from .widgets.ScatterPlotWidget import * 
+from .widgets.ColorMapWidget import * 
+from .widgets.FileDialog import * 
+from .widgets.ValueLabel import * 
+from .widgets.HistogramLUTWidget import * 
+from .widgets.CheckTable import * 
+from .widgets.BusyCursor import * 
+from .widgets.PlotWidget import * 
+from .widgets.ComboBox import * 
+from .widgets.GradientWidget import * 
+from .widgets.DataFilterWidget import * 
+from .widgets.SpinBox import * 
+from .widgets.JoystickButton import * 
+from .widgets.GraphicsLayoutWidget import * 
+from .widgets.TreeWidget import * 
+from .widgets.PathButton import * 
+from .widgets.VerticalLabel import * 
+from .widgets.FeedbackButton import * 
+from .widgets.ColorButton import * 
+from .widgets.DataTreeWidget import * 
+from .widgets.GraphicsView import * 
+from .widgets.LayoutWidget import * 
+from .widgets.TableWidget import * 
+from .widgets.ProgressDialog import *
+
+from .imageview import *
+from .WidgetGroup import *
+from .Point import Point
+from .Vector import Vector
+from .SRTTransform import SRTTransform
+from .Transform3D import Transform3D
+from .SRTTransform3D import SRTTransform3D
+from .functions import *
+from .graphicsWindows import *
+from .SignalProxy import *
+from .colormap import *
+from .ptime import time
+from .Qt import isQObjectAlive
+
+
+##############################################################
+## PyQt and PySide both are prone to crashing on exit. 
+## There are two general approaches to dealing with this:
+##  1. Install atexit handlers that assist in tearing down to avoid crashes.
+##     This helps, but is never perfect.
+##  2. Terminate the process before python starts tearing down
+##     This is potentially dangerous
+
+## Attempts to work around exit crashes:
+import atexit
+_cleanupCalled = False
+def cleanup():
+    global _cleanupCalled
+    if _cleanupCalled:
+        return
+    
+    if not getConfigOption('exitCleanup'):
+        return
+    
+    ViewBox.quit()  ## tell ViewBox that it doesn't need to deregister views anymore.
+    
+    ## Workaround for Qt exit crash:
+    ## ALL QGraphicsItems must have a scene before they are deleted.
+    ## This is potentially very expensive, but preferred over crashing.
+    ## Note: this appears to be fixed in PySide as of 2012.12, but it should be left in for a while longer..
+    if QtGui.QApplication.instance() is None:
+        return
+    import gc
+    s = QtGui.QGraphicsScene()
+    for o in gc.get_objects():
+        try:
+            if isinstance(o, QtGui.QGraphicsItem) and isQObjectAlive(o) and o.scene() is None:
+                if getConfigOption('crashWarning'):
+                    sys.stderr.write('Error: graphics item without scene. '
+                        'Make sure ViewBox.close() and GraphicsView.close() '
+                        'are properly called before app shutdown (%s)\n' % (o,))
+                
+                s.addItem(o)
+        except RuntimeError:  ## occurs if a python wrapper no longer has its underlying C++ object
+            continue
+    _cleanupCalled = True
+
+atexit.register(cleanup)
+
+# Call cleanup when QApplication quits. This is necessary because sometimes
+# the QApplication will quit before the atexit callbacks are invoked.
+# Note: cannot connect this function until QApplication has been created, so
+# instead we have GraphicsView.__init__ call this for us.
+_cleanupConnected = False
+def _connectCleanup():
+    global _cleanupConnected
+    if _cleanupConnected:
+        return
+    QtGui.QApplication.instance().aboutToQuit.connect(cleanup)
+    _cleanupConnected = True
+
+
+## Optional function for exiting immediately (with some manual teardown)
+def exit():
+    """
+    Causes python to exit without garbage-collecting any objects, and thus avoids
+    calling object destructor methods. This is a sledgehammer workaround for 
+    a variety of bugs in PyQt and Pyside that cause crashes on exit.
+    
+    This function does the following in an attempt to 'safely' terminate
+    the process:
+    
+    * Invoke atexit callbacks
+    * Close all open file handles
+    * os._exit()
+    
+    Note: there is some potential for causing damage with this function if you
+    are using objects that _require_ their destructors to be called (for example,
+    to properly terminate log files, disconnect from devices, etc). Situations
+    like this are probably quite rare, but use at your own risk.
+    """
+    
+    ## first disable our own cleanup function; won't be needing it.
+    setConfigOptions(exitCleanup=False)
+    
+    ## invoke atexit callbacks
+    atexit._run_exitfuncs()
+    
+    ## close file handles
+    if sys.platform == 'darwin':
+        for fd in range(3, 4096):
+            if fd not in [7]:  # trying to close 7 produces an illegal instruction on the Mac.
+                os.close(fd)
+    else:
+        os.closerange(3, 4096) ## just guessing on the maximum descriptor count..
+
+    os._exit(0)
+    
+
+
+## Convenience functions for command-line use
+
+plots = []
+images = []
+QAPP = None
+
+def plot(*args, **kargs):
+    """
+    Create and return a :class:`PlotWindow <pyqtgraph.PlotWindow>` 
+    (this is just a window with :class:`PlotWidget <pyqtgraph.PlotWidget>` inside), plot data in it.
+    Accepts a *title* argument to set the title of the window.
+    All other arguments are used to plot data. (see :func:`PlotItem.plot() <pyqtgraph.PlotItem.plot>`)
+    """
+    mkQApp()
+    #if 'title' in kargs:
+        #w = PlotWindow(title=kargs['title'])
+        #del kargs['title']
+    #else:
+        #w = PlotWindow()
+    #if len(args)+len(kargs) > 0:
+        #w.plot(*args, **kargs)
+        
+    pwArgList = ['title', 'labels', 'name', 'left', 'right', 'top', 'bottom', 'background']
+    pwArgs = {}
+    dataArgs = {}
+    for k in kargs:
+        if k in pwArgList:
+            pwArgs[k] = kargs[k]
+        else:
+            dataArgs[k] = kargs[k]
+        
+    w = PlotWindow(**pwArgs)
+    if len(args) > 0 or len(dataArgs) > 0:
+        w.plot(*args, **dataArgs)
+    plots.append(w)
+    w.show()
+    return w
+    
+def image(*args, **kargs):
+    """
+    Create and return an :class:`ImageWindow <pyqtgraph.ImageWindow>` 
+    (this is just a window with :class:`ImageView <pyqtgraph.ImageView>` widget inside), show image data inside.
+    Will show 2D or 3D image data.
+    Accepts a *title* argument to set the title of the window.
+    All other arguments are used to show data. (see :func:`ImageView.setImage() <pyqtgraph.ImageView.setImage>`)
+    """
+    mkQApp()
+    w = ImageWindow(*args, **kargs)
+    images.append(w)
+    w.show()
+    return w
+show = image  ## for backward compatibility
+
+def dbg(*args, **kwds):
+    """
+    Create a console window and begin watching for exceptions.
+    
+    All arguments are passed to :func:`ConsoleWidget.__init__() <pyqtgraph.console.ConsoleWidget.__init__>`.
+    """
+    mkQApp()
+    from . import console
+    c = console.ConsoleWidget(*args, **kwds)
+    c.catchAllExceptions()
+    c.show()
+    global consoles
+    try:
+        consoles.append(c)
+    except NameError:
+        consoles = [c]
+    return c
+    
+    
+def mkQApp():
+    global QAPP
+    inst = QtGui.QApplication.instance()
+    if inst is None:
+        QAPP = QtGui.QApplication([])
+    else:
+        QAPP = inst
+    return QAPP
+        
diff --git a/libs/pyqtgraph/canvas/Canvas.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/canvas/Canvas.py
similarity index 100%
rename from libs/pyqtgraph/canvas/Canvas.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/canvas/Canvas.py
diff --git a/libs/pyqtgraph/canvas/CanvasItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/canvas/CanvasItem.py
similarity index 100%
rename from libs/pyqtgraph/canvas/CanvasItem.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/canvas/CanvasItem.py
diff --git a/libs/pyqtgraph/canvas/CanvasManager.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/canvas/CanvasManager.py
similarity index 100%
rename from libs/pyqtgraph/canvas/CanvasManager.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/canvas/CanvasManager.py
diff --git a/libs/pyqtgraph/canvas/CanvasTemplate.ui b/site-packages/pyqtgraph-0.10.0/pyqtgraph/canvas/CanvasTemplate.ui
similarity index 100%
rename from libs/pyqtgraph/canvas/CanvasTemplate.ui
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/canvas/CanvasTemplate.ui
diff --git a/libs/pyqtgraph/canvas/CanvasTemplate_pyqt.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/canvas/CanvasTemplate_pyqt.py
similarity index 100%
rename from libs/pyqtgraph/canvas/CanvasTemplate_pyqt.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/canvas/CanvasTemplate_pyqt.py
diff --git a/libs/pyqtgraph/canvas/CanvasTemplate_pyqt5.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/canvas/CanvasTemplate_pyqt5.py
similarity index 100%
rename from libs/pyqtgraph/canvas/CanvasTemplate_pyqt5.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/canvas/CanvasTemplate_pyqt5.py
diff --git a/libs/pyqtgraph/canvas/CanvasTemplate_pyside.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/canvas/CanvasTemplate_pyside.py
similarity index 100%
rename from libs/pyqtgraph/canvas/CanvasTemplate_pyside.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/canvas/CanvasTemplate_pyside.py
diff --git a/libs/pyqtgraph/canvas/TransformGuiTemplate.ui b/site-packages/pyqtgraph-0.10.0/pyqtgraph/canvas/TransformGuiTemplate.ui
similarity index 100%
rename from libs/pyqtgraph/canvas/TransformGuiTemplate.ui
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/canvas/TransformGuiTemplate.ui
diff --git a/libs/pyqtgraph/canvas/TransformGuiTemplate_pyqt.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/canvas/TransformGuiTemplate_pyqt.py
similarity index 100%
rename from libs/pyqtgraph/canvas/TransformGuiTemplate_pyqt.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/canvas/TransformGuiTemplate_pyqt.py
diff --git a/libs/pyqtgraph/canvas/TransformGuiTemplate_pyqt5.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/canvas/TransformGuiTemplate_pyqt5.py
similarity index 100%
rename from libs/pyqtgraph/canvas/TransformGuiTemplate_pyqt5.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/canvas/TransformGuiTemplate_pyqt5.py
diff --git a/libs/pyqtgraph/canvas/TransformGuiTemplate_pyside.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/canvas/TransformGuiTemplate_pyside.py
similarity index 100%
rename from libs/pyqtgraph/canvas/TransformGuiTemplate_pyside.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/canvas/TransformGuiTemplate_pyside.py
diff --git a/libs/pyqtgraph/canvas/__init__.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/canvas/__init__.py
similarity index 100%
rename from libs/pyqtgraph/canvas/__init__.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/canvas/__init__.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/colormap.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/colormap.py
new file mode 100644
index 00000000..f943e2fe
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/colormap.py
@@ -0,0 +1,254 @@
+import numpy as np
+from .Qt import QtGui, QtCore
+from .python2_3 import basestring
+
+
+class ColorMap(object):
+    """
+    A ColorMap defines a relationship between a scalar value and a range of colors. 
+    ColorMaps are commonly used for false-coloring monochromatic images, coloring 
+    scatter-plot points, and coloring surface plots by height. 
+    
+    Each color map is defined by a set of colors, each corresponding to a
+    particular scalar value. For example:
+    
+        | 0.0  -> black
+        | 0.2  -> red
+        | 0.6  -> yellow
+        | 1.0  -> white
+        
+    The colors for intermediate values are determined by interpolating between 
+    the two nearest colors in either RGB or HSV color space.
+    
+    To provide user-defined color mappings, see :class:`GradientWidget <pyqtgraph.GradientWidget>`.
+    """
+    
+    
+    ## color interpolation modes
+    RGB = 1
+    HSV_POS = 2
+    HSV_NEG = 3
+    
+    ## boundary modes
+    CLIP = 1
+    REPEAT = 2
+    MIRROR = 3
+    
+    ## return types
+    BYTE = 1
+    FLOAT = 2
+    QCOLOR = 3
+    
+    enumMap = {
+        'rgb': RGB,
+        'hsv+': HSV_POS,
+        'hsv-': HSV_NEG,
+        'clip': CLIP,
+        'repeat': REPEAT,
+        'mirror': MIRROR,
+        'byte': BYTE,
+        'float': FLOAT,
+        'qcolor': QCOLOR,
+    }
+    
+    def __init__(self, pos, color, mode=None):
+        """
+        ===============     ==============================================================
+        **Arguments:**
+        pos                 Array of positions where each color is defined
+        color               Array of RGBA colors.
+                            Integer data types are interpreted as 0-255; float data types
+                            are interpreted as 0.0-1.0
+        mode                Array of color modes (ColorMap.RGB, HSV_POS, or HSV_NEG)
+                            indicating the color space that should be used when
+                            interpolating between stops. Note that the last mode value is
+                            ignored. By default, the mode is entirely RGB.
+        ===============     ==============================================================
+        """
+        self.pos = np.array(pos)
+        order = np.argsort(self.pos)
+        self.pos = self.pos[order]
+        self.color = np.array(color)[order]
+        if mode is None:
+            mode = np.ones(len(pos))
+        self.mode = mode
+        self.stopsCache = {}
+        
+    def map(self, data, mode='byte'):
+        """
+        Return an array of colors corresponding to the values in *data*. 
+        Data must be either a scalar position or an array (any shape) of positions.
+        
+        The *mode* argument determines the type of data returned:
+        
+        =========== ===============================================================
+        byte        (default) Values are returned as 0-255 unsigned bytes.
+        float       Values are returned as 0.0-1.0 floats. 
+        qcolor      Values are returned as an array of QColor objects.
+        =========== ===============================================================
+        """
+        if isinstance(mode, basestring):
+            mode = self.enumMap[mode.lower()]
+            
+        if mode == self.QCOLOR:
+            pos, color = self.getStops(self.BYTE)
+        else:
+            pos, color = self.getStops(mode)
+            
+        # don't need this--np.interp takes care of it.
+        #data = np.clip(data, pos.min(), pos.max())
+            
+        # Interpolate
+        # TODO: is griddata faster?
+        #          interp = scipy.interpolate.griddata(pos, color, data)
+        if np.isscalar(data):
+            interp = np.empty((color.shape[1],), dtype=color.dtype)
+        else:
+            if not isinstance(data, np.ndarray):
+                data = np.array(data)
+            interp = np.empty(data.shape + (color.shape[1],), dtype=color.dtype)
+        for i in range(color.shape[1]):
+            interp[...,i] = np.interp(data, pos, color[:,i])
+
+        # Convert to QColor if requested
+        if mode == self.QCOLOR:
+            if np.isscalar(data):
+                return QtGui.QColor(*interp)
+            else:
+                return [QtGui.QColor(*x) for x in interp]
+        else:
+            return interp
+        
+    def mapToQColor(self, data):
+        """Convenience function; see :func:`map() <pyqtgraph.ColorMap.map>`."""
+        return self.map(data, mode=self.QCOLOR)
+
+    def mapToByte(self, data):
+        """Convenience function; see :func:`map() <pyqtgraph.ColorMap.map>`."""
+        return self.map(data, mode=self.BYTE)
+
+    def mapToFloat(self, data):
+        """Convenience function; see :func:`map() <pyqtgraph.ColorMap.map>`."""
+        return self.map(data, mode=self.FLOAT)
+    
+    def getGradient(self, p1=None, p2=None):
+        """Return a QLinearGradient object spanning from QPoints p1 to p2."""
+        if p1 == None:
+            p1 = QtCore.QPointF(0,0)
+        if p2 == None:
+            p2 = QtCore.QPointF(self.pos.max()-self.pos.min(),0)
+        g = QtGui.QLinearGradient(p1, p2)
+        
+        pos, color = self.getStops(mode=self.BYTE)
+        color = [QtGui.QColor(*x) for x in color]
+        g.setStops(zip(pos, color))
+        
+        #if self.colorMode == 'rgb':
+            #ticks = self.listTicks()
+            #g.setStops([(x, QtGui.QColor(t.color)) for t,x in ticks])
+        #elif self.colorMode == 'hsv':  ## HSV mode is approximated for display by interpolating 10 points between each stop
+            #ticks = self.listTicks()
+            #stops = []
+            #stops.append((ticks[0][1], ticks[0][0].color))
+            #for i in range(1,len(ticks)):
+                #x1 = ticks[i-1][1]
+                #x2 = ticks[i][1]
+                #dx = (x2-x1) / 10.
+                #for j in range(1,10):
+                    #x = x1 + dx*j
+                    #stops.append((x, self.getColor(x)))
+                #stops.append((x2, self.getColor(x2)))
+            #g.setStops(stops)
+        return g
+    
+    def getColors(self, mode=None):
+        """Return list of all color stops converted to the specified mode.
+        If mode is None, then no conversion is done."""
+        if isinstance(mode, basestring):
+            mode = self.enumMap[mode.lower()]
+        
+        color = self.color
+        if mode in [self.BYTE, self.QCOLOR] and color.dtype.kind == 'f':
+            color = (color * 255).astype(np.ubyte)
+        elif mode == self.FLOAT and color.dtype.kind != 'f':
+            color = color.astype(float) / 255.
+            
+        if mode == self.QCOLOR:
+            color = [QtGui.QColor(*x) for x in color]
+            
+        return color
+        
+    def getStops(self, mode):
+        ## Get fully-expanded set of RGBA stops in either float or byte mode.
+        if mode not in self.stopsCache:
+            color = self.color
+            if mode == self.BYTE and color.dtype.kind == 'f':
+                color = (color * 255).astype(np.ubyte)
+            elif mode == self.FLOAT and color.dtype.kind != 'f':
+                color = color.astype(float) / 255.
+        
+            ## to support HSV mode, we need to do a little more work..
+            #stops = []
+            #for i in range(len(self.pos)):
+                #pos = self.pos[i]
+                #color = color[i]
+                
+                #imode = self.mode[i]
+                #if imode == self.RGB:
+                    #stops.append((x,color)) 
+                #else:
+                    #ns = 
+            self.stopsCache[mode] = (self.pos, color)
+        return self.stopsCache[mode]
+        
+    def getLookupTable(self, start=0.0, stop=1.0, nPts=512, alpha=None, mode='byte'):
+        """
+        Return an RGB(A) lookup table (ndarray). 
+        
+        ===============   =============================================================================
+        **Arguments:**
+        start             The starting value in the lookup table (default=0.0)
+        stop              The final value in the lookup table (default=1.0)
+        nPts              The number of points in the returned lookup table.
+        alpha             True, False, or None - Specifies whether or not alpha values are included
+                          in the table. If alpha is None, it will be automatically determined.
+        mode              Determines return type: 'byte' (0-255), 'float' (0.0-1.0), or 'qcolor'.
+                          See :func:`map() <pyqtgraph.ColorMap.map>`.
+        ===============   =============================================================================
+        """
+        if isinstance(mode, basestring):
+            mode = self.enumMap[mode.lower()]
+        
+        if alpha is None:
+            alpha = self.usesAlpha()
+            
+        x = np.linspace(start, stop, nPts)
+        table = self.map(x, mode)
+        
+        if not alpha:
+            return table[:,:3]
+        else:
+            return table
+    
+    def usesAlpha(self):
+        """Return True if any stops have an alpha < 255"""
+        max = 1.0 if self.color.dtype.kind == 'f' else 255
+        return np.any(self.color[:,3] != max)
+            
+    def isMapTrivial(self):
+        """
+        Return True if the gradient has exactly two stops in it: black at 0.0 and white at 1.0.
+        """
+        if len(self.pos) != 2:
+            return False
+        if self.pos[0] != 0.0 or self.pos[1] != 1.0:
+            return False
+        if self.color.dtype.kind == 'f':
+            return np.all(self.color == np.array([[0.,0.,0.,1.], [1.,1.,1.,1.]]))
+        else:
+            return np.all(self.color == np.array([[0,0,0,255], [255,255,255,255]]))
+
+    def __repr__(self):
+        pos = repr(self.pos).replace('\n', '')
+        color = repr(self.color).replace('\n', '')
+        return "ColorMap(%s, %s)" % (pos, color)
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/configfile.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/configfile.py
new file mode 100644
index 00000000..7b20db1d
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/configfile.py
@@ -0,0 +1,218 @@
+# -*- coding: utf-8 -*-
+"""
+configfile.py - Human-readable text configuration file library 
+Copyright 2010  Luke Campagnola
+Distributed under MIT/X11 license. See license.txt for more infomation.
+
+Used for reading and writing dictionary objects to a python-like configuration
+file format. Data structures may be nested and contain any data type as long
+as it can be converted to/from a string using repr and eval.
+"""
+
+import re, os, sys
+import numpy
+from .pgcollections import OrderedDict
+from . import units
+from .python2_3 import asUnicode, basestring
+from .Qt import QtCore
+from .Point import Point
+from .colormap import ColorMap
+GLOBAL_PATH = None # so not thread safe.
+
+
+class ParseError(Exception):
+    def __init__(self, message, lineNum, line, fileName=None):
+        self.lineNum = lineNum
+        self.line = line
+        #self.message = message
+        self.fileName = fileName
+        Exception.__init__(self, message)
+        
+    def __str__(self):
+        if self.fileName is None:
+            msg = "Error parsing string at line %d:\n" % self.lineNum
+        else:
+            msg = "Error parsing config file '%s' at line %d:\n" % (self.fileName, self.lineNum)
+        msg += "%s\n%s" % (self.line, self.message)
+        return msg
+        #raise Exception()
+        
+
+def writeConfigFile(data, fname):
+    s = genString(data)
+    fd = open(fname, 'w')
+    fd.write(s)
+    fd.close()
+    
+def readConfigFile(fname):
+    #cwd = os.getcwd()
+    global GLOBAL_PATH
+    if GLOBAL_PATH is not None:
+        fname2 = os.path.join(GLOBAL_PATH, fname)
+        if os.path.exists(fname2):
+            fname = fname2
+
+    GLOBAL_PATH = os.path.dirname(os.path.abspath(fname))
+        
+    try:
+        #os.chdir(newDir)  ## bad.
+        fd = open(fname)
+        s = asUnicode(fd.read())
+        fd.close()
+        s = s.replace("\r\n", "\n")
+        s = s.replace("\r", "\n")
+        data = parseString(s)[1]
+    except ParseError:
+        sys.exc_info()[1].fileName = fname
+        raise
+    except:
+        print("Error while reading config file %s:"% fname)
+        raise
+    #finally:
+        #os.chdir(cwd)
+    return data
+
+def appendConfigFile(data, fname):
+    s = genString(data)
+    fd = open(fname, 'a')
+    fd.write(s)
+    fd.close()
+
+
+def genString(data, indent=''):
+    s = ''
+    for k in data:
+        sk = str(k)
+        if len(sk) == 0:
+            print(data)
+            raise Exception('blank dict keys not allowed (see data above)')
+        if sk[0] == ' ' or ':' in sk:
+            print(data)
+            raise Exception('dict keys must not contain ":" or start with spaces [offending key is "%s"]' % sk)
+        if isinstance(data[k], dict):
+            s += indent + sk + ':\n'
+            s += genString(data[k], indent + '    ')
+        else:
+            s += indent + sk + ': ' + repr(data[k]) + '\n'
+    return s
+    
+def parseString(lines, start=0):
+    
+    data = OrderedDict()
+    if isinstance(lines, basestring):
+        lines = lines.split('\n')
+        lines = [l for l in lines if re.search(r'\S', l) and not re.match(r'\s*#', l)]  ## remove empty lines
+        
+    indent = measureIndent(lines[start])
+    ln = start - 1
+    
+    try:
+        while True:
+            ln += 1
+            #print ln
+            if ln >= len(lines):
+                break
+            
+            l = lines[ln]
+            
+            ## Skip blank lines or lines starting with #
+            if re.match(r'\s*#', l) or not re.search(r'\S', l):
+                continue
+            
+            ## Measure line indentation, make sure it is correct for this level
+            lineInd = measureIndent(l)
+            if lineInd < indent:
+                ln -= 1
+                break
+            if lineInd > indent:
+                #print lineInd, indent
+                raise ParseError('Indentation is incorrect. Expected %d, got %d' % (indent, lineInd), ln+1, l)
+            
+            
+            if ':' not in l:
+                raise ParseError('Missing colon', ln+1, l)
+            
+            (k, p, v) = l.partition(':')
+            k = k.strip()
+            v = v.strip()
+            
+            ## set up local variables to use for eval
+            local = units.allUnits.copy()
+            local['OrderedDict'] = OrderedDict
+            local['readConfigFile'] = readConfigFile
+            local['Point'] = Point
+            local['QtCore'] = QtCore
+            local['ColorMap'] = ColorMap
+            # Needed for reconstructing numpy arrays
+            local['array'] = numpy.array
+            for dtype in ['int8', 'uint8', 
+                          'int16', 'uint16', 'float16',
+                          'int32', 'uint32', 'float32',
+                          'int64', 'uint64', 'float64']:
+                local[dtype] = getattr(numpy, dtype)
+                
+            if len(k) < 1:
+                raise ParseError('Missing name preceding colon', ln+1, l)
+            if k[0] == '(' and k[-1] == ')':  ## If the key looks like a tuple, try evaluating it.
+                try:
+                    k1 = eval(k, local)
+                    if type(k1) is tuple:
+                        k = k1
+                except:
+                    pass
+            if re.search(r'\S', v) and v[0] != '#':  ## eval the value
+                try:
+                    val = eval(v, local)
+                except:
+                    ex = sys.exc_info()[1]
+                    raise ParseError("Error evaluating expression '%s': [%s: %s]" % (v, ex.__class__.__name__, str(ex)), (ln+1), l)
+            else:
+                if ln+1 >= len(lines) or measureIndent(lines[ln+1]) <= indent:
+                    #print "blank dict"
+                    val = {}
+                else:
+                    #print "Going deeper..", ln+1
+                    (ln, val) = parseString(lines, start=ln+1)
+            data[k] = val
+        #print k, repr(val)
+    except ParseError:
+        raise
+    except:
+        ex = sys.exc_info()[1]
+        raise ParseError("%s: %s" % (ex.__class__.__name__, str(ex)), ln+1, l)
+    #print "Returning shallower..", ln+1
+    return (ln, data)
+    
+def measureIndent(s):
+    n = 0
+    while n < len(s) and s[n] == ' ':
+        n += 1
+    return n
+    
+    
+    
+if __name__ == '__main__':
+    import tempfile
+    fn = tempfile.mktemp()
+    tf = open(fn, 'w')
+    cf = """
+key: 'value'
+key2:              ##comment
+                   ##comment
+    key21: 'value' ## comment
+                   ##comment
+    key22: [1,2,3]
+    key23: 234  #comment
+    """
+    tf.write(cf)
+    tf.close()
+    print("=== Test:===")
+    num = 1
+    for line in cf.split('\n'):
+        print("%02d   %s" % (num, line))
+        num += 1
+    print(cf)
+    print("============")
+    data = readConfigFile(fn)
+    print(data)
+    os.remove(fn)
diff --git a/libs/pyqtgraph/console/CmdInput.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/console/CmdInput.py
similarity index 100%
rename from libs/pyqtgraph/console/CmdInput.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/console/CmdInput.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/console/Console.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/console/Console.py
new file mode 100644
index 00000000..3ea1580f
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/console/Console.py
@@ -0,0 +1,389 @@
+import sys, re, os, time, traceback, subprocess
+import pickle
+
+from ..Qt import QtCore, QtGui, USE_PYSIDE, USE_PYQT5
+from ..python2_3 import basestring
+from .. import exceptionHandling as exceptionHandling
+from .. import getConfigOption
+if USE_PYSIDE:
+    from . import template_pyside as template
+elif USE_PYQT5:
+    from . import template_pyqt5 as template
+else:
+    from . import template_pyqt as template
+
+
+class ConsoleWidget(QtGui.QWidget):
+    """
+    Widget displaying console output and accepting command input.
+    Implements:
+        
+    - eval python expressions / exec python statements
+    - storable history of commands
+    - exception handling allowing commands to be interpreted in the context of any level in the exception stack frame
+    
+    Why not just use python in an interactive shell (or ipython) ? There are a few reasons:
+       
+    - pyside does not yet allow Qt event processing and interactive shell at the same time
+    - on some systems, typing in the console _blocks_ the qt event loop until the user presses enter. This can 
+      be baffling and frustrating to users since it would appear the program has frozen.
+    - some terminals (eg windows cmd.exe) have notoriously unfriendly interfaces
+    - ability to add extra features like exception stack introspection
+    - ability to have multiple interactive prompts, including for spawned sub-processes
+    """
+    
+    def __init__(self, parent=None, namespace=None, historyFile=None, text=None, editor=None):
+        """
+        ==============  ============================================================================
+        **Arguments:**
+        namespace       dictionary containing the initial variables present in the default namespace
+        historyFile     optional file for storing command history
+        text            initial text to display in the console window
+        editor          optional string for invoking code editor (called when stack trace entries are 
+                        double-clicked). May contain {fileName} and {lineNum} format keys. Example:: 
+                      
+                            editorCommand --loadfile {fileName} --gotoline {lineNum}
+        ==============  =============================================================================
+        """
+        QtGui.QWidget.__init__(self, parent)
+        if namespace is None:
+            namespace = {}
+        self.localNamespace = namespace
+        self.editor = editor
+        self.multiline = None
+        self.inCmd = False
+        
+        self.ui = template.Ui_Form()
+        self.ui.setupUi(self)
+        self.output = self.ui.output
+        self.input = self.ui.input
+        self.input.setFocus()
+        
+        if text is not None:
+            self.output.setPlainText(text)
+
+        self.historyFile = historyFile
+        
+        history = self.loadHistory()
+        if history is not None:
+            self.input.history = [""] + history
+            self.ui.historyList.addItems(history[::-1])
+        self.ui.historyList.hide()
+        self.ui.exceptionGroup.hide()
+        
+        self.input.sigExecuteCmd.connect(self.runCmd)
+        self.ui.historyBtn.toggled.connect(self.ui.historyList.setVisible)
+        self.ui.historyList.itemClicked.connect(self.cmdSelected)
+        self.ui.historyList.itemDoubleClicked.connect(self.cmdDblClicked)
+        self.ui.exceptionBtn.toggled.connect(self.ui.exceptionGroup.setVisible)
+        
+        self.ui.catchAllExceptionsBtn.toggled.connect(self.catchAllExceptions)
+        self.ui.catchNextExceptionBtn.toggled.connect(self.catchNextException)
+        self.ui.clearExceptionBtn.clicked.connect(self.clearExceptionClicked)
+        self.ui.exceptionStackList.itemClicked.connect(self.stackItemClicked)
+        self.ui.exceptionStackList.itemDoubleClicked.connect(self.stackItemDblClicked)
+        self.ui.onlyUncaughtCheck.toggled.connect(self.updateSysTrace)
+        
+        self.currentTraceback = None
+        
+    def loadHistory(self):
+        """Return the list of previously-invoked command strings (or None)."""
+        if self.historyFile is not None:
+            return pickle.load(open(self.historyFile, 'rb'))
+        
+    def saveHistory(self, history):
+        """Store the list of previously-invoked command strings."""
+        if self.historyFile is not None:
+            pickle.dump(open(self.historyFile, 'wb'), history)
+        
+    def runCmd(self, cmd):
+        #cmd = str(self.input.lastCmd)
+        self.stdout = sys.stdout
+        self.stderr = sys.stderr
+        encCmd = re.sub(r'>', '&gt;', re.sub(r'<', '&lt;', cmd))
+        encCmd = re.sub(r' ', '&nbsp;', encCmd)
+        
+        self.ui.historyList.addItem(cmd)
+        self.saveHistory(self.input.history[1:100])
+        
+        try:
+            sys.stdout = self
+            sys.stderr = self
+            if self.multiline is not None:
+                self.write("<br><b>%s</b>\n"%encCmd, html=True)
+                self.execMulti(cmd)
+            else:
+                self.write("<br><div style='background-color: #CCF'><b>%s</b>\n"%encCmd, html=True)
+                self.inCmd = True
+                self.execSingle(cmd)
+            
+            if not self.inCmd:
+                self.write("</div>\n", html=True)
+                
+        finally:
+            sys.stdout = self.stdout
+            sys.stderr = self.stderr
+            
+            sb = self.output.verticalScrollBar()
+            sb.setValue(sb.maximum())
+            sb = self.ui.historyList.verticalScrollBar()
+            sb.setValue(sb.maximum())
+            
+    def globals(self):
+        frame = self.currentFrame()
+        if frame is not None and self.ui.runSelectedFrameCheck.isChecked():
+            return self.currentFrame().tb_frame.f_globals
+        else:
+            return globals()
+        
+    def locals(self):
+        frame = self.currentFrame()
+        if frame is not None and self.ui.runSelectedFrameCheck.isChecked():
+            return self.currentFrame().tb_frame.f_locals
+        else:
+            return self.localNamespace
+            
+    def currentFrame(self):
+        ## Return the currently selected exception stack frame (or None if there is no exception)
+        if self.currentTraceback is None:
+            return None
+        index = self.ui.exceptionStackList.currentRow()
+        tb = self.currentTraceback
+        for i in range(index):
+            tb = tb.tb_next
+        return tb
+        
+    def execSingle(self, cmd):
+        try:
+            output = eval(cmd, self.globals(), self.locals())
+            self.write(repr(output) + '\n')
+        except SyntaxError:
+            try:
+                exec(cmd, self.globals(), self.locals())
+            except SyntaxError as exc:
+                if 'unexpected EOF' in exc.msg:
+                    self.multiline = cmd
+                else:
+                    self.displayException()
+            except:
+                self.displayException()
+        except:
+            self.displayException()
+            
+            
+    def execMulti(self, nextLine):
+        #self.stdout.write(nextLine+"\n")
+        if nextLine.strip() != '':
+            self.multiline += "\n" + nextLine
+            return
+        else:
+            cmd = self.multiline
+            
+        try:
+            output = eval(cmd, self.globals(), self.locals())
+            self.write(str(output) + '\n')
+            self.multiline = None
+        except SyntaxError:
+            try:
+                exec(cmd, self.globals(), self.locals())
+                self.multiline = None
+            except SyntaxError as exc:
+                if 'unexpected EOF' in exc.msg:
+                    self.multiline = cmd
+                else:
+                    self.displayException()
+                    self.multiline = None
+            except:
+                self.displayException()
+                self.multiline = None
+        except:
+            self.displayException()
+            self.multiline = None
+
+    def write(self, strn, html=False):
+        self.output.moveCursor(QtGui.QTextCursor.End)
+        if html:
+            self.output.textCursor().insertHtml(strn)
+        else:
+            if self.inCmd:
+                self.inCmd = False
+                self.output.textCursor().insertHtml("</div><br><div style='font-weight: normal; background-color: #FFF;'>")
+                #self.stdout.write("</div><br><div style='font-weight: normal; background-color: #FFF;'>")
+            self.output.insertPlainText(strn)
+        #self.stdout.write(strn)
+    
+    def displayException(self):
+        """
+        Display the current exception and stack.
+        """
+        tb = traceback.format_exc()
+        lines = []
+        indent = 4
+        prefix = '' 
+        for l in tb.split('\n'):
+            lines.append(" "*indent + prefix + l)
+        self.write('\n'.join(lines))
+        self.exceptionHandler(*sys.exc_info())
+        
+    def cmdSelected(self, item):
+        index = -(self.ui.historyList.row(item)+1)
+        self.input.setHistory(index)
+        self.input.setFocus()
+        
+    def cmdDblClicked(self, item):
+        index = -(self.ui.historyList.row(item)+1)
+        self.input.setHistory(index)
+        self.input.execCmd()
+        
+    def flush(self):
+        pass
+
+    def catchAllExceptions(self, catch=True):
+        """
+        If True, the console will catch all unhandled exceptions and display the stack
+        trace. Each exception caught clears the last.
+        """
+        self.ui.catchAllExceptionsBtn.setChecked(catch)
+        if catch:
+            self.ui.catchNextExceptionBtn.setChecked(False)
+            self.enableExceptionHandling()
+            self.ui.exceptionBtn.setChecked(True)
+        else:
+            self.disableExceptionHandling()
+        
+    def catchNextException(self, catch=True):
+        """
+        If True, the console will catch the next unhandled exception and display the stack
+        trace.
+        """
+        self.ui.catchNextExceptionBtn.setChecked(catch)
+        if catch:
+            self.ui.catchAllExceptionsBtn.setChecked(False)
+            self.enableExceptionHandling()
+            self.ui.exceptionBtn.setChecked(True)
+        else:
+            self.disableExceptionHandling()
+        
+    def enableExceptionHandling(self):
+        exceptionHandling.register(self.exceptionHandler)
+        self.updateSysTrace()
+        
+    def disableExceptionHandling(self):
+        exceptionHandling.unregister(self.exceptionHandler)
+        self.updateSysTrace()
+        
+    def clearExceptionClicked(self):
+        self.currentTraceback = None
+        self.ui.exceptionInfoLabel.setText("[No current exception]")
+        self.ui.exceptionStackList.clear()
+        self.ui.clearExceptionBtn.setEnabled(False)
+        
+    def stackItemClicked(self, item):
+        pass
+    
+    def stackItemDblClicked(self, item):
+        editor = self.editor
+        if editor is None:
+            editor = getConfigOption('editorCommand')
+        if editor is None:
+            return
+        tb = self.currentFrame()
+        lineNum = tb.tb_lineno
+        fileName = tb.tb_frame.f_code.co_filename
+        subprocess.Popen(self.editor.format(fileName=fileName, lineNum=lineNum), shell=True)
+        
+    
+    #def allExceptionsHandler(self, *args):
+        #self.exceptionHandler(*args)
+    
+    #def nextExceptionHandler(self, *args):
+        #self.ui.catchNextExceptionBtn.setChecked(False)
+        #self.exceptionHandler(*args)
+
+    def updateSysTrace(self):
+        ## Install or uninstall  sys.settrace handler 
+        
+        if not self.ui.catchNextExceptionBtn.isChecked() and not self.ui.catchAllExceptionsBtn.isChecked():
+            if sys.gettrace() == self.systrace:
+                sys.settrace(None)
+            return
+        
+        if self.ui.onlyUncaughtCheck.isChecked():
+            if sys.gettrace() == self.systrace:
+                sys.settrace(None)
+        else:
+            if sys.gettrace() is not None and sys.gettrace() != self.systrace:
+                self.ui.onlyUncaughtCheck.setChecked(False)
+                raise Exception("sys.settrace is in use; cannot monitor for caught exceptions.")
+            else:
+                sys.settrace(self.systrace)
+        
+    def exceptionHandler(self, excType, exc, tb):
+        if self.ui.catchNextExceptionBtn.isChecked():
+            self.ui.catchNextExceptionBtn.setChecked(False)
+        elif not self.ui.catchAllExceptionsBtn.isChecked():
+            return
+        
+        self.ui.clearExceptionBtn.setEnabled(True)
+        self.currentTraceback = tb
+        
+        excMessage = ''.join(traceback.format_exception_only(excType, exc))
+        self.ui.exceptionInfoLabel.setText(excMessage)
+        self.ui.exceptionStackList.clear()
+        for index, line in enumerate(traceback.extract_tb(tb)):
+            self.ui.exceptionStackList.addItem('File "%s", line %s, in %s()\n  %s' % line)
+    
+    def systrace(self, frame, event, arg):
+        if event == 'exception' and self.checkException(*arg):
+            self.exceptionHandler(*arg)
+        return self.systrace
+        
+    def checkException(self, excType, exc, tb):
+        ## Return True if the exception is interesting; False if it should be ignored.
+        
+        filename = tb.tb_frame.f_code.co_filename
+        function = tb.tb_frame.f_code.co_name
+        
+        filterStr = str(self.ui.filterText.text())
+        if filterStr != '':
+            if isinstance(exc, Exception):
+                msg = exc.message
+            elif isinstance(exc, basestring):
+                msg = exc
+            else:
+                msg = repr(exc)
+            match = re.search(filterStr, "%s:%s:%s" % (filename, function, msg))
+            return match is not None
+
+        ## Go through a list of common exception points we like to ignore:
+        if excType is GeneratorExit or excType is StopIteration:
+            return False
+        if excType is KeyError:
+            if filename.endswith('python2.7/weakref.py') and function in ('__contains__', 'get'):
+                return False
+            if filename.endswith('python2.7/copy.py') and function == '_keep_alive':
+                return False
+        if excType is AttributeError:
+            if filename.endswith('python2.7/collections.py') and function == '__init__':
+                return False
+            if filename.endswith('numpy/core/fromnumeric.py') and function in ('all', '_wrapit', 'transpose', 'sum'):
+                return False
+            if filename.endswith('numpy/core/arrayprint.py') and function in ('_array2string'):
+                return False
+            if filename.endswith('MetaArray.py') and function == '__getattr__':
+                for name in ('__array_interface__', '__array_struct__', '__array__'):  ## numpy looks for these when converting objects to array
+                    if name in exc:
+                        return False
+            if filename.endswith('flowchart/eq.py'):
+                return False
+            if filename.endswith('pyqtgraph/functions.py') and function == 'makeQImage':
+                return False
+        if excType is TypeError:
+            if filename.endswith('numpy/lib/function_base.py') and function == 'iterable':
+                return False
+        if excType is ZeroDivisionError:
+            if filename.endswith('python2.7/traceback.py'):
+                return False
+            
+        return True
+    
diff --git a/libs/pyqtgraph/console/__init__.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/console/__init__.py
similarity index 100%
rename from libs/pyqtgraph/console/__init__.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/console/__init__.py
diff --git a/libs/pyqtgraph/console/template.ui b/site-packages/pyqtgraph-0.10.0/pyqtgraph/console/template.ui
similarity index 100%
rename from libs/pyqtgraph/console/template.ui
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/console/template.ui
diff --git a/libs/pyqtgraph/console/template_pyqt.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/console/template_pyqt.py
similarity index 100%
rename from libs/pyqtgraph/console/template_pyqt.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/console/template_pyqt.py
diff --git a/libs/pyqtgraph/console/template_pyqt5.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/console/template_pyqt5.py
similarity index 100%
rename from libs/pyqtgraph/console/template_pyqt5.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/console/template_pyqt5.py
diff --git a/libs/pyqtgraph/console/template_pyside.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/console/template_pyside.py
similarity index 100%
rename from libs/pyqtgraph/console/template_pyside.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/console/template_pyside.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/debug.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/debug.py
new file mode 100644
index 00000000..0da24d7c
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/debug.py
@@ -0,0 +1,1188 @@
+# -*- coding: utf-8 -*-
+"""
+debug.py - Functions to aid in debugging 
+Copyright 2010  Luke Campagnola
+Distributed under MIT/X11 license. See license.txt for more infomation.
+"""
+
+from __future__ import print_function
+
+import sys, traceback, time, gc, re, types, weakref, inspect, os, cProfile, threading
+from . import ptime
+from numpy import ndarray
+from .Qt import QtCore, QtGui
+from .util.mutex import Mutex
+from .util import cprint
+
+__ftraceDepth = 0
+def ftrace(func):
+    """Decorator used for marking the beginning and end of function calls.
+    Automatically indents nested calls.
+    """
+    def w(*args, **kargs):
+        global __ftraceDepth
+        pfx = "  " * __ftraceDepth
+        print(pfx + func.__name__ + " start")
+        __ftraceDepth += 1
+        try:
+            rv = func(*args, **kargs)
+        finally:
+            __ftraceDepth -= 1
+        print(pfx + func.__name__ + " done")
+        return rv
+    return w
+
+
+class Tracer(object):
+    """
+    Prints every function enter/exit. Useful for debugging crashes / lockups.
+    """
+    def __init__(self):
+        self.count = 0
+        self.stack = []
+
+    def trace(self, frame, event, arg):
+        self.count += 1
+        # If it has been a long time since we saw the top of the stack, 
+        # print a reminder
+        if self.count % 1000 == 0:
+            print("----- current stack: -----")
+            for line in self.stack:
+                print(line)
+        if event == 'call':
+            line = "  " * len(self.stack) + ">> " + self.frameInfo(frame) 
+            print(line)
+            self.stack.append(line)
+        elif event == 'return':
+            self.stack.pop()
+            line = "  " * len(self.stack) + "<< " + self.frameInfo(frame) 
+            print(line)
+            if len(self.stack) == 0:
+                self.count = 0
+
+        return self.trace
+
+    def stop(self):
+        sys.settrace(None)
+
+    def start(self):
+        sys.settrace(self.trace)
+
+    def frameInfo(self, fr):
+        filename = fr.f_code.co_filename
+        funcname = fr.f_code.co_name
+        lineno = fr.f_lineno
+        callfr = sys._getframe(3)
+        callline = "%s %d" % (callfr.f_code.co_name, callfr.f_lineno)
+        args, _, _, value_dict = inspect.getargvalues(fr)
+        if len(args) and args[0] == 'self':
+            instance = value_dict.get('self', None)
+            if instance is not None:
+                cls = getattr(instance, '__class__', None)
+                if cls is not None:
+                    funcname = cls.__name__ + "." + funcname
+        return "%s: %s %s: %s" % (callline, filename, lineno, funcname)
+
+
+def warnOnException(func):
+    """Decorator that catches/ignores exceptions and prints a stack trace."""
+    def w(*args, **kwds):
+        try:
+            func(*args, **kwds)
+        except:
+            printExc('Ignored exception:')
+    return w
+
+
+def getExc(indent=4, prefix='|  ', skip=1):
+    lines = formatException(*sys.exc_info(), skip=skip)
+    lines2 = []
+    for l in lines:
+        lines2.extend(l.strip('\n').split('\n'))
+    lines3 = [" "*indent + prefix + l for l in lines2]
+    return '\n'.join(lines3)
+
+
+def printExc(msg='', indent=4, prefix='|'):
+    """Print an error message followed by an indented exception backtrace
+    (This function is intended to be called within except: blocks)"""
+    exc = getExc(indent, prefix + '  ', skip=2)
+    print("[%s]  %s\n" % (time.strftime("%H:%M:%S"), msg))
+    print(" "*indent + prefix + '='*30 + '>>')
+    print(exc)
+    print(" "*indent + prefix + '='*30 + '<<')
+
+    
+def printTrace(msg='', indent=4, prefix='|'):
+    """Print an error message followed by an indented stack trace"""
+    trace = backtrace(1)
+    #exc = getExc(indent, prefix + '  ')
+    print("[%s]  %s\n" % (time.strftime("%H:%M:%S"), msg))
+    print(" "*indent + prefix + '='*30 + '>>')
+    for line in trace.split('\n'):
+        print(" "*indent + prefix + " " + line)
+    print(" "*indent + prefix + '='*30 + '<<')
+    
+
+def backtrace(skip=0):
+    return ''.join(traceback.format_stack()[:-(skip+1)])    
+
+
+def formatException(exctype, value, tb, skip=0):
+    """Return a list of formatted exception strings.
+    
+    Similar to traceback.format_exception, but displays the entire stack trace
+    rather than just the portion downstream of the point where the exception is
+    caught. In particular, unhandled exceptions that occur during Qt signal
+    handling do not usually show the portion of the stack that emitted the
+    signal.
+    """
+    lines = traceback.format_exception(exctype, value, tb)
+    lines = [lines[0]] + traceback.format_stack()[:-(skip+1)] + ['  --- exception caught here ---\n'] + lines[1:]
+    return lines
+
+
+def printException(exctype, value, traceback):
+    """Print an exception with its full traceback.
+    
+    Set `sys.excepthook = printException` to ensure that exceptions caught
+    inside Qt signal handlers are printed with their full stack trace.
+    """
+    print(''.join(formatException(exctype, value, traceback, skip=1)))
+
+    
+def listObjs(regex='Q', typ=None):
+    """List all objects managed by python gc with class name matching regex.
+    Finds 'Q...' classes by default."""
+    if typ is not None:
+        return [x for x in gc.get_objects() if isinstance(x, typ)]
+    else:
+        return [x for x in gc.get_objects() if re.match(regex, type(x).__name__)]
+        
+
+    
+def findRefPath(startObj, endObj, maxLen=8, restart=True, seen={}, path=None, ignore=None):
+    """Determine all paths of object references from startObj to endObj"""
+    refs = []
+    if path is None:
+        path = [endObj]
+    if ignore is None:
+        ignore = {}
+    ignore[id(sys._getframe())] = None
+    ignore[id(path)] = None
+    ignore[id(seen)] = None
+    prefix = " "*(8-maxLen)
+    #print prefix + str(map(type, path))
+    prefix += " "
+    if restart:
+        #gc.collect()
+        seen.clear()
+    gc.collect()
+    newRefs = [r for r in gc.get_referrers(endObj) if id(r) not in ignore]
+    ignore[id(newRefs)] = None
+    #fo = allFrameObjs()
+    #newRefs = []
+    #for r in gc.get_referrers(endObj):
+        #try:
+            #if r not in fo:
+                #newRefs.append(r)
+        #except:
+            #newRefs.append(r)            
+        
+    for r in newRefs:
+        #print prefix+"->"+str(type(r))
+        if type(r).__name__ in ['frame', 'function', 'listiterator']:
+            #print prefix+"  FRAME"
+            continue
+        try:
+            if any([r is x for x in  path]):
+                #print prefix+"  LOOP", objChainString([r]+path)
+                continue
+        except:
+            print(r)
+            print(path)
+            raise
+        if r is startObj:
+            refs.append([r])
+            print(refPathString([startObj]+path))
+            continue
+        if maxLen == 0:
+            #print prefix+"  END:", objChainString([r]+path)
+            continue
+        ## See if we have already searched this node.
+        ## If not, recurse.
+        tree = None
+        try:
+            cache = seen[id(r)]
+            if cache[0] >= maxLen:
+                tree = cache[1]
+                for p in tree:
+                    print(refPathString(p+path))
+        except KeyError:
+            pass
+        
+        ignore[id(tree)] = None
+        if tree is None:
+            tree = findRefPath(startObj, r, maxLen-1, restart=False, path=[r]+path, ignore=ignore)
+            seen[id(r)] = [maxLen, tree]
+        ## integrate any returned results
+        if len(tree) == 0:
+            #print prefix+"  EMPTY TREE"
+            continue
+        else:
+            for p in tree:
+                refs.append(p+[r])
+        #seen[id(r)] = [maxLen, refs]
+    return refs
+
+
+def objString(obj):
+    """Return a short but descriptive string for any object"""
+    try:
+        if type(obj) in [int, float]:
+            return str(obj)
+        elif isinstance(obj, dict):
+            if len(obj) > 5:
+                return "<dict {%s,...}>" % (",".join(list(obj.keys())[:5]))
+            else:
+                return "<dict {%s}>" % (",".join(list(obj.keys())))
+        elif isinstance(obj, str):
+            if len(obj) > 50:
+                return '"%s..."' % obj[:50]
+            else:
+                return obj[:]
+        elif isinstance(obj, ndarray):
+            return "<ndarray %s %s>" % (str(obj.dtype), str(obj.shape))
+        elif hasattr(obj, '__len__'):
+            if len(obj) > 5:
+                return "<%s [%s,...]>" % (type(obj).__name__, ",".join([type(o).__name__ for o in obj[:5]]))
+            else:
+                return "<%s [%s]>" % (type(obj).__name__, ",".join([type(o).__name__ for o in obj]))
+        else:
+            return "<%s %s>" % (type(obj).__name__, obj.__class__.__name__)
+    except:
+        return str(type(obj))
+
+def refPathString(chain):
+    """Given a list of adjacent objects in a reference path, print the 'natural' path
+    names (ie, attribute names, keys, and indexes) that follow from one object to the next ."""
+    s = objString(chain[0])
+    i = 0
+    while i < len(chain)-1:
+        #print " -> ", i
+        i += 1
+        o1 = chain[i-1]
+        o2 = chain[i]
+        cont = False
+        if isinstance(o1, list) or isinstance(o1, tuple):
+            if any([o2 is x for x in o1]):
+                s += "[%d]" % o1.index(o2)
+                continue
+        #print "  not list"
+        if isinstance(o2, dict) and hasattr(o1, '__dict__') and o2 == o1.__dict__:
+            i += 1
+            if i >= len(chain):
+                s += ".__dict__"
+                continue
+            o3 = chain[i]
+            for k in o2:
+                if o2[k] is o3:
+                    s += '.%s' % k
+                    cont = True
+                    continue
+        #print "  not __dict__"
+        if isinstance(o1, dict):
+            try:
+                if o2 in o1:
+                    s += "[key:%s]" % objString(o2)
+                    continue
+            except TypeError:
+                pass
+            for k in o1:
+                if o1[k] is o2:
+                    s += "[%s]" % objString(k)
+                    cont = True
+                    continue
+        #print "  not dict"
+        #for k in dir(o1):  ## Not safe to request attributes like this.
+            #if getattr(o1, k) is o2:
+                #s += ".%s" % k
+                #cont = True
+                #continue
+        #print "  not attr"
+        if cont:
+            continue
+        s += " ? "
+        sys.stdout.flush()
+    return s
+
+    
+def objectSize(obj, ignore=None, verbose=False, depth=0, recursive=False):
+    """Guess how much memory an object is using"""
+    ignoreTypes = ['MethodType', 'UnboundMethodType', 'BuiltinMethodType', 'FunctionType', 'BuiltinFunctionType']
+    ignoreTypes = [getattr(types, key) for key in ignoreTypes if hasattr(types, key)]
+    ignoreRegex = re.compile('(method-wrapper|Flag|ItemChange|Option|Mode)')
+    
+    
+    if ignore is None:
+        ignore = {}
+        
+    indent = '  '*depth
+    
+    try:
+        hash(obj)
+        hsh = obj
+    except:
+        hsh = "%s:%d" % (str(type(obj)), id(obj))
+        
+    if hsh in ignore:
+        return 0
+    ignore[hsh] = 1
+    
+    try:
+        size = sys.getsizeof(obj)
+    except TypeError:
+        size = 0
+        
+    if isinstance(obj, ndarray):
+        try:
+            size += len(obj.data)
+        except:
+            pass
+            
+        
+    if recursive:
+        if type(obj) in [list, tuple]:
+            if verbose:
+                print(indent+"list:")
+            for o in obj:
+                s = objectSize(o, ignore=ignore, verbose=verbose, depth=depth+1)
+                if verbose:
+                    print(indent+'  +', s)
+                size += s
+        elif isinstance(obj, dict):
+            if verbose:
+                print(indent+"list:")
+            for k in obj:
+                s = objectSize(obj[k], ignore=ignore, verbose=verbose, depth=depth+1)
+                if verbose:
+                    print(indent+'  +', k, s)
+                size += s
+        #elif isinstance(obj, QtCore.QObject):
+            #try:
+                #childs = obj.children()
+                #if verbose:
+                    #print indent+"Qt children:"
+                #for ch in childs:
+                    #s = objectSize(obj, ignore=ignore, verbose=verbose, depth=depth+1)
+                    #size += s
+                    #if verbose:
+                        #print indent + '  +', ch.objectName(), s
+                    
+            #except:
+                #pass
+    #if isinstance(obj, types.InstanceType):
+        gc.collect()
+        if verbose:
+            print(indent+'attrs:')
+        for k in dir(obj):
+            if k in ['__dict__']:
+                continue
+            o = getattr(obj, k)
+            if type(o) in ignoreTypes:
+                continue
+            strtyp = str(type(o))
+            if ignoreRegex.search(strtyp):
+                continue
+            #if isinstance(o, types.ObjectType) and strtyp == "<type 'method-wrapper'>":
+                #continue
+            
+            #if verbose:
+                #print indent, k, '?'
+            refs = [r for r in gc.get_referrers(o) if type(r) != types.FrameType]
+            if len(refs) == 1:
+                s = objectSize(o, ignore=ignore, verbose=verbose, depth=depth+1)
+                size += s
+                if verbose:
+                    print(indent + "  +", k, s)
+            #else:
+                #if verbose:
+                    #print indent + '  -', k, len(refs)
+    return size
+
+class GarbageWatcher(object):
+    """
+    Convenient dictionary for holding weak references to objects.
+    Mainly used to check whether the objects have been collect yet or not.
+    
+    Example:
+        gw = GarbageWatcher()
+        gw['objName'] = obj
+        gw['objName2'] = obj2
+        gw.check()  
+        
+    
+    """
+    def __init__(self):
+        self.objs = weakref.WeakValueDictionary()
+        self.allNames = []
+        
+    def add(self, obj, name):
+        self.objs[name] = obj
+        self.allNames.append(name)
+        
+    def __setitem__(self, name, obj):
+        self.add(obj, name)
+        
+    def check(self):
+        """Print a list of all watched objects and whether they have been collected."""
+        gc.collect()
+        dead = self.allNames[:]
+        alive = []
+        for k in self.objs:
+            dead.remove(k)
+            alive.append(k)
+        print("Deleted objects:", dead)
+        print("Live objects:", alive)
+        
+    def __getitem__(self, item):
+        return self.objs[item]
+
+    
+
+
+class Profiler(object):
+    """Simple profiler allowing measurement of multiple time intervals.
+
+    By default, profilers are disabled.  To enable profiling, set the
+    environment variable `PYQTGRAPHPROFILE` to a comma-separated list of
+    fully-qualified names of profiled functions.
+
+    Calling a profiler registers a message (defaulting to an increasing
+    counter) that contains the time elapsed since the last call.  When the
+    profiler is about to be garbage-collected, the messages are passed to the
+    outer profiler if one is running, or printed to stdout otherwise.
+
+    If `delayed` is set to False, messages are immediately printed instead.
+
+    Example:
+        def function(...):
+            profiler = Profiler()
+            ... do stuff ...
+            profiler('did stuff')
+            ... do other stuff ...
+            profiler('did other stuff')
+            # profiler is garbage-collected and flushed at function end
+
+    If this function is a method of class C, setting `PYQTGRAPHPROFILE` to
+    "C.function" (without the module name) will enable this profiler.
+
+    For regular functions, use the qualified name of the function, stripping
+    only the initial "pyqtgraph." prefix from the module.
+    """
+
+    _profilers = os.environ.get("PYQTGRAPHPROFILE", None)
+    _profilers = _profilers.split(",") if _profilers is not None else []
+    
+    _depth = 0
+    _msgs = []
+    disable = False  # set this flag to disable all or individual profilers at runtime
+    
+    class DisabledProfiler(object):
+        def __init__(self, *args, **kwds):
+            pass
+        def __call__(self, *args):
+            pass
+        def finish(self):
+            pass
+        def mark(self, msg=None):
+            pass
+    _disabledProfiler = DisabledProfiler()
+        
+    def __new__(cls, msg=None, disabled='env', delayed=True):
+        """Optionally create a new profiler based on caller's qualname.
+        """
+        if disabled is True or (disabled == 'env' and len(cls._profilers) == 0):
+            return cls._disabledProfiler
+                        
+        # determine the qualified name of the caller function
+        caller_frame = sys._getframe(1)
+        try:
+            caller_object_type = type(caller_frame.f_locals["self"])
+        except KeyError: # we are in a regular function
+            qualifier = caller_frame.f_globals["__name__"].split(".", 1)[1]
+        else: # we are in a method
+            qualifier = caller_object_type.__name__
+        func_qualname = qualifier + "." + caller_frame.f_code.co_name
+        if disabled == 'env' and func_qualname not in cls._profilers: # don't do anything
+            return cls._disabledProfiler
+        # create an actual profiling object
+        cls._depth += 1
+        obj = super(Profiler, cls).__new__(cls)
+        obj._name = msg or func_qualname
+        obj._delayed = delayed
+        obj._markCount = 0
+        obj._finished = False
+        obj._firstTime = obj._lastTime = ptime.time()
+        obj._newMsg("> Entering " + obj._name)
+        return obj
+
+    def __call__(self, msg=None):
+        """Register or print a new message with timing information.
+        """
+        if self.disable:
+            return
+        if msg is None:
+            msg = str(self._markCount)
+        self._markCount += 1
+        newTime = ptime.time()
+        self._newMsg("  %s: %0.4f ms", 
+                     msg, (newTime - self._lastTime) * 1000)
+        self._lastTime = newTime
+        
+    def mark(self, msg=None):
+        self(msg)
+
+    def _newMsg(self, msg, *args):
+        msg = "  " * (self._depth - 1) + msg
+        if self._delayed:
+            self._msgs.append((msg, args))
+        else:
+            self.flush()
+            print(msg % args)
+
+    def __del__(self):
+        self.finish()
+    
+    def finish(self, msg=None):
+        """Add a final message; flush the message list if no parent profiler.
+        """
+        if self._finished or self.disable:
+            return        
+        self._finished = True
+        if msg is not None:
+            self(msg)
+        self._newMsg("< Exiting %s, total time: %0.4f ms", 
+                     self._name, (ptime.time() - self._firstTime) * 1000)
+        type(self)._depth -= 1
+        if self._depth < 1:
+            self.flush()
+        
+    def flush(self):
+        if self._msgs:
+            print("\n".join([m[0]%m[1] for m in self._msgs]))
+            type(self)._msgs = []
+
+
+def profile(code, name='profile_run', sort='cumulative', num=30):
+    """Common-use for cProfile"""
+    cProfile.run(code, name)
+    stats = pstats.Stats(name)
+    stats.sort_stats(sort)
+    stats.print_stats(num)
+    return stats
+        
+        
+  
+#### Code for listing (nearly) all objects in the known universe
+#### http://utcc.utoronto.ca/~cks/space/blog/python/GetAllObjects
+# Recursively expand slist's objects
+# into olist, using seen to track
+# already processed objects.
+def _getr(slist, olist, first=True):
+    i = 0 
+    for e in slist:
+        
+        oid = id(e)
+        typ = type(e)
+        if oid in olist or typ is int:    ## or e in olist:     ## since we're excluding all ints, there is no longer a need to check for olist keys
+            continue
+        olist[oid] = e
+        if first and (i%1000) == 0:
+            gc.collect()
+        tl = gc.get_referents(e)
+        if tl:
+            _getr(tl, olist, first=False)
+        i += 1        
+# The public function.
+def get_all_objects():
+    """Return a list of all live Python objects (excluding int and long), not including the list itself."""
+    gc.collect()
+    gcl = gc.get_objects()
+    olist = {}
+    _getr(gcl, olist)
+    
+    del olist[id(olist)]
+    del olist[id(gcl)]
+    del olist[id(sys._getframe())]
+    return olist
+
+
+def lookup(oid, objects=None):
+    """Return an object given its ID, if it exists."""
+    if objects is None:
+        objects = get_all_objects()
+    return objects[oid]
+        
+        
+                    
+        
+class ObjTracker(object):
+    """
+    Tracks all objects under the sun, reporting the changes between snapshots: what objects are created, deleted, and persistent.
+    This class is very useful for tracking memory leaks. The class goes to great (but not heroic) lengths to avoid tracking 
+    its own internal objects.
+    
+    Example:
+        ot = ObjTracker()   # takes snapshot of currently existing objects
+           ... do stuff ...
+        ot.diff()           # prints lists of objects created and deleted since ot was initialized
+           ... do stuff ...
+        ot.diff()           # prints lists of objects created and deleted since last call to ot.diff()
+                            # also prints list of items that were created since initialization AND have not been deleted yet
+                            #   (if done correctly, this list can tell you about objects that were leaked)
+           
+        arrays = ot.findPersistent('ndarray')  ## returns all objects matching 'ndarray' (string match, not instance checking)
+                                               ## that were considered persistent when the last diff() was run
+                                               
+        describeObj(arrays[0])    ## See if we can determine who has references to this array
+    """
+    
+    
+    allObjs = {} ## keep track of all objects created and stored within class instances
+    allObjs[id(allObjs)] = None
+    
+    def __init__(self):
+        self.startRefs = {}        ## list of objects that exist when the tracker is initialized {oid: weakref}
+                                   ##   (If it is not possible to weakref the object, then the value is None)
+        self.startCount = {}       
+        self.newRefs = {}          ## list of objects that have been created since initialization
+        self.persistentRefs = {}   ## list of objects considered 'persistent' when the last diff() was called
+        self.objTypes = {}
+            
+        ObjTracker.allObjs[id(self)] = None
+        self.objs = [self.__dict__, self.startRefs, self.startCount, self.newRefs, self.persistentRefs, self.objTypes]
+        self.objs.append(self.objs)
+        for v in self.objs:
+            ObjTracker.allObjs[id(v)] = None
+            
+        self.start()
+
+    def findNew(self, regex):
+        """Return all objects matching regex that were considered 'new' when the last diff() was run."""
+        return self.findTypes(self.newRefs, regex)
+    
+    def findPersistent(self, regex):
+        """Return all objects matching regex that were considered 'persistent' when the last diff() was run."""
+        return self.findTypes(self.persistentRefs, regex)
+        
+    
+    def start(self):
+        """
+        Remember the current set of objects as the comparison for all future calls to diff()
+        Called automatically on init, but can be called manually as well.
+        """
+        refs, count, objs = self.collect()
+        for r in self.startRefs:
+            self.forgetRef(self.startRefs[r])
+        self.startRefs.clear()
+        self.startRefs.update(refs)
+        for r in refs:
+            self.rememberRef(r)
+        self.startCount.clear()
+        self.startCount.update(count)
+        #self.newRefs.clear()
+        #self.newRefs.update(refs)
+
+    def diff(self, **kargs):
+        """
+        Compute all differences between the current object set and the reference set.
+        Print a set of reports for created, deleted, and persistent objects
+        """
+        refs, count, objs = self.collect()   ## refs contains the list of ALL objects
+        
+        ## Which refs have disappeared since call to start()  (these are only displayed once, then forgotten.)
+        delRefs = {}
+        for i in list(self.startRefs.keys()):
+            if i not in refs:
+                delRefs[i] = self.startRefs[i]
+                del self.startRefs[i]
+                self.forgetRef(delRefs[i])
+        for i in list(self.newRefs.keys()):
+            if i not in refs:
+                delRefs[i] = self.newRefs[i]
+                del self.newRefs[i]
+                self.forgetRef(delRefs[i])
+        #print "deleted:", len(delRefs)
+                
+        ## Which refs have appeared since call to start() or diff()
+        persistentRefs = {}      ## created since start(), but before last diff()
+        createRefs = {}          ## created since last diff()
+        for o in refs:
+            if o not in self.startRefs:       
+                if o not in self.newRefs:     
+                    createRefs[o] = refs[o]          ## object has been created since last diff()
+                else:
+                    persistentRefs[o] = refs[o]      ## object has been created since start(), but before last diff() (persistent)
+        #print "new:", len(newRefs)
+                
+        ## self.newRefs holds the entire set of objects created since start()
+        for r in self.newRefs:
+            self.forgetRef(self.newRefs[r])
+        self.newRefs.clear()
+        self.newRefs.update(persistentRefs)
+        self.newRefs.update(createRefs)
+        for r in self.newRefs:
+            self.rememberRef(self.newRefs[r])
+        #print "created:", len(createRefs)
+        
+        ## self.persistentRefs holds all objects considered persistent.
+        self.persistentRefs.clear()
+        self.persistentRefs.update(persistentRefs)
+        
+                
+        print("----------- Count changes since start: ----------")
+        c1 = count.copy()
+        for k in self.startCount:
+            c1[k] = c1.get(k, 0) - self.startCount[k]
+        typs = list(c1.keys())
+        typs.sort(key=lambda a: c1[a])
+        for t in typs:
+            if c1[t] == 0:
+                continue
+            num = "%d" % c1[t]
+            print("  " + num + " "*(10-len(num)) + str(t))
+            
+        print("-----------  %d Deleted since last diff: ------------" % len(delRefs))
+        self.report(delRefs, objs, **kargs)
+        print("-----------  %d Created since last diff: ------------" % len(createRefs))
+        self.report(createRefs, objs, **kargs)
+        print("-----------  %d Created since start (persistent): ------------" % len(persistentRefs))
+        self.report(persistentRefs, objs, **kargs)
+        
+        
+    def __del__(self):
+        self.startRefs.clear()
+        self.startCount.clear()
+        self.newRefs.clear()
+        self.persistentRefs.clear()
+        
+        del ObjTracker.allObjs[id(self)]
+        for v in self.objs:
+            del ObjTracker.allObjs[id(v)]
+            
+    @classmethod
+    def isObjVar(cls, o):
+        return type(o) is cls or id(o) in cls.allObjs
+            
+    def collect(self):
+        print("Collecting list of all objects...")
+        gc.collect()
+        objs = get_all_objects()
+        frame = sys._getframe()
+        del objs[id(frame)]  ## ignore the current frame 
+        del objs[id(frame.f_code)]
+        
+        ignoreTypes = [int]
+        refs = {}
+        count = {}
+        for k in objs:
+            o = objs[k]
+            typ = type(o)
+            oid = id(o)
+            if ObjTracker.isObjVar(o) or typ in ignoreTypes:
+                continue
+            
+            try:
+                ref = weakref.ref(obj)
+            except:
+                ref = None
+            refs[oid] = ref
+            typ = type(o)
+            typStr = typeStr(o)
+            self.objTypes[oid] = typStr
+            ObjTracker.allObjs[id(typStr)] = None
+            count[typ] = count.get(typ, 0) + 1
+            
+        print("All objects: %d   Tracked objects: %d" % (len(objs), len(refs)))
+        return refs, count, objs
+        
+    def forgetRef(self, ref):
+        if ref is not None:
+            del ObjTracker.allObjs[id(ref)]
+        
+    def rememberRef(self, ref):
+        ## Record the address of the weakref object so it is not included in future object counts.
+        if ref is not None:
+            ObjTracker.allObjs[id(ref)] = None
+            
+        
+    def lookup(self, oid, ref, objs=None):
+        if ref is None or ref() is None:
+            try:
+                obj = lookup(oid, objects=objs)
+            except:
+                obj = None
+        else:
+            obj = ref()
+        return obj
+                    
+                    
+    def report(self, refs, allobjs=None, showIDs=False):
+        if allobjs is None:
+            allobjs = get_all_objects()
+        
+        count = {}
+        rev = {}
+        for oid in refs:
+            obj = self.lookup(oid, refs[oid], allobjs)
+            if obj is None:
+                typ = "[del] " + self.objTypes[oid]
+            else:
+                typ = typeStr(obj)
+            if typ not in rev:
+                rev[typ] = []
+            rev[typ].append(oid)
+            c = count.get(typ, [0,0])
+            count[typ] =  [c[0]+1, c[1]+objectSize(obj)]
+        typs = list(count.keys())
+        typs.sort(key=lambda a: count[a][1])
+        
+        for t in typs:
+            line = "  %d\t%d\t%s" % (count[t][0], count[t][1], t)
+            if showIDs:
+                line += "\t"+",".join(map(str,rev[t]))
+            print(line)
+        
+    def findTypes(self, refs, regex):
+        allObjs = get_all_objects()
+        ids = {}
+        objs = []
+        r = re.compile(regex)
+        for k in refs:
+            if r.search(self.objTypes[k]):
+                objs.append(self.lookup(k, refs[k], allObjs))
+        return objs
+        
+
+    
+    
+def describeObj(obj, depth=4, path=None, ignore=None):
+    """
+    Trace all reference paths backward, printing a list of different ways this object can be accessed.
+    Attempts to answer the question "who has a reference to this object"
+    """
+    if path is None:
+        path = [obj]
+    if ignore is None:
+        ignore = {}   ## holds IDs of objects used within the function.
+    ignore[id(sys._getframe())] = None
+    ignore[id(path)] = None
+    gc.collect()
+    refs = gc.get_referrers(obj)
+    ignore[id(refs)] = None
+    printed=False
+    for ref in refs:
+        if id(ref) in ignore:
+            continue
+        if id(ref) in list(map(id, path)):
+            print("Cyclic reference: " + refPathString([ref]+path))
+            printed = True
+            continue
+        newPath = [ref]+path
+        if len(newPath) >= depth:
+            refStr = refPathString(newPath)
+            if '[_]' not in refStr:           ## ignore '_' references generated by the interactive shell
+                print(refStr)
+            printed = True
+        else:
+            describeObj(ref, depth, newPath, ignore)
+            printed = True
+    if not printed:
+        print("Dead end: " + refPathString(path))
+        
+    
+    
+def typeStr(obj):
+    """Create a more useful type string by making <instance> types report their class."""
+    typ = type(obj)
+    if typ == getattr(types, 'InstanceType', None):
+        return "<instance of %s>" % obj.__class__.__name__
+    else:
+        return str(typ)
+    
+def searchRefs(obj, *args):
+    """Pseudo-interactive function for tracing references backward.
+    **Arguments:**
+    
+        obj:   The initial object from which to start searching
+        args:  A set of string or int arguments.
+               each integer selects one of obj's referrers to be the new 'obj'
+               each string indicates an action to take on the current 'obj':
+                  t:  print the types of obj's referrers
+                  l:  print the lengths of obj's referrers (if they have __len__)
+                  i:  print the IDs of obj's referrers
+                  o:  print obj
+                  ro: return obj
+                  rr: return list of obj's referrers
+    
+    Examples::
+    
+       searchRefs(obj, 't')                    ## Print types of all objects referring to obj
+       searchRefs(obj, 't', 0, 't')            ##   ..then select the first referrer and print the types of its referrers
+       searchRefs(obj, 't', 0, 't', 'l')       ##   ..also print lengths of the last set of referrers
+       searchRefs(obj, 0, 1, 'ro')             ## Select index 0 from obj's referrer, then select index 1 from the next set of referrers, then return that object
+       
+    """
+    ignore = {id(sys._getframe()): None}
+    gc.collect()
+    refs = gc.get_referrers(obj)
+    ignore[id(refs)] = None
+    refs = [r for r in refs if id(r) not in ignore]
+    for a in args:
+        
+        #fo = allFrameObjs()
+        #refs = [r for r in refs if r not in fo]
+        
+        if type(a) is int:
+            obj = refs[a]
+            gc.collect()
+            refs = gc.get_referrers(obj)
+            ignore[id(refs)] = None
+            refs = [r for r in refs if id(r) not in ignore]
+        elif a == 't':
+            print(list(map(typeStr, refs)))
+        elif a == 'i':
+            print(list(map(id, refs)))
+        elif a == 'l':
+            def slen(o):
+                if hasattr(o, '__len__'):
+                    return len(o)
+                else:
+                    return None
+            print(list(map(slen, refs)))
+        elif a == 'o':
+            print(obj)
+        elif a == 'ro':
+            return obj
+        elif a == 'rr':
+            return refs
+    
+def allFrameObjs():
+    """Return list of frame objects in current stack. Useful if you want to ignore these objects in refernece searches"""
+    f = sys._getframe()
+    objs = []
+    while f is not None:
+        objs.append(f)
+        objs.append(f.f_code)
+        #objs.append(f.f_locals)
+        #objs.append(f.f_globals)
+        #objs.append(f.f_builtins)
+        f = f.f_back
+    return objs
+        
+    
+def findObj(regex):
+    """Return a list of objects whose typeStr matches regex"""
+    allObjs = get_all_objects()
+    objs = []
+    r = re.compile(regex)
+    for i in allObjs:
+        obj = allObjs[i]
+        if r.search(typeStr(obj)):
+            objs.append(obj)
+    return objs
+    
+
+
+def listRedundantModules():
+    """List modules that have been imported more than once via different paths."""
+    mods = {}
+    for name, mod in sys.modules.items():
+        if not hasattr(mod, '__file__'):
+            continue
+        mfile = os.path.abspath(mod.__file__)
+        if mfile[-1] == 'c':
+            mfile = mfile[:-1]
+        if mfile in mods:
+            print("module at %s has 2 names: %s, %s" % (mfile, name, mods[mfile]))
+        else:
+            mods[mfile] = name
+            
+
+def walkQObjectTree(obj, counts=None, verbose=False, depth=0):
+    """
+    Walk through a tree of QObjects, doing nothing to them.
+    The purpose of this function is to find dead objects and generate a crash
+    immediately rather than stumbling upon them later.
+    Prints a count of the objects encountered, for fun. (or is it?)
+    """
+    
+    if verbose:
+        print("  "*depth + typeStr(obj))
+    report = False
+    if counts is None:
+        counts = {}
+        report = True
+    typ = str(type(obj))
+    try:
+        counts[typ] += 1
+    except KeyError:
+        counts[typ] = 1
+    for child in obj.children():
+        walkQObjectTree(child, counts, verbose, depth+1)
+        
+    return counts
+
+QObjCache = {}
+def qObjectReport(verbose=False):
+    """Generate a report counting all QObjects and their types"""
+    global qObjCache
+    count = {}
+    for obj in findObj('PyQt'):
+        if isinstance(obj, QtCore.QObject):
+            oid = id(obj)
+            if oid not in QObjCache:
+                QObjCache[oid] = typeStr(obj) + "  " + obj.objectName()
+                try:
+                    QObjCache[oid] += "  " + obj.parent().objectName()
+                    QObjCache[oid] += "  " + obj.text()
+                except:
+                    pass
+            print("check obj", oid, str(QObjCache[oid]))
+            if obj.parent() is None:
+                walkQObjectTree(obj, count, verbose)
+            
+    typs = list(count.keys())
+    typs.sort()
+    for t in typs:
+        print(count[t], "\t", t)
+        
+
+class PrintDetector(object):
+    """Find code locations that print to stdout."""
+    def __init__(self):
+        self.stdout = sys.stdout
+        sys.stdout = self
+    
+    def remove(self):
+        sys.stdout = self.stdout
+        
+    def __del__(self):
+        self.remove()
+    
+    def write(self, x):
+        self.stdout.write(x)
+        traceback.print_stack()
+        
+    def flush(self):
+        self.stdout.flush()
+
+
+def listQThreads():
+    """Prints Thread IDs (Qt's, not OS's) for all QThreads."""
+    thr = findObj('[Tt]hread')
+    thr = [t for t in thr if isinstance(t, QtCore.QThread)]
+    import sip
+    for t in thr:
+        print("--> ", t)
+        print("     Qt ID: 0x%x" % sip.unwrapinstance(t))
+
+
+def pretty(data, indent=''):
+    """Format nested dict/list/tuple structures into a more human-readable string
+    This function is a bit better than pprint for displaying OrderedDicts.
+    """
+    ret = ""
+    ind2 = indent + "    "
+    if isinstance(data, dict):
+        ret = indent+"{\n"
+        for k, v in data.iteritems():
+            ret += ind2 + repr(k) + ":  " + pretty(v, ind2).strip() + "\n"
+        ret += indent+"}\n"
+    elif isinstance(data, list) or isinstance(data, tuple):
+        s = repr(data)
+        if len(s) < 40:
+            ret += indent + s
+        else:
+            if isinstance(data, list):
+                d = '[]'
+            else:
+                d = '()'
+            ret = indent+d[0]+"\n"
+            for i, v in enumerate(data):
+                ret += ind2 + str(i) + ":  " + pretty(v, ind2).strip() + "\n"
+            ret += indent+d[1]+"\n"
+    else:
+        ret += indent + repr(data)
+    return ret
+
+
+class ThreadTrace(object):
+    """ 
+    Used to debug freezing by starting a new thread that reports on the 
+    location of other threads periodically.
+    """
+    def __init__(self, interval=10.0):
+        self.interval = interval
+        self.lock = Mutex()
+        self._stop = False
+        self.start()
+
+    def stop(self):
+        with self.lock:
+            self._stop = True
+
+    def start(self, interval=None):
+        if interval is not None:
+            self.interval = interval
+        self._stop = False
+        self.thread = threading.Thread(target=self.run)
+        self.thread.daemon = True
+        self.thread.start()
+
+    def run(self):
+        while True:
+            with self.lock:
+                if self._stop is True:
+                    return
+                    
+            print("\n=============  THREAD FRAMES:  ================")
+            for id, frame in sys._current_frames().items():
+                if id == threading.current_thread().ident:
+                    continue
+                print("<< thread %d >>" % id)
+                traceback.print_stack(frame)
+            print("===============================================\n")
+            
+            time.sleep(self.interval)
+
+
+class ThreadColor(object):
+    """
+    Wrapper on stdout/stderr that colors text by the current thread ID.
+
+    *stream* must be 'stdout' or 'stderr'.
+    """
+    colors = {}
+    lock = Mutex()
+
+    def __init__(self, stream):
+        self.stream = getattr(sys, stream)
+        self.err = stream == 'stderr'
+        setattr(sys, stream, self)
+
+    def write(self, msg):
+        with self.lock:
+            cprint.cprint(self.stream, self.color(), msg, -1, stderr=self.err)
+
+    def flush(self):
+        with self.lock:
+            self.stream.flush()
+
+    def color(self):
+        tid = threading.current_thread()
+        if tid not in self.colors:
+            c = (len(self.colors) % 15) + 1
+            self.colors[tid] = c
+        return self.colors[tid]
diff --git a/libs/pyqtgraph/dockarea/Container.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/dockarea/Container.py
similarity index 100%
rename from libs/pyqtgraph/dockarea/Container.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/dockarea/Container.py
diff --git a/libs/pyqtgraph/dockarea/Dock.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/dockarea/Dock.py
similarity index 100%
rename from libs/pyqtgraph/dockarea/Dock.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/dockarea/Dock.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/dockarea/DockArea.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/dockarea/DockArea.py
new file mode 100644
index 00000000..ffe75b61
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/dockarea/DockArea.py
@@ -0,0 +1,333 @@
+# -*- coding: utf-8 -*-
+import weakref
+from ..Qt import QtCore, QtGui
+from .Container import *
+from .DockDrop import *
+from .Dock import Dock
+from .. import debug as debug
+from ..python2_3 import basestring
+
+
+class DockArea(Container, QtGui.QWidget, DockDrop):
+    def __init__(self, temporary=False, home=None):
+        Container.__init__(self, self)
+        QtGui.QWidget.__init__(self)
+        DockDrop.__init__(self, allowedAreas=['left', 'right', 'top', 'bottom'])
+        self.layout = QtGui.QVBoxLayout()
+        self.layout.setContentsMargins(0,0,0,0)
+        self.layout.setSpacing(0)
+        self.setLayout(self.layout)
+        self.docks = weakref.WeakValueDictionary()
+        self.topContainer = None
+        self.raiseOverlay()
+        self.temporary = temporary
+        self.tempAreas = []
+        self.home = home
+        
+    def type(self):
+        return "top"
+        
+    def addDock(self, dock=None, position='bottom', relativeTo=None, **kwds):
+        """Adds a dock to this area.
+        
+        ============== =================================================================
+        **Arguments:**
+        dock           The new Dock object to add. If None, then a new Dock will be 
+                       created.
+        position       'bottom', 'top', 'left', 'right', 'above', or 'below'
+        relativeTo     If relativeTo is None, then the new Dock is added to fill an 
+                       entire edge of the window. If relativeTo is another Dock, then 
+                       the new Dock is placed adjacent to it (or in a tabbed 
+                       configuration for 'above' and 'below'). 
+        ============== =================================================================
+        
+        All extra keyword arguments are passed to Dock.__init__() if *dock* is
+        None.        
+        """
+        if dock is None:
+            dock = Dock(**kwds)
+        
+        
+        ## Determine the container to insert this dock into.
+        ## If there is no neighbor, then the container is the top.
+        if relativeTo is None or relativeTo is self:
+            if self.topContainer is None:
+                container = self
+                neighbor = None
+            else:
+                container = self.topContainer
+                neighbor = None
+        else:
+            if isinstance(relativeTo, basestring):
+                relativeTo = self.docks[relativeTo]
+            container = self.getContainer(relativeTo)
+            neighbor = relativeTo
+        
+        ## what container type do we need?
+        neededContainer = {
+            'bottom': 'vertical',
+            'top': 'vertical',
+            'left': 'horizontal',
+            'right': 'horizontal',
+            'above': 'tab',
+            'below': 'tab'
+        }[position]
+        
+        ## Can't insert new containers into a tab container; insert outside instead.
+        if neededContainer != container.type() and container.type() == 'tab':
+            neighbor = container
+            container = container.container()
+            
+        ## Decide if the container we have is suitable.
+        ## If not, insert a new container inside.
+        if neededContainer != container.type():
+            if neighbor is None:
+                container = self.addContainer(neededContainer, self.topContainer)
+            else:
+                container = self.addContainer(neededContainer, neighbor)
+            
+        ## Insert the new dock before/after its neighbor
+        insertPos = {
+            'bottom': 'after',
+            'top': 'before',
+            'left': 'before',
+            'right': 'after',
+            'above': 'before',
+            'below': 'after'
+        }[position]
+        #print "request insert", dock, insertPos, neighbor
+        old = dock.container()
+        container.insert(dock, insertPos, neighbor)
+        dock.area = self
+        self.docks[dock.name()] = dock
+        if old is not None:
+            old.apoptose()
+        
+        return dock
+        
+    def moveDock(self, dock, position, neighbor):
+        """
+        Move an existing Dock to a new location. 
+        """
+        ## Moving to the edge of a tabbed dock causes a drop outside the tab box
+        if position in ['left', 'right', 'top', 'bottom'] and neighbor is not None and neighbor.container() is not None and neighbor.container().type() == 'tab':
+            neighbor = neighbor.container()
+        self.addDock(dock, position, neighbor)
+        
+    def getContainer(self, obj):
+        if obj is None:
+            return self
+        return obj.container()
+        
+    def makeContainer(self, typ):
+        if typ == 'vertical':
+            new = VContainer(self)
+        elif typ == 'horizontal':
+            new = HContainer(self)
+        elif typ == 'tab':
+            new = TContainer(self)
+        return new
+        
+    def addContainer(self, typ, obj):
+        """Add a new container around obj"""
+        new = self.makeContainer(typ)
+        
+        container = self.getContainer(obj)
+        container.insert(new, 'before', obj)
+        #print "Add container:", new, " -> ", container
+        if obj is not None:
+            new.insert(obj)
+        self.raiseOverlay()
+        return new
+    
+    def insert(self, new, pos=None, neighbor=None):
+        if self.topContainer is not None:
+            self.topContainer.containerChanged(None)
+        self.layout.addWidget(new)
+        self.topContainer = new
+        #print self, "set top:", new
+        new._container = self
+        self.raiseOverlay()
+        #print "Insert top:", new
+        
+    def count(self):
+        if self.topContainer is None:
+            return 0
+        return 1
+        
+        
+    #def paintEvent(self, ev):
+        #self.drawDockOverlay()
+        
+    def resizeEvent(self, ev):
+        self.resizeOverlay(self.size())
+        
+    def addTempArea(self):
+        if self.home is None:
+            area = DockArea(temporary=True, home=self)
+            self.tempAreas.append(area)
+            win = TempAreaWindow(area)
+            area.win = win
+            win.show()
+        else:
+            area = self.home.addTempArea()
+        #print "added temp area", area, area.window()
+        return area
+        
+    def floatDock(self, dock):
+        """Removes *dock* from this DockArea and places it in a new window."""
+        area = self.addTempArea()
+        area.win.resize(dock.size())
+        area.moveDock(dock, 'top', None)
+        
+        
+    def removeTempArea(self, area):
+        self.tempAreas.remove(area)
+        #print "close window", area.window()
+        area.window().close()
+        
+    def saveState(self):
+        """
+        Return a serialized (storable) representation of the state of
+        all Docks in this DockArea."""
+
+        if self.topContainer is None:
+            main = None
+        else:
+            main = self.childState(self.topContainer)
+
+        state = {'main': main, 'float': []}
+        for a in self.tempAreas:
+            geo = a.win.geometry()
+            geo = (geo.x(), geo.y(), geo.width(), geo.height())
+            state['float'].append((a.saveState(), geo))
+        return state
+        
+    def childState(self, obj):
+        if isinstance(obj, Dock):
+            return ('dock', obj.name(), {})
+        else:
+            childs = []
+            for i in range(obj.count()):
+                childs.append(self.childState(obj.widget(i)))
+            return (obj.type(), childs, obj.saveState())
+        
+        
+    def restoreState(self, state):
+        """
+        Restore Dock configuration as generated by saveState.
+        
+        Note that this function does not create any Docks--it will only 
+        restore the arrangement of an existing set of Docks.
+        
+        """
+        
+        ## 1) make dict of all docks and list of existing containers
+        containers, docks = self.findAll()
+        oldTemps = self.tempAreas[:]
+        #print "found docks:", docks
+        
+        ## 2) create container structure, move docks into new containers
+        if state['main'] is not None:
+            self.buildFromState(state['main'], docks, self)
+        
+        ## 3) create floating areas, populate
+        for s in state['float']:
+            a = self.addTempArea()
+            a.buildFromState(s[0]['main'], docks, a)
+            a.win.setGeometry(*s[1])
+        
+        ## 4) Add any remaining docks to the bottom
+        for d in docks.values():
+            self.moveDock(d, 'below', None)
+        
+        #print "\nKill old containers:"
+        ## 5) kill old containers
+        for c in containers:
+            c.close()
+        for a in oldTemps:
+            a.apoptose()
+
+
+    def buildFromState(self, state, docks, root, depth=0):
+        typ, contents, state = state
+        pfx = "  " * depth
+        if typ == 'dock':
+            try:
+                obj = docks[contents]
+                del docks[contents]
+            except KeyError:
+                raise Exception('Cannot restore dock state; no dock with name "%s"' % contents)
+        else:
+            obj = self.makeContainer(typ)
+            
+        root.insert(obj, 'after')
+        #print pfx+"Add:", obj, " -> ", root
+        
+        if typ != 'dock':
+            for o in contents:
+                self.buildFromState(o, docks, obj, depth+1)
+            obj.apoptose(propagate=False)
+            obj.restoreState(state)  ## this has to be done later?
+        
+
+    def findAll(self, obj=None, c=None, d=None):
+        if obj is None:
+            obj = self.topContainer
+        
+        ## check all temp areas first
+        if c is None:
+            c = []
+            d = {}
+            for a in self.tempAreas:
+                c1, d1 = a.findAll()
+                c.extend(c1)
+                d.update(d1)
+        
+        if isinstance(obj, Dock):
+            d[obj.name()] = obj
+        elif obj is not None:
+            c.append(obj)
+            for i in range(obj.count()):
+                o2 = obj.widget(i)
+                c2, d2 = self.findAll(o2)
+                c.extend(c2)
+                d.update(d2)
+        return (c, d)
+
+    def apoptose(self):
+        #print "apoptose area:", self.temporary, self.topContainer, self.topContainer.count()
+        if self.topContainer.count() == 0:
+            self.topContainer = None
+            if self.temporary:
+                self.home.removeTempArea(self)
+                #self.close()
+
+    def clear(self):
+        docks = self.findAll()[1]
+        for dock in docks.values():
+            dock.close()
+            
+    ## PySide bug: We need to explicitly redefine these methods
+    ## or else drag/drop events will not be delivered.
+    def dragEnterEvent(self, *args):
+        DockDrop.dragEnterEvent(self, *args)
+
+    def dragMoveEvent(self, *args):
+        DockDrop.dragMoveEvent(self, *args)
+
+    def dragLeaveEvent(self, *args):
+        DockDrop.dragLeaveEvent(self, *args)
+
+    def dropEvent(self, *args):
+        DockDrop.dropEvent(self, *args)
+
+
+class TempAreaWindow(QtGui.QMainWindow):
+    def __init__(self, area, **kwargs):
+        QtGui.QMainWindow.__init__(self, **kwargs)
+        self.setCentralWidget(area)
+
+    def closeEvent(self, *args, **kwargs):
+        self.centralWidget().clear()
+        QtGui.QMainWindow.closeEvent(self, *args, **kwargs)
diff --git a/libs/pyqtgraph/dockarea/DockDrop.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/dockarea/DockDrop.py
similarity index 100%
rename from libs/pyqtgraph/dockarea/DockDrop.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/dockarea/DockDrop.py
diff --git a/libs/pyqtgraph/dockarea/__init__.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/dockarea/__init__.py
similarity index 100%
rename from libs/pyqtgraph/dockarea/__init__.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/dockarea/__init__.py
diff --git a/libs/pyqtgraph/dockarea/tests/test_dock.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/dockarea/tests/test_dock.py
similarity index 100%
rename from libs/pyqtgraph/dockarea/tests/test_dock.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/dockarea/tests/test_dock.py
diff --git a/libs/pyqtgraph/exceptionHandling.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/exceptionHandling.py
similarity index 100%
rename from libs/pyqtgraph/exceptionHandling.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/exceptionHandling.py
diff --git a/libs/pyqtgraph/exporters/CSVExporter.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/exporters/CSVExporter.py
similarity index 100%
rename from libs/pyqtgraph/exporters/CSVExporter.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/exporters/CSVExporter.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/exporters/Exporter.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/exporters/Exporter.py
new file mode 100644
index 00000000..792e36bd
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/exporters/Exporter.py
@@ -0,0 +1,139 @@
+from ..widgets.FileDialog import FileDialog
+from ..Qt import QtGui, QtCore, QtSvg
+from ..python2_3 import asUnicode, basestring
+from ..GraphicsScene import GraphicsScene
+import os, re
+LastExportDirectory = None
+
+
+class Exporter(object):
+    """
+    Abstract class used for exporting graphics to file / printer / whatever.
+    """    
+    allowCopy = False  # subclasses set this to True if they can use the copy buffer
+    Exporters = []
+    
+    @classmethod
+    def register(cls):
+        """
+        Used to register Exporter classes to appear in the export dialog.
+        """
+        Exporter.Exporters.append(cls)
+    
+    def __init__(self, item):
+        """
+        Initialize with the item to be exported.
+        Can be an individual graphics item or a scene.
+        """
+        object.__init__(self)
+        self.item = item
+        
+    def parameters(self):
+        """Return the parameters used to configure this exporter."""
+        raise Exception("Abstract method must be overridden in subclass.")
+        
+    def export(self, fileName=None, toBytes=False, copy=False):
+        """
+        If *fileName* is None, pop-up a file dialog.
+        If *toBytes* is True, return a bytes object rather than writing to file.
+        If *copy* is True, export to the copy buffer rather than writing to file.
+        """
+        raise Exception("Abstract method must be overridden in subclass.")
+
+    def fileSaveDialog(self, filter=None, opts=None):
+        ## Show a file dialog, call self.export(fileName) when finished.
+        if opts is None:
+            opts = {}
+        self.fileDialog = FileDialog()
+        self.fileDialog.setFileMode(QtGui.QFileDialog.AnyFile)
+        self.fileDialog.setAcceptMode(QtGui.QFileDialog.AcceptSave)
+        if filter is not None:
+            if isinstance(filter, basestring):
+                self.fileDialog.setNameFilter(filter)
+            elif isinstance(filter, list):
+                self.fileDialog.setNameFilters(filter)
+        global LastExportDirectory
+        exportDir = LastExportDirectory
+        if exportDir is not None:
+            self.fileDialog.setDirectory(exportDir)
+        self.fileDialog.show()
+        self.fileDialog.opts = opts
+        self.fileDialog.fileSelected.connect(self.fileSaveFinished)
+        return
+        
+    def fileSaveFinished(self, fileName):
+        fileName = asUnicode(fileName)
+        global LastExportDirectory
+        LastExportDirectory = os.path.split(fileName)[0]
+        
+        ## If file name does not match selected extension, append it now
+        ext = os.path.splitext(fileName)[1].lower().lstrip('.')
+        selectedExt = re.search(r'\*\.(\w+)\b', asUnicode(self.fileDialog.selectedNameFilter()))
+        if selectedExt is not None:
+            selectedExt = selectedExt.groups()[0].lower()
+            if ext != selectedExt:
+                fileName = fileName + '.' + selectedExt.lstrip('.')
+        
+        self.export(fileName=fileName, **self.fileDialog.opts)
+        
+    def getScene(self):
+        if isinstance(self.item, GraphicsScene):
+            return self.item
+        else:
+            return self.item.scene()
+        
+    def getSourceRect(self):
+        if isinstance(self.item, GraphicsScene):
+            w = self.item.getViewWidget()
+            return w.viewportTransform().inverted()[0].mapRect(w.rect())
+        else:
+            return self.item.sceneBoundingRect()
+        
+    def getTargetRect(self):        
+        if isinstance(self.item, GraphicsScene):
+            return self.item.getViewWidget().rect()
+        else:
+            return self.item.mapRectToDevice(self.item.boundingRect())
+        
+    def setExportMode(self, export, opts=None):
+        """
+        Call setExportMode(export, opts) on all items that will 
+        be painted during the export. This informs the item
+        that it is about to be painted for export, allowing it to 
+        alter its appearance temporarily
+        
+        
+        *export*  - bool; must be True before exporting and False afterward
+        *opts*    - dict; common parameters are 'antialias' and 'background'
+        """
+        if opts is None:
+            opts = {}
+        for item in self.getPaintItems():
+            if hasattr(item, 'setExportMode'):
+                item.setExportMode(export, opts)
+    
+    def getPaintItems(self, root=None):
+        """Return a list of all items that should be painted in the correct order."""
+        if root is None:
+            root = self.item
+        preItems = []
+        postItems = []
+        if isinstance(root, QtGui.QGraphicsScene):
+            childs = [i for i in root.items() if i.parentItem() is None]
+            rootItem = []
+        else:
+            childs = root.childItems()
+            rootItem = [root]
+        childs.sort(key=lambda a: a.zValue())
+        while len(childs) > 0:
+            ch = childs.pop(0)
+            tree = self.getPaintItems(ch)
+            if int(ch.flags() & ch.ItemStacksBehindParent) > 0 or (ch.zValue() < 0 and int(ch.flags() & ch.ItemNegativeZStacksBehindParent) > 0):
+                preItems.extend(tree)
+            else:
+                postItems.extend(tree)
+                
+        return preItems + rootItem + postItems
+
+    def render(self, painter, targetRect, sourceRect, item=None):
+        self.getScene().render(painter, QtCore.QRectF(targetRect), QtCore.QRectF(sourceRect))
diff --git a/libs/pyqtgraph/exporters/HDF5Exporter.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/exporters/HDF5Exporter.py
similarity index 100%
rename from libs/pyqtgraph/exporters/HDF5Exporter.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/exporters/HDF5Exporter.py
diff --git a/libs/pyqtgraph/exporters/ImageExporter.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/exporters/ImageExporter.py
similarity index 100%
rename from libs/pyqtgraph/exporters/ImageExporter.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/exporters/ImageExporter.py
diff --git a/libs/pyqtgraph/exporters/Matplotlib.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/exporters/Matplotlib.py
similarity index 100%
rename from libs/pyqtgraph/exporters/Matplotlib.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/exporters/Matplotlib.py
diff --git a/libs/pyqtgraph/exporters/PrintExporter.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/exporters/PrintExporter.py
similarity index 100%
rename from libs/pyqtgraph/exporters/PrintExporter.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/exporters/PrintExporter.py
diff --git a/libs/pyqtgraph/exporters/SVGExporter.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/exporters/SVGExporter.py
similarity index 100%
rename from libs/pyqtgraph/exporters/SVGExporter.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/exporters/SVGExporter.py
diff --git a/libs/pyqtgraph/exporters/__init__.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/exporters/__init__.py
similarity index 100%
rename from libs/pyqtgraph/exporters/__init__.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/exporters/__init__.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/exporters/tests/__init__.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/exporters/tests/__init__.py
new file mode 100644
index 00000000..e69de29b
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/exporters/tests/test_csv.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/exporters/tests/test_csv.py
new file mode 100644
index 00000000..15c6626e
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/exporters/tests/test_csv.py
@@ -0,0 +1,57 @@
+"""
+SVG export test
+"""
+from __future__ import division, print_function, absolute_import
+import pyqtgraph as pg
+import csv
+import os
+import tempfile
+
+app = pg.mkQApp()
+
+
+def approxeq(a, b):
+    return (a-b) <= ((a + b) * 1e-6)
+
+
+def test_CSVExporter():
+    tempfilename = tempfile.NamedTemporaryFile(suffix='.csv').name
+    print("using %s as a temporary file" % tempfilename)
+    
+    plt = pg.plot()
+    y1 = [1,3,2,3,1,6,9,8,4,2]
+    plt.plot(y=y1, name='myPlot')
+    
+    y2 = [3,4,6,1,2,4,2,3,5,3,5,1,3]
+    x2 = pg.np.linspace(0, 1.0, len(y2))
+    plt.plot(x=x2, y=y2)
+    
+    y3 = [1,5,2,3,4,6,1,2,4,2,3,5,3]
+    x3 = pg.np.linspace(0, 1.0, len(y3)+1)
+    plt.plot(x=x3, y=y3, stepMode=True)
+    
+    ex = pg.exporters.CSVExporter(plt.plotItem)
+    ex.export(fileName=tempfilename)
+
+    r = csv.reader(open(tempfilename, 'r'))
+    lines = [line for line in r]
+    header = lines.pop(0)
+    assert header == ['myPlot_x', 'myPlot_y', 'x0001', 'y0001', 'x0002', 'y0002']
+    
+    i = 0
+    for vals in lines:
+        vals = list(map(str.strip, vals))
+        assert (i >= len(y1) and vals[0] == '') or approxeq(float(vals[0]), i) 
+        assert (i >= len(y1) and vals[1] == '') or approxeq(float(vals[1]), y1[i]) 
+        
+        assert (i >= len(x2) and vals[2] == '') or approxeq(float(vals[2]), x2[i])
+        assert (i >= len(y2) and vals[3] == '') or approxeq(float(vals[3]), y2[i])
+        
+        assert (i >= len(x3) and vals[4] == '') or approxeq(float(vals[4]), x3[i])
+        assert (i >= len(y3) and vals[5] == '') or approxeq(float(vals[5]), y3[i])
+        i += 1
+
+    os.unlink(tempfilename)
+
+if __name__ == '__main__':
+    test_CSVExporter()
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/exporters/tests/test_svg.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/exporters/tests/test_svg.py
new file mode 100644
index 00000000..2261f7df
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/exporters/tests/test_svg.py
@@ -0,0 +1,77 @@
+"""
+SVG export test
+"""
+from __future__ import division, print_function, absolute_import
+import pyqtgraph as pg
+import tempfile
+import os
+
+
+app = pg.mkQApp()
+
+
+def test_plotscene():
+    tempfilename = tempfile.NamedTemporaryFile(suffix='.svg').name
+    print("using %s as a temporary file" % tempfilename)
+    pg.setConfigOption('foreground', (0,0,0))
+    w = pg.GraphicsWindow()
+    w.show()        
+    p1 = w.addPlot()
+    p2 = w.addPlot()
+    p1.plot([1,3,2,3,1,6,9,8,4,2,3,5,3], pen={'color':'k'})
+    p1.setXRange(0,5)
+    p2.plot([1,5,2,3,4,6,1,2,4,2,3,5,3], pen={'color':'k', 'cosmetic':False, 'width': 0.3})
+    app.processEvents()
+    app.processEvents()
+    
+    ex = pg.exporters.SVGExporter(w.scene())
+    ex.export(fileName=tempfilename)
+    # clean up after the test is done
+    os.unlink(tempfilename)
+
+def test_simple():
+    tempfilename = tempfile.NamedTemporaryFile(suffix='.svg').name
+    print("using %s as a temporary file" % tempfilename)
+    scene = pg.QtGui.QGraphicsScene()
+    #rect = pg.QtGui.QGraphicsRectItem(0, 0, 100, 100)
+    #scene.addItem(rect)
+    #rect.setPos(20,20)
+    #rect.translate(50, 50)
+    #rect.rotate(30)
+    #rect.scale(0.5, 0.5)
+    
+    #rect1 = pg.QtGui.QGraphicsRectItem(0, 0, 100, 100)
+    #rect1.setParentItem(rect)
+    #rect1.setFlag(rect1.ItemIgnoresTransformations)
+    #rect1.setPos(20, 20)
+    #rect1.scale(2,2)
+    
+    #el1 = pg.QtGui.QGraphicsEllipseItem(0, 0, 100, 100)
+    #el1.setParentItem(rect1)
+    ##grp = pg.ItemGroup()
+    #grp.setParentItem(rect)
+    #grp.translate(200,0)
+    ##grp.rotate(30)
+    
+    #rect2 = pg.QtGui.QGraphicsRectItem(0, 0, 100, 25)
+    #rect2.setFlag(rect2.ItemClipsChildrenToShape)
+    #rect2.setParentItem(grp)
+    #rect2.setPos(0,25)
+    #rect2.rotate(30)
+    #el = pg.QtGui.QGraphicsEllipseItem(0, 0, 100, 50)
+    #el.translate(10,-5)
+    #el.scale(0.5,2)
+
+    #el.setParentItem(rect2)
+
+    grp2 = pg.ItemGroup()
+    scene.addItem(grp2)
+    grp2.scale(100,100)
+
+    rect3 = pg.QtGui.QGraphicsRectItem(0,0,2,2)
+    rect3.setPen(pg.mkPen(width=1, cosmetic=False))
+    grp2.addItem(rect3)
+
+    ex = pg.exporters.SVGExporter(scene)
+    ex.export(fileName=tempfilename)
+    os.unlink(tempfilename)
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/Flowchart.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/Flowchart.py
new file mode 100644
index 00000000..b623f5c7
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/Flowchart.py
@@ -0,0 +1,936 @@
+# -*- coding: utf-8 -*-
+from ..Qt import QtCore, QtGui, USE_PYSIDE, USE_PYQT5
+from .Node import *
+from ..pgcollections import OrderedDict
+from ..widgets.TreeWidget import *
+from .. import FileDialog, DataTreeWidget
+
+## pyside and pyqt use incompatible ui files.
+if USE_PYSIDE:
+    from . import FlowchartTemplate_pyside as FlowchartTemplate
+    from . import FlowchartCtrlTemplate_pyside as FlowchartCtrlTemplate
+elif USE_PYQT5:
+    from . import FlowchartTemplate_pyqt5 as FlowchartTemplate
+    from . import FlowchartCtrlTemplate_pyqt5 as FlowchartCtrlTemplate
+else:
+    from . import FlowchartTemplate_pyqt as FlowchartTemplate
+    from . import FlowchartCtrlTemplate_pyqt as FlowchartCtrlTemplate
+    
+from .Terminal import Terminal
+from numpy import ndarray
+from .library import LIBRARY
+from ..debug import printExc
+from .. import configfile as configfile
+from .. import dockarea as dockarea
+from . import FlowchartGraphicsView
+from .. import functions as fn
+
+def strDict(d):
+    return dict([(str(k), v) for k, v in d.items()])
+
+
+        
+
+class Flowchart(Node):
+    sigFileLoaded = QtCore.Signal(object)
+    sigFileSaved = QtCore.Signal(object)
+    
+    
+    #sigOutputChanged = QtCore.Signal() ## inherited from Node
+    sigChartLoaded = QtCore.Signal()
+    sigStateChanged = QtCore.Signal()  # called when output is expected to have changed
+    sigChartChanged = QtCore.Signal(object, object, object) # called when nodes are added, removed, or renamed.
+                                                            # (self, action, node)
+    
+    def __init__(self, terminals=None, name=None, filePath=None, library=None):
+        self.library = library or LIBRARY
+        if name is None:
+            name = "Flowchart"
+        if terminals is None:
+            terminals = {}
+        self.filePath = filePath
+        Node.__init__(self, name, allowAddInput=True, allowAddOutput=True)  ## create node without terminals; we'll add these later
+        
+        
+        self.inputWasSet = False  ## flag allows detection of changes in the absence of input change.
+        self._nodes = {}
+        self.nextZVal = 10
+        #self.connects = []
+        #self._chartGraphicsItem = FlowchartGraphicsItem(self)
+        self._widget = None
+        self._scene = None
+        self.processing = False ## flag that prevents recursive node updates
+        
+        self.widget()
+        
+        self.inputNode = Node('Input', allowRemove=False, allowAddOutput=True)
+        self.outputNode = Node('Output', allowRemove=False, allowAddInput=True)
+        self.addNode(self.inputNode, 'Input', [-150, 0])
+        self.addNode(self.outputNode, 'Output', [300, 0])
+        
+        self.outputNode.sigOutputChanged.connect(self.outputChanged)
+        self.outputNode.sigTerminalRenamed.connect(self.internalTerminalRenamed)
+        self.inputNode.sigTerminalRenamed.connect(self.internalTerminalRenamed)
+        self.outputNode.sigTerminalRemoved.connect(self.internalTerminalRemoved)
+        self.inputNode.sigTerminalRemoved.connect(self.internalTerminalRemoved)
+        self.outputNode.sigTerminalAdded.connect(self.internalTerminalAdded)
+        self.inputNode.sigTerminalAdded.connect(self.internalTerminalAdded)
+        
+        self.viewBox.autoRange(padding = 0.04)
+            
+        for name, opts in terminals.items():
+            self.addTerminal(name, **opts)
+      
+    def setLibrary(self, lib):
+        self.library = lib
+        self.widget().chartWidget.buildMenu()
+      
+    def setInput(self, **args):
+        """Set the input values of the flowchart. This will automatically propagate
+        the new values throughout the flowchart, (possibly) causing the output to change.
+        """
+        #print "setInput", args
+        #Node.setInput(self, **args)
+        #print "  ....."
+        self.inputWasSet = True
+        self.inputNode.setOutput(**args)
+        
+    def outputChanged(self):
+        ## called when output of internal node has changed
+        vals = self.outputNode.inputValues()
+        self.widget().outputChanged(vals)
+        self.setOutput(**vals)
+        #self.sigOutputChanged.emit(self)
+        
+    def output(self):
+        """Return a dict of the values on the Flowchart's output terminals.
+        """
+        return self.outputNode.inputValues()
+        
+    def nodes(self):
+        return self._nodes
+        
+    def addTerminal(self, name, **opts):
+        term = Node.addTerminal(self, name, **opts)
+        name = term.name()
+        if opts['io'] == 'in':  ## inputs to the flowchart become outputs on the input node
+            opts['io'] = 'out'
+            opts['multi'] = False
+            self.inputNode.sigTerminalAdded.disconnect(self.internalTerminalAdded)
+            try:
+                term2 = self.inputNode.addTerminal(name, **opts)
+            finally:
+                self.inputNode.sigTerminalAdded.connect(self.internalTerminalAdded)
+                
+        else:
+            opts['io'] = 'in'
+            #opts['multi'] = False
+            self.outputNode.sigTerminalAdded.disconnect(self.internalTerminalAdded)
+            try:
+                term2 = self.outputNode.addTerminal(name, **opts)
+            finally:
+                self.outputNode.sigTerminalAdded.connect(self.internalTerminalAdded)
+        return term
+
+    def removeTerminal(self, name):
+        #print "remove:", name
+        term = self[name]
+        inTerm = self.internalTerminal(term)
+        Node.removeTerminal(self, name)
+        inTerm.node().removeTerminal(inTerm.name())
+        
+    def internalTerminalRenamed(self, term, oldName):
+        self[oldName].rename(term.name())
+        
+    def internalTerminalAdded(self, node, term):
+        if term._io == 'in':
+            io = 'out'
+        else:
+            io = 'in'
+        Node.addTerminal(self, term.name(), io=io, renamable=term.isRenamable(), removable=term.isRemovable(), multiable=term.isMultiable())
+        
+    def internalTerminalRemoved(self, node, term):
+        try:
+            Node.removeTerminal(self, term.name())
+        except KeyError:
+            pass
+        
+    def terminalRenamed(self, term, oldName):
+        newName = term.name()
+        #print "flowchart rename", newName, oldName
+        #print self.terminals
+        Node.terminalRenamed(self, self[oldName], oldName)
+        #print self.terminals
+        for n in [self.inputNode, self.outputNode]:
+            if oldName in n.terminals:
+                n[oldName].rename(newName)
+
+    def createNode(self, nodeType, name=None, pos=None):
+        if name is None:
+            n = 0
+            while True:
+                name = "%s.%d" % (nodeType, n)
+                if name not in self._nodes:
+                    break
+                n += 1
+                
+        node = self.library.getNodeType(nodeType)(name)
+        self.addNode(node, name, pos)
+        return node
+        
+    def addNode(self, node, name, pos=None):
+        if pos is None:
+            pos = [0, 0]
+        if type(pos) in [QtCore.QPoint, QtCore.QPointF]:
+            pos = [pos.x(), pos.y()]
+        item = node.graphicsItem()
+        item.setZValue(self.nextZVal*2)
+        self.nextZVal += 1
+        self.viewBox.addItem(item)
+        item.moveBy(*pos)
+        self._nodes[name] = node
+        self.widget().addNode(node) 
+        node.sigClosed.connect(self.nodeClosed)
+        node.sigRenamed.connect(self.nodeRenamed)
+        node.sigOutputChanged.connect(self.nodeOutputChanged)
+        self.sigChartChanged.emit(self, 'add', node)
+        
+    def removeNode(self, node):
+        node.close()
+        
+    def nodeClosed(self, node):
+        del self._nodes[node.name()]
+        self.widget().removeNode(node)
+        for signal in ['sigClosed', 'sigRenamed', 'sigOutputChanged']:
+            try:
+                getattr(node, signal).disconnect(self.nodeClosed)
+            except (TypeError, RuntimeError):
+                pass
+        self.sigChartChanged.emit(self, 'remove', node)
+        
+    def nodeRenamed(self, node, oldName):
+        del self._nodes[oldName]
+        self._nodes[node.name()] = node
+        self.widget().nodeRenamed(node, oldName)
+        self.sigChartChanged.emit(self, 'rename', node)
+        
+    def arrangeNodes(self):
+        pass
+        
+    def internalTerminal(self, term):
+        """If the terminal belongs to the external Node, return the corresponding internal terminal"""
+        if term.node() is self:
+            if term.isInput():
+                return self.inputNode[term.name()]
+            else:
+                return self.outputNode[term.name()]
+        else:
+            return term
+        
+    def connectTerminals(self, term1, term2):
+        """Connect two terminals together within this flowchart."""
+        term1 = self.internalTerminal(term1)
+        term2 = self.internalTerminal(term2)
+        term1.connectTo(term2)
+        
+        
+    def process(self, **args):
+        """
+        Process data through the flowchart, returning the output.
+        
+        Keyword arguments must be the names of input terminals. 
+        The return value is a dict with one key per output terminal.
+        
+        """
+        data = {}  ## Stores terminal:value pairs
+        
+        ## determine order of operations
+        ## order should look like [('p', node1), ('p', node2), ('d', terminal1), ...] 
+        ## Each tuple specifies either (p)rocess this node or (d)elete the result from this terminal
+        order = self.processOrder()
+        #print "ORDER:", order
+        
+        ## Record inputs given to process()
+        for n, t in self.inputNode.outputs().items():
+            # if n not in args:
+            #     raise Exception("Parameter %s required to process this chart." % n)
+            if n in args:
+                data[t] = args[n]
+        
+        ret = {}
+            
+        ## process all in order
+        for c, arg in order:
+            
+            if c == 'p':     ## Process a single node
+                #print "===> process:", arg
+                node = arg
+                if node is self.inputNode:
+                    continue  ## input node has already been processed.
+                
+                            
+                ## get input and output terminals for this node
+                outs = list(node.outputs().values())
+                ins = list(node.inputs().values())
+                
+                ## construct input value dictionary
+                args = {}
+                for inp in ins:
+                    inputs = inp.inputTerminals()
+                    if len(inputs) == 0:
+                        continue
+                    if inp.isMultiValue():  ## multi-input terminals require a dict of all inputs
+                        args[inp.name()] = dict([(i, data[i]) for i in inputs if i in data])
+                    else:                   ## single-inputs terminals only need the single input value available
+                        args[inp.name()] = data[inputs[0]]  
+                        
+                if node is self.outputNode:
+                    ret = args  ## we now have the return value, but must keep processing in case there are other endpoint nodes in the chart
+                else:
+                    try:
+                        if node.isBypassed():
+                            result = node.processBypassed(args)
+                        else:
+                            result = node.process(display=False, **args)
+                    except:
+                        print("Error processing node %s. Args are: %s" % (str(node), str(args)))
+                        raise
+                    for out in outs:
+                        #print "    Output:", out, out.name()
+                        #print out.name()
+                        try:
+                            data[out] = result[out.name()]
+                        except KeyError:
+                            pass
+            elif c == 'd':   ## delete a terminal result (no longer needed; may be holding a lot of memory)
+                #print "===> delete", arg
+                if arg in data:
+                    del data[arg]
+
+        return ret
+        
+    def processOrder(self):
+        """Return the order of operations required to process this chart.
+        The order returned should look like [('p', node1), ('p', node2), ('d', terminal1), ...] 
+        where each tuple specifies either (p)rocess this node or (d)elete the result from this terminal
+        """
+        
+        ## first collect list of nodes/terminals and their dependencies
+        deps = {}
+        tdeps = {}   ## {terminal: [nodes that depend on terminal]}
+        for name, node in self._nodes.items():
+            deps[node] = node.dependentNodes()
+            for t in node.outputs().values():
+                tdeps[t] = t.dependentNodes()
+            
+        #print "DEPS:", deps
+        ## determine correct node-processing order
+        #deps[self] = []
+        order = fn.toposort(deps)
+        #print "ORDER1:", order
+        
+        ## construct list of operations
+        ops = [('p', n) for n in order]
+        
+        ## determine when it is safe to delete terminal values
+        dels = []
+        for t, nodes in tdeps.items():
+            lastInd = 0
+            lastNode = None
+            for n in nodes:  ## determine which node is the last to be processed according to order
+                if n is self:
+                    lastInd = None
+                    break
+                else:
+                    try:
+                        ind = order.index(n)
+                    except ValueError:
+                        continue
+                if lastNode is None or ind > lastInd:
+                    lastNode = n
+                    lastInd = ind
+            #tdeps[t] = lastNode
+            if lastInd is not None:
+                dels.append((lastInd+1, t))
+        dels.sort(key=lambda a: a[0], reverse=True)
+        for i, t in dels:
+            ops.insert(i, ('d', t))
+        return ops
+        
+        
+    def nodeOutputChanged(self, startNode):
+        """Triggered when a node's output values have changed. (NOT called during process())
+        Propagates new data forward through network."""
+        ## first collect list of nodes/terminals and their dependencies
+        
+        if self.processing:
+            return
+        self.processing = True
+        try:
+            deps = {}
+            for name, node in self._nodes.items():
+                deps[node] = []
+                for t in node.outputs().values():
+                    deps[node].extend(t.dependentNodes())
+            
+            ## determine order of updates 
+            order = fn.toposort(deps, nodes=[startNode])
+            order.reverse()
+            
+            ## keep track of terminals that have been updated
+            terms = set(startNode.outputs().values())
+            
+            #print "======= Updating", startNode
+            # print("Order:", order)
+            for node in order[1:]:
+                # print("Processing node", node)
+                update = False
+                for term in list(node.inputs().values()):
+                    # print("  checking terminal", term)
+                    deps = list(term.connections().keys())
+                    for d in deps:
+                        if d in terms:
+                            # print("    ..input", d, "changed")
+                            update |= True
+                            term.inputChanged(d, process=False)
+                if update:
+                    # print("  processing..")
+                    node.update()
+                    terms |= set(node.outputs().values())
+                    
+        finally:
+            self.processing = False
+            if self.inputWasSet:
+                self.inputWasSet = False
+            else:
+                self.sigStateChanged.emit()
+        
+        
+
+    def chartGraphicsItem(self):
+        """Return the graphicsItem which displays the internals of this flowchart.
+        (graphicsItem() still returns the external-view item)"""
+        #return self._chartGraphicsItem
+        return self.viewBox
+        
+    def widget(self):
+        if self._widget is None:
+            self._widget = FlowchartCtrlWidget(self)
+            self.scene = self._widget.scene()
+            self.viewBox = self._widget.viewBox()
+            #self._scene = QtGui.QGraphicsScene()
+            #self._widget.setScene(self._scene)
+            #self.scene.addItem(self.chartGraphicsItem())
+            
+            #ci = self.chartGraphicsItem()
+            #self.viewBox.addItem(ci)
+            #self.viewBox.autoRange()
+        return self._widget
+
+    def listConnections(self):
+        conn = set()
+        for n in self._nodes.values():
+            terms = n.outputs()
+            for n, t in terms.items():
+                for c in t.connections():
+                    conn.add((t, c))
+        return conn
+
+    def saveState(self):
+        state = Node.saveState(self)
+        state['nodes'] = []
+        state['connects'] = []
+        #state['terminals'] = self.saveTerminals()
+        
+        for name, node in self._nodes.items():
+            cls = type(node)
+            if hasattr(cls, 'nodeName'):
+                clsName = cls.nodeName
+                pos = node.graphicsItem().pos()
+                ns = {'class': clsName, 'name': name, 'pos': (pos.x(), pos.y()), 'state': node.saveState()}
+                state['nodes'].append(ns)
+            
+        conn = self.listConnections()
+        for a, b in conn:
+            state['connects'].append((a.node().name(), a.name(), b.node().name(), b.name()))
+        
+        state['inputNode'] = self.inputNode.saveState()
+        state['outputNode'] = self.outputNode.saveState()
+        
+        return state
+        
+    def restoreState(self, state, clear=False):
+        self.blockSignals(True)
+        try:
+            if clear:
+                self.clear()
+            Node.restoreState(self, state)
+            nodes = state['nodes']
+            nodes.sort(key=lambda a: a['pos'][0])
+            for n in nodes:
+                if n['name'] in self._nodes:
+                    #self._nodes[n['name']].graphicsItem().moveBy(*n['pos'])
+                    self._nodes[n['name']].restoreState(n['state'])
+                    continue
+                try:
+                    node = self.createNode(n['class'], name=n['name'])
+                    node.restoreState(n['state'])
+                except:
+                    printExc("Error creating node %s: (continuing anyway)" % n['name'])
+                #node.graphicsItem().moveBy(*n['pos'])
+                
+            self.inputNode.restoreState(state.get('inputNode', {}))
+            self.outputNode.restoreState(state.get('outputNode', {}))
+                
+            #self.restoreTerminals(state['terminals'])
+            for n1, t1, n2, t2 in state['connects']:
+                try:
+                    self.connectTerminals(self._nodes[n1][t1], self._nodes[n2][t2])
+                except:
+                    print(self._nodes[n1].terminals)
+                    print(self._nodes[n2].terminals)
+                    printExc("Error connecting terminals %s.%s - %s.%s:" % (n1, t1, n2, t2))
+                    
+                
+        finally:
+            self.blockSignals(False)
+            
+        self.sigChartLoaded.emit()
+        self.outputChanged()
+        self.sigStateChanged.emit()
+        #self.sigOutputChanged.emit()
+            
+    def loadFile(self, fileName=None, startDir=None):
+        if fileName is None:
+            if startDir is None:
+                startDir = self.filePath
+            if startDir is None:
+                startDir = '.'
+            self.fileDialog = FileDialog(None, "Load Flowchart..", startDir, "Flowchart (*.fc)")
+            #self.fileDialog.setFileMode(QtGui.QFileDialog.AnyFile)
+            #self.fileDialog.setAcceptMode(QtGui.QFileDialog.AcceptSave) 
+            self.fileDialog.show()
+            self.fileDialog.fileSelected.connect(self.loadFile)
+            return
+            ## NOTE: was previously using a real widget for the file dialog's parent, but this caused weird mouse event bugs..
+            #fileName = QtGui.QFileDialog.getOpenFileName(None, "Load Flowchart..", startDir, "Flowchart (*.fc)")
+        fileName = unicode(fileName)
+        state = configfile.readConfigFile(fileName)
+        self.restoreState(state, clear=True)
+        self.viewBox.autoRange()
+        #self.emit(QtCore.SIGNAL('fileLoaded'), fileName)
+        self.sigFileLoaded.emit(fileName)
+        
+    def saveFile(self, fileName=None, startDir=None, suggestedFileName='flowchart.fc'):
+        if fileName is None:
+            if startDir is None:
+                startDir = self.filePath
+            if startDir is None:
+                startDir = '.'
+            self.fileDialog = FileDialog(None, "Save Flowchart..", startDir, "Flowchart (*.fc)")
+            #self.fileDialog.setFileMode(QtGui.QFileDialog.AnyFile)
+            self.fileDialog.setAcceptMode(QtGui.QFileDialog.AcceptSave) 
+            #self.fileDialog.setDirectory(startDir)
+            self.fileDialog.show()
+            self.fileDialog.fileSelected.connect(self.saveFile)
+            return
+            #fileName = QtGui.QFileDialog.getSaveFileName(None, "Save Flowchart..", startDir, "Flowchart (*.fc)")
+        fileName = unicode(fileName)
+        configfile.writeConfigFile(self.saveState(), fileName)
+        self.sigFileSaved.emit(fileName)
+
+    def clear(self):
+        for n in list(self._nodes.values()):
+            if n is self.inputNode or n is self.outputNode:
+                continue
+            n.close()  ## calls self.nodeClosed(n) by signal
+        #self.clearTerminals()
+        self.widget().clear()
+        
+    def clearTerminals(self):
+        Node.clearTerminals(self)
+        self.inputNode.clearTerminals()
+        self.outputNode.clearTerminals()
+
+#class FlowchartGraphicsItem(QtGui.QGraphicsItem):
+class FlowchartGraphicsItem(GraphicsObject):
+    
+    def __init__(self, chart):
+        #print "FlowchartGraphicsItem.__init__"
+        #QtGui.QGraphicsItem.__init__(self)
+        GraphicsObject.__init__(self)
+        self.chart = chart ## chart is an instance of Flowchart()
+        self.updateTerminals()
+        
+    def updateTerminals(self):
+        #print "FlowchartGraphicsItem.updateTerminals"
+        self.terminals = {}
+        bounds = self.boundingRect()
+        inp = self.chart.inputs()
+        dy = bounds.height() / (len(inp)+1)
+        y = dy
+        for n, t in inp.items():
+            item = t.graphicsItem()
+            self.terminals[n] = item
+            item.setParentItem(self)
+            item.setAnchor(bounds.width(), y)
+            y += dy
+        out = self.chart.outputs()
+        dy = bounds.height() / (len(out)+1)
+        y = dy
+        for n, t in out.items():
+            item = t.graphicsItem()
+            self.terminals[n] = item
+            item.setParentItem(self)
+            item.setAnchor(0, y)
+            y += dy
+        
+    def boundingRect(self):
+        #print "FlowchartGraphicsItem.boundingRect"
+        return QtCore.QRectF()
+        
+    def paint(self, p, *args):
+        #print "FlowchartGraphicsItem.paint"
+        pass
+        #p.drawRect(self.boundingRect())
+    
+
+class FlowchartCtrlWidget(QtGui.QWidget):
+    """The widget that contains the list of all the nodes in a flowchart and their controls, as well as buttons for loading/saving flowcharts."""
+    
+    def __init__(self, chart):
+        self.items = {}
+        #self.loadDir = loadDir  ## where to look initially for chart files
+        self.currentFileName = None
+        QtGui.QWidget.__init__(self)
+        self.chart = chart
+        self.ui = FlowchartCtrlTemplate.Ui_Form()
+        self.ui.setupUi(self)
+        self.ui.ctrlList.setColumnCount(2)
+        #self.ui.ctrlList.setColumnWidth(0, 200)
+        self.ui.ctrlList.setColumnWidth(1, 20)
+        self.ui.ctrlList.setVerticalScrollMode(self.ui.ctrlList.ScrollPerPixel)
+        self.ui.ctrlList.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
+        
+        self.chartWidget = FlowchartWidget(chart, self)
+        #self.chartWidget.viewBox().autoRange()
+        self.cwWin = QtGui.QMainWindow()
+        self.cwWin.setWindowTitle('Flowchart')
+        self.cwWin.setCentralWidget(self.chartWidget)
+        self.cwWin.resize(1000,800)
+        
+        h = self.ui.ctrlList.header()
+        if not USE_PYQT5:
+            h.setResizeMode(0, h.Stretch)
+        else:
+            h.setSectionResizeMode(0, h.Stretch)
+        
+        self.ui.ctrlList.itemChanged.connect(self.itemChanged)
+        self.ui.loadBtn.clicked.connect(self.loadClicked)
+        self.ui.saveBtn.clicked.connect(self.saveClicked)
+        self.ui.saveAsBtn.clicked.connect(self.saveAsClicked)
+        self.ui.showChartBtn.toggled.connect(self.chartToggled)
+        self.chart.sigFileLoaded.connect(self.setCurrentFile)
+        self.ui.reloadBtn.clicked.connect(self.reloadClicked)
+        self.chart.sigFileSaved.connect(self.fileSaved)
+        
+    
+        
+    #def resizeEvent(self, ev):
+        #QtGui.QWidget.resizeEvent(self, ev)
+        #self.ui.ctrlList.setColumnWidth(0, self.ui.ctrlList.viewport().width()-20)
+        
+    def chartToggled(self, b):
+        if b:
+            self.cwWin.show()
+        else:
+            self.cwWin.hide()
+
+    def reloadClicked(self):
+        try:
+            self.chartWidget.reloadLibrary()
+            self.ui.reloadBtn.success("Reloaded.")
+        except:
+            self.ui.reloadBtn.success("Error.")
+            raise
+            
+            
+    def loadClicked(self):
+        newFile = self.chart.loadFile()
+        #self.setCurrentFile(newFile)
+        
+    def fileSaved(self, fileName):
+        self.setCurrentFile(unicode(fileName))
+        self.ui.saveBtn.success("Saved.")
+        
+    def saveClicked(self):
+        if self.currentFileName is None:
+            self.saveAsClicked()
+        else:
+            try:
+                self.chart.saveFile(self.currentFileName)
+                #self.ui.saveBtn.success("Saved.")
+            except:
+                self.ui.saveBtn.failure("Error")
+                raise
+        
+    def saveAsClicked(self):
+        try:
+            if self.currentFileName is None:
+                newFile = self.chart.saveFile()
+            else:
+                newFile = self.chart.saveFile(suggestedFileName=self.currentFileName)
+            #self.ui.saveAsBtn.success("Saved.")
+            #print "Back to saveAsClicked."
+        except:
+            self.ui.saveBtn.failure("Error")
+            raise
+            
+        #self.setCurrentFile(newFile)
+            
+    def setCurrentFile(self, fileName):
+        self.currentFileName = unicode(fileName)
+        if fileName is None:
+            self.ui.fileNameLabel.setText("<b>[ new ]</b>")
+        else:
+            self.ui.fileNameLabel.setText("<b>%s</b>" % os.path.split(self.currentFileName)[1])
+        self.resizeEvent(None)
+
+    def itemChanged(self, *args):
+        pass
+    
+    def scene(self):
+        return self.chartWidget.scene() ## returns the GraphicsScene object
+    
+    def viewBox(self):
+        return self.chartWidget.viewBox()
+
+    def nodeRenamed(self, node, oldName):
+        self.items[node].setText(0, node.name())
+
+    def addNode(self, node):
+        ctrl = node.ctrlWidget()
+        #if ctrl is None:
+            #return
+        item = QtGui.QTreeWidgetItem([node.name(), '', ''])
+        self.ui.ctrlList.addTopLevelItem(item)
+        byp = QtGui.QPushButton('X')
+        byp.setCheckable(True)
+        byp.setFixedWidth(20)
+        item.bypassBtn = byp
+        self.ui.ctrlList.setItemWidget(item, 1, byp)
+        byp.node = node
+        node.bypassButton = byp
+        byp.setChecked(node.isBypassed())
+        byp.clicked.connect(self.bypassClicked)
+        
+        if ctrl is not None:
+            item2 = QtGui.QTreeWidgetItem()
+            item.addChild(item2)
+            self.ui.ctrlList.setItemWidget(item2, 0, ctrl)
+            
+        self.items[node] = item
+        
+    def removeNode(self, node):
+        if node in self.items:
+            item = self.items[node]
+            #self.disconnect(item.bypassBtn, QtCore.SIGNAL('clicked()'), self.bypassClicked)
+            try:
+                item.bypassBtn.clicked.disconnect(self.bypassClicked)
+            except (TypeError, RuntimeError):
+                pass
+            self.ui.ctrlList.removeTopLevelItem(item)
+            
+    def bypassClicked(self):
+        btn = QtCore.QObject.sender(self)
+        btn.node.bypass(btn.isChecked())
+            
+    def chartWidget(self):
+        return self.chartWidget
+
+    def outputChanged(self, data):
+        pass
+        #self.ui.outputTree.setData(data, hideRoot=True)
+
+    def clear(self):
+        self.chartWidget.clear()
+        
+    def select(self, node):
+        item = self.items[node]
+        self.ui.ctrlList.setCurrentItem(item)
+
+class FlowchartWidget(dockarea.DockArea):
+    """Includes the actual graphical flowchart and debugging interface"""
+    def __init__(self, chart, ctrl):
+        #QtGui.QWidget.__init__(self)
+        dockarea.DockArea.__init__(self)
+        self.chart = chart
+        self.ctrl = ctrl
+        self.hoverItem = None
+        #self.setMinimumWidth(250)
+        #self.setSizePolicy(QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding))
+        
+        #self.ui = FlowchartTemplate.Ui_Form()
+        #self.ui.setupUi(self)
+        
+        ## build user interface (it was easier to do it here than via developer)
+        self.view = FlowchartGraphicsView.FlowchartGraphicsView(self)
+        self.viewDock = dockarea.Dock('view', size=(1000,600))
+        self.viewDock.addWidget(self.view)
+        self.viewDock.hideTitleBar()
+        self.addDock(self.viewDock)
+    
+
+        self.hoverText = QtGui.QTextEdit()
+        self.hoverText.setReadOnly(True)
+        self.hoverDock = dockarea.Dock('Hover Info', size=(1000,20))
+        self.hoverDock.addWidget(self.hoverText)
+        self.addDock(self.hoverDock, 'bottom')
+
+        self.selInfo = QtGui.QWidget()
+        self.selInfoLayout = QtGui.QGridLayout()
+        self.selInfo.setLayout(self.selInfoLayout)
+        self.selDescLabel = QtGui.QLabel()
+        self.selNameLabel = QtGui.QLabel()
+        self.selDescLabel.setWordWrap(True)
+        self.selectedTree = DataTreeWidget()
+        #self.selectedTree.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded)
+        #self.selInfoLayout.addWidget(self.selNameLabel)
+        self.selInfoLayout.addWidget(self.selDescLabel)
+        self.selInfoLayout.addWidget(self.selectedTree)
+        self.selDock = dockarea.Dock('Selected Node', size=(1000,200))
+        self.selDock.addWidget(self.selInfo)
+        self.addDock(self.selDock, 'bottom')
+        
+        self._scene = self.view.scene()
+        self._viewBox = self.view.viewBox()
+        #self._scene = QtGui.QGraphicsScene()
+        #self._scene = FlowchartGraphicsView.FlowchartGraphicsScene()
+        #self.view.setScene(self._scene)
+        
+        self.buildMenu()
+        #self.ui.addNodeBtn.mouseReleaseEvent = self.addNodeBtnReleased
+            
+        self._scene.selectionChanged.connect(self.selectionChanged)
+        self._scene.sigMouseHover.connect(self.hoverOver)
+        #self.view.sigClicked.connect(self.showViewMenu)
+        #self._scene.sigSceneContextMenu.connect(self.showViewMenu)
+        #self._viewBox.sigActionPositionChanged.connect(self.menuPosChanged)
+        
+        
+    def reloadLibrary(self):
+        #QtCore.QObject.disconnect(self.nodeMenu, QtCore.SIGNAL('triggered(QAction*)'), self.nodeMenuTriggered)
+        self.nodeMenu.triggered.disconnect(self.nodeMenuTriggered)
+        self.nodeMenu = None
+        self.subMenus = []
+        self.chart.library.reload()
+        self.buildMenu()
+        
+    def buildMenu(self, pos=None):
+        def buildSubMenu(node, rootMenu, subMenus, pos=None):
+            for section, node in node.items():
+                menu = QtGui.QMenu(section)
+                rootMenu.addMenu(menu)
+                if isinstance(node, OrderedDict): 
+                    buildSubMenu(node, menu, subMenus, pos=pos)
+                    subMenus.append(menu)
+                else:
+                    act = rootMenu.addAction(section)
+                    act.nodeType = section
+                    act.pos = pos
+        self.nodeMenu = QtGui.QMenu()
+        self.subMenus = []       
+        buildSubMenu(self.chart.library.getNodeTree(), self.nodeMenu, self.subMenus, pos=pos)
+        self.nodeMenu.triggered.connect(self.nodeMenuTriggered)
+        return self.nodeMenu
+    
+    def menuPosChanged(self, pos):
+        self.menuPos = pos
+    
+    def showViewMenu(self, ev):
+        #QtGui.QPushButton.mouseReleaseEvent(self.ui.addNodeBtn, ev)
+        #if ev.button() == QtCore.Qt.RightButton:
+            #self.menuPos = self.view.mapToScene(ev.pos())
+            #self.nodeMenu.popup(ev.globalPos())
+        #print "Flowchart.showViewMenu called"
+
+        #self.menuPos = ev.scenePos()
+        self.buildMenu(ev.scenePos())
+        self.nodeMenu.popup(ev.screenPos())
+        
+    def scene(self):
+        return self._scene ## the GraphicsScene item
+
+    def viewBox(self):
+        return self._viewBox ## the viewBox that items should be added to
+
+    def nodeMenuTriggered(self, action):
+        nodeType = action.nodeType
+        if action.pos is not None:
+            pos = action.pos
+        else:
+            pos = self.menuPos
+        pos = self.viewBox().mapSceneToView(pos)
+
+        self.chart.createNode(nodeType, pos=pos)
+
+
+    def selectionChanged(self):
+        #print "FlowchartWidget.selectionChanged called."
+        items = self._scene.selectedItems()
+        #print "     scene.selectedItems: ", items
+        if len(items) == 0:
+            data = None
+        else:
+            item = items[0]
+            if hasattr(item, 'node') and isinstance(item.node, Node):
+                n = item.node
+                self.ctrl.select(n)
+                data = {'outputs': n.outputValues(), 'inputs': n.inputValues()}
+                self.selNameLabel.setText(n.name())
+                if hasattr(n, 'nodeName'):
+                    self.selDescLabel.setText("<b>%s</b>: %s" % (n.nodeName, n.__class__.__doc__))
+                else:
+                    self.selDescLabel.setText("")
+                if n.exception is not None:
+                    data['exception'] = n.exception
+            else:
+                data = None
+        self.selectedTree.setData(data, hideRoot=True)
+
+    def hoverOver(self, items):
+        #print "FlowchartWidget.hoverOver called."
+        term = None
+        for item in items:
+            if item is self.hoverItem:
+                return
+            self.hoverItem = item
+            if hasattr(item, 'term') and isinstance(item.term, Terminal):
+                term = item.term
+                break
+        if term is None:
+            self.hoverText.setPlainText("")
+        else:
+            val = term.value()
+            if isinstance(val, ndarray):
+                val = "%s %s %s" % (type(val).__name__, str(val.shape), str(val.dtype))
+            else:
+                val = str(val)
+                if len(val) > 400:
+                    val = val[:400] + "..."
+            self.hoverText.setPlainText("%s.%s = %s" % (term.node().name(), term.name(), val))
+            #self.hoverLabel.setCursorPosition(0)
+
+    
+
+    def clear(self):
+        #self.outputTree.setData(None)
+        self.selectedTree.setData(None)
+        self.hoverText.setPlainText('')
+        self.selNameLabel.setText('')
+        self.selDescLabel.setText('')
+        
+        
+class FlowchartNode(Node):
+    pass
+
diff --git a/libs/pyqtgraph/flowchart/FlowchartCtrlTemplate.ui b/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/FlowchartCtrlTemplate.ui
similarity index 100%
rename from libs/pyqtgraph/flowchart/FlowchartCtrlTemplate.ui
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/FlowchartCtrlTemplate.ui
diff --git a/libs/pyqtgraph/flowchart/FlowchartCtrlTemplate_pyqt.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/FlowchartCtrlTemplate_pyqt.py
similarity index 100%
rename from libs/pyqtgraph/flowchart/FlowchartCtrlTemplate_pyqt.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/FlowchartCtrlTemplate_pyqt.py
diff --git a/libs/pyqtgraph/flowchart/FlowchartCtrlTemplate_pyqt5.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/FlowchartCtrlTemplate_pyqt5.py
similarity index 100%
rename from libs/pyqtgraph/flowchart/FlowchartCtrlTemplate_pyqt5.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/FlowchartCtrlTemplate_pyqt5.py
diff --git a/libs/pyqtgraph/flowchart/FlowchartCtrlTemplate_pyside.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/FlowchartCtrlTemplate_pyside.py
similarity index 100%
rename from libs/pyqtgraph/flowchart/FlowchartCtrlTemplate_pyside.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/FlowchartCtrlTemplate_pyside.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/FlowchartGraphicsView.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/FlowchartGraphicsView.py
new file mode 100644
index 00000000..93011218
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/FlowchartGraphicsView.py
@@ -0,0 +1,41 @@
+# -*- coding: utf-8 -*-
+from ..Qt import QtGui, QtCore
+from ..widgets.GraphicsView import GraphicsView
+from ..GraphicsScene import GraphicsScene
+from ..graphicsItems.ViewBox import ViewBox
+
+
+class FlowchartGraphicsView(GraphicsView):
+    
+    sigHoverOver = QtCore.Signal(object)
+    sigClicked = QtCore.Signal(object)
+    
+    def __init__(self, widget, *args):
+        GraphicsView.__init__(self, *args, useOpenGL=False)
+        self._vb = FlowchartViewBox(widget, lockAspect=True, invertY=True)
+        self.setCentralItem(self._vb)
+        self.setRenderHint(QtGui.QPainter.Antialiasing, True)
+    
+    def viewBox(self):
+        return self._vb
+    
+        
+class FlowchartViewBox(ViewBox):
+    
+    def __init__(self, widget, *args, **kwargs):
+        ViewBox.__init__(self, *args, **kwargs)
+        self.widget = widget
+        
+    def getMenu(self, ev):
+        ## called by ViewBox to create a new context menu
+        self._fc_menu = QtGui.QMenu()
+        self._subMenus = self.getContextMenus(ev)
+        for menu in self._subMenus:
+            self._fc_menu.addMenu(menu)
+        return self._fc_menu
+    
+    def getContextMenus(self, ev):
+        ## called by scene to add menus on to someone else's context menu
+        menu = self.widget.buildMenu(ev.scenePos())
+        menu.setTitle("Add node")
+        return [menu, ViewBox.getMenu(self, ev)]
diff --git a/libs/pyqtgraph/flowchart/FlowchartTemplate.ui b/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/FlowchartTemplate.ui
similarity index 100%
rename from libs/pyqtgraph/flowchart/FlowchartTemplate.ui
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/FlowchartTemplate.ui
diff --git a/libs/pyqtgraph/flowchart/FlowchartTemplate_pyqt.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/FlowchartTemplate_pyqt.py
similarity index 100%
rename from libs/pyqtgraph/flowchart/FlowchartTemplate_pyqt.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/FlowchartTemplate_pyqt.py
diff --git a/libs/pyqtgraph/flowchart/FlowchartTemplate_pyqt5.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/FlowchartTemplate_pyqt5.py
similarity index 100%
rename from libs/pyqtgraph/flowchart/FlowchartTemplate_pyqt5.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/FlowchartTemplate_pyqt5.py
diff --git a/libs/pyqtgraph/flowchart/FlowchartTemplate_pyside.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/FlowchartTemplate_pyside.py
similarity index 100%
rename from libs/pyqtgraph/flowchart/FlowchartTemplate_pyside.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/FlowchartTemplate_pyside.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/Node.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/Node.py
new file mode 100644
index 00000000..c450a9f3
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/Node.py
@@ -0,0 +1,643 @@
+# -*- coding: utf-8 -*-
+from ..Qt import QtCore, QtGui
+from ..graphicsItems.GraphicsObject import GraphicsObject
+from .. import functions as fn
+from .Terminal import *
+from ..pgcollections import OrderedDict
+from ..debug import *
+import numpy as np
+
+
+def strDict(d):
+    return dict([(str(k), v) for k, v in d.items()])
+
+class Node(QtCore.QObject):
+    """
+    Node represents the basic processing unit of a flowchart. 
+    A Node subclass implements at least:
+    
+    1) A list of input / ouptut terminals and their properties
+    2) a process() function which takes the names of input terminals as keyword arguments and returns a dict with the names of output terminals as keys.
+
+    A flowchart thus consists of multiple instances of Node subclasses, each of which is connected
+    to other by wires between their terminals. A flowchart is, itself, also a special subclass of Node.
+    This allows Nodes within the flowchart to connect to the input/output nodes of the flowchart itself.
+
+    Optionally, a node class can implement the ctrlWidget() method, which must return a QWidget (usually containing other widgets) that will be displayed in the flowchart control panel. Some nodes implement fairly complex control widgets, but most nodes follow a simple form-like pattern: a list of parameter names and a single value (represented as spin box, check box, etc..) for each parameter. To make this easier, the CtrlNode subclass allows you to instead define a simple data structure that CtrlNode will use to automatically generate the control widget.     """
+    
+    sigOutputChanged = QtCore.Signal(object)   # self
+    sigClosed = QtCore.Signal(object)
+    sigRenamed = QtCore.Signal(object, object)
+    sigTerminalRenamed = QtCore.Signal(object, object)  # term, oldName
+    sigTerminalAdded = QtCore.Signal(object, object)  # self, term
+    sigTerminalRemoved = QtCore.Signal(object, object)  # self, term
+
+    
+    def __init__(self, name, terminals=None, allowAddInput=False, allowAddOutput=False, allowRemove=True):
+        """
+        ==============  ============================================================
+        **Arguments:**
+        name            The name of this specific node instance. It can be any 
+                        string, but must be unique within a flowchart. Usually,
+                        we simply let the flowchart decide on a name when calling
+                        Flowchart.addNode(...)
+        terminals       Dict-of-dicts specifying the terminals present on this Node.
+                        Terminal specifications look like::
+                        
+                            'inputTerminalName': {'io': 'in'}
+                            'outputTerminalName': {'io': 'out'} 
+                            
+                        There are a number of optional parameters for terminals:
+                        multi, pos, renamable, removable, multiable, bypass. See
+                        the Terminal class for more information.
+        allowAddInput   bool; whether the user is allowed to add inputs by the
+                        context menu.
+        allowAddOutput  bool; whether the user is allowed to add outputs by the
+                        context menu.
+        allowRemove     bool; whether the user is allowed to remove this node by the
+                        context menu.
+        ==============  ============================================================  
+        
+        """
+        QtCore.QObject.__init__(self)
+        self._name = name
+        self._bypass = False
+        self.bypassButton = None  ## this will be set by the flowchart ctrl widget..
+        self._graphicsItem = None
+        self.terminals = OrderedDict()
+        self._inputs = OrderedDict()
+        self._outputs = OrderedDict()
+        self._allowAddInput = allowAddInput   ## flags to allow the user to add/remove terminals
+        self._allowAddOutput = allowAddOutput
+        self._allowRemove = allowRemove
+        
+        self.exception = None
+        if terminals is None:
+            return
+        for name, opts in terminals.items():
+            self.addTerminal(name, **opts)
+
+        
+    def nextTerminalName(self, name):
+        """Return an unused terminal name"""
+        name2 = name
+        i = 1
+        while name2 in self.terminals:
+            name2 = "%s.%d" % (name, i)
+            i += 1
+        return name2
+        
+    def addInput(self, name="Input", **args):
+        """Add a new input terminal to this Node with the given name. Extra
+        keyword arguments are passed to Terminal.__init__.
+        
+        This is a convenience function that just calls addTerminal(io='in', ...)"""
+        #print "Node.addInput called."
+        return self.addTerminal(name, io='in', **args)
+        
+    def addOutput(self, name="Output", **args):
+        """Add a new output terminal to this Node with the given name. Extra
+        keyword arguments are passed to Terminal.__init__.
+        
+        This is a convenience function that just calls addTerminal(io='out', ...)"""
+        return self.addTerminal(name, io='out', **args)
+        
+    def removeTerminal(self, term):
+        """Remove the specified terminal from this Node. May specify either the 
+        terminal's name or the terminal itself.
+        
+        Causes sigTerminalRemoved to be emitted."""
+        if isinstance(term, Terminal):
+            name = term.name()
+        else:
+            name = term
+            term = self.terminals[name]
+        
+        #print "remove", name
+        #term.disconnectAll()
+        term.close()
+        del self.terminals[name]
+        if name in self._inputs:
+            del self._inputs[name]
+        if name in self._outputs:
+            del self._outputs[name]
+        self.graphicsItem().updateTerminals()
+        self.sigTerminalRemoved.emit(self, term)
+        
+        
+    def terminalRenamed(self, term, oldName):
+        """Called after a terminal has been renamed        
+        
+        Causes sigTerminalRenamed to be emitted."""
+        newName = term.name()
+        for d in [self.terminals, self._inputs, self._outputs]:
+            if oldName not in d:
+                continue
+            d[newName] = d[oldName]
+            del d[oldName]
+            
+        self.graphicsItem().updateTerminals()
+        self.sigTerminalRenamed.emit(term, oldName)
+        
+    def addTerminal(self, name, **opts):
+        """Add a new terminal to this Node with the given name. Extra
+        keyword arguments are passed to Terminal.__init__.
+                
+        Causes sigTerminalAdded to be emitted."""
+        name = self.nextTerminalName(name)
+        term = Terminal(self, name, **opts)
+        self.terminals[name] = term
+        if term.isInput():
+            self._inputs[name] = term
+        elif term.isOutput():
+            self._outputs[name] = term
+        self.graphicsItem().updateTerminals()
+        self.sigTerminalAdded.emit(self, term)
+        return term
+
+        
+    def inputs(self):
+        """Return dict of all input terminals.
+        Warning: do not modify."""
+        return self._inputs
+        
+    def outputs(self):
+        """Return dict of all output terminals.
+        Warning: do not modify."""
+        return self._outputs
+        
+    def process(self, **kargs):
+        """Process data through this node. This method is called any time the flowchart 
+        wants the node to process data. It will be called with one keyword argument
+        corresponding to each input terminal, and must return a dict mapping the name
+        of each output terminal to its new value.
+        
+        This method is also called with a 'display' keyword argument, which indicates
+        whether the node should update its display (if it implements any) while processing
+        this data. This is primarily used to disable expensive display operations
+        during batch processing.
+        """
+        return {}
+    
+    def graphicsItem(self):
+        """Return the GraphicsItem for this node. Subclasses may re-implement
+        this method to customize their appearance in the flowchart."""
+        if self._graphicsItem is None:
+            self._graphicsItem = NodeGraphicsItem(self)
+        return self._graphicsItem
+    
+    ## this is just bad planning. Causes too many bugs.
+    def __getattr__(self, attr):
+        """Return the terminal with the given name"""
+        if attr not in self.terminals:
+            raise AttributeError(attr)
+        else:
+            import traceback
+            traceback.print_stack()
+            print("Warning: use of node.terminalName is deprecated; use node['terminalName'] instead.")
+            return self.terminals[attr]
+            
+    def __getitem__(self, item):
+        #return getattr(self, item)
+        """Return the terminal with the given name"""
+        if item not in self.terminals:
+            raise KeyError(item)
+        else:
+            return self.terminals[item]
+            
+    def name(self):
+        """Return the name of this node."""
+        return self._name
+
+    def rename(self, name):
+        """Rename this node. This will cause sigRenamed to be emitted."""
+        oldName = self._name
+        self._name = name
+        #self.emit(QtCore.SIGNAL('renamed'), self, oldName)
+        self.sigRenamed.emit(self, oldName)
+
+    def dependentNodes(self):
+        """Return the list of nodes which provide direct input to this node"""
+        nodes = set()
+        for t in self.inputs().values():
+            nodes |= set([i.node() for i in t.inputTerminals()])
+        return nodes
+        #return set([t.inputTerminals().node() for t in self.listInputs().itervalues()])
+        
+    def __repr__(self):
+        return "<Node %s @%x>" % (self.name(), id(self))
+        
+    def ctrlWidget(self):
+        """Return this Node's control widget. 
+        
+        By default, Nodes have no control widget. Subclasses may reimplement this 
+        method to provide a custom widget. This method is called by Flowcharts
+        when they are constructing their Node list."""
+        return None
+
+    def bypass(self, byp):
+        """Set whether this node should be bypassed.
+        
+        When bypassed, a Node's process() method is never called. In some cases,
+        data is automatically copied directly from specific input nodes to 
+        output nodes instead (see the bypass argument to Terminal.__init__). 
+        This is usually called when the user disables a node from the flowchart 
+        control panel.
+        """
+        self._bypass = byp
+        if self.bypassButton is not None:
+            self.bypassButton.setChecked(byp)
+        self.update()
+        
+    def isBypassed(self):
+        """Return True if this Node is currently bypassed."""
+        return self._bypass
+
+    def setInput(self, **args):
+        """Set the values on input terminals. For most nodes, this will happen automatically through Terminal.inputChanged.
+        This is normally only used for nodes with no connected inputs."""
+        changed = False
+        for k, v in args.items():
+            term = self._inputs[k]
+            oldVal = term.value()
+            if not fn.eq(oldVal, v):
+                changed = True
+            term.setValue(v, process=False)
+        if changed and '_updatesHandled_' not in args:
+            self.update()
+        
+    def inputValues(self):
+        """Return a dict of all input values currently assigned to this node."""
+        vals = {}
+        for n, t in self.inputs().items():
+            vals[n] = t.value()
+        return vals
+            
+    def outputValues(self):
+        """Return a dict of all output values currently generated by this node."""
+        vals = {}
+        for n, t in self.outputs().items():
+            vals[n] = t.value()
+        return vals
+            
+    def connected(self, localTerm, remoteTerm):
+        """Called whenever one of this node's terminals is connected elsewhere."""
+        pass
+    
+    def disconnected(self, localTerm, remoteTerm):
+        """Called whenever one of this node's terminals is disconnected from another."""
+        pass 
+    
+    def update(self, signal=True):
+        """Collect all input values, attempt to process new output values, and propagate downstream.
+        Subclasses should call update() whenever thir internal state has changed
+        (such as when the user interacts with the Node's control widget). Update
+        is automatically called when the inputs to the node are changed.
+        """
+        vals = self.inputValues()
+        #print "  inputs:", vals
+        try:
+            if self.isBypassed():
+                out = self.processBypassed(vals)
+            else:
+                out = self.process(**strDict(vals))
+            #print "  output:", out
+            if out is not None:
+                if signal:
+                    self.setOutput(**out)
+                else:
+                    self.setOutputNoSignal(**out)
+            for n,t in self.inputs().items():
+                t.setValueAcceptable(True)
+            self.clearException()
+        except:
+            #printExc( "Exception while processing %s:" % self.name())
+            for n,t in self.outputs().items():
+                t.setValue(None)
+            self.setException(sys.exc_info())
+            
+            if signal:
+                #self.emit(QtCore.SIGNAL('outputChanged'), self)  ## triggers flowchart to propagate new data
+                self.sigOutputChanged.emit(self)  ## triggers flowchart to propagate new data
+
+    def processBypassed(self, args):
+        """Called when the flowchart would normally call Node.process, but this node is currently bypassed.
+        The default implementation looks for output terminals with a bypass connection and returns the
+        corresponding values. Most Node subclasses will _not_ need to reimplement this method."""
+        result = {}
+        for term in list(self.outputs().values()):
+            byp = term.bypassValue()
+            if byp is None:
+                result[term.name()] = None
+            else:
+                result[term.name()] = args.get(byp, None)
+        return result
+
+    def setOutput(self, **vals):
+        self.setOutputNoSignal(**vals)
+        #self.emit(QtCore.SIGNAL('outputChanged'), self)  ## triggers flowchart to propagate new data
+        self.sigOutputChanged.emit(self)  ## triggers flowchart to propagate new data
+
+    def setOutputNoSignal(self, **vals):
+        for k, v in vals.items():
+            term = self.outputs()[k]
+            term.setValue(v)
+            #targets = term.connections()
+            #for t in targets:  ## propagate downstream
+                #if t is term:
+                    #continue
+                #t.inputChanged(term)
+            term.setValueAcceptable(True)
+
+    def setException(self, exc):
+        self.exception = exc
+        self.recolor()
+        
+    def clearException(self):
+        self.setException(None)
+        
+    def recolor(self):
+        if self.exception is None:
+            self.graphicsItem().setPen(QtGui.QPen(QtGui.QColor(0, 0, 0)))
+        else:
+            self.graphicsItem().setPen(QtGui.QPen(QtGui.QColor(150, 0, 0), 3))
+
+    def saveState(self):
+        """Return a dictionary representing the current state of this node
+        (excluding input / output values). This is used for saving/reloading
+        flowcharts. The default implementation returns this Node's position,
+        bypass state, and information about each of its terminals. 
+        
+        Subclasses may want to extend this method, adding extra keys to the returned
+        dict."""
+        pos = self.graphicsItem().pos()
+        state = {'pos': (pos.x(), pos.y()), 'bypass': self.isBypassed()}
+        termsEditable = self._allowAddInput | self._allowAddOutput
+        for term in self._inputs.values() + self._outputs.values():
+            termsEditable |= term._renamable | term._removable | term._multiable
+        if termsEditable:
+            state['terminals'] = self.saveTerminals()
+        return state
+        
+    def restoreState(self, state):
+        """Restore the state of this node from a structure previously generated
+        by saveState(). """
+        pos = state.get('pos', (0,0))
+        self.graphicsItem().setPos(*pos)
+        self.bypass(state.get('bypass', False))
+        if 'terminals' in state:
+            self.restoreTerminals(state['terminals'])
+
+    def saveTerminals(self):
+        terms = OrderedDict()
+        for n, t in self.terminals.items():
+            terms[n] = (t.saveState())
+        return terms
+        
+    def restoreTerminals(self, state):
+        for name in list(self.terminals.keys()):
+            if name not in state:
+                self.removeTerminal(name)
+        for name, opts in state.items():
+            if name in self.terminals:
+                term = self[name]
+                term.setOpts(**opts)
+                continue
+            try:
+                opts = strDict(opts)
+                self.addTerminal(name, **opts)
+            except:
+                printExc("Error restoring terminal %s (%s):" % (str(name), str(opts)))
+                
+        
+    def clearTerminals(self):
+        for t in self.terminals.values():
+            t.close()
+        self.terminals = OrderedDict()
+        self._inputs = OrderedDict()
+        self._outputs = OrderedDict()
+        
+    def close(self):
+        """Cleans up after the node--removes terminals, graphicsItem, widget"""
+        self.disconnectAll()
+        self.clearTerminals()
+        item = self.graphicsItem()
+        if item.scene() is not None:
+            item.scene().removeItem(item)
+        self._graphicsItem = None
+        w = self.ctrlWidget()
+        if w is not None:
+            w.setParent(None)
+        #self.emit(QtCore.SIGNAL('closed'), self)
+        self.sigClosed.emit(self)
+            
+    def disconnectAll(self):
+        for t in self.terminals.values():
+            t.disconnectAll()
+    
+
+#class NodeGraphicsItem(QtGui.QGraphicsItem):
+class NodeGraphicsItem(GraphicsObject):
+    def __init__(self, node):
+        #QtGui.QGraphicsItem.__init__(self)
+        GraphicsObject.__init__(self)
+        #QObjectWorkaround.__init__(self)
+        
+        #self.shadow = QtGui.QGraphicsDropShadowEffect()
+        #self.shadow.setOffset(5,5)
+        #self.shadow.setBlurRadius(10)
+        #self.setGraphicsEffect(self.shadow)
+        
+        self.pen = fn.mkPen(0,0,0)
+        self.selectPen = fn.mkPen(200,200,200,width=2)
+        self.brush = fn.mkBrush(200, 200, 200, 150)
+        self.hoverBrush = fn.mkBrush(200, 200, 200, 200)
+        self.selectBrush = fn.mkBrush(200, 200, 255, 200)
+        self.hovered = False
+        
+        self.node = node
+        flags = self.ItemIsMovable | self.ItemIsSelectable | self.ItemIsFocusable |self.ItemSendsGeometryChanges
+        #flags =  self.ItemIsFocusable |self.ItemSendsGeometryChanges
+
+        self.setFlags(flags)
+        self.bounds = QtCore.QRectF(0, 0, 100, 100)
+        self.nameItem = QtGui.QGraphicsTextItem(self.node.name(), self)
+        self.nameItem.setDefaultTextColor(QtGui.QColor(50, 50, 50))
+        self.nameItem.moveBy(self.bounds.width()/2. - self.nameItem.boundingRect().width()/2., 0)
+        self.nameItem.setTextInteractionFlags(QtCore.Qt.TextEditorInteraction)
+        self.updateTerminals()
+        #self.setZValue(10)
+
+        self.nameItem.focusOutEvent = self.labelFocusOut
+        self.nameItem.keyPressEvent = self.labelKeyPress
+        
+        self.menu = None
+        self.buildMenu()
+        
+        #self.node.sigTerminalRenamed.connect(self.updateActionMenu)
+        
+    #def setZValue(self, z):
+        #for t, item in self.terminals.itervalues():
+            #item.setZValue(z+1)
+        #GraphicsObject.setZValue(self, z)
+        
+    def labelFocusOut(self, ev):
+        QtGui.QGraphicsTextItem.focusOutEvent(self.nameItem, ev)
+        self.labelChanged()
+        
+    def labelKeyPress(self, ev):
+        if ev.key() == QtCore.Qt.Key_Enter or ev.key() == QtCore.Qt.Key_Return:
+            self.labelChanged()
+        else:
+            QtGui.QGraphicsTextItem.keyPressEvent(self.nameItem, ev)
+        
+    def labelChanged(self):
+        newName = str(self.nameItem.toPlainText())
+        if newName != self.node.name():
+            self.node.rename(newName)
+            
+        ### re-center the label
+        bounds = self.boundingRect()
+        self.nameItem.setPos(bounds.width()/2. - self.nameItem.boundingRect().width()/2., 0)
+
+    def setPen(self, *args, **kwargs):
+        self.pen = fn.mkPen(*args, **kwargs)
+        self.update()
+        
+    def setBrush(self, brush):
+        self.brush = brush
+        self.update()
+        
+        
+    def updateTerminals(self):
+        bounds = self.bounds
+        self.terminals = {}
+        inp = self.node.inputs()
+        dy = bounds.height() / (len(inp)+1)
+        y = dy
+        for i, t in inp.items():
+            item = t.graphicsItem()
+            item.setParentItem(self)
+            #item.setZValue(self.zValue()+1)
+            br = self.bounds
+            item.setAnchor(0, y)
+            self.terminals[i] = (t, item)
+            y += dy
+        
+        out = self.node.outputs()
+        dy = bounds.height() / (len(out)+1)
+        y = dy
+        for i, t in out.items():
+            item = t.graphicsItem()
+            item.setParentItem(self)
+            item.setZValue(self.zValue())
+            br = self.bounds
+            item.setAnchor(bounds.width(), y)
+            self.terminals[i] = (t, item)
+            y += dy
+        
+        #self.buildMenu()
+        
+        
+    def boundingRect(self):
+        return self.bounds.adjusted(-5, -5, 5, 5)
+        
+    def paint(self, p, *args):
+        
+        p.setPen(self.pen)
+        if self.isSelected():
+            p.setPen(self.selectPen)
+            p.setBrush(self.selectBrush)
+        else:
+            p.setPen(self.pen)
+            if self.hovered:
+                p.setBrush(self.hoverBrush)
+            else:
+                p.setBrush(self.brush)
+                
+        p.drawRect(self.bounds)
+
+        
+    def mousePressEvent(self, ev):
+        ev.ignore()
+
+
+    def mouseClickEvent(self, ev):
+        #print "Node.mouseClickEvent called."
+        if int(ev.button()) == int(QtCore.Qt.LeftButton):
+            ev.accept()
+            #print "    ev.button: left"
+            sel = self.isSelected()
+            #ret = QtGui.QGraphicsItem.mousePressEvent(self, ev)
+            self.setSelected(True)
+            if not sel and self.isSelected():
+                #self.setBrush(QtGui.QBrush(QtGui.QColor(200, 200, 255)))
+                #self.emit(QtCore.SIGNAL('selected'))
+                #self.scene().selectionChanged.emit() ## for some reason this doesn't seem to be happening automatically
+                self.update()
+            #return ret
+        
+        elif int(ev.button()) == int(QtCore.Qt.RightButton):
+            #print "    ev.button: right"
+            ev.accept()
+            #pos = ev.screenPos()
+            self.raiseContextMenu(ev)
+            #self.menu.popup(QtCore.QPoint(pos.x(), pos.y()))
+            
+    def mouseDragEvent(self, ev):
+        #print "Node.mouseDrag"
+        if ev.button() == QtCore.Qt.LeftButton:
+            ev.accept()
+            self.setPos(self.pos()+self.mapToParent(ev.pos())-self.mapToParent(ev.lastPos()))
+        
+    def hoverEvent(self, ev):
+        if not ev.isExit() and ev.acceptClicks(QtCore.Qt.LeftButton):
+            ev.acceptDrags(QtCore.Qt.LeftButton)
+            self.hovered = True
+        else:
+            self.hovered = False
+        self.update()
+            
+    def keyPressEvent(self, ev):
+        if ev.key() == QtCore.Qt.Key_Delete or ev.key() == QtCore.Qt.Key_Backspace:
+            ev.accept()
+            if not self.node._allowRemove:
+                return
+            self.node.close()
+        else:
+            ev.ignore()
+
+    def itemChange(self, change, val):
+        if change == self.ItemPositionHasChanged:
+            for k, t in self.terminals.items():
+                t[1].nodeMoved()
+        return GraphicsObject.itemChange(self, change, val)
+            
+
+    def getMenu(self):
+        return self.menu
+    
+    def raiseContextMenu(self, ev):
+        menu = self.scene().addParentContextMenus(self, self.getMenu(), ev)
+        pos = ev.screenPos()
+        menu.popup(QtCore.QPoint(pos.x(), pos.y()))
+        
+    def buildMenu(self):
+        self.menu = QtGui.QMenu()
+        self.menu.setTitle("Node")
+        a = self.menu.addAction("Add input", self.addInputFromMenu)
+        if not self.node._allowAddInput:
+            a.setEnabled(False)
+        a = self.menu.addAction("Add output", self.addOutputFromMenu)
+        if not self.node._allowAddOutput:
+            a.setEnabled(False)
+        a = self.menu.addAction("Remove node", self.node.close)
+        if not self.node._allowRemove:
+            a.setEnabled(False)
+        
+    def addInputFromMenu(self):  ## called when add input is clicked in context menu
+        self.node.addInput(renamable=True, removable=True, multiable=True)
+        
+    def addOutputFromMenu(self):  ## called when add output is clicked in context menu
+        self.node.addOutput(renamable=True, removable=True, multiable=False)
+        
diff --git a/libs/pyqtgraph/flowchart/NodeLibrary.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/NodeLibrary.py
similarity index 100%
rename from libs/pyqtgraph/flowchart/NodeLibrary.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/NodeLibrary.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/Terminal.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/Terminal.py
new file mode 100644
index 00000000..016e2d30
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/Terminal.py
@@ -0,0 +1,567 @@
+# -*- coding: utf-8 -*-
+from ..Qt import QtCore, QtGui
+import weakref
+from ..graphicsItems.GraphicsObject import GraphicsObject
+from .. import functions as fn
+from ..Point import Point
+
+
+class Terminal(object):
+    def __init__(self, node, name, io, optional=False, multi=False, pos=None, renamable=False, removable=False, multiable=False, bypass=None):
+        """
+        Construct a new terminal. 
+        
+        ==============  =================================================================================
+        **Arguments:**
+        node            the node to which this terminal belongs
+        name            string, the name of the terminal
+        io              'in' or 'out'
+        optional        bool, whether the node may process without connection to this terminal
+        multi           bool, for inputs: whether this terminal may make multiple connections
+                        for outputs: whether this terminal creates a different value for each connection
+        pos             [x, y], the position of the terminal within its node's boundaries
+        renamable       (bool) Whether the terminal can be renamed by the user
+        removable       (bool) Whether the terminal can be removed by the user
+        multiable       (bool) Whether the user may toggle the *multi* option for this terminal
+        bypass          (str) Name of the terminal from which this terminal's value is derived
+                        when the Node is in bypass mode.
+        ==============  =================================================================================
+        """
+        self._io = io
+        self._optional = optional
+        self._multi = multi
+        self._node = weakref.ref(node)
+        self._name = name
+        self._renamable = renamable
+        self._removable = removable
+        self._multiable = multiable
+        self._connections = {}
+        self._graphicsItem = TerminalGraphicsItem(self, parent=self._node().graphicsItem())
+        self._bypass = bypass
+        
+        if multi:
+            self._value = {}  ## dictionary of terminal:value pairs.
+        else:
+            self._value = None  
+        
+        self.valueOk = None
+        self.recolor()
+        
+    def value(self, term=None):
+        """Return the value this terminal provides for the connected terminal"""
+        if term is None:
+            return self._value
+            
+        if self.isMultiValue():
+            return self._value.get(term, None)
+        else:
+            return self._value
+
+    def bypassValue(self):
+        return self._bypass
+
+    def setValue(self, val, process=True):
+        """If this is a single-value terminal, val should be a single value.
+        If this is a multi-value terminal, val should be a dict of terminal:value pairs"""
+        if not self.isMultiValue():
+            if fn.eq(val, self._value):
+                return
+            self._value = val
+        else:
+            if not isinstance(self._value, dict):
+                self._value = {}
+            if val is not None:
+                self._value.update(val)
+            
+        self.setValueAcceptable(None)  ## by default, input values are 'unchecked' until Node.update(). 
+        if self.isInput() and process:
+            self.node().update()
+            
+        self.recolor()
+        
+    def setOpts(self, **opts):
+        self._renamable = opts.get('renamable', self._renamable)
+        self._removable = opts.get('removable', self._removable)
+        self._multiable = opts.get('multiable', self._multiable)
+        if 'multi' in opts:
+            self.setMultiValue(opts['multi'])
+
+    def connected(self, term):
+        """Called whenever this terminal has been connected to another. (note--this function is called on both terminals)"""
+        if self.isInput() and term.isOutput():
+            self.inputChanged(term)
+        if self.isOutput() and self.isMultiValue():
+            self.node().update()
+        self.node().connected(self, term)
+        
+    def disconnected(self, term):
+        """Called whenever this terminal has been disconnected from another. (note--this function is called on both terminals)"""
+        if self.isMultiValue() and term in self._value:
+            del self._value[term]
+            self.node().update()
+        else:
+            if self.isInput():
+                self.setValue(None)
+        self.node().disconnected(self, term)
+
+    def inputChanged(self, term, process=True):
+        """Called whenever there is a change to the input value to this terminal.
+        It may often be useful to override this function."""
+        if self.isMultiValue():
+            self.setValue({term: term.value(self)}, process=process)
+        else:
+            self.setValue(term.value(self), process=process)
+            
+    def valueIsAcceptable(self):
+        """Returns True->acceptable  None->unknown  False->Unacceptable"""
+        return self.valueOk
+        
+    def setValueAcceptable(self, v=True):
+        self.valueOk = v
+        self.recolor()
+        
+    def connections(self):
+        return self._connections
+        
+    def node(self):
+        return self._node()
+        
+    def isInput(self):
+        return self._io == 'in'
+    
+    def isMultiValue(self):
+        return self._multi
+    
+    def setMultiValue(self, multi):
+        """Set whether this is a multi-value terminal."""
+        self._multi = multi
+        if not multi and len(self.inputTerminals()) > 1:
+            self.disconnectAll()
+            
+        for term in self.inputTerminals():
+            self.inputChanged(term)
+
+    def isOutput(self):
+        return self._io == 'out'
+        
+    def isRenamable(self):
+        return self._renamable
+
+    def isRemovable(self):
+        return self._removable
+
+    def isMultiable(self):
+        return self._multiable
+
+    def name(self):
+        return self._name
+        
+    def graphicsItem(self):
+        return self._graphicsItem
+        
+    def isConnected(self):
+        return len(self.connections()) > 0
+        
+    def connectedTo(self, term):
+        return term in self.connections()
+        
+    def hasInput(self):
+        for t in self.connections():
+            if t.isOutput():
+                return True
+        return False        
+        
+    def inputTerminals(self):
+        """Return the terminal(s) that give input to this one."""
+        return [t for t in self.connections() if t.isOutput()]
+        
+    def dependentNodes(self):
+        """Return the list of nodes which receive input from this terminal."""
+        return set([t.node() for t in self.connections() if t.isInput()])
+        
+    def connectTo(self, term, connectionItem=None):
+        try:
+            if self.connectedTo(term):
+                raise Exception('Already connected')
+            if term is self:
+                raise Exception('Not connecting terminal to self')
+            if term.node() is self.node():
+                raise Exception("Can't connect to terminal on same node.")
+            for t in [self, term]:
+                if t.isInput() and not t._multi and len(t.connections()) > 0:
+                    raise Exception("Cannot connect %s <-> %s: Terminal %s is already connected to %s (and does not allow multiple connections)" % (self, term, t, list(t.connections().keys())))
+        except:
+            if connectionItem is not None:
+                connectionItem.close()
+            raise
+            
+        if connectionItem is None:
+            connectionItem = ConnectionItem(self.graphicsItem(), term.graphicsItem())
+            self.graphicsItem().getViewBox().addItem(connectionItem)
+        self._connections[term] = connectionItem
+        term._connections[self] = connectionItem
+        
+        self.recolor()
+        
+        self.connected(term)
+        term.connected(self)
+        
+        return connectionItem
+        
+    def disconnectFrom(self, term):
+        if not self.connectedTo(term):
+            return
+        item = self._connections[term]
+        item.close()
+        del self._connections[term]
+        del term._connections[self]
+        self.recolor()
+        term.recolor()
+        
+        self.disconnected(term)
+        term.disconnected(self)
+            
+        
+    def disconnectAll(self):
+        for t in list(self._connections.keys()):
+            self.disconnectFrom(t)
+        
+    def recolor(self, color=None, recurse=True):
+        if color is None:
+            if not self.isConnected():       ## disconnected terminals are black
+                color = QtGui.QColor(0,0,0)
+            elif self.isInput() and not self.hasInput():   ## input terminal with no connected output terminals 
+                color = QtGui.QColor(200,200,0)
+            elif self._value is None or fn.eq(self._value, {}):  ## terminal is connected but has no data (possibly due to processing error) 
+                color = QtGui.QColor(255,255,255)
+            elif self.valueIsAcceptable() is None:   ## terminal has data, but it is unknown if the data is ok
+                color = QtGui.QColor(200, 200, 0)
+            elif self.valueIsAcceptable() is True:   ## terminal has good input, all ok
+                color = QtGui.QColor(0, 200, 0)
+            else:                                    ## terminal has bad input
+                color = QtGui.QColor(200, 0, 0)
+        self.graphicsItem().setBrush(QtGui.QBrush(color))
+        
+        if recurse:
+            for t in self.connections():
+                t.recolor(color, recurse=False)
+        
+    def rename(self, name):
+        oldName = self._name
+        self._name = name
+        self.node().terminalRenamed(self, oldName)
+        self.graphicsItem().termRenamed(name)
+        
+    def __repr__(self):
+        return "<Terminal %s.%s>" % (str(self.node().name()), str(self.name()))
+        
+    def __hash__(self):
+        return id(self)
+
+    def close(self):
+        self.disconnectAll()
+        item = self.graphicsItem()
+        if item.scene() is not None:
+            item.scene().removeItem(item)
+        
+    def saveState(self):
+        return {'io': self._io, 'multi': self._multi, 'optional': self._optional, 'renamable': self._renamable, 'removable': self._removable, 'multiable': self._multiable}
+
+
+class TerminalGraphicsItem(GraphicsObject):
+    
+    def __init__(self, term, parent=None):
+        self.term = term
+        GraphicsObject.__init__(self, parent)
+        self.brush = fn.mkBrush(0,0,0)
+        self.box = QtGui.QGraphicsRectItem(0, 0, 10, 10, self)
+        self.label = QtGui.QGraphicsTextItem(self.term.name(), self)
+        self.label.scale(0.7, 0.7)
+        self.newConnection = None
+        self.setFiltersChildEvents(True)  ## to pick up mouse events on the rectitem
+        if self.term.isRenamable():
+            self.label.setTextInteractionFlags(QtCore.Qt.TextEditorInteraction)
+            self.label.focusOutEvent = self.labelFocusOut
+            self.label.keyPressEvent = self.labelKeyPress
+        self.setZValue(1)
+        self.menu = None
+
+    def labelFocusOut(self, ev):
+        QtGui.QGraphicsTextItem.focusOutEvent(self.label, ev)
+        self.labelChanged()
+        
+    def labelKeyPress(self, ev):
+        if ev.key() == QtCore.Qt.Key_Enter or ev.key() == QtCore.Qt.Key_Return:
+            self.labelChanged()
+        else:
+            QtGui.QGraphicsTextItem.keyPressEvent(self.label, ev)
+        
+    def labelChanged(self):
+        newName = str(self.label.toPlainText())
+        if newName != self.term.name():
+            self.term.rename(newName)
+
+    def termRenamed(self, name):
+        self.label.setPlainText(name)
+
+    def setBrush(self, brush):
+        self.brush = brush
+        self.box.setBrush(brush)
+
+    def disconnect(self, target):
+        self.term.disconnectFrom(target.term)
+
+    def boundingRect(self):
+        br = self.box.mapRectToParent(self.box.boundingRect())
+        lr = self.label.mapRectToParent(self.label.boundingRect())
+        return br | lr
+        
+    def paint(self, p, *args):
+        pass
+        
+    def setAnchor(self, x, y):
+        pos = QtCore.QPointF(x, y)
+        self.anchorPos = pos
+        br = self.box.mapRectToParent(self.box.boundingRect())
+        lr = self.label.mapRectToParent(self.label.boundingRect())
+        
+        
+        if self.term.isInput():
+            self.box.setPos(pos.x(), pos.y()-br.height()/2.)
+            self.label.setPos(pos.x() + br.width(), pos.y() - lr.height()/2.)
+        else:
+            self.box.setPos(pos.x()-br.width(), pos.y()-br.height()/2.)
+            self.label.setPos(pos.x()-br.width()-lr.width(), pos.y()-lr.height()/2.)
+        self.updateConnections()
+        
+    def updateConnections(self):
+        for t, c in self.term.connections().items():
+            c.updateLine()
+            
+    def mousePressEvent(self, ev):
+        #ev.accept()
+        ev.ignore() ## necessary to allow click/drag events to process correctly
+
+    def mouseClickEvent(self, ev):
+        if ev.button() == QtCore.Qt.LeftButton:
+            ev.accept()
+            self.label.setFocus(QtCore.Qt.MouseFocusReason)
+        elif ev.button() == QtCore.Qt.RightButton:
+            ev.accept()
+            self.raiseContextMenu(ev)
+            
+    def raiseContextMenu(self, ev):
+        ## only raise menu if this terminal is removable
+        menu = self.getMenu()
+        menu = self.scene().addParentContextMenus(self, menu, ev)
+        pos = ev.screenPos()
+        menu.popup(QtCore.QPoint(pos.x(), pos.y()))
+        
+    def getMenu(self):
+        if self.menu is None:
+            self.menu = QtGui.QMenu()
+            self.menu.setTitle("Terminal")
+            remAct = QtGui.QAction("Remove terminal", self.menu)
+            remAct.triggered.connect(self.removeSelf)
+            self.menu.addAction(remAct)
+            self.menu.remAct = remAct
+            if not self.term.isRemovable():
+                remAct.setEnabled(False)
+            multiAct = QtGui.QAction("Multi-value", self.menu)
+            multiAct.setCheckable(True)
+            multiAct.setChecked(self.term.isMultiValue())
+            multiAct.setEnabled(self.term.isMultiable())
+            
+            multiAct.triggered.connect(self.toggleMulti)
+            self.menu.addAction(multiAct)
+            self.menu.multiAct = multiAct
+            if self.term.isMultiable():
+                multiAct.setEnabled = False
+        return self.menu
+
+    def toggleMulti(self):
+        multi = self.menu.multiAct.isChecked()
+        self.term.setMultiValue(multi)
+    
+    def removeSelf(self):
+        self.term.node().removeTerminal(self.term)
+        
+    def mouseDragEvent(self, ev):
+        if ev.button() != QtCore.Qt.LeftButton:
+            ev.ignore()
+            return
+        
+        ev.accept()
+        if ev.isStart():
+            if self.newConnection is None:
+                self.newConnection = ConnectionItem(self)
+                #self.scene().addItem(self.newConnection)
+                self.getViewBox().addItem(self.newConnection)
+                #self.newConnection.setParentItem(self.parent().parent())
+
+            self.newConnection.setTarget(self.mapToView(ev.pos()))
+        elif ev.isFinish():
+            if self.newConnection is not None:
+                items = self.scene().items(ev.scenePos())
+                gotTarget = False
+                for i in items:
+                    if isinstance(i, TerminalGraphicsItem):
+                        self.newConnection.setTarget(i)
+                        try:
+                            self.term.connectTo(i.term, self.newConnection)
+                            gotTarget = True
+                        except:
+                            self.scene().removeItem(self.newConnection)
+                            self.newConnection = None
+                            raise
+                        break
+                
+                if not gotTarget:
+                    self.newConnection.close()
+                self.newConnection = None
+        else:
+            if self.newConnection is not None:
+                self.newConnection.setTarget(self.mapToView(ev.pos()))
+        
+    def hoverEvent(self, ev):
+        if not ev.isExit() and ev.acceptDrags(QtCore.Qt.LeftButton):
+            ev.acceptClicks(QtCore.Qt.LeftButton) ## we don't use the click, but we also don't want anyone else to use it.
+            ev.acceptClicks(QtCore.Qt.RightButton)
+            self.box.setBrush(fn.mkBrush('w'))
+        else:
+            self.box.setBrush(self.brush)
+        self.update()
+        
+    def connectPoint(self):
+        ## return the connect position of this terminal in view coords
+        return self.mapToView(self.mapFromItem(self.box, self.box.boundingRect().center()))
+
+    def nodeMoved(self):
+        for t, item in self.term.connections().items():
+            item.updateLine()
+
+
+class ConnectionItem(GraphicsObject):
+    
+    def __init__(self, source, target=None):
+        GraphicsObject.__init__(self)
+        self.setFlags(
+            self.ItemIsSelectable | 
+            self.ItemIsFocusable
+        )
+        self.source = source
+        self.target = target
+        self.length = 0
+        self.hovered = False
+        self.path = None
+        self.shapePath = None
+        self.style = {
+            'shape': 'line',
+            'color': (100, 100, 250),
+            'width': 1.0,
+            'hoverColor': (150, 150, 250),
+            'hoverWidth': 1.0,
+            'selectedColor': (200, 200, 0),
+            'selectedWidth': 3.0,
+            }
+        self.source.getViewBox().addItem(self)
+        self.updateLine()
+        self.setZValue(0)
+        
+    def close(self):
+        if self.scene() is not None:
+            self.scene().removeItem(self)
+        
+    def setTarget(self, target):
+        self.target = target
+        self.updateLine()
+    
+    def setStyle(self, **kwds):
+        self.style.update(kwds)
+        if 'shape' in kwds:
+            self.updateLine()
+        else:
+            self.update()
+    
+    def updateLine(self):
+        start = Point(self.source.connectPoint())
+        if isinstance(self.target, TerminalGraphicsItem):
+            stop = Point(self.target.connectPoint())
+        elif isinstance(self.target, QtCore.QPointF):
+            stop = Point(self.target)
+        else:
+            return
+        self.prepareGeometryChange()
+        
+        self.path = self.generatePath(start, stop)
+        self.shapePath = None
+        self.update()
+        
+    def generatePath(self, start, stop):
+        path = QtGui.QPainterPath()
+        path.moveTo(start)
+        if self.style['shape'] == 'line':
+            path.lineTo(stop)
+        elif self.style['shape'] == 'cubic':
+            path.cubicTo(Point(stop.x(), start.y()), Point(start.x(), stop.y()), Point(stop.x(), stop.y()))
+        else:
+            raise Exception('Invalid shape "%s"; options are "line" or "cubic"' % self.style['shape'])
+        return path
+
+    def keyPressEvent(self, ev):
+        if not self.isSelected():
+            ev.ignore()
+            return
+        
+        if ev.key() == QtCore.Qt.Key_Delete or ev.key() == QtCore.Qt.Key_Backspace:
+            self.source.disconnect(self.target)
+            ev.accept()
+        else:
+            ev.ignore()
+    
+    def mousePressEvent(self, ev):
+        ev.ignore()
+        
+    def mouseClickEvent(self, ev):
+        if ev.button() == QtCore.Qt.LeftButton:
+            ev.accept()
+            sel = self.isSelected()
+            self.setSelected(True)
+            self.setFocus()
+            if not sel and self.isSelected():
+                self.update()
+                
+    def hoverEvent(self, ev):
+        if (not ev.isExit()) and ev.acceptClicks(QtCore.Qt.LeftButton):
+            self.hovered = True
+        else:
+            self.hovered = False
+        self.update()
+            
+    def boundingRect(self):
+        return self.shape().boundingRect()
+
+    def viewRangeChanged(self):
+        self.shapePath = None
+        self.prepareGeometryChange()
+        
+    def shape(self):
+        if self.shapePath is None:
+            if self.path is None:
+                return QtGui.QPainterPath()
+            stroker = QtGui.QPainterPathStroker()
+            px = self.pixelWidth()
+            stroker.setWidth(px*8)
+            self.shapePath = stroker.createStroke(self.path)
+        return self.shapePath
+        
+    def paint(self, p, *args):
+        if self.isSelected():
+            p.setPen(fn.mkPen(self.style['selectedColor'], width=self.style['selectedWidth']))
+        else:
+            if self.hovered:
+                p.setPen(fn.mkPen(self.style['hoverColor'], width=self.style['hoverWidth']))
+            else:
+                p.setPen(fn.mkPen(self.style['color'], width=self.style['width']))
+        
+        p.drawPath(self.path)
diff --git a/libs/pyqtgraph/flowchart/__init__.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/__init__.py
similarity index 100%
rename from libs/pyqtgraph/flowchart/__init__.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/__init__.py
diff --git a/libs/pyqtgraph/flowchart/library/Data.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/library/Data.py
similarity index 100%
rename from libs/pyqtgraph/flowchart/library/Data.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/library/Data.py
diff --git a/libs/pyqtgraph/flowchart/library/Display.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/library/Display.py
similarity index 100%
rename from libs/pyqtgraph/flowchart/library/Display.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/library/Display.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/library/Filters.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/library/Filters.py
new file mode 100644
index 00000000..9392b037
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/library/Filters.py
@@ -0,0 +1,353 @@
+# -*- coding: utf-8 -*-
+import numpy as np
+from ...Qt import QtCore, QtGui
+from ..Node import Node
+from . import functions
+from ... import functions as pgfn
+from .common import *
+from ...python2_3 import xrange
+from ... import PolyLineROI
+from ... import Point
+from ... import metaarray as metaarray
+
+
+class Downsample(CtrlNode):
+    """Downsample by averaging samples together."""
+    nodeName = 'Downsample'
+    uiTemplate = [
+        ('n', 'intSpin', {'min': 1, 'max': 1000000})
+    ]
+    
+    def processData(self, data):
+        return functions.downsample(data, self.ctrls['n'].value(), axis=0)
+
+
+class Subsample(CtrlNode):
+    """Downsample by selecting every Nth sample."""
+    nodeName = 'Subsample'
+    uiTemplate = [
+        ('n', 'intSpin', {'min': 1, 'max': 1000000})
+    ]
+    
+    def processData(self, data):
+        return data[::self.ctrls['n'].value()]
+
+
+class Bessel(CtrlNode):
+    """Bessel filter. Input data must have time values."""
+    nodeName = 'BesselFilter'
+    uiTemplate = [
+        ('band', 'combo', {'values': ['lowpass', 'highpass'], 'index': 0}),
+        ('cutoff', 'spin', {'value': 1000., 'step': 1, 'dec': True, 'range': [0.0, None], 'suffix': 'Hz', 'siPrefix': True}),
+        ('order', 'intSpin', {'value': 4, 'min': 1, 'max': 16}),
+        ('bidir', 'check', {'checked': True})
+    ]
+    
+    def processData(self, data):
+        s = self.stateGroup.state()
+        if s['band'] == 'lowpass':
+            mode = 'low'
+        else:
+            mode = 'high'
+        return functions.besselFilter(data, bidir=s['bidir'], btype=mode, cutoff=s['cutoff'], order=s['order'])
+
+
+class Butterworth(CtrlNode):
+    """Butterworth filter"""
+    nodeName = 'ButterworthFilter'
+    uiTemplate = [
+        ('band', 'combo', {'values': ['lowpass', 'highpass'], 'index': 0}),
+        ('wPass', 'spin', {'value': 1000., 'step': 1, 'dec': True, 'range': [0.0, None], 'suffix': 'Hz', 'siPrefix': True}),
+        ('wStop', 'spin', {'value': 2000., 'step': 1, 'dec': True, 'range': [0.0, None], 'suffix': 'Hz', 'siPrefix': True}),
+        ('gPass', 'spin', {'value': 2.0, 'step': 1, 'dec': True, 'range': [0.0, None], 'suffix': 'dB', 'siPrefix': True}),
+        ('gStop', 'spin', {'value': 20.0, 'step': 1, 'dec': True, 'range': [0.0, None], 'suffix': 'dB', 'siPrefix': True}),
+        ('bidir', 'check', {'checked': True})
+    ]
+    
+    def processData(self, data):
+        s = self.stateGroup.state()
+        if s['band'] == 'lowpass':
+            mode = 'low'
+        else:
+            mode = 'high'
+        ret = functions.butterworthFilter(data, bidir=s['bidir'], btype=mode, wPass=s['wPass'], wStop=s['wStop'], gPass=s['gPass'], gStop=s['gStop'])
+        return ret
+
+        
+class ButterworthNotch(CtrlNode):
+    """Butterworth notch filter"""
+    nodeName = 'ButterworthNotchFilter'
+    uiTemplate = [
+        ('low_wPass', 'spin', {'value': 1000., 'step': 1, 'dec': True, 'range': [0.0, None], 'suffix': 'Hz', 'siPrefix': True}),
+        ('low_wStop', 'spin', {'value': 2000., 'step': 1, 'dec': True, 'range': [0.0, None], 'suffix': 'Hz', 'siPrefix': True}),
+        ('low_gPass', 'spin', {'value': 2.0, 'step': 1, 'dec': True, 'range': [0.0, None], 'suffix': 'dB', 'siPrefix': True}),
+        ('low_gStop', 'spin', {'value': 20.0, 'step': 1, 'dec': True, 'range': [0.0, None], 'suffix': 'dB', 'siPrefix': True}),
+        ('high_wPass', 'spin', {'value': 3000., 'step': 1, 'dec': True, 'range': [0.0, None], 'suffix': 'Hz', 'siPrefix': True}),
+        ('high_wStop', 'spin', {'value': 4000., 'step': 1, 'dec': True, 'range': [0.0, None], 'suffix': 'Hz', 'siPrefix': True}),
+        ('high_gPass', 'spin', {'value': 2.0, 'step': 1, 'dec': True, 'range': [0.0, None], 'suffix': 'dB', 'siPrefix': True}),
+        ('high_gStop', 'spin', {'value': 20.0, 'step': 1, 'dec': True, 'range': [0.0, None], 'suffix': 'dB', 'siPrefix': True}),
+        ('bidir', 'check', {'checked': True})
+    ]
+    
+    def processData(self, data):
+        s = self.stateGroup.state()
+        
+        low = functions.butterworthFilter(data, bidir=s['bidir'], btype='low', wPass=s['low_wPass'], wStop=s['low_wStop'], gPass=s['low_gPass'], gStop=s['low_gStop'])
+        high = functions.butterworthFilter(data, bidir=s['bidir'], btype='high', wPass=s['high_wPass'], wStop=s['high_wStop'], gPass=s['high_gPass'], gStop=s['high_gStop'])
+        return low + high
+    
+
+class Mean(CtrlNode):
+    """Filters data by taking the mean of a sliding window"""
+    nodeName = 'MeanFilter'
+    uiTemplate = [
+        ('n', 'intSpin', {'min': 1, 'max': 1000000})
+    ]
+    
+    @metaArrayWrapper
+    def processData(self, data):
+        n = self.ctrls['n'].value()
+        return functions.rollingSum(data, n) / n
+
+
+class Median(CtrlNode):
+    """Filters data by taking the median of a sliding window"""
+    nodeName = 'MedianFilter'
+    uiTemplate = [
+        ('n', 'intSpin', {'min': 1, 'max': 1000000})
+    ]
+    
+    @metaArrayWrapper
+    def processData(self, data):
+        try:
+            import scipy.ndimage
+        except ImportError:
+            raise Exception("MedianFilter node requires the package scipy.ndimage.")
+        return scipy.ndimage.median_filter(data, self.ctrls['n'].value())
+
+class Mode(CtrlNode):
+    """Filters data by taking the mode (histogram-based) of a sliding window"""
+    nodeName = 'ModeFilter'
+    uiTemplate = [
+        ('window', 'intSpin', {'value': 500, 'min': 1, 'max': 1000000}),
+    ]
+    
+    @metaArrayWrapper
+    def processData(self, data):
+        return functions.modeFilter(data, self.ctrls['window'].value())
+
+
+class Denoise(CtrlNode):
+    """Removes anomalous spikes from data, replacing with nearby values"""
+    nodeName = 'DenoiseFilter'
+    uiTemplate = [
+        ('radius', 'intSpin', {'value': 2, 'min': 0, 'max': 1000000}),
+        ('threshold', 'doubleSpin', {'value': 4.0, 'min': 0, 'max': 1000})
+    ]
+    
+    def processData(self, data):
+        #print "DENOISE"
+        s = self.stateGroup.state()
+        return functions.denoise(data, **s)
+
+
+class Gaussian(CtrlNode):
+    """Gaussian smoothing filter."""
+    nodeName = 'GaussianFilter'
+    uiTemplate = [
+        ('sigma', 'doubleSpin', {'min': 0, 'max': 1000000})
+    ]
+    
+    @metaArrayWrapper
+    def processData(self, data):
+        try:
+            import scipy.ndimage
+        except ImportError:
+            raise Exception("GaussianFilter node requires the package scipy.ndimage.")
+
+        if hasattr(data, 'implements') and data.implements('MetaArray'):
+            info = data.infoCopy()
+            filt = pgfn.gaussianFilter(data.asarray(), self.ctrls['sigma'].value())
+            if 'values' in info[0]:
+                info[0]['values'] = info[0]['values'][:filt.shape[0]]
+            return metaarray.MetaArray(filt, info=info)
+        else:
+            return pgfn.gaussianFilter(data, self.ctrls['sigma'].value())
+
+class Derivative(CtrlNode):
+    """Returns the pointwise derivative of the input"""
+    nodeName = 'DerivativeFilter'
+    
+    def processData(self, data):
+        if hasattr(data, 'implements') and data.implements('MetaArray'):
+            info = data.infoCopy()
+            if 'values' in info[0]:
+                info[0]['values'] = info[0]['values'][:-1]
+            return metaarray.MetaArray(data[1:] - data[:-1], info=info)
+        else:
+            return data[1:] - data[:-1]
+
+
+class Integral(CtrlNode):
+    """Returns the pointwise integral of the input"""
+    nodeName = 'IntegralFilter'
+    
+    @metaArrayWrapper
+    def processData(self, data):
+        data[1:] += data[:-1]
+        return data
+
+
+class Detrend(CtrlNode):
+    """Removes linear trend from the data"""
+    nodeName = 'DetrendFilter'
+    
+    @metaArrayWrapper
+    def processData(self, data):
+        try:
+            from scipy.signal import detrend
+        except ImportError:
+            raise Exception("DetrendFilter node requires the package scipy.signal.")
+        return detrend(data)
+
+class RemoveBaseline(PlottingCtrlNode):
+    """Remove an arbitrary, graphically defined baseline from the data."""
+    nodeName = 'RemoveBaseline'
+    
+    def __init__(self, name):
+        ## define inputs and outputs (one output needs to be a plot)
+        PlottingCtrlNode.__init__(self, name)
+        self.line = PolyLineROI([[0,0],[1,0]])
+        self.line.sigRegionChanged.connect(self.changed)
+        
+        ## create a PolyLineROI, add it to a plot -- actually, I think we want to do this after the node is connected to a plot (look at EventDetection.ThresholdEvents node for ideas), and possible after there is data. We will need to update the end positions of the line each time the input data changes
+        #self.line = None ## will become a PolyLineROI
+        
+    def connectToPlot(self, node):
+        """Define what happens when the node is connected to a plot"""
+
+        if node.plot is None:
+            return
+        node.getPlot().addItem(self.line)
+       
+    def disconnectFromPlot(self, plot):
+        """Define what happens when the node is disconnected from a plot"""
+        plot.removeItem(self.line)    
+    
+    def processData(self, data):
+        ## get array of baseline (from PolyLineROI)
+        h0 = self.line.getHandles()[0]
+        h1 = self.line.getHandles()[-1]
+        
+        timeVals = data.xvals(0)
+        h0.setPos(timeVals[0], h0.pos()[1])
+        h1.setPos(timeVals[-1], h1.pos()[1])      
+        
+        pts = self.line.listPoints() ## lists line handles in same coordinates as data
+        pts, indices = self.adjustXPositions(pts, timeVals) ## maxe sure x positions match x positions of data points
+        
+        ## construct an array that represents the baseline
+        arr = np.zeros(len(data), dtype=float)
+        n = 1
+        arr[0] = pts[0].y()
+        for i in range(len(pts)-1):
+            x1 = pts[i].x()
+            x2 = pts[i+1].x()
+            y1 = pts[i].y()
+            y2 = pts[i+1].y()
+            m = (y2-y1)/(x2-x1)
+            b = y1
+            
+            times = timeVals[(timeVals > x1)*(timeVals <= x2)]
+            arr[n:n+len(times)] = (m*(times-times[0]))+b
+            n += len(times)
+                
+        return data - arr ## subract baseline from data
+        
+    def adjustXPositions(self, pts, data):
+        """Return a list of Point() where the x position is set to the nearest x value in *data* for each point in *pts*."""
+        points = []
+        timeIndices = []
+        for p in pts:
+            x = np.argwhere(abs(data - p.x()) == abs(data - p.x()).min())
+            points.append(Point(data[x], p.y()))
+            timeIndices.append(x)
+            
+        return points, timeIndices
+
+
+
+class AdaptiveDetrend(CtrlNode):
+    """Removes baseline from data, ignoring anomalous events"""
+    nodeName = 'AdaptiveDetrend'
+    uiTemplate = [
+        ('threshold', 'doubleSpin', {'value': 3.0, 'min': 0, 'max': 1000000})
+    ]
+    
+    def processData(self, data):
+        return functions.adaptiveDetrend(data, threshold=self.ctrls['threshold'].value())
+
+class HistogramDetrend(CtrlNode):
+    """Removes baseline from data by computing mode (from histogram) of beginning and end of data."""
+    nodeName = 'HistogramDetrend'
+    uiTemplate = [
+        ('windowSize', 'intSpin', {'value': 500, 'min': 10, 'max': 1000000, 'suffix': 'pts'}),
+        ('numBins', 'intSpin', {'value': 50, 'min': 3, 'max': 1000000}),
+        ('offsetOnly', 'check', {'checked': False}),
+    ]
+    
+    def processData(self, data):
+        s = self.stateGroup.state()
+        #ws = self.ctrls['windowSize'].value()
+        #bn = self.ctrls['numBins'].value()
+        #offset = self.ctrls['offsetOnly'].checked()
+        return functions.histogramDetrend(data, window=s['windowSize'], bins=s['numBins'], offsetOnly=s['offsetOnly'])
+
+
+    
+class RemovePeriodic(CtrlNode):
+    nodeName = 'RemovePeriodic'
+    uiTemplate = [
+        #('windowSize', 'intSpin', {'value': 500, 'min': 10, 'max': 1000000, 'suffix': 'pts'}),
+        #('numBins', 'intSpin', {'value': 50, 'min': 3, 'max': 1000000})
+        ('f0', 'spin', {'value': 60, 'suffix': 'Hz', 'siPrefix': True, 'min': 0, 'max': None}),
+        ('harmonics', 'intSpin', {'value': 30, 'min': 0}),
+        ('samples', 'intSpin', {'value': 1, 'min': 1}),
+    ]
+
+    def processData(self, data):
+        times = data.xvals('Time')
+        dt = times[1]-times[0]
+        
+        data1 = data.asarray()
+        ft = np.fft.fft(data1)
+        
+        ## determine frequencies in fft data
+        df = 1.0 / (len(data1) * dt)
+        freqs = np.linspace(0.0, (len(ft)-1) * df, len(ft))
+        
+        ## flatten spikes at f0 and harmonics
+        f0 = self.ctrls['f0'].value()
+        for i in xrange(1, self.ctrls['harmonics'].value()+2):
+            f = f0 * i # target frequency
+            
+            ## determine index range to check for this frequency
+            ind1 = int(np.floor(f / df))
+            ind2 = int(np.ceil(f / df)) + (self.ctrls['samples'].value()-1)
+            if ind1 > len(ft)/2.:
+                break
+            mag = (abs(ft[ind1-1]) + abs(ft[ind2+1])) * 0.5
+            for j in range(ind1, ind2+1):
+                phase = np.angle(ft[j])   ## Must preserve the phase of each point, otherwise any transients in the trace might lead to large artifacts.
+                re = mag * np.cos(phase)
+                im = mag * np.sin(phase)
+                ft[j] = re + im*1j
+                ft[len(ft)-j] = re - im*1j
+                
+        data2 = np.fft.ifft(ft).real
+        
+        ma = metaarray.MetaArray(data2, info=data.infoCopy())
+        return ma
+        
+        
+        
diff --git a/libs/pyqtgraph/flowchart/library/Operators.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/library/Operators.py
similarity index 100%
rename from libs/pyqtgraph/flowchart/library/Operators.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/library/Operators.py
diff --git a/libs/pyqtgraph/flowchart/library/__init__.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/library/__init__.py
similarity index 100%
rename from libs/pyqtgraph/flowchart/library/__init__.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/library/__init__.py
diff --git a/libs/pyqtgraph/flowchart/library/common.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/library/common.py
similarity index 100%
rename from libs/pyqtgraph/flowchart/library/common.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/library/common.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/library/functions.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/library/functions.py
new file mode 100644
index 00000000..cb7fb41a
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/flowchart/library/functions.py
@@ -0,0 +1,357 @@
+import numpy as np
+from ...metaarray import MetaArray
+from ...python2_3 import basestring, xrange
+
+
+def downsample(data, n, axis=0, xvals='subsample'):
+    """Downsample by averaging points together across axis.
+    If multiple axes are specified, runs once per axis.
+    If a metaArray is given, then the axis values can be either subsampled
+    or downsampled to match.
+    """
+    ma = None
+    if (hasattr(data, 'implements') and data.implements('MetaArray')):
+        ma = data
+        data = data.view(np.ndarray)
+        
+    
+    if hasattr(axis, '__len__'):
+        if not hasattr(n, '__len__'):
+            n = [n]*len(axis)
+        for i in range(len(axis)):
+            data = downsample(data, n[i], axis[i])
+        return data
+    
+    nPts = int(data.shape[axis] / n)
+    s = list(data.shape)
+    s[axis] = nPts
+    s.insert(axis+1, n)
+    sl = [slice(None)] * data.ndim
+    sl[axis] = slice(0, nPts*n)
+    d1 = data[tuple(sl)]
+    #print d1.shape, s
+    d1.shape = tuple(s)
+    d2 = d1.mean(axis+1)
+    
+    if ma is None:
+        return d2
+    else:
+        info = ma.infoCopy()
+        if 'values' in info[axis]:
+            if xvals == 'subsample':
+                info[axis]['values'] = info[axis]['values'][::n][:nPts]
+            elif xvals == 'downsample':
+                info[axis]['values'] = downsample(info[axis]['values'], n)
+        return MetaArray(d2, info=info)
+
+
+def applyFilter(data, b, a, padding=100, bidir=True):
+    """Apply a linear filter with coefficients a, b. Optionally pad the data before filtering
+    and/or run the filter in both directions."""
+    try:
+        import scipy.signal
+    except ImportError:
+        raise Exception("applyFilter() requires the package scipy.signal.")
+    
+    d1 = data.view(np.ndarray)
+    
+    if padding > 0:
+        d1 = np.hstack([d1[:padding], d1, d1[-padding:]])
+    
+    if bidir:
+        d1 = scipy.signal.lfilter(b, a, scipy.signal.lfilter(b, a, d1)[::-1])[::-1]
+    else:
+        d1 = scipy.signal.lfilter(b, a, d1)
+    
+    if padding > 0:
+        d1 = d1[padding:-padding]
+        
+    if (hasattr(data, 'implements') and data.implements('MetaArray')):
+        return MetaArray(d1, info=data.infoCopy())
+    else:
+        return d1
+    
+def besselFilter(data, cutoff, order=1, dt=None, btype='low', bidir=True):
+    """return data passed through bessel filter"""
+    try:
+        import scipy.signal
+    except ImportError:
+        raise Exception("besselFilter() requires the package scipy.signal.")
+    
+    if dt is None:
+        try:
+            tvals = data.xvals('Time')
+            dt = (tvals[-1]-tvals[0]) / (len(tvals)-1)
+        except:
+            dt = 1.0
+    
+    b,a = scipy.signal.bessel(order, cutoff * dt, btype=btype) 
+    
+    return applyFilter(data, b, a, bidir=bidir)
+    #base = data.mean()
+    #d1 = scipy.signal.lfilter(b, a, data.view(ndarray)-base) + base
+    #if (hasattr(data, 'implements') and data.implements('MetaArray')):
+        #return MetaArray(d1, info=data.infoCopy())
+    #return d1
+
+def butterworthFilter(data, wPass, wStop=None, gPass=2.0, gStop=20.0, order=1, dt=None, btype='low', bidir=True):
+    """return data passed through bessel filter"""
+    try:
+        import scipy.signal
+    except ImportError:
+        raise Exception("butterworthFilter() requires the package scipy.signal.")
+    
+    if dt is None:
+        try:
+            tvals = data.xvals('Time')
+            dt = (tvals[-1]-tvals[0]) / (len(tvals)-1)
+        except:
+            dt = 1.0
+    
+    if wStop is None:
+        wStop = wPass * 2.0
+    ord, Wn = scipy.signal.buttord(wPass*dt*2., wStop*dt*2., gPass, gStop)
+    #print "butterworth ord %f   Wn %f   c %f   sc %f" % (ord, Wn, cutoff, stopCutoff)
+    b,a = scipy.signal.butter(ord, Wn, btype=btype) 
+    
+    return applyFilter(data, b, a, bidir=bidir)
+
+
+def rollingSum(data, n):
+    d1 = data.copy()
+    d1[1:] += d1[:-1]  # integrate
+    d2 = np.empty(len(d1) - n + 1, dtype=data.dtype)
+    d2[0] = d1[n-1]  # copy first point
+    d2[1:] = d1[n:] - d1[:-n]  # subtract
+    return d2
+
+
+def mode(data, bins=None):
+    """Returns location max value from histogram."""
+    if bins is None:
+        bins = int(len(data)/10.)
+        if bins < 2:
+            bins = 2
+    y, x = np.histogram(data, bins=bins)
+    ind = np.argmax(y)
+    mode = 0.5 * (x[ind] + x[ind+1])
+    return mode
+    
+def modeFilter(data, window=500, step=None, bins=None):
+    """Filter based on histogram-based mode function"""
+    d1 = data.view(np.ndarray)
+    vals = []
+    l2 = int(window/2.)
+    if step is None:
+        step = l2
+    i = 0
+    while True:
+        if i > len(data)-step:
+            break
+        vals.append(mode(d1[i:i+window], bins))
+        i += step
+            
+    chunks = [np.linspace(vals[0], vals[0], l2)]
+    for i in range(len(vals)-1):
+        chunks.append(np.linspace(vals[i], vals[i+1], step))
+    remain = len(data) - step*(len(vals)-1) - l2
+    chunks.append(np.linspace(vals[-1], vals[-1], remain))
+    d2 = np.hstack(chunks)
+    
+    if (hasattr(data, 'implements') and data.implements('MetaArray')):
+        return MetaArray(d2, info=data.infoCopy())
+    return d2
+
+def denoise(data, radius=2, threshold=4):
+    """Very simple noise removal function. Compares a point to surrounding points,
+    replaces with nearby values if the difference is too large."""
+    
+    
+    r2 = radius * 2
+    d1 = data.view(np.ndarray)
+    d2 = d1[radius:] - d1[:-radius] #a derivative
+    #d3 = data[r2:] - data[:-r2]
+    #d4 = d2 - d3
+    stdev = d2.std()
+    #print "denoise: stdev of derivative:", stdev
+    mask1 = d2 > stdev*threshold #where derivative is large and positive
+    mask2 = d2 < -stdev*threshold #where derivative is large and negative
+    maskpos = mask1[:-radius] * mask2[radius:] #both need to be true
+    maskneg = mask1[radius:] * mask2[:-radius]
+    mask = maskpos + maskneg
+    d5 = np.where(mask, d1[:-r2], d1[radius:-radius]) #where both are true replace the value with the value from 2 points before
+    d6 = np.empty(d1.shape, dtype=d1.dtype) #add points back to the ends
+    d6[radius:-radius] = d5
+    d6[:radius] = d1[:radius]
+    d6[-radius:] = d1[-radius:]
+    
+    if (hasattr(data, 'implements') and data.implements('MetaArray')):
+        return MetaArray(d6, info=data.infoCopy())
+    return d6
+
+def adaptiveDetrend(data, x=None, threshold=3.0):
+    """Return the signal with baseline removed. Discards outliers from baseline measurement."""
+    try:
+        import scipy.signal
+    except ImportError:
+        raise Exception("adaptiveDetrend() requires the package scipy.signal.")
+    
+    if x is None:
+        x = data.xvals(0)
+    
+    d = data.view(np.ndarray)
+    
+    d2 = scipy.signal.detrend(d)
+    
+    stdev = d2.std()
+    mask = abs(d2) < stdev*threshold
+    #d3 = where(mask, 0, d2)
+    #d4 = d2 - lowPass(d3, cutoffs[1], dt=dt)
+    
+    lr = scipy.stats.linregress(x[mask], d[mask])
+    base = lr[1] + lr[0]*x
+    d4 = d - base
+    
+    if (hasattr(data, 'implements') and data.implements('MetaArray')):
+        return MetaArray(d4, info=data.infoCopy())
+    return d4
+    
+
+def histogramDetrend(data, window=500, bins=50, threshold=3.0, offsetOnly=False):
+    """Linear detrend. Works by finding the most common value at the beginning and end of a trace, excluding outliers.
+    If offsetOnly is True, then only the offset from the beginning of the trace is subtracted.
+    """
+    
+    d1 = data.view(np.ndarray)
+    d2 = [d1[:window], d1[-window:]]
+    v = [0, 0]
+    for i in [0, 1]:
+        d3 = d2[i]
+        stdev = d3.std()
+        mask = abs(d3-np.median(d3)) < stdev*threshold
+        d4 = d3[mask]
+        y, x = np.histogram(d4, bins=bins)
+        ind = np.argmax(y)
+        v[i] = 0.5 * (x[ind] + x[ind+1])
+        
+    if offsetOnly:
+        d3 = data.view(np.ndarray) - v[0]
+    else:
+        base = np.linspace(v[0], v[1], len(data))
+        d3 = data.view(np.ndarray) - base
+    
+    if (hasattr(data, 'implements') and data.implements('MetaArray')):
+        return MetaArray(d3, info=data.infoCopy())
+    return d3
+    
+def concatenateColumns(data):
+    """Returns a single record array with columns taken from the elements in data. 
+    data should be a list of elements, which can be either record arrays or tuples (name, type, data)
+    """
+    
+    ## first determine dtype
+    dtype = []
+    names = set()
+    maxLen = 0
+    for element in data:
+        if isinstance(element, np.ndarray):
+            ## use existing columns
+            for i in range(len(element.dtype)):
+                name = element.dtype.names[i]
+                dtype.append((name, element.dtype[i]))
+            maxLen = max(maxLen, len(element))
+        else:
+            name, type, d = element
+            if type is None:
+                type = suggestDType(d)
+            dtype.append((name, type))
+            if isinstance(d, list) or isinstance(d, np.ndarray):
+                maxLen = max(maxLen, len(d))
+        if name in names:
+            raise Exception('Name "%s" repeated' % name)
+        names.add(name)
+            
+            
+    
+    ## create empty array
+    out = np.empty(maxLen, dtype)
+    
+    ## fill columns
+    for element in data:
+        if isinstance(element, np.ndarray):
+            for i in range(len(element.dtype)):
+                name = element.dtype.names[i]
+                try:
+                    out[name] = element[name]
+                except:
+                    print("Column:", name)
+                    print("Input shape:", element.shape, element.dtype)
+                    print("Output shape:", out.shape, out.dtype)
+                    raise
+        else:
+            name, type, d = element
+            out[name] = d
+            
+    return out
+    
+def suggestDType(x):
+    """Return a suitable dtype for x"""
+    if isinstance(x, list) or isinstance(x, tuple):
+        if len(x) == 0:
+            raise Exception('can not determine dtype for empty list')
+        x = x[0]
+        
+    if hasattr(x, 'dtype'):
+        return x.dtype
+    elif isinstance(x, float):
+        return float
+    elif isinstance(x, int):
+        return int
+    #elif isinstance(x, basestring):  ## don't try to guess correct string length; use object instead.
+        #return '<U%d' % len(x)
+    else:
+        return object
+
+def removePeriodic(data, f0=60.0, dt=None, harmonics=10, samples=4):
+    if (hasattr(data, 'implements') and data.implements('MetaArray')):
+        data1 = data.asarray()
+        if dt is None:
+            times = data.xvals('Time')
+            dt = times[1]-times[0]
+    else:
+        data1 = data
+        if dt is None:
+            raise Exception('Must specify dt for this data')
+    
+    ft = np.fft.fft(data1)
+    
+    ## determine frequencies in fft data
+    df = 1.0 / (len(data1) * dt)
+    freqs = np.linspace(0.0, (len(ft)-1) * df, len(ft))
+    
+    ## flatten spikes at f0 and harmonics
+    for i in xrange(1, harmonics + 2):
+        f = f0 * i # target frequency
+        
+        ## determine index range to check for this frequency
+        ind1 = int(np.floor(f / df))
+        ind2 = int(np.ceil(f / df)) + (samples-1)
+        if ind1 > len(ft)/2.:
+            break
+        mag = (abs(ft[ind1-1]) + abs(ft[ind2+1])) * 0.5
+        for j in range(ind1, ind2+1):
+            phase = np.angle(ft[j])   ## Must preserve the phase of each point, otherwise any transients in the trace might lead to large artifacts.
+            re = mag * np.cos(phase)
+            im = mag * np.sin(phase)
+            ft[j] = re + im*1j
+            ft[len(ft)-j] = re - im*1j
+            
+    data2 = np.fft.ifft(ft).real
+    
+    if (hasattr(data, 'implements') and data.implements('MetaArray')):
+        return metaarray.MetaArray(data2, info=data.infoCopy())
+    else:
+        return data2
+    
+    
+    
\ No newline at end of file
diff --git a/libs/pyqtgraph/frozenSupport.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/frozenSupport.py
similarity index 100%
rename from libs/pyqtgraph/frozenSupport.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/frozenSupport.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/functions.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/functions.py
new file mode 100644
index 00000000..d79c350f
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/functions.py
@@ -0,0 +1,2324 @@
+# -*- coding: utf-8 -*-
+"""
+functions.py -  Miscellaneous functions with no other home
+Copyright 2010  Luke Campagnola
+Distributed under MIT/X11 license. See license.txt for more infomation.
+"""
+
+from __future__ import division
+import warnings
+import numpy as np
+import decimal, re
+import ctypes
+import sys, struct
+from .python2_3 import asUnicode, basestring
+from .Qt import QtGui, QtCore, USE_PYSIDE
+from . import getConfigOption, setConfigOptions
+from . import debug
+
+
+
+Colors = {
+    'b': QtGui.QColor(0,0,255,255),
+    'g': QtGui.QColor(0,255,0,255),
+    'r': QtGui.QColor(255,0,0,255),
+    'c': QtGui.QColor(0,255,255,255),
+    'm': QtGui.QColor(255,0,255,255),
+    'y': QtGui.QColor(255,255,0,255),
+    'k': QtGui.QColor(0,0,0,255),
+    'w': QtGui.QColor(255,255,255,255),
+    'd': QtGui.QColor(150,150,150,255),
+    'l': QtGui.QColor(200,200,200,255),
+    's': QtGui.QColor(100,100,150,255),
+}  
+
+SI_PREFIXES = asUnicode('yzafpnµm kMGTPEZY')
+SI_PREFIXES_ASCII = 'yzafpnum kMGTPEZY'
+
+
+
+
+def siScale(x, minVal=1e-25, allowUnicode=True):
+    """
+    Return the recommended scale factor and SI prefix string for x.
+    
+    Example::
+    
+        siScale(0.0001)   # returns (1e6, 'μ')
+        # This indicates that the number 0.0001 is best represented as 0.0001 * 1e6 = 100 μUnits
+    """
+    
+    if isinstance(x, decimal.Decimal):
+        x = float(x)
+        
+    try:
+        if np.isnan(x) or np.isinf(x):
+            return(1, '')
+    except:
+        print(x, type(x))
+        raise
+    if abs(x) < minVal:
+        m = 0
+        x = 0
+    else:
+        m = int(np.clip(np.floor(np.log(abs(x))/np.log(1000)), -9.0, 9.0))
+    
+    if m == 0:
+        pref = ''
+    elif m < -8 or m > 8:
+        pref = 'e%d' % (m*3)
+    else:
+        if allowUnicode:
+            pref = SI_PREFIXES[m+8]
+        else:
+            pref = SI_PREFIXES_ASCII[m+8]
+    p = .001**m
+    
+    return (p, pref)    
+
+def siFormat(x, precision=3, suffix='', space=True, error=None, minVal=1e-25, allowUnicode=True):
+    """
+    Return the number x formatted in engineering notation with SI prefix.
+    
+    Example::
+        siFormat(0.0001, suffix='V')  # returns "100 μV"
+    """
+    
+    if space is True:
+        space = ' '
+    if space is False:
+        space = ''
+        
+    
+    (p, pref) = siScale(x, minVal, allowUnicode)
+    if not (len(pref) > 0 and pref[0] == 'e'):
+        pref = space + pref
+    
+    if error is None:
+        fmt = "%." + str(precision) + "g%s%s"
+        return fmt % (x*p, pref, suffix)
+    else:
+        if allowUnicode:
+            plusminus = space + asUnicode("±") + space
+        else:
+            plusminus = " +/- "
+        fmt = "%." + str(precision) + "g%s%s%s%s"
+        return fmt % (x*p, pref, suffix, plusminus, siFormat(error, precision=precision, suffix=suffix, space=space, minVal=minVal))
+    
+def siEval(s):
+    """
+    Convert a value written in SI notation to its equivalent prefixless value
+    
+    Example::
+    
+        siEval("100 μV")  # returns 0.0001
+    """
+    
+    s = asUnicode(s)
+    m = re.match(r'(-?((\d+(\.\d*)?)|(\.\d+))([eE]-?\d+)?)\s*([u' + SI_PREFIXES + r']?).*$', s)
+    if m is None:
+        raise Exception("Can't convert string '%s' to number." % s)
+    v = float(m.groups()[0])
+    p = m.groups()[6]
+    #if p not in SI_PREFIXES:
+        #raise Exception("Can't convert string '%s' to number--unknown prefix." % s)
+    if p ==  '':
+        n = 0
+    elif p == 'u':
+        n = -2
+    else:
+        n = SI_PREFIXES.index(p) - 8
+    return v * 1000**n
+    
+
+class Color(QtGui.QColor):
+    def __init__(self, *args):
+        QtGui.QColor.__init__(self, mkColor(*args))
+        
+    def glColor(self):
+        """Return (r,g,b,a) normalized for use in opengl"""
+        return (self.red()/255., self.green()/255., self.blue()/255., self.alpha()/255.)
+        
+    def __getitem__(self, ind):
+        return (self.red, self.green, self.blue, self.alpha)[ind]()
+        
+    
+def mkColor(*args):
+    """
+    Convenience function for constructing QColor from a variety of argument types. Accepted arguments are:
+    
+    ================ ================================================
+     'c'             one of: r, g, b, c, m, y, k, w                      
+     R, G, B, [A]    integers 0-255
+     (R, G, B, [A])  tuple of integers 0-255
+     float           greyscale, 0.0-1.0
+     int             see :func:`intColor() <pyqtgraph.intColor>`
+     (int, hues)     see :func:`intColor() <pyqtgraph.intColor>`
+     "RGB"           hexadecimal strings; may begin with '#'
+     "RGBA"          
+     "RRGGBB"       
+     "RRGGBBAA"     
+     QColor          QColor instance; makes a copy.
+    ================ ================================================
+    """
+    err = 'Not sure how to make a color from "%s"' % str(args)
+    if len(args) == 1:
+        if isinstance(args[0], basestring):
+            c = args[0]
+            if c[0] == '#':
+                c = c[1:]
+            if len(c) == 1:
+                try:
+                    return Colors[c]
+                except KeyError:
+                    raise Exception('No color named "%s"' % c)
+            if len(c) == 3:
+                r = int(c[0]*2, 16)
+                g = int(c[1]*2, 16)
+                b = int(c[2]*2, 16)
+                a = 255
+            elif len(c) == 4:
+                r = int(c[0]*2, 16)
+                g = int(c[1]*2, 16)
+                b = int(c[2]*2, 16)
+                a = int(c[3]*2, 16)
+            elif len(c) == 6:
+                r = int(c[0:2], 16)
+                g = int(c[2:4], 16)
+                b = int(c[4:6], 16)
+                a = 255
+            elif len(c) == 8:
+                r = int(c[0:2], 16)
+                g = int(c[2:4], 16)
+                b = int(c[4:6], 16)
+                a = int(c[6:8], 16)
+        elif isinstance(args[0], QtGui.QColor):
+            return QtGui.QColor(args[0])
+        elif isinstance(args[0], float):
+            r = g = b = int(args[0] * 255)
+            a = 255
+        elif hasattr(args[0], '__len__'):
+            if len(args[0]) == 3:
+                (r, g, b) = args[0]
+                a = 255
+            elif len(args[0]) == 4:
+                (r, g, b, a) = args[0]
+            elif len(args[0]) == 2:
+                return intColor(*args[0])
+            else:
+                raise Exception(err)
+        elif type(args[0]) == int:
+            return intColor(args[0])
+        else:
+            raise Exception(err)
+    elif len(args) == 3:
+        (r, g, b) = args
+        a = 255
+    elif len(args) == 4:
+        (r, g, b, a) = args
+    else:
+        raise Exception(err)
+    
+    args = [r,g,b,a]
+    args = [0 if np.isnan(a) or np.isinf(a) else a for a in args]
+    args = list(map(int, args))
+    return QtGui.QColor(*args)
+
+
+def mkBrush(*args, **kwds):
+    """
+    | Convenience function for constructing Brush.
+    | This function always constructs a solid brush and accepts the same arguments as :func:`mkColor() <pyqtgraph.mkColor>`
+    | Calling mkBrush(None) returns an invisible brush.
+    """
+    if 'color' in kwds:
+        color = kwds['color']
+    elif len(args) == 1:
+        arg = args[0]
+        if arg is None:
+            return QtGui.QBrush(QtCore.Qt.NoBrush)
+        elif isinstance(arg, QtGui.QBrush):
+            return QtGui.QBrush(arg)
+        else:
+            color = arg
+    elif len(args) > 1:
+        color = args
+    return QtGui.QBrush(mkColor(color))
+
+
+def mkPen(*args, **kargs):
+    """
+    Convenience function for constructing QPen. 
+    
+    Examples::
+    
+        mkPen(color)
+        mkPen(color, width=2)
+        mkPen(cosmetic=False, width=4.5, color='r')
+        mkPen({'color': "FF0", width: 2})
+        mkPen(None)   # (no pen)
+    
+    In these examples, *color* may be replaced with any arguments accepted by :func:`mkColor() <pyqtgraph.mkColor>`    """
+    
+    color = kargs.get('color', None)
+    width = kargs.get('width', 1)
+    style = kargs.get('style', None)
+    dash = kargs.get('dash', None)
+    cosmetic = kargs.get('cosmetic', True)
+    hsv = kargs.get('hsv', None)
+    
+    if len(args) == 1:
+        arg = args[0]
+        if isinstance(arg, dict):
+            return mkPen(**arg)
+        if isinstance(arg, QtGui.QPen):
+            return QtGui.QPen(arg)  ## return a copy of this pen
+        elif arg is None:
+            style = QtCore.Qt.NoPen
+        else:
+            color = arg
+    if len(args) > 1:
+        color = args
+        
+    if color is None:
+        color = mkColor('l')
+    if hsv is not None:
+        color = hsvColor(*hsv)
+    else:
+        color = mkColor(color)
+        
+    pen = QtGui.QPen(QtGui.QBrush(color), width)
+    pen.setCosmetic(cosmetic)
+    if style is not None:
+        pen.setStyle(style)
+    if dash is not None:
+        pen.setDashPattern(dash)
+    return pen
+
+
+def hsvColor(hue, sat=1.0, val=1.0, alpha=1.0):
+    """Generate a QColor from HSVa values. (all arguments are float 0.0-1.0)"""
+    c = QtGui.QColor()
+    c.setHsvF(hue, sat, val, alpha)
+    return c
+
+    
+def colorTuple(c):
+    """Return a tuple (R,G,B,A) from a QColor"""
+    return (c.red(), c.green(), c.blue(), c.alpha())
+
+
+def colorStr(c):
+    """Generate a hex string code from a QColor"""
+    return ('%02x'*4) % colorTuple(c)
+
+
+def intColor(index, hues=9, values=1, maxValue=255, minValue=150, maxHue=360, minHue=0, sat=255, alpha=255, **kargs):
+    """
+    Creates a QColor from a single index. Useful for stepping through a predefined list of colors.
+    
+    The argument *index* determines which color from the set will be returned. All other arguments determine what the set of predefined colors will be
+     
+    Colors are chosen by cycling across hues while varying the value (brightness). 
+    By default, this selects from a list of 9 hues."""
+    hues = int(hues)
+    values = int(values)
+    ind = int(index) % (hues * values)
+    indh = ind % hues
+    indv = ind / hues
+    if values > 1:
+        v = minValue + indv * ((maxValue-minValue) / (values-1))
+    else:
+        v = maxValue
+    h = minHue + (indh * (maxHue-minHue)) / hues
+    
+    c = QtGui.QColor()
+    c.setHsv(h, sat, v)
+    c.setAlpha(alpha)
+    return c
+
+
+def glColor(*args, **kargs):
+    """
+    Convert a color to OpenGL color format (r,g,b,a) floats 0.0-1.0
+    Accepts same arguments as :func:`mkColor <pyqtgraph.mkColor>`.
+    """
+    c = mkColor(*args, **kargs)
+    return (c.red()/255., c.green()/255., c.blue()/255., c.alpha()/255.)
+
+    
+
+def makeArrowPath(headLen=20, tipAngle=20, tailLen=20, tailWidth=3, baseAngle=0):
+    """
+    Construct a path outlining an arrow with the given dimensions.
+    The arrow points in the -x direction with tip positioned at 0,0.
+    If *tipAngle* is supplied (in degrees), it overrides *headWidth*.
+    If *tailLen* is None, no tail will be drawn.
+    """
+    headWidth = headLen * np.tan(tipAngle * 0.5 * np.pi/180.)
+    path = QtGui.QPainterPath()
+    path.moveTo(0,0)
+    path.lineTo(headLen, -headWidth)
+    if tailLen is None:
+        innerY = headLen - headWidth * np.tan(baseAngle*np.pi/180.)
+        path.lineTo(innerY, 0)
+    else:
+        tailWidth *= 0.5
+        innerY = headLen - (headWidth-tailWidth) * np.tan(baseAngle*np.pi/180.)
+        path.lineTo(innerY, -tailWidth)
+        path.lineTo(headLen + tailLen, -tailWidth)
+        path.lineTo(headLen + tailLen, tailWidth)
+        path.lineTo(innerY, tailWidth)
+    path.lineTo(headLen, headWidth)
+    path.lineTo(0,0)
+    return path
+    
+    
+def eq(a, b):
+    """The great missing equivalence function: Guaranteed evaluation to a single bool value."""
+    if a is b:
+        return True
+        
+    try:
+        with warnings.catch_warnings(module=np):  # ignore numpy futurewarning (numpy v. 1.10)
+            e = a==b
+    except ValueError:
+        return False
+    except AttributeError: 
+        return False
+    except:
+        print('failed to evaluate equivalence for:')
+        print("  a:", str(type(a)), str(a))
+        print("  b:", str(type(b)), str(b))
+        raise
+    t = type(e)
+    if t is bool:
+        return e
+    elif t is np.bool_:
+        return bool(e)
+    elif isinstance(e, np.ndarray) or (hasattr(e, 'implements') and e.implements('MetaArray')):
+        try:   ## disaster: if a is an empty array and b is not, then e.all() is True
+            if a.shape != b.shape:
+                return False
+        except:
+            return False
+        if (hasattr(e, 'implements') and e.implements('MetaArray')):
+            return e.asarray().all()
+        else:
+            return e.all()
+    else:
+        raise Exception("== operator returned type %s" % str(type(e)))
+
+    
+def affineSlice(data, shape, origin, vectors, axes, order=1, returnCoords=False, **kargs):
+    """
+    Take a slice of any orientation through an array. This is useful for extracting sections of multi-dimensional arrays such as MRI images for viewing as 1D or 2D data.
+    
+    The slicing axes are aribtrary; they do not need to be orthogonal to the original data or even to each other. It is possible to use this function to extract arbitrary linear, rectangular, or parallelepiped shapes from within larger datasets. The original data is interpolated onto a new array of coordinates using scipy.ndimage.map_coordinates if it is available (see the scipy documentation for more information about this). If scipy is not available, then a slower implementation of map_coordinates is used.
+    
+    For a graphical interface to this function, see :func:`ROI.getArrayRegion <pyqtgraph.ROI.getArrayRegion>`
+    
+    ==============  ====================================================================================================
+    **Arguments:**
+    *data*          (ndarray) the original dataset
+    *shape*         the shape of the slice to take (Note the return value may have more dimensions than len(shape))
+    *origin*        the location in the original dataset that will become the origin of the sliced data.
+    *vectors*       list of unit vectors which point in the direction of the slice axes. Each vector must have the same 
+                    length as *axes*. If the vectors are not unit length, the result will be scaled relative to the 
+                    original data. If the vectors are not orthogonal, the result will be sheared relative to the 
+                    original data.
+    *axes*          The axes in the original dataset which correspond to the slice *vectors*
+    *order*         The order of spline interpolation. Default is 1 (linear). See scipy.ndimage.map_coordinates
+                    for more information.
+    *returnCoords*  If True, return a tuple (result, coords) where coords is the array of coordinates used to select
+                    values from the original dataset.
+    *All extra keyword arguments are passed to scipy.ndimage.map_coordinates.*
+    --------------------------------------------------------------------------------------------------------------------
+    ==============  ====================================================================================================
+    
+    Note the following must be true: 
+        
+        | len(shape) == len(vectors) 
+        | len(origin) == len(axes) == len(vectors[i])
+        
+    Example: start with a 4D fMRI data set, take a diagonal-planar slice out of the last 3 axes
+        
+        * data = array with dims (time, x, y, z) = (100, 40, 40, 40)
+        * The plane to pull out is perpendicular to the vector (x,y,z) = (1,1,1) 
+        * The origin of the slice will be at (x,y,z) = (40, 0, 0)
+        * We will slice a 20x20 plane from each timepoint, giving a final shape (100, 20, 20)
+        
+    The call for this example would look like::
+        
+        affineSlice(data, shape=(20,20), origin=(40,0,0), vectors=((-1, 1, 0), (-1, 0, 1)), axes=(1,2,3))
+    
+    """
+    try:
+        import scipy.ndimage
+        have_scipy = True
+    except ImportError:
+        have_scipy = False
+    have_scipy = False
+
+    # sanity check
+    if len(shape) != len(vectors):
+        raise Exception("shape and vectors must have same length.")
+    if len(origin) != len(axes):
+        raise Exception("origin and axes must have same length.")
+    for v in vectors:
+        if len(v) != len(axes):
+            raise Exception("each vector must be same length as axes.")
+        
+    shape = list(map(np.ceil, shape))
+
+    ## transpose data so slice axes come first
+    trAx = list(range(data.ndim))
+    for x in axes:
+        trAx.remove(x)
+    tr1 = tuple(axes) + tuple(trAx)
+    data = data.transpose(tr1)
+    #print "tr1:", tr1
+    ## dims are now [(slice axes), (other axes)]
+    
+    ## make sure vectors are arrays
+    if not isinstance(vectors, np.ndarray):
+        vectors = np.array(vectors)
+    if not isinstance(origin, np.ndarray):
+        origin = np.array(origin)
+    origin.shape = (len(axes),) + (1,)*len(shape)
+    
+    ## Build array of sample locations. 
+    grid = np.mgrid[tuple([slice(0,x) for x in shape])]  ## mesh grid of indexes
+    x = (grid[np.newaxis,...] * vectors.transpose()[(Ellipsis,) + (np.newaxis,)*len(shape)]).sum(axis=1)  ## magic
+    x += origin
+
+    ## iterate manually over unused axes since map_coordinates won't do it for us
+    if have_scipy:
+        extraShape = data.shape[len(axes):]
+        output = np.empty(tuple(shape) + extraShape, dtype=data.dtype)
+        for inds in np.ndindex(*extraShape):
+            ind = (Ellipsis,) + inds
+            output[ind] = scipy.ndimage.map_coordinates(data[ind], x, order=order, **kargs)
+    else:
+        # map_coordinates expects the indexes as the first axis, whereas
+        # interpolateArray expects indexes at the last axis. 
+        tr = tuple(range(1,x.ndim)) + (0,)
+        output = interpolateArray(data, x.transpose(tr))
+    
+    tr = list(range(output.ndim))
+    trb = []
+    for i in range(min(axes)):
+        ind = tr1.index(i) + (len(shape)-len(axes))
+        tr.remove(ind)
+        trb.append(ind)
+    tr2 = tuple(trb+tr)
+
+    ## Untranspose array before returning
+    output = output.transpose(tr2)
+    if returnCoords:
+        return (output, x)
+    else:
+        return output
+
+def interpolateArray(data, x, default=0.0):
+    """
+    N-dimensional interpolation similar to scipy.ndimage.map_coordinates.
+    
+    This function returns linearly-interpolated values sampled from a regular
+    grid of data. 
+    
+    *data* is an array of any shape containing the values to be interpolated.
+    *x* is an array with (shape[-1] <= data.ndim) containing the locations
+        within *data* to interpolate. 
+    
+    Returns array of shape (x.shape[:-1] + data.shape[x.shape[-1]:])
+    
+    For example, assume we have the following 2D image data::
+    
+        >>> data = np.array([[1,   2,   4  ],
+                             [10,  20,  40 ],
+                             [100, 200, 400]])
+        
+    To compute a single interpolated point from this data::
+        
+        >>> x = np.array([(0.5, 0.5)])
+        >>> interpolateArray(data, x)
+        array([ 8.25])
+        
+    To compute a 1D list of interpolated locations:: 
+        
+        >>> x = np.array([(0.5, 0.5),
+                          (1.0, 1.0),
+                          (1.0, 2.0),
+                          (1.5, 0.0)])
+        >>> interpolateArray(data, x)
+        array([  8.25,  20.  ,  40.  ,  55.  ])
+        
+    To compute a 2D array of interpolated locations::
+    
+        >>> x = np.array([[(0.5, 0.5), (1.0, 2.0)],
+                          [(1.0, 1.0), (1.5, 0.0)]])
+        >>> interpolateArray(data, x)
+        array([[  8.25,  40.  ],
+               [ 20.  ,  55.  ]])
+               
+    ..and so on. The *x* argument may have any shape as long as 
+    ```x.shape[-1] <= data.ndim```. In the case that 
+    ```x.shape[-1] < data.ndim```, then the remaining axes are simply 
+    broadcasted as usual. For example, we can interpolate one location
+    from an entire row of the data::
+    
+        >>> x = np.array([[0.5]])
+        >>> interpolateArray(data, x)
+        array([[  5.5,  11. ,  22. ]])
+
+    This is useful for interpolating from arrays of colors, vertexes, etc.
+    """
+    prof = debug.Profiler()
+    
+    nd = data.ndim
+    md = x.shape[-1]
+    if md > nd:
+        raise TypeError("x.shape[-1] must be less than or equal to data.ndim")
+
+    # First we generate arrays of indexes that are needed to 
+    # extract the data surrounding each point
+    fields = np.mgrid[(slice(0,2),) * md]
+    xmin = np.floor(x).astype(int)
+    xmax = xmin + 1
+    indexes = np.concatenate([xmin[np.newaxis, ...], xmax[np.newaxis, ...]])
+    fieldInds = []
+    totalMask = np.ones(x.shape[:-1], dtype=bool) # keep track of out-of-bound indexes
+    for ax in range(md):
+        mask = (xmin[...,ax] >= 0) & (x[...,ax] <= data.shape[ax]-1) 
+        # keep track of points that need to be set to default
+        totalMask &= mask
+        
+        # ..and keep track of indexes that are out of bounds 
+        # (note that when x[...,ax] == data.shape[ax], then xmax[...,ax] will be out
+        #  of bounds, but the interpolation will work anyway)
+        mask &= (xmax[...,ax] < data.shape[ax])
+        axisIndex = indexes[...,ax][fields[ax]]
+        axisIndex[axisIndex < 0] = 0
+        axisIndex[axisIndex >= data.shape[ax]] = 0
+        fieldInds.append(axisIndex)
+    prof()
+
+    # Get data values surrounding each requested point
+    fieldData = data[tuple(fieldInds)]
+    prof()
+    
+    ## Interpolate
+    s = np.empty((md,) + fieldData.shape, dtype=float)
+    dx = x - xmin
+    # reshape fields for arithmetic against dx
+    for ax in range(md):
+        f1 = fields[ax].reshape(fields[ax].shape + (1,)*(dx.ndim-1))
+        sax = f1 * dx[...,ax] + (1-f1) * (1-dx[...,ax])
+        sax = sax.reshape(sax.shape + (1,) * (s.ndim-1-sax.ndim))
+        s[ax] = sax
+    s = np.product(s, axis=0)
+    result = fieldData * s
+    for i in range(md):
+        result = result.sum(axis=0)
+
+    prof()
+
+    if totalMask.ndim > 0:
+        result[~totalMask] = default
+    else:
+        if totalMask is False:
+            result[:] = default
+
+    prof()
+    return result
+
+
+def subArray(data, offset, shape, stride):
+    """
+    Unpack a sub-array from *data* using the specified offset, shape, and stride.
+    
+    Note that *stride* is specified in array elements, not bytes.
+    For example, we have a 2x3 array packed in a 1D array as follows::
+    
+        data = [_, _, 00, 01, 02, _, 10, 11, 12, _]
+        
+    Then we can unpack the sub-array with this call::
+    
+        subArray(data, offset=2, shape=(2, 3), stride=(4, 1))
+        
+    ..which returns::
+    
+        [[00, 01, 02],
+         [10, 11, 12]]
+         
+    This function operates only on the first axis of *data*. So changing 
+    the input in the example above to have shape (10, 7) would cause the
+    output to have shape (2, 3, 7).
+    """
+    #data = data.flatten()
+    data = data[offset:]
+    shape = tuple(shape)
+    stride = tuple(stride)
+    extraShape = data.shape[1:]
+    #print data.shape, offset, shape, stride
+    for i in range(len(shape)):
+        mask = (slice(None),) * i + (slice(None, shape[i] * stride[i]),)
+        newShape = shape[:i+1]
+        if i < len(shape)-1:
+            newShape += (stride[i],)
+        newShape += extraShape 
+        #print i, mask, newShape
+        #print "start:\n", data.shape, data
+        data = data[mask]
+        #print "mask:\n", data.shape, data
+        data = data.reshape(newShape)
+        #print "reshape:\n", data.shape, data
+    
+    return data
+
+
+def transformToArray(tr):
+    """
+    Given a QTransform, return a 3x3 numpy array.
+    Given a QMatrix4x4, return a 4x4 numpy array.
+    
+    Example: map an array of x,y coordinates through a transform::
+    
+        ## coordinates to map are (1,5), (2,6), (3,7), and (4,8)
+        coords = np.array([[1,2,3,4], [5,6,7,8], [1,1,1,1]])  # the extra '1' coordinate is needed for translation to work
+        
+        ## Make an example transform
+        tr = QtGui.QTransform()
+        tr.translate(3,4)
+        tr.scale(2, 0.1)
+        
+        ## convert to array
+        m = pg.transformToArray()[:2]  # ignore the perspective portion of the transformation
+        
+        ## map coordinates through transform
+        mapped = np.dot(m, coords)
+    """
+    #return np.array([[tr.m11(), tr.m12(), tr.m13()],[tr.m21(), tr.m22(), tr.m23()],[tr.m31(), tr.m32(), tr.m33()]])
+    ## The order of elements given by the method names m11..m33 is misleading--
+    ## It is most common for x,y translation to occupy the positions 1,3 and 2,3 in
+    ## a transformation matrix. However, with QTransform these values appear at m31 and m32.
+    ## So the correct interpretation is transposed:
+    if isinstance(tr, QtGui.QTransform):
+        return np.array([[tr.m11(), tr.m21(), tr.m31()], [tr.m12(), tr.m22(), tr.m32()], [tr.m13(), tr.m23(), tr.m33()]])
+    elif isinstance(tr, QtGui.QMatrix4x4):
+        return np.array(tr.copyDataTo()).reshape(4,4)
+    else:
+        raise Exception("Transform argument must be either QTransform or QMatrix4x4.")
+
+def transformCoordinates(tr, coords, transpose=False):
+    """
+    Map a set of 2D or 3D coordinates through a QTransform or QMatrix4x4.
+    The shape of coords must be (2,...) or (3,...)
+    The mapping will _ignore_ any perspective transformations.
+    
+    For coordinate arrays with ndim=2, this is basically equivalent to matrix multiplication.
+    Most arrays, however, prefer to put the coordinate axis at the end (eg. shape=(...,3)). To 
+    allow this, use transpose=True.
+    
+    """
+    
+    if transpose:
+        ## move last axis to beginning. This transposition will be reversed before returning the mapped coordinates.
+        coords = coords.transpose((coords.ndim-1,) + tuple(range(0,coords.ndim-1)))
+    
+    nd = coords.shape[0]
+    if isinstance(tr, np.ndarray):
+        m = tr
+    else:
+        m = transformToArray(tr)
+        m = m[:m.shape[0]-1]  # remove perspective
+    
+    ## If coords are 3D and tr is 2D, assume no change for Z axis
+    if m.shape == (2,3) and nd == 3:
+        m2 = np.zeros((3,4))
+        m2[:2, :2] = m[:2,:2]
+        m2[:2, 3] = m[:2,2]
+        m2[2,2] = 1
+        m = m2
+    
+    ## if coords are 2D and tr is 3D, ignore Z axis
+    if m.shape == (3,4) and nd == 2:
+        m2 = np.empty((2,3))
+        m2[:,:2] = m[:2,:2]
+        m2[:,2] = m[:2,3]
+        m = m2
+    
+    ## reshape tr and coords to prepare for multiplication
+    m = m.reshape(m.shape + (1,)*(coords.ndim-1))
+    coords = coords[np.newaxis, ...]
+    
+    # separate scale/rotate and translation    
+    translate = m[:,-1]  
+    m = m[:, :-1]
+    
+    ## map coordinates and return
+    mapped = (m*coords).sum(axis=1)  ## apply scale/rotate
+    mapped += translate
+    
+    if transpose:
+        ## move first axis to end.
+        mapped = mapped.transpose(tuple(range(1,mapped.ndim)) + (0,))
+    return mapped
+    
+    
+
+    
+def solve3DTransform(points1, points2):
+    """
+    Find a 3D transformation matrix that maps points1 onto points2.
+    Points must be specified as either lists of 4 Vectors or 
+    (4, 3) arrays.
+    """
+    import numpy.linalg
+    pts = []
+    for inp in (points1, points2):
+        if isinstance(inp, np.ndarray):
+            A = np.empty((4,4), dtype=float)
+            A[:,:3] = inp[:,:3]
+            A[:,3] = 1.0
+        else:
+            A = np.array([[inp[i].x(), inp[i].y(), inp[i].z(), 1] for i in range(4)])
+        pts.append(A)
+    
+    ## solve 3 sets of linear equations to determine transformation matrix elements
+    matrix = np.zeros((4,4))
+    for i in range(3):
+        ## solve Ax = B; x is one row of the desired transformation matrix
+        matrix[i] = numpy.linalg.solve(pts[0], pts[1][:,i])  
+    
+    return matrix
+    
+def solveBilinearTransform(points1, points2):
+    """
+    Find a bilinear transformation matrix (2x4) that maps points1 onto points2.
+    Points must be specified as a list of 4 Vector, Point, QPointF, etc.
+    
+    To use this matrix to map a point [x,y]::
+    
+        mapped = np.dot(matrix, [x*y, x, y, 1])
+    """
+    import numpy.linalg
+    ## A is 4 rows (points) x 4 columns (xy, x, y, 1)
+    ## B is 4 rows (points) x 2 columns (x, y)
+    A = np.array([[points1[i].x()*points1[i].y(), points1[i].x(), points1[i].y(), 1] for i in range(4)])
+    B = np.array([[points2[i].x(), points2[i].y()] for i in range(4)])
+    
+    ## solve 2 sets of linear equations to determine transformation matrix elements
+    matrix = np.zeros((2,4))
+    for i in range(2):
+        matrix[i] = numpy.linalg.solve(A, B[:,i])  ## solve Ax = B; x is one row of the desired transformation matrix
+    
+    return matrix
+    
+def rescaleData(data, scale, offset, dtype=None, clip=None):
+    """Return data rescaled and optionally cast to a new dtype::
+    
+        data => (data-offset) * scale
+        
+    """
+    if dtype is None:
+        dtype = data.dtype
+    else:
+        dtype = np.dtype(dtype)
+    
+    try:
+        if not getConfigOption('useWeave'):
+            raise Exception('Weave is disabled; falling back to slower version.')
+        try:
+            import scipy.weave
+        except ImportError:
+            raise Exception('scipy.weave is not importable; falling back to slower version.')
+        
+        ## require native dtype when using weave
+        if not data.dtype.isnative:
+            data = data.astype(data.dtype.newbyteorder('='))
+        if not dtype.isnative:
+            weaveDtype = dtype.newbyteorder('=')
+        else:
+            weaveDtype = dtype
+        
+        newData = np.empty((data.size,), dtype=weaveDtype)
+        flat = np.ascontiguousarray(data).reshape(data.size)
+        size = data.size
+        
+        code = """
+        double sc = (double)scale;
+        double off = (double)offset;
+        for( int i=0; i<size; i++ ) {
+            newData[i] = ((double)flat[i] - off) * sc;
+        }
+        """
+        scipy.weave.inline(code, ['flat', 'newData', 'size', 'offset', 'scale'], compiler='gcc')
+        if dtype != weaveDtype:
+            newData = newData.astype(dtype)
+        data = newData.reshape(data.shape)
+    except:
+        if getConfigOption('useWeave'):
+            if getConfigOption('weaveDebug'):
+                debug.printExc("Error; disabling weave.")
+            setConfigOptions(useWeave=False)
+        
+        #p = np.poly1d([scale, -offset*scale])
+        #d2 = p(data)
+        d2 = data - float(offset)
+        d2 *= scale
+        
+        # Clip before converting dtype to avoid overflow
+        if dtype.kind in 'ui':
+            lim = np.iinfo(dtype)
+            if clip is None:
+                # don't let rescale cause integer overflow
+                d2 = np.clip(d2, lim.min, lim.max)
+            else:
+                d2 = np.clip(d2, max(clip[0], lim.min), min(clip[1], lim.max))
+        else:
+            if clip is not None:
+                d2 = np.clip(d2, *clip)
+        data = d2.astype(dtype)
+    return data
+    
+def applyLookupTable(data, lut):
+    """
+    Uses values in *data* as indexes to select values from *lut*.
+    The returned data has shape data.shape + lut.shape[1:]
+    
+    Note: color gradient lookup tables can be generated using GradientWidget.
+    """
+    if data.dtype.kind not in ('i', 'u'):
+        data = data.astype(int)
+    
+    return np.take(lut, data, axis=0, mode='clip')  
+    
+
+def makeRGBA(*args, **kwds):
+    """Equivalent to makeARGB(..., useRGBA=True)"""
+    kwds['useRGBA'] = True
+    return makeARGB(*args, **kwds)
+
+
+def makeARGB(data, lut=None, levels=None, scale=None, useRGBA=False): 
+    """ 
+    Convert an array of values into an ARGB array suitable for building QImages,
+    OpenGL textures, etc.
+    
+    Returns the ARGB array (unsigned byte) and a boolean indicating whether
+    there is alpha channel data. This is a two stage process:
+    
+        1) Rescale the data based on the values in the *levels* argument (min, max).
+        2) Determine the final output by passing the rescaled values through a
+           lookup table.
+   
+    Both stages are optional.
+    
+    ============== ==================================================================================
+    **Arguments:**
+    data           numpy array of int/float types. If 
+    levels         List [min, max]; optionally rescale data before converting through the
+                   lookup table. The data is rescaled such that min->0 and max->*scale*::
+                   
+                      rescaled = (clip(data, min, max) - min) * (*scale* / (max - min))
+                   
+                   It is also possible to use a 2D (N,2) array of values for levels. In this case,
+                   it is assumed that each pair of min,max values in the levels array should be 
+                   applied to a different subset of the input data (for example, the input data may 
+                   already have RGB values and the levels are used to independently scale each 
+                   channel). The use of this feature requires that levels.shape[0] == data.shape[-1].
+    scale          The maximum value to which data will be rescaled before being passed through the 
+                   lookup table (or returned if there is no lookup table). By default this will
+                   be set to the length of the lookup table, or 255 if no lookup table is provided.
+    lut            Optional lookup table (array with dtype=ubyte).
+                   Values in data will be converted to color by indexing directly from lut.
+                   The output data shape will be input.shape + lut.shape[1:].
+                   Lookup tables can be built using ColorMap or GradientWidget.
+    useRGBA        If True, the data is returned in RGBA order (useful for building OpenGL textures). 
+                   The default is False, which returns in ARGB order for use with QImage 
+                   (Note that 'ARGB' is a term used by the Qt documentation; the *actual* order 
+                   is BGRA).
+    ============== ==================================================================================
+    """
+    profile = debug.Profiler()
+
+    if data.ndim not in (2, 3):
+        raise TypeError("data must be 2D or 3D")
+    if data.ndim == 3 and data.shape[2] > 4:
+        raise TypeError("data.shape[2] must be <= 4")
+    
+    if lut is not None and not isinstance(lut, np.ndarray):
+        lut = np.array(lut)
+    
+    if levels is None:
+        # automatically decide levels based on data dtype
+        if data.dtype.kind == 'u':
+            levels = np.array([0, 2**(data.itemsize*8)-1])
+        elif data.dtype.kind == 'i':
+            s = 2**(data.itemsize*8 - 1)
+            levels = np.array([-s, s-1])
+        elif data.dtype.kind == 'b':
+            levels = np.array([0,1])
+        else:
+            raise Exception('levels argument is required for float input types')
+    if not isinstance(levels, np.ndarray):
+        levels = np.array(levels)
+    if levels.ndim == 1:
+        if levels.shape[0] != 2:
+            raise Exception('levels argument must have length 2')
+    elif levels.ndim == 2:
+        if lut is not None and lut.ndim > 1:
+            raise Exception('Cannot make ARGB data when both levels and lut have ndim > 2')
+        if levels.shape != (data.shape[-1], 2):
+            raise Exception('levels must have shape (data.shape[-1], 2)')
+    else:
+        raise Exception("levels argument must be 1D or 2D (got shape=%s)." % repr(levels.shape))
+
+    profile()
+
+    # Decide on maximum scaled value
+    if scale is None:
+        if lut is not None:
+            scale = lut.shape[0] - 1
+        else:
+            scale = 255.
+
+    # Decide on the dtype we want after scaling
+    if lut is None:
+        dtype = np.ubyte
+    else:
+        dtype = np.min_scalar_type(lut.shape[0]-1)
+            
+    # Apply levels if given
+    if levels is not None:
+        if isinstance(levels, np.ndarray) and levels.ndim == 2:
+            # we are going to rescale each channel independently
+            if levels.shape[0] != data.shape[-1]:
+                raise Exception("When rescaling multi-channel data, there must be the same number of levels as channels (data.shape[-1] == levels.shape[0])")
+            newData = np.empty(data.shape, dtype=int)
+            for i in range(data.shape[-1]):
+                minVal, maxVal = levels[i]
+                if minVal == maxVal:
+                    maxVal += 1e-16
+                newData[...,i] = rescaleData(data[...,i], scale/(maxVal-minVal), minVal, dtype=dtype)
+            data = newData
+        else:
+            # Apply level scaling unless it would have no effect on the data
+            minVal, maxVal = levels
+            if minVal != 0 or maxVal != scale:
+                if minVal == maxVal:
+                    maxVal += 1e-16
+                data = rescaleData(data, scale/(maxVal-minVal), minVal, dtype=dtype)
+            
+
+    profile()
+
+    # apply LUT if given
+    if lut is not None:
+        data = applyLookupTable(data, lut)
+    else:
+        if data.dtype is not np.ubyte:
+            data = np.clip(data, 0, 255).astype(np.ubyte)
+
+    profile()
+
+    # this will be the final image array
+    imgData = np.empty(data.shape[:2]+(4,), dtype=np.ubyte)
+
+    profile()
+
+    # decide channel order
+    if useRGBA:
+        order = [0,1,2,3] # array comes out RGBA
+    else:
+        order = [2,1,0,3] # for some reason, the colors line up as BGR in the final image.
+        
+    # copy data into image array
+    if data.ndim == 2:
+        # This is tempting:
+        #   imgData[..., :3] = data[..., np.newaxis]
+        # ..but it turns out this is faster:
+        for i in range(3):
+            imgData[..., i] = data
+    elif data.shape[2] == 1:
+        for i in range(3):
+            imgData[..., i] = data[..., 0]
+    else:
+        for i in range(0, data.shape[2]):
+            imgData[..., i] = data[..., order[i]] 
+        
+    profile()
+    
+    # add opaque alpha channel if needed
+    if data.ndim == 2 or data.shape[2] == 3:
+        alpha = False
+        imgData[..., 3] = 255
+    else:
+        alpha = True
+        
+    profile()
+    return imgData, alpha
+
+
+def makeQImage(imgData, alpha=None, copy=True, transpose=True):
+    """
+    Turn an ARGB array into QImage.
+    By default, the data is copied; changes to the array will not
+    be reflected in the image. The image will be given a 'data' attribute
+    pointing to the array which shares its data to prevent python
+    freeing that memory while the image is in use.
+    
+    ============== ===================================================================
+    **Arguments:**
+    imgData        Array of data to convert. Must have shape (width, height, 3 or 4) 
+                   and dtype=ubyte. The order of values in the 3rd axis must be 
+                   (b, g, r, a).
+    alpha          If True, the QImage returned will have format ARGB32. If False,
+                   the format will be RGB32. By default, _alpha_ is True if
+                   array.shape[2] == 4.
+    copy           If True, the data is copied before converting to QImage.
+                   If False, the new QImage points directly to the data in the array.
+                   Note that the array must be contiguous for this to work
+                   (see numpy.ascontiguousarray).
+    transpose      If True (the default), the array x/y axes are transposed before 
+                   creating the image. Note that Qt expects the axes to be in 
+                   (height, width) order whereas pyqtgraph usually prefers the 
+                   opposite.
+    ============== ===================================================================    
+    """
+    ## create QImage from buffer
+    profile = debug.Profiler()
+    
+    ## If we didn't explicitly specify alpha, check the array shape.
+    if alpha is None:
+        alpha = (imgData.shape[2] == 4)
+        
+    copied = False
+    if imgData.shape[2] == 3:  ## need to make alpha channel (even if alpha==False; QImage requires 32 bpp)
+        if copy is True:
+            d2 = np.empty(imgData.shape[:2] + (4,), dtype=imgData.dtype)
+            d2[:,:,:3] = imgData
+            d2[:,:,3] = 255
+            imgData = d2
+            copied = True
+        else:
+            raise Exception('Array has only 3 channels; cannot make QImage without copying.')
+    
+    if alpha:
+        imgFormat = QtGui.QImage.Format_ARGB32
+    else:
+        imgFormat = QtGui.QImage.Format_RGB32
+        
+    if transpose:
+        imgData = imgData.transpose((1, 0, 2))  ## QImage expects the row/column order to be opposite
+
+    profile()
+
+    if not imgData.flags['C_CONTIGUOUS']:
+        if copy is False:
+            extra = ' (try setting transpose=False)' if transpose else ''
+            raise Exception('Array is not contiguous; cannot make QImage without copying.'+extra)
+        imgData = np.ascontiguousarray(imgData)
+        copied = True
+        
+    if copy is True and copied is False:
+        imgData = imgData.copy()
+        
+    if USE_PYSIDE:
+        ch = ctypes.c_char.from_buffer(imgData, 0)
+        img = QtGui.QImage(ch, imgData.shape[1], imgData.shape[0], imgFormat)
+    else:
+        #addr = ctypes.addressof(ctypes.c_char.from_buffer(imgData, 0))
+        ## PyQt API for QImage changed between 4.9.3 and 4.9.6 (I don't know exactly which version it was)
+        ## So we first attempt the 4.9.6 API, then fall back to 4.9.3
+        #addr = ctypes.c_char.from_buffer(imgData, 0)
+        #try:
+            #img = QtGui.QImage(addr, imgData.shape[1], imgData.shape[0], imgFormat)
+        #except TypeError:  
+            #addr = ctypes.addressof(addr)
+            #img = QtGui.QImage(addr, imgData.shape[1], imgData.shape[0], imgFormat)
+        try:
+            img = QtGui.QImage(imgData.ctypes.data, imgData.shape[1], imgData.shape[0], imgFormat)
+        except:
+            if copy:
+                # does not leak memory, is not mutable
+                img = QtGui.QImage(buffer(imgData), imgData.shape[1], imgData.shape[0], imgFormat)
+            else:
+                # mutable, but leaks memory
+                img = QtGui.QImage(memoryview(imgData), imgData.shape[1], imgData.shape[0], imgFormat)
+                
+    img.data = imgData
+    return img
+    #try:
+        #buf = imgData.data
+    #except AttributeError:  ## happens when image data is non-contiguous
+        #buf = imgData.data
+        
+    #profiler()
+    #qimage = QtGui.QImage(buf, imgData.shape[1], imgData.shape[0], imgFormat)
+    #profiler()
+    #qimage.data = imgData
+    #return qimage
+
+def imageToArray(img, copy=False, transpose=True):
+    """
+    Convert a QImage into numpy array. The image must have format RGB32, ARGB32, or ARGB32_Premultiplied.
+    By default, the image is not copied; changes made to the array will appear in the QImage as well (beware: if 
+    the QImage is collected before the array, there may be trouble).
+    The array will have shape (width, height, (b,g,r,a)).
+    """
+    fmt = img.format()
+    ptr = img.bits()
+    if USE_PYSIDE:
+        arr = np.frombuffer(ptr, dtype=np.ubyte)
+    else:
+        ptr.setsize(img.byteCount())
+        arr = np.asarray(ptr)
+        if img.byteCount() != arr.size * arr.itemsize:
+            # Required for Python 2.6, PyQt 4.10
+            # If this works on all platforms, then there is no need to use np.asarray..
+            arr = np.frombuffer(ptr, np.ubyte, img.byteCount())
+    
+    arr = arr.reshape(img.height(), img.width(), 4)
+    if fmt == img.Format_RGB32:
+        arr[...,3] = 255
+    
+    if copy:
+        arr = arr.copy()
+        
+    if transpose:
+        return arr.transpose((1,0,2))
+    else:
+        return arr
+    
+def colorToAlpha(data, color):
+    """
+    Given an RGBA image in *data*, convert *color* to be transparent. 
+    *data* must be an array (w, h, 3 or 4) of ubyte values and *color* must be 
+    an array (3) of ubyte values.
+    This is particularly useful for use with images that have a black or white background.
+    
+    Algorithm is taken from Gimp's color-to-alpha function in plug-ins/common/colortoalpha.c
+    Credit:
+        /*
+        * Color To Alpha plug-in v1.0 by Seth Burgess, sjburges@gimp.org 1999/05/14
+        *  with algorithm by clahey
+        */
+    
+    """
+    data = data.astype(float)
+    if data.shape[-1] == 3:  ## add alpha channel if needed
+        d2 = np.empty(data.shape[:2]+(4,), dtype=data.dtype)
+        d2[...,:3] = data
+        d2[...,3] = 255
+        data = d2
+    
+    color = color.astype(float)
+    alpha = np.zeros(data.shape[:2]+(3,), dtype=float)
+    output = data.copy()
+    
+    for i in [0,1,2]:
+        d = data[...,i]
+        c = color[i]
+        mask = d > c
+        alpha[...,i][mask] = (d[mask] - c) / (255. - c)
+        imask = d < c
+        alpha[...,i][imask] = (c - d[imask]) / c
+    
+    output[...,3] = alpha.max(axis=2) * 255.
+    
+    mask = output[...,3] >= 1.0  ## avoid zero division while processing alpha channel
+    correction = 255. / output[...,3][mask]  ## increase value to compensate for decreased alpha
+    for i in [0,1,2]:
+        output[...,i][mask] = ((output[...,i][mask]-color[i]) * correction) + color[i]
+        output[...,3][mask] *= data[...,3][mask] / 255.  ## combine computed and previous alpha values
+    
+    #raise Exception()
+    return np.clip(output, 0, 255).astype(np.ubyte)
+
+def gaussianFilter(data, sigma):
+    """
+    Drop-in replacement for scipy.ndimage.gaussian_filter.
+    
+    (note: results are only approximately equal to the output of
+     gaussian_filter)
+    """
+    if np.isscalar(sigma):
+        sigma = (sigma,) * data.ndim
+        
+    baseline = data.mean()
+    filtered = data - baseline
+    for ax in range(data.ndim):
+        s = sigma[ax]
+        if s == 0:
+            continue
+        
+        # generate 1D gaussian kernel
+        ksize = int(s * 6)
+        x = np.arange(-ksize, ksize)
+        kernel = np.exp(-x**2 / (2*s**2))
+        kshape = [1,] * data.ndim
+        kshape[ax] = len(kernel)
+        kernel = kernel.reshape(kshape)
+        
+        # convolve as product of FFTs
+        shape = data.shape[ax] + ksize
+        scale = 1.0 / (abs(s) * (2*np.pi)**0.5)
+        filtered = scale * np.fft.irfft(np.fft.rfft(filtered, shape, axis=ax) * 
+                                        np.fft.rfft(kernel, shape, axis=ax), 
+                                        axis=ax)
+        
+        # clip off extra data
+        sl = [slice(None)] * data.ndim
+        sl[ax] = slice(filtered.shape[ax]-data.shape[ax],None,None)
+        filtered = filtered[sl]
+    return filtered + baseline
+    
+    
+def downsample(data, n, axis=0, xvals='subsample'):
+    """Downsample by averaging points together across axis.
+    If multiple axes are specified, runs once per axis.
+    If a metaArray is given, then the axis values can be either subsampled
+    or downsampled to match.
+    """
+    ma = None
+    if (hasattr(data, 'implements') and data.implements('MetaArray')):
+        ma = data
+        data = data.view(np.ndarray)
+        
+    
+    if hasattr(axis, '__len__'):
+        if not hasattr(n, '__len__'):
+            n = [n]*len(axis)
+        for i in range(len(axis)):
+            data = downsample(data, n[i], axis[i])
+        return data
+    
+    if n <= 1:
+        return data
+    nPts = int(data.shape[axis] / n)
+    s = list(data.shape)
+    s[axis] = nPts
+    s.insert(axis+1, n)
+    sl = [slice(None)] * data.ndim
+    sl[axis] = slice(0, nPts*n)
+    d1 = data[tuple(sl)]
+    #print d1.shape, s
+    d1.shape = tuple(s)
+    d2 = d1.mean(axis+1)
+    
+    if ma is None:
+        return d2
+    else:
+        info = ma.infoCopy()
+        if 'values' in info[axis]:
+            if xvals == 'subsample':
+                info[axis]['values'] = info[axis]['values'][::n][:nPts]
+            elif xvals == 'downsample':
+                info[axis]['values'] = downsample(info[axis]['values'], n)
+        return MetaArray(d2, info=info)
+
+
+def arrayToQPath(x, y, connect='all'):
+    """Convert an array of x,y coordinats to QPainterPath as efficiently as possible.
+    The *connect* argument may be 'all', indicating that each point should be
+    connected to the next; 'pairs', indicating that each pair of points
+    should be connected, or an array of int32 values (0 or 1) indicating
+    connections.
+    """
+
+    ## Create all vertices in path. The method used below creates a binary format so that all
+    ## vertices can be read in at once. This binary format may change in future versions of Qt,
+    ## so the original (slower) method is left here for emergencies:
+        #path.moveTo(x[0], y[0])
+        #if connect == 'all':
+            #for i in range(1, y.shape[0]):
+                #path.lineTo(x[i], y[i])
+        #elif connect == 'pairs':
+            #for i in range(1, y.shape[0]):
+                #if i%2 == 0:
+                    #path.lineTo(x[i], y[i])
+                #else:
+                    #path.moveTo(x[i], y[i])
+        #elif isinstance(connect, np.ndarray):
+            #for i in range(1, y.shape[0]):
+                #if connect[i] == 1:
+                    #path.lineTo(x[i], y[i])
+                #else:
+                    #path.moveTo(x[i], y[i])
+        #else:
+            #raise Exception('connect argument must be "all", "pairs", or array')
+
+    ## Speed this up using >> operator
+    ## Format is:
+    ##    numVerts(i4)   0(i4)
+    ##    x(f8)   y(f8)   0(i4)    <-- 0 means this vertex does not connect
+    ##    x(f8)   y(f8)   1(i4)    <-- 1 means this vertex connects to the previous vertex
+    ##    ...
+    ##    0(i4)
+    ##
+    ## All values are big endian--pack using struct.pack('>d') or struct.pack('>i')
+
+    path = QtGui.QPainterPath()
+
+    #profiler = debug.Profiler()
+    n = x.shape[0]
+    # create empty array, pad with extra space on either end
+    arr = np.empty(n+2, dtype=[('x', '>f8'), ('y', '>f8'), ('c', '>i4')])
+    # write first two integers
+    #profiler('allocate empty')
+    byteview = arr.view(dtype=np.ubyte)
+    byteview[:12] = 0
+    byteview.data[12:20] = struct.pack('>ii', n, 0)
+    #profiler('pack header')
+    # Fill array with vertex values
+    arr[1:-1]['x'] = x
+    arr[1:-1]['y'] = y
+
+    # decide which points are connected by lines
+    if eq(connect, 'all'):
+        arr[1:-1]['c'] = 1
+    elif eq(connect, 'pairs'):
+        arr[1:-1]['c'][::2] = 1
+        arr[1:-1]['c'][1::2] = 0
+    elif eq(connect, 'finite'):
+        arr[1:-1]['c'] = np.isfinite(x) & np.isfinite(y)
+    elif isinstance(connect, np.ndarray):
+        arr[1:-1]['c'] = connect
+    else:
+        raise Exception('connect argument must be "all", "pairs", "finite", or array')
+
+    #profiler('fill array')
+    # write last 0
+    lastInd = 20*(n+1)
+    byteview.data[lastInd:lastInd+4] = struct.pack('>i', 0)
+    #profiler('footer')
+    # create datastream object and stream into path
+
+    ## Avoiding this method because QByteArray(str) leaks memory in PySide
+    #buf = QtCore.QByteArray(arr.data[12:lastInd+4])  # I think one unnecessary copy happens here
+
+    path.strn = byteview.data[12:lastInd+4] # make sure data doesn't run away
+    try:
+        buf = QtCore.QByteArray.fromRawData(path.strn)
+    except TypeError:
+        buf = QtCore.QByteArray(bytes(path.strn))
+    #profiler('create buffer')
+    ds = QtCore.QDataStream(buf)
+
+    ds >> path
+    #profiler('load')
+
+    return path
+
+#def isosurface(data, level):
+    #"""
+    #Generate isosurface from volumetric data using marching tetrahedra algorithm.
+    #See Paul Bourke, "Polygonising a Scalar Field Using Tetrahedrons"  (http://local.wasp.uwa.edu.au/~pbourke/geometry/polygonise/)
+    
+    #*data*   3D numpy array of scalar values
+    #*level*  The level at which to generate an isosurface
+    #"""
+    
+    #facets = []
+    
+    ### mark everything below the isosurface level
+    #mask = data < level
+    
+    #### make eight sub-fields 
+    #fields = np.empty((2,2,2), dtype=object)
+    #slices = [slice(0,-1), slice(1,None)]
+    #for i in [0,1]:
+        #for j in [0,1]:
+            #for k in [0,1]:
+                #fields[i,j,k] = mask[slices[i], slices[j], slices[k]]
+    
+    
+    
+    ### split each cell into 6 tetrahedra
+    ### these all have the same 'orienation'; points 1,2,3 circle 
+    ### clockwise around point 0
+    #tetrahedra = [
+        #[(0,1,0), (1,1,1), (0,1,1), (1,0,1)],
+        #[(0,1,0), (0,1,1), (0,0,1), (1,0,1)],
+        #[(0,1,0), (0,0,1), (0,0,0), (1,0,1)],
+        #[(0,1,0), (0,0,0), (1,0,0), (1,0,1)],
+        #[(0,1,0), (1,0,0), (1,1,0), (1,0,1)],
+        #[(0,1,0), (1,1,0), (1,1,1), (1,0,1)]
+    #]
+    
+    ### each tetrahedron will be assigned an index
+    ### which determines how to generate its facets.
+    ### this structure is: 
+    ###    facets[index][facet1, facet2, ...]
+    ### where each facet is triangular and its points are each 
+    ### interpolated between two points on the tetrahedron
+    ###    facet = [(p1a, p1b), (p2a, p2b), (p3a, p3b)]
+    ### facet points always circle clockwise if you are looking 
+    ### at them from below the isosurface.
+    #indexFacets = [
+        #[],  ## all above
+        #[[(0,1), (0,2), (0,3)]],  # 0 below
+        #[[(1,0), (1,3), (1,2)]],   # 1 below
+        #[[(0,2), (1,3), (1,2)], [(0,2), (0,3), (1,3)]],   # 0,1 below
+        #[[(2,0), (2,1), (2,3)]],   # 2 below
+        #[[(0,3), (1,2), (2,3)], [(0,3), (0,1), (1,2)]],   # 0,2 below
+        #[[(1,0), (2,3), (2,0)], [(1,0), (1,3), (2,3)]],   # 1,2 below
+        #[[(3,0), (3,1), (3,2)]],   # 3 above
+        #[[(3,0), (3,2), (3,1)]],   # 3 below
+        #[[(1,0), (2,0), (2,3)], [(1,0), (2,3), (1,3)]],   # 0,3 below
+        #[[(0,3), (2,3), (1,2)], [(0,3), (1,2), (0,1)]],   # 1,3 below
+        #[[(2,0), (2,3), (2,1)]], # 0,1,3 below
+        #[[(0,2), (1,2), (1,3)], [(0,2), (1,3), (0,3)]],   # 2,3 below
+        #[[(1,0), (1,2), (1,3)]], # 0,2,3 below
+        #[[(0,1), (0,3), (0,2)]], # 1,2,3 below
+        #[]  ## all below
+    #]
+    
+    #for tet in tetrahedra:
+        
+        ### get the 4 fields for this tetrahedron
+        #tetFields = [fields[c] for c in tet]
+        
+        ### generate an index for each grid cell
+        #index = tetFields[0] + tetFields[1]*2 + tetFields[2]*4 + tetFields[3]*8
+        
+        ### add facets
+        #for i in xrange(index.shape[0]):                 # data x-axis
+            #for j in xrange(index.shape[1]):             # data y-axis
+                #for k in xrange(index.shape[2]):         # data z-axis
+                    #for f in indexFacets[index[i,j,k]]:  # faces to generate for this tet
+                        #pts = []
+                        #for l in [0,1,2]:      # points in this face
+                            #p1 = tet[f[l][0]]  # tet corner 1
+                            #p2 = tet[f[l][1]]  # tet corner 2
+                            #pts.append([(p1[x]+p2[x])*0.5+[i,j,k][x]+0.5 for x in [0,1,2]]) ## interpolate between tet corners
+                        #facets.append(pts)
+
+    #return facets
+    
+
+def isocurve(data, level, connected=False, extendToEdge=False, path=False):
+    """
+    Generate isocurve from 2D data using marching squares algorithm.
+    
+    ============== =========================================================
+    **Arguments:**
+    data           2D numpy array of scalar values
+    level          The level at which to generate an isosurface
+    connected      If False, return a single long list of point pairs
+                   If True, return multiple long lists of connected point 
+                   locations. (This is slower but better for drawing 
+                   continuous lines)
+    extendToEdge   If True, extend the curves to reach the exact edges of 
+                   the data. 
+    path           if True, return a QPainterPath rather than a list of 
+                   vertex coordinates. This forces connected=True.
+    ============== =========================================================
+    
+    This function is SLOW; plenty of room for optimization here.
+    """    
+    
+    if path is True:
+        connected = True
+    
+    if extendToEdge:
+        d2 = np.empty((data.shape[0]+2, data.shape[1]+2), dtype=data.dtype)
+        d2[1:-1, 1:-1] = data
+        d2[0, 1:-1] = data[0]
+        d2[-1, 1:-1] = data[-1]
+        d2[1:-1, 0] = data[:, 0]
+        d2[1:-1, -1] = data[:, -1]
+        d2[0,0] = d2[0,1]
+        d2[0,-1] = d2[1,-1]
+        d2[-1,0] = d2[-1,1]
+        d2[-1,-1] = d2[-1,-2]
+        data = d2
+    
+    sideTable = [
+        [],
+        [0,1],
+        [1,2],
+        [0,2],
+        [0,3],
+        [1,3],
+        [0,1,2,3],
+        [2,3],
+        [2,3],
+        [0,1,2,3],
+        [1,3],
+        [0,3],
+        [0,2],
+        [1,2],
+        [0,1],
+        []
+        ]
+    
+    edgeKey=[
+        [(0,1), (0,0)],
+        [(0,0), (1,0)],
+        [(1,0), (1,1)],
+        [(1,1), (0,1)]
+        ]
+    
+    
+    lines = []
+    
+    ## mark everything below the isosurface level
+    mask = data < level
+    
+    ### make four sub-fields and compute indexes for grid cells
+    index = np.zeros([x-1 for x in data.shape], dtype=np.ubyte)
+    fields = np.empty((2,2), dtype=object)
+    slices = [slice(0,-1), slice(1,None)]
+    for i in [0,1]:
+        for j in [0,1]:
+            fields[i,j] = mask[slices[i], slices[j]]
+            #vertIndex = i - 2*j*i + 3*j + 4*k  ## this is just to match Bourk's vertex numbering scheme
+            vertIndex = i+2*j
+            #print i,j,k," : ", fields[i,j,k], 2**vertIndex
+            np.add(index, fields[i,j] * 2**vertIndex, out=index, casting='unsafe')
+            #print index
+    #print index
+    
+    ## add lines
+    for i in range(index.shape[0]):                 # data x-axis
+        for j in range(index.shape[1]):             # data y-axis     
+            sides = sideTable[index[i,j]]
+            for l in range(0, len(sides), 2):     ## faces for this grid cell
+                edges = sides[l:l+2]
+                pts = []
+                for m in [0,1]:      # points in this face
+                    p1 = edgeKey[edges[m]][0] # p1, p2 are points at either side of an edge
+                    p2 = edgeKey[edges[m]][1]
+                    v1 = data[i+p1[0], j+p1[1]] # v1 and v2 are the values at p1 and p2
+                    v2 = data[i+p2[0], j+p2[1]]
+                    f = (level-v1) / (v2-v1)
+                    fi = 1.0 - f
+                    p = (    ## interpolate between corners
+                        p1[0]*fi + p2[0]*f + i + 0.5, 
+                        p1[1]*fi + p2[1]*f + j + 0.5
+                        )
+                    if extendToEdge:
+                        ## check bounds
+                        p = (
+                            min(data.shape[0]-2, max(0, p[0]-1)),
+                            min(data.shape[1]-2, max(0, p[1]-1)),                        
+                        )
+                    if connected:
+                        gridKey = i + (1 if edges[m]==2 else 0), j + (1 if edges[m]==3 else 0), edges[m]%2
+                        pts.append((p, gridKey))  ## give the actual position and a key identifying the grid location (for connecting segments)
+                    else:
+                        pts.append(p)
+                
+                lines.append(pts)
+
+    if not connected:
+        return lines
+                
+    ## turn disjoint list of segments into continuous lines
+
+    #lines = [[2,5], [5,4], [3,4], [1,3], [6,7], [7,8], [8,6], [11,12], [12,15], [11,13], [13,14]]
+    #lines = [[(float(a), a), (float(b), b)] for a,b in lines]
+    points = {}  ## maps each point to its connections
+    for a,b in lines:
+        if a[1] not in points:
+            points[a[1]] = []
+        points[a[1]].append([a,b])
+        if b[1] not in points:
+            points[b[1]] = []
+        points[b[1]].append([b,a])
+
+    ## rearrange into chains
+    for k in list(points.keys()):
+        try:
+            chains = points[k]
+        except KeyError:   ## already used this point elsewhere
+            continue
+        #print "===========", k
+        for chain in chains:
+            #print "  chain:", chain
+            x = None
+            while True:
+                if x == chain[-1][1]:
+                    break ## nothing left to do on this chain
+                    
+                x = chain[-1][1]
+                if x == k:  
+                    break ## chain has looped; we're done and can ignore the opposite chain
+                y = chain[-2][1]
+                connects = points[x]
+                for conn in connects[:]:
+                    if conn[1][1] != y:
+                        #print "    ext:", conn
+                        chain.extend(conn[1:])
+                #print "    del:", x
+                del points[x]
+            if chain[0][1] == chain[-1][1]:  # looped chain; no need to continue the other direction
+                chains.pop()
+                break
+                
+
+    ## extract point locations 
+    lines = []
+    for chain in points.values():
+        if len(chain) == 2:
+            chain = chain[1][1:][::-1] + chain[0]  # join together ends of chain
+        else:
+            chain = chain[0]
+        lines.append([p[0] for p in chain])
+    
+    if not path:
+        return lines ## a list of pairs of points
+    
+    path = QtGui.QPainterPath()
+    for line in lines:
+        path.moveTo(*line[0])
+        for p in line[1:]:
+            path.lineTo(*p)
+    
+    return path
+    
+    
+def traceImage(image, values, smooth=0.5):
+    """
+    Convert an image to a set of QPainterPath curves.
+    One curve will be generated for each item in *values*; each curve outlines the area
+    of the image that is closer to its value than to any others.
+    
+    If image is RGB or RGBA, then the shape of values should be (nvals, 3/4)
+    The parameter *smooth* is expressed in pixels.
+    """
+    try:
+        import scipy.ndimage as ndi
+    except ImportError:
+        raise Exception("traceImage() requires the package scipy.ndimage, but it is not importable.")
+    
+    if values.ndim == 2:
+        values = values.T
+    values = values[np.newaxis, np.newaxis, ...].astype(float)
+    image = image[..., np.newaxis].astype(float)
+    diff = np.abs(image-values)
+    if values.ndim == 4:
+        diff = diff.sum(axis=2)
+        
+    labels = np.argmin(diff, axis=2)
+    
+    paths = []
+    for i in range(diff.shape[-1]):    
+        d = (labels==i).astype(float)
+        d = gaussianFilter(d, (smooth, smooth))
+        lines = isocurve(d, 0.5, connected=True, extendToEdge=True)
+        path = QtGui.QPainterPath()
+        for line in lines:
+            path.moveTo(*line[0])
+            for p in line[1:]:
+                path.lineTo(*p)
+        
+        paths.append(path)
+    return paths
+    
+    
+    
+IsosurfaceDataCache = None
+def isosurface(data, level):
+    """
+    Generate isosurface from volumetric data using marching cubes algorithm.
+    See Paul Bourke, "Polygonising a Scalar Field"  
+    (http://paulbourke.net/geometry/polygonise/)
+    
+    *data*   3D numpy array of scalar values. Must be contiguous.
+    *level*  The level at which to generate an isosurface
+    
+    Returns an array of vertex coordinates (Nv, 3) and an array of 
+    per-face vertex indexes (Nf, 3)    
+    """
+    ## For improvement, see:
+    ## 
+    ## Efficient implementation of Marching Cubes' cases with topological guarantees.
+    ## Thomas Lewiner, Helio Lopes, Antonio Wilson Vieira and Geovan Tavares.
+    ## Journal of Graphics Tools 8(2): pp. 1-15 (december 2003)
+    
+    ## Precompute lookup tables on the first run
+    global IsosurfaceDataCache
+    if IsosurfaceDataCache is None:
+        ## map from grid cell index to edge index.
+        ## grid cell index tells us which corners are below the isosurface,
+        ## edge index tells us which edges are cut by the isosurface.
+        ## (Data stolen from Bourk; see above.)
+        edgeTable = np.array([
+            0x0  , 0x109, 0x203, 0x30a, 0x406, 0x50f, 0x605, 0x70c,
+            0x80c, 0x905, 0xa0f, 0xb06, 0xc0a, 0xd03, 0xe09, 0xf00,
+            0x190, 0x99 , 0x393, 0x29a, 0x596, 0x49f, 0x795, 0x69c,
+            0x99c, 0x895, 0xb9f, 0xa96, 0xd9a, 0xc93, 0xf99, 0xe90,
+            0x230, 0x339, 0x33 , 0x13a, 0x636, 0x73f, 0x435, 0x53c,
+            0xa3c, 0xb35, 0x83f, 0x936, 0xe3a, 0xf33, 0xc39, 0xd30,
+            0x3a0, 0x2a9, 0x1a3, 0xaa , 0x7a6, 0x6af, 0x5a5, 0x4ac,
+            0xbac, 0xaa5, 0x9af, 0x8a6, 0xfaa, 0xea3, 0xda9, 0xca0,
+            0x460, 0x569, 0x663, 0x76a, 0x66 , 0x16f, 0x265, 0x36c,
+            0xc6c, 0xd65, 0xe6f, 0xf66, 0x86a, 0x963, 0xa69, 0xb60,
+            0x5f0, 0x4f9, 0x7f3, 0x6fa, 0x1f6, 0xff , 0x3f5, 0x2fc,
+            0xdfc, 0xcf5, 0xfff, 0xef6, 0x9fa, 0x8f3, 0xbf9, 0xaf0,
+            0x650, 0x759, 0x453, 0x55a, 0x256, 0x35f, 0x55 , 0x15c,
+            0xe5c, 0xf55, 0xc5f, 0xd56, 0xa5a, 0xb53, 0x859, 0x950,
+            0x7c0, 0x6c9, 0x5c3, 0x4ca, 0x3c6, 0x2cf, 0x1c5, 0xcc ,
+            0xfcc, 0xec5, 0xdcf, 0xcc6, 0xbca, 0xac3, 0x9c9, 0x8c0,
+            0x8c0, 0x9c9, 0xac3, 0xbca, 0xcc6, 0xdcf, 0xec5, 0xfcc,
+            0xcc , 0x1c5, 0x2cf, 0x3c6, 0x4ca, 0x5c3, 0x6c9, 0x7c0,
+            0x950, 0x859, 0xb53, 0xa5a, 0xd56, 0xc5f, 0xf55, 0xe5c,
+            0x15c, 0x55 , 0x35f, 0x256, 0x55a, 0x453, 0x759, 0x650,
+            0xaf0, 0xbf9, 0x8f3, 0x9fa, 0xef6, 0xfff, 0xcf5, 0xdfc,
+            0x2fc, 0x3f5, 0xff , 0x1f6, 0x6fa, 0x7f3, 0x4f9, 0x5f0,
+            0xb60, 0xa69, 0x963, 0x86a, 0xf66, 0xe6f, 0xd65, 0xc6c,
+            0x36c, 0x265, 0x16f, 0x66 , 0x76a, 0x663, 0x569, 0x460,
+            0xca0, 0xda9, 0xea3, 0xfaa, 0x8a6, 0x9af, 0xaa5, 0xbac,
+            0x4ac, 0x5a5, 0x6af, 0x7a6, 0xaa , 0x1a3, 0x2a9, 0x3a0,
+            0xd30, 0xc39, 0xf33, 0xe3a, 0x936, 0x83f, 0xb35, 0xa3c,
+            0x53c, 0x435, 0x73f, 0x636, 0x13a, 0x33 , 0x339, 0x230,
+            0xe90, 0xf99, 0xc93, 0xd9a, 0xa96, 0xb9f, 0x895, 0x99c,
+            0x69c, 0x795, 0x49f, 0x596, 0x29a, 0x393, 0x99 , 0x190,
+            0xf00, 0xe09, 0xd03, 0xc0a, 0xb06, 0xa0f, 0x905, 0x80c,
+            0x70c, 0x605, 0x50f, 0x406, 0x30a, 0x203, 0x109, 0x0   
+            ], dtype=np.uint16)
+        
+        ## Table of triangles to use for filling each grid cell.
+        ## Each set of three integers tells us which three edges to
+        ## draw a triangle between.
+        ## (Data stolen from Bourk; see above.)
+        triTable = [
+            [],
+            [0, 8, 3],
+            [0, 1, 9],
+            [1, 8, 3, 9, 8, 1],
+            [1, 2, 10],
+            [0, 8, 3, 1, 2, 10],
+            [9, 2, 10, 0, 2, 9],
+            [2, 8, 3, 2, 10, 8, 10, 9, 8],
+            [3, 11, 2],
+            [0, 11, 2, 8, 11, 0],
+            [1, 9, 0, 2, 3, 11],
+            [1, 11, 2, 1, 9, 11, 9, 8, 11],
+            [3, 10, 1, 11, 10, 3],
+            [0, 10, 1, 0, 8, 10, 8, 11, 10],
+            [3, 9, 0, 3, 11, 9, 11, 10, 9],
+            [9, 8, 10, 10, 8, 11],
+            [4, 7, 8],
+            [4, 3, 0, 7, 3, 4],
+            [0, 1, 9, 8, 4, 7],
+            [4, 1, 9, 4, 7, 1, 7, 3, 1],
+            [1, 2, 10, 8, 4, 7],
+            [3, 4, 7, 3, 0, 4, 1, 2, 10],
+            [9, 2, 10, 9, 0, 2, 8, 4, 7],
+            [2, 10, 9, 2, 9, 7, 2, 7, 3, 7, 9, 4],
+            [8, 4, 7, 3, 11, 2],
+            [11, 4, 7, 11, 2, 4, 2, 0, 4],
+            [9, 0, 1, 8, 4, 7, 2, 3, 11],
+            [4, 7, 11, 9, 4, 11, 9, 11, 2, 9, 2, 1],
+            [3, 10, 1, 3, 11, 10, 7, 8, 4],
+            [1, 11, 10, 1, 4, 11, 1, 0, 4, 7, 11, 4],
+            [4, 7, 8, 9, 0, 11, 9, 11, 10, 11, 0, 3],
+            [4, 7, 11, 4, 11, 9, 9, 11, 10],
+            [9, 5, 4],
+            [9, 5, 4, 0, 8, 3],
+            [0, 5, 4, 1, 5, 0],
+            [8, 5, 4, 8, 3, 5, 3, 1, 5],
+            [1, 2, 10, 9, 5, 4],
+            [3, 0, 8, 1, 2, 10, 4, 9, 5],
+            [5, 2, 10, 5, 4, 2, 4, 0, 2],
+            [2, 10, 5, 3, 2, 5, 3, 5, 4, 3, 4, 8],
+            [9, 5, 4, 2, 3, 11],
+            [0, 11, 2, 0, 8, 11, 4, 9, 5],
+            [0, 5, 4, 0, 1, 5, 2, 3, 11],
+            [2, 1, 5, 2, 5, 8, 2, 8, 11, 4, 8, 5],
+            [10, 3, 11, 10, 1, 3, 9, 5, 4],
+            [4, 9, 5, 0, 8, 1, 8, 10, 1, 8, 11, 10],
+            [5, 4, 0, 5, 0, 11, 5, 11, 10, 11, 0, 3],
+            [5, 4, 8, 5, 8, 10, 10, 8, 11],
+            [9, 7, 8, 5, 7, 9],
+            [9, 3, 0, 9, 5, 3, 5, 7, 3],
+            [0, 7, 8, 0, 1, 7, 1, 5, 7],
+            [1, 5, 3, 3, 5, 7],
+            [9, 7, 8, 9, 5, 7, 10, 1, 2],
+            [10, 1, 2, 9, 5, 0, 5, 3, 0, 5, 7, 3],
+            [8, 0, 2, 8, 2, 5, 8, 5, 7, 10, 5, 2],
+            [2, 10, 5, 2, 5, 3, 3, 5, 7],
+            [7, 9, 5, 7, 8, 9, 3, 11, 2],
+            [9, 5, 7, 9, 7, 2, 9, 2, 0, 2, 7, 11],
+            [2, 3, 11, 0, 1, 8, 1, 7, 8, 1, 5, 7],
+            [11, 2, 1, 11, 1, 7, 7, 1, 5],
+            [9, 5, 8, 8, 5, 7, 10, 1, 3, 10, 3, 11],
+            [5, 7, 0, 5, 0, 9, 7, 11, 0, 1, 0, 10, 11, 10, 0],
+            [11, 10, 0, 11, 0, 3, 10, 5, 0, 8, 0, 7, 5, 7, 0],
+            [11, 10, 5, 7, 11, 5],
+            [10, 6, 5],
+            [0, 8, 3, 5, 10, 6],
+            [9, 0, 1, 5, 10, 6],
+            [1, 8, 3, 1, 9, 8, 5, 10, 6],
+            [1, 6, 5, 2, 6, 1],
+            [1, 6, 5, 1, 2, 6, 3, 0, 8],
+            [9, 6, 5, 9, 0, 6, 0, 2, 6],
+            [5, 9, 8, 5, 8, 2, 5, 2, 6, 3, 2, 8],
+            [2, 3, 11, 10, 6, 5],
+            [11, 0, 8, 11, 2, 0, 10, 6, 5],
+            [0, 1, 9, 2, 3, 11, 5, 10, 6],
+            [5, 10, 6, 1, 9, 2, 9, 11, 2, 9, 8, 11],
+            [6, 3, 11, 6, 5, 3, 5, 1, 3],
+            [0, 8, 11, 0, 11, 5, 0, 5, 1, 5, 11, 6],
+            [3, 11, 6, 0, 3, 6, 0, 6, 5, 0, 5, 9],
+            [6, 5, 9, 6, 9, 11, 11, 9, 8],
+            [5, 10, 6, 4, 7, 8],
+            [4, 3, 0, 4, 7, 3, 6, 5, 10],
+            [1, 9, 0, 5, 10, 6, 8, 4, 7],
+            [10, 6, 5, 1, 9, 7, 1, 7, 3, 7, 9, 4],
+            [6, 1, 2, 6, 5, 1, 4, 7, 8],
+            [1, 2, 5, 5, 2, 6, 3, 0, 4, 3, 4, 7],
+            [8, 4, 7, 9, 0, 5, 0, 6, 5, 0, 2, 6],
+            [7, 3, 9, 7, 9, 4, 3, 2, 9, 5, 9, 6, 2, 6, 9],
+            [3, 11, 2, 7, 8, 4, 10, 6, 5],
+            [5, 10, 6, 4, 7, 2, 4, 2, 0, 2, 7, 11],
+            [0, 1, 9, 4, 7, 8, 2, 3, 11, 5, 10, 6],
+            [9, 2, 1, 9, 11, 2, 9, 4, 11, 7, 11, 4, 5, 10, 6],
+            [8, 4, 7, 3, 11, 5, 3, 5, 1, 5, 11, 6],
+            [5, 1, 11, 5, 11, 6, 1, 0, 11, 7, 11, 4, 0, 4, 11],
+            [0, 5, 9, 0, 6, 5, 0, 3, 6, 11, 6, 3, 8, 4, 7],
+            [6, 5, 9, 6, 9, 11, 4, 7, 9, 7, 11, 9],
+            [10, 4, 9, 6, 4, 10],
+            [4, 10, 6, 4, 9, 10, 0, 8, 3],
+            [10, 0, 1, 10, 6, 0, 6, 4, 0],
+            [8, 3, 1, 8, 1, 6, 8, 6, 4, 6, 1, 10],
+            [1, 4, 9, 1, 2, 4, 2, 6, 4],
+            [3, 0, 8, 1, 2, 9, 2, 4, 9, 2, 6, 4],
+            [0, 2, 4, 4, 2, 6],
+            [8, 3, 2, 8, 2, 4, 4, 2, 6],
+            [10, 4, 9, 10, 6, 4, 11, 2, 3],
+            [0, 8, 2, 2, 8, 11, 4, 9, 10, 4, 10, 6],
+            [3, 11, 2, 0, 1, 6, 0, 6, 4, 6, 1, 10],
+            [6, 4, 1, 6, 1, 10, 4, 8, 1, 2, 1, 11, 8, 11, 1],
+            [9, 6, 4, 9, 3, 6, 9, 1, 3, 11, 6, 3],
+            [8, 11, 1, 8, 1, 0, 11, 6, 1, 9, 1, 4, 6, 4, 1],
+            [3, 11, 6, 3, 6, 0, 0, 6, 4],
+            [6, 4, 8, 11, 6, 8],
+            [7, 10, 6, 7, 8, 10, 8, 9, 10],
+            [0, 7, 3, 0, 10, 7, 0, 9, 10, 6, 7, 10],
+            [10, 6, 7, 1, 10, 7, 1, 7, 8, 1, 8, 0],
+            [10, 6, 7, 10, 7, 1, 1, 7, 3],
+            [1, 2, 6, 1, 6, 8, 1, 8, 9, 8, 6, 7],
+            [2, 6, 9, 2, 9, 1, 6, 7, 9, 0, 9, 3, 7, 3, 9],
+            [7, 8, 0, 7, 0, 6, 6, 0, 2],
+            [7, 3, 2, 6, 7, 2],
+            [2, 3, 11, 10, 6, 8, 10, 8, 9, 8, 6, 7],
+            [2, 0, 7, 2, 7, 11, 0, 9, 7, 6, 7, 10, 9, 10, 7],
+            [1, 8, 0, 1, 7, 8, 1, 10, 7, 6, 7, 10, 2, 3, 11],
+            [11, 2, 1, 11, 1, 7, 10, 6, 1, 6, 7, 1],
+            [8, 9, 6, 8, 6, 7, 9, 1, 6, 11, 6, 3, 1, 3, 6],
+            [0, 9, 1, 11, 6, 7],
+            [7, 8, 0, 7, 0, 6, 3, 11, 0, 11, 6, 0],
+            [7, 11, 6],
+            [7, 6, 11],
+            [3, 0, 8, 11, 7, 6],
+            [0, 1, 9, 11, 7, 6],
+            [8, 1, 9, 8, 3, 1, 11, 7, 6],
+            [10, 1, 2, 6, 11, 7],
+            [1, 2, 10, 3, 0, 8, 6, 11, 7],
+            [2, 9, 0, 2, 10, 9, 6, 11, 7],
+            [6, 11, 7, 2, 10, 3, 10, 8, 3, 10, 9, 8],
+            [7, 2, 3, 6, 2, 7],
+            [7, 0, 8, 7, 6, 0, 6, 2, 0],
+            [2, 7, 6, 2, 3, 7, 0, 1, 9],
+            [1, 6, 2, 1, 8, 6, 1, 9, 8, 8, 7, 6],
+            [10, 7, 6, 10, 1, 7, 1, 3, 7],
+            [10, 7, 6, 1, 7, 10, 1, 8, 7, 1, 0, 8],
+            [0, 3, 7, 0, 7, 10, 0, 10, 9, 6, 10, 7],
+            [7, 6, 10, 7, 10, 8, 8, 10, 9],
+            [6, 8, 4, 11, 8, 6],
+            [3, 6, 11, 3, 0, 6, 0, 4, 6],
+            [8, 6, 11, 8, 4, 6, 9, 0, 1],
+            [9, 4, 6, 9, 6, 3, 9, 3, 1, 11, 3, 6],
+            [6, 8, 4, 6, 11, 8, 2, 10, 1],
+            [1, 2, 10, 3, 0, 11, 0, 6, 11, 0, 4, 6],
+            [4, 11, 8, 4, 6, 11, 0, 2, 9, 2, 10, 9],
+            [10, 9, 3, 10, 3, 2, 9, 4, 3, 11, 3, 6, 4, 6, 3],
+            [8, 2, 3, 8, 4, 2, 4, 6, 2],
+            [0, 4, 2, 4, 6, 2],
+            [1, 9, 0, 2, 3, 4, 2, 4, 6, 4, 3, 8],
+            [1, 9, 4, 1, 4, 2, 2, 4, 6],
+            [8, 1, 3, 8, 6, 1, 8, 4, 6, 6, 10, 1],
+            [10, 1, 0, 10, 0, 6, 6, 0, 4],
+            [4, 6, 3, 4, 3, 8, 6, 10, 3, 0, 3, 9, 10, 9, 3],
+            [10, 9, 4, 6, 10, 4],
+            [4, 9, 5, 7, 6, 11],
+            [0, 8, 3, 4, 9, 5, 11, 7, 6],
+            [5, 0, 1, 5, 4, 0, 7, 6, 11],
+            [11, 7, 6, 8, 3, 4, 3, 5, 4, 3, 1, 5],
+            [9, 5, 4, 10, 1, 2, 7, 6, 11],
+            [6, 11, 7, 1, 2, 10, 0, 8, 3, 4, 9, 5],
+            [7, 6, 11, 5, 4, 10, 4, 2, 10, 4, 0, 2],
+            [3, 4, 8, 3, 5, 4, 3, 2, 5, 10, 5, 2, 11, 7, 6],
+            [7, 2, 3, 7, 6, 2, 5, 4, 9],
+            [9, 5, 4, 0, 8, 6, 0, 6, 2, 6, 8, 7],
+            [3, 6, 2, 3, 7, 6, 1, 5, 0, 5, 4, 0],
+            [6, 2, 8, 6, 8, 7, 2, 1, 8, 4, 8, 5, 1, 5, 8],
+            [9, 5, 4, 10, 1, 6, 1, 7, 6, 1, 3, 7],
+            [1, 6, 10, 1, 7, 6, 1, 0, 7, 8, 7, 0, 9, 5, 4],
+            [4, 0, 10, 4, 10, 5, 0, 3, 10, 6, 10, 7, 3, 7, 10],
+            [7, 6, 10, 7, 10, 8, 5, 4, 10, 4, 8, 10],
+            [6, 9, 5, 6, 11, 9, 11, 8, 9],
+            [3, 6, 11, 0, 6, 3, 0, 5, 6, 0, 9, 5],
+            [0, 11, 8, 0, 5, 11, 0, 1, 5, 5, 6, 11],
+            [6, 11, 3, 6, 3, 5, 5, 3, 1],
+            [1, 2, 10, 9, 5, 11, 9, 11, 8, 11, 5, 6],
+            [0, 11, 3, 0, 6, 11, 0, 9, 6, 5, 6, 9, 1, 2, 10],
+            [11, 8, 5, 11, 5, 6, 8, 0, 5, 10, 5, 2, 0, 2, 5],
+            [6, 11, 3, 6, 3, 5, 2, 10, 3, 10, 5, 3],
+            [5, 8, 9, 5, 2, 8, 5, 6, 2, 3, 8, 2],
+            [9, 5, 6, 9, 6, 0, 0, 6, 2],
+            [1, 5, 8, 1, 8, 0, 5, 6, 8, 3, 8, 2, 6, 2, 8],
+            [1, 5, 6, 2, 1, 6],
+            [1, 3, 6, 1, 6, 10, 3, 8, 6, 5, 6, 9, 8, 9, 6],
+            [10, 1, 0, 10, 0, 6, 9, 5, 0, 5, 6, 0],
+            [0, 3, 8, 5, 6, 10],
+            [10, 5, 6],
+            [11, 5, 10, 7, 5, 11],
+            [11, 5, 10, 11, 7, 5, 8, 3, 0],
+            [5, 11, 7, 5, 10, 11, 1, 9, 0],
+            [10, 7, 5, 10, 11, 7, 9, 8, 1, 8, 3, 1],
+            [11, 1, 2, 11, 7, 1, 7, 5, 1],
+            [0, 8, 3, 1, 2, 7, 1, 7, 5, 7, 2, 11],
+            [9, 7, 5, 9, 2, 7, 9, 0, 2, 2, 11, 7],
+            [7, 5, 2, 7, 2, 11, 5, 9, 2, 3, 2, 8, 9, 8, 2],
+            [2, 5, 10, 2, 3, 5, 3, 7, 5],
+            [8, 2, 0, 8, 5, 2, 8, 7, 5, 10, 2, 5],
+            [9, 0, 1, 5, 10, 3, 5, 3, 7, 3, 10, 2],
+            [9, 8, 2, 9, 2, 1, 8, 7, 2, 10, 2, 5, 7, 5, 2],
+            [1, 3, 5, 3, 7, 5],
+            [0, 8, 7, 0, 7, 1, 1, 7, 5],
+            [9, 0, 3, 9, 3, 5, 5, 3, 7],
+            [9, 8, 7, 5, 9, 7],
+            [5, 8, 4, 5, 10, 8, 10, 11, 8],
+            [5, 0, 4, 5, 11, 0, 5, 10, 11, 11, 3, 0],
+            [0, 1, 9, 8, 4, 10, 8, 10, 11, 10, 4, 5],
+            [10, 11, 4, 10, 4, 5, 11, 3, 4, 9, 4, 1, 3, 1, 4],
+            [2, 5, 1, 2, 8, 5, 2, 11, 8, 4, 5, 8],
+            [0, 4, 11, 0, 11, 3, 4, 5, 11, 2, 11, 1, 5, 1, 11],
+            [0, 2, 5, 0, 5, 9, 2, 11, 5, 4, 5, 8, 11, 8, 5],
+            [9, 4, 5, 2, 11, 3],
+            [2, 5, 10, 3, 5, 2, 3, 4, 5, 3, 8, 4],
+            [5, 10, 2, 5, 2, 4, 4, 2, 0],
+            [3, 10, 2, 3, 5, 10, 3, 8, 5, 4, 5, 8, 0, 1, 9],
+            [5, 10, 2, 5, 2, 4, 1, 9, 2, 9, 4, 2],
+            [8, 4, 5, 8, 5, 3, 3, 5, 1],
+            [0, 4, 5, 1, 0, 5],
+            [8, 4, 5, 8, 5, 3, 9, 0, 5, 0, 3, 5],
+            [9, 4, 5],
+            [4, 11, 7, 4, 9, 11, 9, 10, 11],
+            [0, 8, 3, 4, 9, 7, 9, 11, 7, 9, 10, 11],
+            [1, 10, 11, 1, 11, 4, 1, 4, 0, 7, 4, 11],
+            [3, 1, 4, 3, 4, 8, 1, 10, 4, 7, 4, 11, 10, 11, 4],
+            [4, 11, 7, 9, 11, 4, 9, 2, 11, 9, 1, 2],
+            [9, 7, 4, 9, 11, 7, 9, 1, 11, 2, 11, 1, 0, 8, 3],
+            [11, 7, 4, 11, 4, 2, 2, 4, 0],
+            [11, 7, 4, 11, 4, 2, 8, 3, 4, 3, 2, 4],
+            [2, 9, 10, 2, 7, 9, 2, 3, 7, 7, 4, 9],
+            [9, 10, 7, 9, 7, 4, 10, 2, 7, 8, 7, 0, 2, 0, 7],
+            [3, 7, 10, 3, 10, 2, 7, 4, 10, 1, 10, 0, 4, 0, 10],
+            [1, 10, 2, 8, 7, 4],
+            [4, 9, 1, 4, 1, 7, 7, 1, 3],
+            [4, 9, 1, 4, 1, 7, 0, 8, 1, 8, 7, 1],
+            [4, 0, 3, 7, 4, 3],
+            [4, 8, 7],
+            [9, 10, 8, 10, 11, 8],
+            [3, 0, 9, 3, 9, 11, 11, 9, 10],
+            [0, 1, 10, 0, 10, 8, 8, 10, 11],
+            [3, 1, 10, 11, 3, 10],
+            [1, 2, 11, 1, 11, 9, 9, 11, 8],
+            [3, 0, 9, 3, 9, 11, 1, 2, 9, 2, 11, 9],
+            [0, 2, 11, 8, 0, 11],
+            [3, 2, 11],
+            [2, 3, 8, 2, 8, 10, 10, 8, 9],
+            [9, 10, 2, 0, 9, 2],
+            [2, 3, 8, 2, 8, 10, 0, 1, 8, 1, 10, 8],
+            [1, 10, 2],
+            [1, 3, 8, 9, 1, 8],
+            [0, 9, 1],
+            [0, 3, 8],
+            []
+        ]    
+        edgeShifts = np.array([  ## maps edge ID (0-11) to (x,y,z) cell offset and edge ID (0-2)
+            [0, 0, 0, 0],   
+            [1, 0, 0, 1],
+            [0, 1, 0, 0],
+            [0, 0, 0, 1],
+            [0, 0, 1, 0],
+            [1, 0, 1, 1],
+            [0, 1, 1, 0],
+            [0, 0, 1, 1],
+            [0, 0, 0, 2],
+            [1, 0, 0, 2],
+            [1, 1, 0, 2],
+            [0, 1, 0, 2],
+            #[9, 9, 9, 9]  ## fake
+        ], dtype=np.uint16) # don't use ubyte here! This value gets added to cell index later; will need the extra precision.
+        nTableFaces = np.array([len(f)/3 for f in triTable], dtype=np.ubyte)
+        faceShiftTables = [None]
+        for i in range(1,6):
+            ## compute lookup table of index: vertexes mapping
+            faceTableI = np.zeros((len(triTable), i*3), dtype=np.ubyte)
+            faceTableInds = np.argwhere(nTableFaces == i)
+            faceTableI[faceTableInds[:,0]] = np.array([triTable[j] for j in faceTableInds])
+            faceTableI = faceTableI.reshape((len(triTable), i, 3))
+            faceShiftTables.append(edgeShifts[faceTableI])
+            
+        ## Let's try something different:
+        #faceTable = np.empty((256, 5, 3, 4), dtype=np.ubyte)   # (grid cell index, faces, vertexes, edge lookup)
+        #for i,f in enumerate(triTable):
+            #f = np.array(f + [12] * (15-len(f))).reshape(5,3)
+            #faceTable[i] = edgeShifts[f]
+        
+        
+        IsosurfaceDataCache = (faceShiftTables, edgeShifts, edgeTable, nTableFaces)
+    else:
+        faceShiftTables, edgeShifts, edgeTable, nTableFaces = IsosurfaceDataCache
+
+    # We use strides below, which means we need contiguous array input.
+    # Ideally we can fix this just by removing the dependency on strides.
+    if not data.flags['C_CONTIGUOUS']:
+        raise TypeError("isosurface input data must be c-contiguous.")
+    
+    ## mark everything below the isosurface level
+    mask = data < level
+    
+    ### make eight sub-fields and compute indexes for grid cells
+    index = np.zeros([x-1 for x in data.shape], dtype=np.ubyte)
+    fields = np.empty((2,2,2), dtype=object)
+    slices = [slice(0,-1), slice(1,None)]
+    for i in [0,1]:
+        for j in [0,1]:
+            for k in [0,1]:
+                fields[i,j,k] = mask[slices[i], slices[j], slices[k]]
+                vertIndex = i - 2*j*i + 3*j + 4*k  ## this is just to match Bourk's vertex numbering scheme
+                np.add(index, fields[i,j,k] * 2**vertIndex, out=index, casting='unsafe')
+    
+    ### Generate table of edges that have been cut
+    cutEdges = np.zeros([x+1 for x in index.shape]+[3], dtype=np.uint32)
+    edges = edgeTable[index]
+    for i, shift in enumerate(edgeShifts[:12]):        
+        slices = [slice(shift[j],cutEdges.shape[j]+(shift[j]-1)) for j in range(3)]
+        cutEdges[slices[0], slices[1], slices[2], shift[3]] += edges & 2**i
+    
+    ## for each cut edge, interpolate to see where exactly the edge is cut and generate vertex positions
+    m = cutEdges > 0
+    vertexInds = np.argwhere(m)   ## argwhere is slow!
+    vertexes = vertexInds[:,:3].astype(np.float32)
+    dataFlat = data.reshape(data.shape[0]*data.shape[1]*data.shape[2])
+    
+    ## re-use the cutEdges array as a lookup table for vertex IDs
+    cutEdges[vertexInds[:,0], vertexInds[:,1], vertexInds[:,2], vertexInds[:,3]] = np.arange(vertexInds.shape[0])
+    
+    for i in [0,1,2]:
+        vim = vertexInds[:,3] == i
+        vi = vertexInds[vim, :3]
+        viFlat = (vi * (np.array(data.strides[:3]) // data.itemsize)[np.newaxis,:]).sum(axis=1)
+        v1 = dataFlat[viFlat]
+        v2 = dataFlat[viFlat + data.strides[i]//data.itemsize]
+        vertexes[vim,i] += (level-v1) / (v2-v1)
+    
+    ### compute the set of vertex indexes for each face. 
+    
+    ## This works, but runs a bit slower.
+    #cells = np.argwhere((index != 0) & (index != 255))  ## all cells with at least one face
+    #cellInds = index[cells[:,0], cells[:,1], cells[:,2]]
+    #verts = faceTable[cellInds]
+    #mask = verts[...,0,0] != 9
+    #verts[...,:3] += cells[:,np.newaxis,np.newaxis,:]  ## we now have indexes into cutEdges
+    #verts = verts[mask]
+    #faces = cutEdges[verts[...,0], verts[...,1], verts[...,2], verts[...,3]]  ## and these are the vertex indexes we want.
+    
+    
+    ## To allow this to be vectorized efficiently, we count the number of faces in each 
+    ## grid cell and handle each group of cells with the same number together.
+    ## determine how many faces to assign to each grid cell
+    nFaces = nTableFaces[index]
+    totFaces = nFaces.sum()
+    faces = np.empty((totFaces, 3), dtype=np.uint32)
+    ptr = 0
+    #import debug
+    #p = debug.Profiler()
+    
+    ## this helps speed up an indexing operation later on
+    cs = np.array(cutEdges.strides)//cutEdges.itemsize
+    cutEdges = cutEdges.flatten()
+
+    ## this, strangely, does not seem to help.
+    #ins = np.array(index.strides)/index.itemsize
+    #index = index.flatten()
+
+    for i in range(1,6):
+        ### expensive:
+        #profiler()
+        cells = np.argwhere(nFaces == i)  ## all cells which require i faces  (argwhere is expensive)
+        #profiler()
+        if cells.shape[0] == 0:
+            continue
+        cellInds = index[cells[:,0], cells[:,1], cells[:,2]]   ## index values of cells to process for this round
+        #profiler()
+        
+        ### expensive:
+        verts = faceShiftTables[i][cellInds]
+        #profiler()
+        np.add(verts[...,:3], cells[:,np.newaxis,np.newaxis,:], out=verts[...,:3], casting='unsafe')  ## we now have indexes into cutEdges
+        verts = verts.reshape((verts.shape[0]*i,)+verts.shape[2:])
+        #profiler()
+        
+        ### expensive:
+        verts = (verts * cs[np.newaxis, np.newaxis, :]).sum(axis=2)
+        vertInds = cutEdges[verts]
+        #profiler()
+        nv = vertInds.shape[0]
+        #profiler()
+        faces[ptr:ptr+nv] = vertInds #.reshape((nv, 3))
+        #profiler()
+        ptr += nv
+        
+    return vertexes, faces
+
+
+    
+def invertQTransform(tr):
+    """Return a QTransform that is the inverse of *tr*.
+    Rasises an exception if tr is not invertible.
+    
+    Note that this function is preferred over QTransform.inverted() due to
+    bugs in that method. (specifically, Qt has floating-point precision issues
+    when determining whether a matrix is invertible)
+    """
+    try:
+        import numpy.linalg
+        arr = np.array([[tr.m11(), tr.m12(), tr.m13()], [tr.m21(), tr.m22(), tr.m23()], [tr.m31(), tr.m32(), tr.m33()]])
+        inv = numpy.linalg.inv(arr)
+        return QtGui.QTransform(inv[0,0], inv[0,1], inv[0,2], inv[1,0], inv[1,1], inv[1,2], inv[2,0], inv[2,1])
+    except ImportError:
+        inv = tr.inverted()
+        if inv[1] is False:
+            raise Exception("Transform is not invertible.")
+        return inv[0]
+    
+    
+def pseudoScatter(data, spacing=None, shuffle=True, bidir=False):
+    """
+    Used for examining the distribution of values in a set. Produces scattering as in beeswarm or column scatter plots.
+    
+    Given a list of x-values, construct a set of y-values such that an x,y scatter-plot
+    will not have overlapping points (it will look similar to a histogram).
+    """
+    inds = np.arange(len(data))
+    if shuffle:
+        np.random.shuffle(inds)
+        
+    data = data[inds]
+    
+    if spacing is None:
+        spacing = 2.*np.std(data)/len(data)**0.5
+    s2 = spacing**2
+    
+    yvals = np.empty(len(data))
+    if len(data) == 0:
+        return yvals
+    yvals[0] = 0
+    for i in range(1,len(data)):
+        x = data[i]     # current x value to be placed
+        x0 = data[:i]   # all x values already placed
+        y0 = yvals[:i]  # all y values already placed
+        y = 0
+        
+        dx = (x0-x)**2  # x-distance to each previous point
+        xmask = dx < s2  # exclude anything too far away
+        
+        if xmask.sum() > 0:
+            if bidir:
+                dirs = [-1, 1]
+            else:
+                dirs = [1]
+            yopts = []
+            for direction in dirs:
+                y = 0
+                dx2 = dx[xmask]
+                dy = (s2 - dx2)**0.5   
+                limits = np.empty((2,len(dy)))  # ranges of y-values to exclude
+                limits[0] = y0[xmask] - dy
+                limits[1] = y0[xmask] + dy    
+                while True:
+                    # ignore anything below this y-value
+                    if direction > 0:
+                        mask = limits[1] >= y
+                    else:
+                        mask = limits[0] <= y
+                        
+                    limits2 = limits[:,mask]
+                    
+                    # are we inside an excluded region?
+                    mask = (limits2[0] < y) & (limits2[1] > y)
+                    if mask.sum() == 0:
+                        break
+                        
+                    if direction > 0:
+                        y = limits2[:,mask].max()
+                    else:
+                        y = limits2[:,mask].min()
+                yopts.append(y)
+            if bidir:
+                y = yopts[0] if -yopts[0] < yopts[1] else yopts[1]
+            else:
+                y = yopts[0]
+        yvals[i] = y
+    
+    return yvals[np.argsort(inds)]  ## un-shuffle values before returning
+
+
+
+def toposort(deps, nodes=None, seen=None, stack=None, depth=0):
+    """Topological sort. Arguments are:
+      deps    dictionary describing dependencies where a:[b,c] means "a depends on b and c"
+      nodes   optional, specifies list of starting nodes (these should be the nodes 
+              which are not depended on by any other nodes). Other candidate starting
+              nodes will be ignored.
+              
+    Example::
+
+        # Sort the following graph:
+        # 
+        #   B ──┬─────> C <── D
+        #       │       │       
+        #   E <─┴─> A <─┘
+        #     
+        deps = {'a': ['b', 'c'], 'c': ['b', 'd'], 'e': ['b']}
+        toposort(deps)
+         => ['b', 'd', 'c', 'a', 'e']
+    """
+    # fill in empty dep lists
+    deps = deps.copy()
+    for k,v in list(deps.items()):
+        for k in v:
+            if k not in deps:
+                deps[k] = []
+    
+    if nodes is None:
+        ## run through deps to find nodes that are not depended upon
+        rem = set()
+        for dep in deps.values():
+            rem |= set(dep)
+        nodes = set(deps.keys()) - rem
+    if seen is None:
+        seen = set()
+        stack = []
+    sorted = []
+    for n in nodes:
+        if n in stack:
+            raise Exception("Cyclic dependency detected", stack + [n])
+        if n in seen:
+            continue
+        seen.add(n)
+        sorted.extend( toposort(deps, deps[n], seen, stack+[n], depth=depth+1))
+        sorted.append(n)
+    return sorted
diff --git a/libs/pyqtgraph/graphicsItems/ArrowItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ArrowItem.py
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/ArrowItem.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ArrowItem.py
diff --git a/libs/pyqtgraph/graphicsItems/AxisItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/AxisItem.py
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/AxisItem.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/AxisItem.py
diff --git a/libs/pyqtgraph/graphicsItems/BarGraphItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/BarGraphItem.py
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/BarGraphItem.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/BarGraphItem.py
diff --git a/libs/pyqtgraph/graphicsItems/ButtonItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ButtonItem.py
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/ButtonItem.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ButtonItem.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/CurvePoint.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/CurvePoint.py
new file mode 100644
index 00000000..f7682a43
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/CurvePoint.py
@@ -0,0 +1,122 @@
+from ..Qt import QtGui, QtCore
+from . import ArrowItem
+import numpy as np
+from ..Point import Point
+import weakref
+from .GraphicsObject import GraphicsObject
+
+__all__ = ['CurvePoint', 'CurveArrow']
+class CurvePoint(GraphicsObject):
+    """A GraphicsItem that sets its location to a point on a PlotCurveItem.
+    Also rotates to be tangent to the curve.
+    The position along the curve is a Qt property, and thus can be easily animated.
+    
+    Note: This class does not display anything; see CurveArrow for an applied example
+    """
+    
+    def __init__(self, curve, index=0, pos=None, rotate=True):
+        """Position can be set either as an index referring to the sample number or
+        the position 0.0 - 1.0
+        If *rotate* is True, then the item rotates to match the tangent of the curve.
+        """
+        
+        GraphicsObject.__init__(self)
+        #QObjectWorkaround.__init__(self)
+        self._rotate = rotate
+        self.curve = weakref.ref(curve)
+        self.setParentItem(curve)
+        self.setProperty('position', 0.0)
+        self.setProperty('index', 0)
+        
+        if hasattr(self, 'ItemHasNoContents'):
+            self.setFlags(self.flags() | self.ItemHasNoContents)
+        
+        if pos is not None:
+            self.setPos(pos)
+        else:
+            self.setIndex(index)
+            
+    def setPos(self, pos):
+        self.setProperty('position', float(pos))## cannot use numpy types here, MUST be python float.
+        
+    def setIndex(self, index):
+        self.setProperty('index', int(index))  ## cannot use numpy types here, MUST be python int.
+        
+    def event(self, ev):
+        if not isinstance(ev, QtCore.QDynamicPropertyChangeEvent) or self.curve() is None:
+            return False
+            
+        if ev.propertyName() == 'index':
+            index = self.property('index')
+            if 'QVariant' in repr(index):
+                index = index.toInt()[0]
+        elif ev.propertyName() == 'position':
+            index = None
+        else:
+            return False
+            
+        (x, y) = self.curve().getData()
+        if index is None:
+            #print ev.propertyName(), self.property('position').toDouble()[0], self.property('position').typeName()
+            pos = self.property('position')
+            if 'QVariant' in repr(pos):   ## need to support 2 APIs  :(
+                pos = pos.toDouble()[0]
+            index = (len(x)-1) * np.clip(pos, 0.0, 1.0)
+            
+        if index != int(index):  ## interpolate floating-point values
+            i1 = int(index)
+            i2 = np.clip(i1+1, 0, len(x)-1)
+            s2 = index-i1
+            s1 = 1.0-s2
+            newPos = (x[i1]*s1+x[i2]*s2, y[i1]*s1+y[i2]*s2)
+        else:
+            index = int(index)
+            i1 = np.clip(index-1, 0, len(x)-1)
+            i2 = np.clip(index+1, 0, len(x)-1)
+            newPos = (x[index], y[index])
+            
+        p1 = self.parentItem().mapToScene(QtCore.QPointF(x[i1], y[i1]))
+        p2 = self.parentItem().mapToScene(QtCore.QPointF(x[i2], y[i2]))
+        ang = np.arctan2(p2.y()-p1.y(), p2.x()-p1.x()) ## returns radians
+        self.resetTransform()
+        if self._rotate:
+            self.rotate(180+ ang * 180 / np.pi) ## takes degrees
+        QtGui.QGraphicsItem.setPos(self, *newPos)
+        return True
+        
+    def boundingRect(self):
+        return QtCore.QRectF()
+        
+    def paint(self, *args):
+        pass
+    
+    def makeAnimation(self, prop='position', start=0.0, end=1.0, duration=10000, loop=1):
+        # In Python 3, a bytes object needs to be used as a property name in
+        # QPropertyAnimation. PyQt stopped automatically encoding a str when a
+        # QByteArray was expected in v5.5 (see qbytearray.sip).
+        if not isinstance(prop, bytes):
+            prop = prop.encode('latin-1')
+        anim = QtCore.QPropertyAnimation(self, prop)
+        anim.setDuration(duration)
+        anim.setStartValue(start)
+        anim.setEndValue(end)
+        anim.setLoopCount(loop)
+        return anim
+
+
+class CurveArrow(CurvePoint):
+    """Provides an arrow that points to any specific sample on a PlotCurveItem.
+    Provides properties that can be animated."""
+    
+    def __init__(self, curve, index=0, pos=None, **opts):
+        CurvePoint.__init__(self, curve, index=index, pos=pos)
+        if opts.get('pxMode', True):
+            opts['pxMode'] = False
+            self.setFlags(self.flags() | self.ItemIgnoresTransformations)
+        opts['angle'] = 0
+        self.arrow = ArrowItem.ArrowItem(**opts)
+        self.arrow.setParentItem(self)
+        
+    def setStyle(self, **opts):
+        return self.arrow.setStyle(**opts)
+        
diff --git a/libs/pyqtgraph/graphicsItems/ErrorBarItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ErrorBarItem.py
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/ErrorBarItem.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ErrorBarItem.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/FillBetweenItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/FillBetweenItem.py
new file mode 100644
index 00000000..0efb11dd
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/FillBetweenItem.py
@@ -0,0 +1,83 @@
+from ..Qt import QtGui, USE_PYQT5, USE_PYQT4, USE_PYSIDE
+from .. import functions as fn
+from .PlotDataItem import PlotDataItem
+from .PlotCurveItem import PlotCurveItem
+
+class FillBetweenItem(QtGui.QGraphicsPathItem):
+    """
+    GraphicsItem filling the space between two PlotDataItems.
+    """
+    def __init__(self, curve1=None, curve2=None, brush=None, pen=None):
+        QtGui.QGraphicsPathItem.__init__(self)
+        self.curves = None
+        if curve1 is not None and curve2 is not None:
+            self.setCurves(curve1, curve2)
+        elif curve1 is not None or curve2 is not None:
+            raise Exception("Must specify two curves to fill between.")
+
+        if brush is not None:
+            self.setBrush(brush)
+        self.setPen(pen)
+        self.updatePath()
+        
+    def setBrush(self, *args, **kwds):
+        QtGui.QGraphicsPathItem.setBrush(self, fn.mkBrush(*args, **kwds))
+        
+    def setPen(self, *args, **kwds):
+        QtGui.QGraphicsPathItem.setPen(self, fn.mkPen(*args, **kwds))
+
+    def setCurves(self, curve1, curve2):
+        """Set the curves to fill between.
+        
+        Arguments must be instances of PlotDataItem or PlotCurveItem.
+        
+        Added in version 0.9.9
+        """
+        if self.curves is not None:
+            for c in self.curves:
+                try:
+                    c.sigPlotChanged.disconnect(self.curveChanged)
+                except (TypeError, RuntimeError):
+                    pass
+
+        curves = [curve1, curve2]
+        for c in curves:
+            if not isinstance(c, PlotDataItem) and not isinstance(c, PlotCurveItem):
+                raise TypeError("Curves must be PlotDataItem or PlotCurveItem.")
+        self.curves = curves
+        curve1.sigPlotChanged.connect(self.curveChanged)
+        curve2.sigPlotChanged.connect(self.curveChanged)
+        self.setZValue(min(curve1.zValue(), curve2.zValue())-1)
+        self.curveChanged()
+
+    def setBrush(self, *args, **kwds):
+        """Change the fill brush. Acceps the same arguments as pg.mkBrush()"""
+        QtGui.QGraphicsPathItem.setBrush(self, fn.mkBrush(*args, **kwds))
+
+    def curveChanged(self):
+        self.updatePath()
+
+    def updatePath(self):
+        if self.curves is None:
+            self.setPath(QtGui.QPainterPath())
+            return
+        paths = []
+        for c in self.curves:
+            if isinstance(c, PlotDataItem):
+                paths.append(c.curve.getPath())
+            elif isinstance(c, PlotCurveItem):
+                paths.append(c.getPath())
+
+        path = QtGui.QPainterPath()
+        transform = QtGui.QTransform()
+        ps1 = paths[0].toSubpathPolygons(transform)
+        ps2 = paths[1].toReversed().toSubpathPolygons(transform)
+        ps2.reverse()
+        if len(ps1) == 0 or len(ps2) == 0:
+            self.setPath(QtGui.QPainterPath())
+            return
+        
+            
+        for p1, p2 in zip(ps1, ps2):
+            path.addPolygon(p1 + p2)
+        self.setPath(path)
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/GradientEditorItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/GradientEditorItem.py
new file mode 100644
index 00000000..6ce06b61
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/GradientEditorItem.py
@@ -0,0 +1,941 @@
+import weakref
+import numpy as np
+from ..Qt import QtGui, QtCore
+from ..python2_3 import sortList
+from .. import functions as fn
+from .GraphicsObject import GraphicsObject
+from .GraphicsWidget import GraphicsWidget
+from ..widgets.SpinBox import SpinBox
+from ..pgcollections import OrderedDict
+from ..colormap import ColorMap
+from ..python2_3 import cmp
+
+
+__all__ = ['TickSliderItem', 'GradientEditorItem']
+
+Gradients = OrderedDict([
+    ('thermal', {'ticks': [(0.3333, (185, 0, 0, 255)), (0.6666, (255, 220, 0, 255)), (1, (255, 255, 255, 255)), (0, (0, 0, 0, 255))], 'mode': 'rgb'}),
+    ('flame', {'ticks': [(0.2, (7, 0, 220, 255)), (0.5, (236, 0, 134, 255)), (0.8, (246, 246, 0, 255)), (1.0, (255, 255, 255, 255)), (0.0, (0, 0, 0, 255))], 'mode': 'rgb'}),
+    ('yellowy', {'ticks': [(0.0, (0, 0, 0, 255)), (0.2328863796753704, (32, 0, 129, 255)), (0.8362738179251941, (255, 255, 0, 255)), (0.5257586450247, (115, 15, 255, 255)), (1.0, (255, 255, 255, 255))], 'mode': 'rgb'} ),
+    ('bipolar', {'ticks': [(0.0, (0, 255, 255, 255)), (1.0, (255, 255, 0, 255)), (0.5, (0, 0, 0, 255)), (0.25, (0, 0, 255, 255)), (0.75, (255, 0, 0, 255))], 'mode': 'rgb'}),
+    ('spectrum', {'ticks': [(1.0, (255, 0, 255, 255)), (0.0, (255, 0, 0, 255))], 'mode': 'hsv'}),
+    ('cyclic', {'ticks': [(0.0, (255, 0, 4, 255)), (1.0, (255, 0, 0, 255))], 'mode': 'hsv'}),
+    ('greyclip', {'ticks': [(0.0, (0, 0, 0, 255)), (0.99, (255, 255, 255, 255)), (1.0, (255, 0, 0, 255))], 'mode': 'rgb'}),
+    ('grey', {'ticks': [(0.0, (0, 0, 0, 255)), (1.0, (255, 255, 255, 255))], 'mode': 'rgb'}),
+])
+
+def addGradientListToDocstring():
+    """Decorator to add list of current pre-defined gradients to the end of a function docstring."""
+    def dec(fn):
+        fn.__doc__ = fn.__doc__ + str(Gradients.keys()).strip('[').strip(']')
+        return fn
+    return dec
+
+
+
+class TickSliderItem(GraphicsWidget):
+    ## public class
+    """**Bases:** :class:`GraphicsWidget <pyqtgraph.GraphicsWidget>`
+    
+    A rectangular item with tick marks along its length that can (optionally) be moved by the user."""
+        
+    def __init__(self, orientation='bottom', allowAdd=True, **kargs):
+        """
+        ==============  =================================================================================
+        **Arguments:**
+        orientation     Set the orientation of the gradient. Options are: 'left', 'right'
+                        'top', and 'bottom'.
+        allowAdd        Specifies whether ticks can be added to the item by the user.
+        tickPen         Default is white. Specifies the color of the outline of the ticks.
+                        Can be any of the valid arguments for :func:`mkPen <pyqtgraph.mkPen>`
+        ==============  =================================================================================
+        """
+        ## public
+        GraphicsWidget.__init__(self)
+        self.orientation = orientation
+        self.length = 100
+        self.tickSize = 15
+        self.ticks = {}
+        self.maxDim = 20
+        self.allowAdd = allowAdd
+        if 'tickPen' in kargs:
+            self.tickPen = fn.mkPen(kargs['tickPen'])
+        else:
+            self.tickPen = fn.mkPen('w')
+            
+        self.orientations = {
+            'left': (90, 1, 1), 
+            'right': (90, 1, 1), 
+            'top': (0, 1, -1), 
+            'bottom': (0, 1, 1)
+        }
+        
+        self.setOrientation(orientation)
+        #self.setFrameStyle(QtGui.QFrame.NoFrame | QtGui.QFrame.Plain)
+        #self.setBackgroundRole(QtGui.QPalette.NoRole)
+        #self.setMouseTracking(True)
+        
+    #def boundingRect(self):
+        #return self.mapRectFromParent(self.geometry()).normalized()
+        
+    #def shape(self):  ## No idea why this is necessary, but rotated items do not receive clicks otherwise.
+        #p = QtGui.QPainterPath()
+        #p.addRect(self.boundingRect())
+        #return p
+        
+    def paint(self, p, opt, widget):
+        #p.setPen(fn.mkPen('g', width=3))
+        #p.drawRect(self.boundingRect())
+        return
+        
+    def keyPressEvent(self, ev):
+        ev.ignore()
+
+    def setMaxDim(self, mx=None):
+        if mx is None:
+            mx = self.maxDim
+        else:
+            self.maxDim = mx
+            
+        if self.orientation in ['bottom', 'top']:
+            self.setFixedHeight(mx)
+            self.setMaximumWidth(16777215)
+        else:
+            self.setFixedWidth(mx)
+            self.setMaximumHeight(16777215)
+            
+    
+    def setOrientation(self, orientation):
+        ## public
+        """Set the orientation of the TickSliderItem.
+        
+        ==============  ===================================================================
+        **Arguments:**
+        orientation     Options are: 'left', 'right', 'top', 'bottom'
+                        The orientation option specifies which side of the slider the
+                        ticks are on, as well as whether the slider is vertical ('right'
+                        and 'left') or horizontal ('top' and 'bottom').
+        ==============  ===================================================================
+        """
+        self.orientation = orientation
+        self.setMaxDim()
+        self.resetTransform()
+        ort = orientation
+        if ort == 'top':
+            transform = QtGui.QTransform.fromScale(1, -1)
+            transform.translate(0, -self.height())
+            self.setTransform(transform)
+        elif ort == 'left':
+            transform = QtGui.QTransform()
+            transform.rotate(270)
+            transform.scale(1, -1)
+            transform.translate(-self.height(), -self.maxDim)
+            self.setTransform(transform)
+        elif ort == 'right':
+            transform = QtGui.QTransform()
+            transform.rotate(270)
+            transform.translate(-self.height(), 0)
+            self.setTransform(transform)
+        elif ort != 'bottom':
+            raise Exception("%s is not a valid orientation. Options are 'left', 'right', 'top', and 'bottom'" %str(ort))
+        
+        self.translate(self.tickSize/2., 0)
+    
+    def addTick(self, x, color=None, movable=True):
+        ## public
+        """
+        Add a tick to the item.
+        
+        ==============  ==================================================================
+        **Arguments:**
+        x               Position where tick should be added.
+        color           Color of added tick. If color is not specified, the color will be
+                        white.
+        movable         Specifies whether the tick is movable with the mouse.
+        ==============  ==================================================================
+        """        
+        
+        if color is None:
+            color = QtGui.QColor(255,255,255)
+        tick = Tick(self, [x*self.length, 0], color, movable, self.tickSize, pen=self.tickPen)
+        self.ticks[tick] = x
+        tick.setParentItem(self)
+        return tick
+    
+    def removeTick(self, tick):
+        ## public
+        """
+        Removes the specified tick.
+        """
+        del self.ticks[tick]
+        tick.setParentItem(None)
+        if self.scene() is not None:
+            self.scene().removeItem(tick)
+    
+    def tickMoved(self, tick, pos):
+        #print "tick changed"
+        ## Correct position of tick if it has left bounds.
+        newX = min(max(0, pos.x()), self.length)
+        pos.setX(newX)
+        tick.setPos(pos)
+        self.ticks[tick] = float(newX) / self.length
+    
+    def tickMoveFinished(self, tick):
+        pass
+    
+    def tickClicked(self, tick, ev):
+        if ev.button() == QtCore.Qt.RightButton:
+            self.removeTick(tick)
+    
+    def widgetLength(self):
+        if self.orientation in ['bottom', 'top']:
+            return self.width()
+        else:
+            return self.height()
+    
+    def resizeEvent(self, ev):
+        wlen = max(40, self.widgetLength())
+        self.setLength(wlen-self.tickSize-2)
+        self.setOrientation(self.orientation)
+        #bounds = self.scene().itemsBoundingRect()
+        #bounds.setLeft(min(-self.tickSize*0.5, bounds.left()))
+        #bounds.setRight(max(self.length + self.tickSize, bounds.right()))
+        #self.setSceneRect(bounds)
+        #self.fitInView(bounds, QtCore.Qt.KeepAspectRatio)
+        
+    def setLength(self, newLen):
+        #private
+        for t, x in list(self.ticks.items()):
+            t.setPos(x * newLen + 1, t.pos().y())
+        self.length = float(newLen)
+        
+    #def mousePressEvent(self, ev):
+        #QtGui.QGraphicsView.mousePressEvent(self, ev)
+        #self.ignoreRelease = False
+        #for i in self.items(ev.pos()):
+            #if isinstance(i, Tick):
+                #self.ignoreRelease = True
+                #break
+        ##if len(self.items(ev.pos())) > 0:  ## Let items handle their own clicks
+            ##self.ignoreRelease = True
+        
+    #def mouseReleaseEvent(self, ev):
+        #QtGui.QGraphicsView.mouseReleaseEvent(self, ev)
+        #if self.ignoreRelease:
+            #return
+            
+        #pos = self.mapToScene(ev.pos())
+            
+        #if ev.button() == QtCore.Qt.LeftButton and self.allowAdd:
+            #if pos.x() < 0 or pos.x() > self.length:
+                #return
+            #if pos.y() < 0 or pos.y() > self.tickSize:
+                #return
+            #pos.setX(min(max(pos.x(), 0), self.length))
+            #self.addTick(pos.x()/self.length)
+        #elif ev.button() == QtCore.Qt.RightButton:
+            #self.showMenu(ev)
+            
+    def mouseClickEvent(self, ev):
+        if ev.button() == QtCore.Qt.LeftButton and self.allowAdd:
+            pos = ev.pos()
+            if pos.x() < 0 or pos.x() > self.length:
+                return
+            if pos.y() < 0 or pos.y() > self.tickSize:
+                return
+            pos.setX(min(max(pos.x(), 0), self.length))
+            self.addTick(pos.x()/self.length)
+        elif ev.button() == QtCore.Qt.RightButton:
+            self.showMenu(ev)
+
+        #if  ev.button() == QtCore.Qt.RightButton:
+            #if self.moving:
+                #ev.accept()
+                #self.setPos(self.startPosition)
+                #self.moving = False
+                #self.sigMoving.emit(self)
+                #self.sigMoved.emit(self)
+            #else:
+                #pass
+                #self.view().tickClicked(self, ev)
+                ###remove
+
+    def hoverEvent(self, ev):
+        if (not ev.isExit()) and ev.acceptClicks(QtCore.Qt.LeftButton):
+            ev.acceptClicks(QtCore.Qt.RightButton)
+            ## show ghost tick
+            #self.currentPen = fn.mkPen(255, 0,0)
+        #else:
+            #self.currentPen = self.pen
+        #self.update()
+        
+    def showMenu(self, ev):
+        pass
+
+    def setTickColor(self, tick, color):
+        """Set the color of the specified tick.
+        
+        ==============  ==================================================================
+        **Arguments:**
+        tick            Can be either an integer corresponding to the index of the tick
+                        or a Tick object. Ex: if you had a slider with 3 ticks and you
+                        wanted to change the middle tick, the index would be 1.
+        color           The color to make the tick. Can be any argument that is valid for
+                        :func:`mkBrush <pyqtgraph.mkBrush>`
+        ==============  ==================================================================
+        """
+        tick = self.getTick(tick)
+        tick.color = color
+        tick.update()
+        #tick.setBrush(QtGui.QBrush(QtGui.QColor(tick.color)))
+
+    def setTickValue(self, tick, val):
+        ## public
+        """
+        Set the position (along the slider) of the tick.
+        
+        ==============   ==================================================================
+        **Arguments:**
+        tick             Can be either an integer corresponding to the index of the tick
+                         or a Tick object. Ex: if you had a slider with 3 ticks and you
+                         wanted to change the middle tick, the index would be 1.
+        val              The desired position of the tick. If val is < 0, position will be
+                         set to 0. If val is > 1, position will be set to 1.
+        ==============   ==================================================================
+        """
+        tick = self.getTick(tick)
+        val = min(max(0.0, val), 1.0)
+        x = val * self.length
+        pos = tick.pos()
+        pos.setX(x)
+        tick.setPos(pos)
+        self.ticks[tick] = val
+        self.updateGradient()
+        
+    def tickValue(self, tick):
+        ## public
+        """Return the value (from 0.0 to 1.0) of the specified tick.
+        
+        ==============  ==================================================================
+        **Arguments:**
+        tick            Can be either an integer corresponding to the index of the tick
+                        or a Tick object. Ex: if you had a slider with 3 ticks and you
+                        wanted the value of the middle tick, the index would be 1.
+        ==============  ==================================================================
+        """
+        tick = self.getTick(tick)
+        return self.ticks[tick]
+        
+    def getTick(self, tick):
+        ## public
+        """Return the Tick object at the specified index.
+        
+        ==============  ==================================================================
+        **Arguments:**
+        tick            An integer corresponding to the index of the desired tick. If the
+                        argument is not an integer it will be returned unchanged.
+        ==============  ==================================================================
+        """
+        if type(tick) is int:
+            tick = self.listTicks()[tick][0]
+        return tick
+
+    #def mouseMoveEvent(self, ev):
+        #QtGui.QGraphicsView.mouseMoveEvent(self, ev)
+
+    def listTicks(self):
+        """Return a sorted list of all the Tick objects on the slider."""
+        ## public
+        ticks = list(self.ticks.items())
+        sortList(ticks, lambda a,b: cmp(a[1], b[1]))  ## see pyqtgraph.python2_3.sortList
+        return ticks
+
+
+class GradientEditorItem(TickSliderItem):
+    """
+    **Bases:** :class:`TickSliderItem <pyqtgraph.TickSliderItem>`
+    
+    An item that can be used to define a color gradient. Implements common pre-defined gradients that are 
+    customizable by the user. :class: `GradientWidget <pyqtgraph.GradientWidget>` provides a widget
+    with a GradientEditorItem that can be added to a GUI. 
+    
+    ================================ ===========================================================
+    **Signals:**
+    sigGradientChanged(self)         Signal is emitted anytime the gradient changes. The signal 
+                                     is emitted in real time while ticks are being dragged or 
+                                     colors are being changed.
+    sigGradientChangeFinished(self)  Signal is emitted when the gradient is finished changing.
+    ================================ ===========================================================    
+ 
+    """
+    
+    sigGradientChanged = QtCore.Signal(object)
+    sigGradientChangeFinished = QtCore.Signal(object)
+    
+    def __init__(self, *args, **kargs):
+        """
+        Create a new GradientEditorItem. 
+        All arguments are passed to :func:`TickSliderItem.__init__ <pyqtgraph.TickSliderItem.__init__>`
+        
+        ===============  =================================================================================
+        **Arguments:**
+        orientation      Set the orientation of the gradient. Options are: 'left', 'right'
+                         'top', and 'bottom'.
+        allowAdd         Default is True. Specifies whether ticks can be added to the item.
+        tickPen          Default is white. Specifies the color of the outline of the ticks.
+                         Can be any of the valid arguments for :func:`mkPen <pyqtgraph.mkPen>`
+        ===============  =================================================================================
+        """
+        self.currentTick = None
+        self.currentTickColor = None
+        self.rectSize = 15
+        self.gradRect = QtGui.QGraphicsRectItem(QtCore.QRectF(0, self.rectSize, 100, self.rectSize))
+        self.backgroundRect = QtGui.QGraphicsRectItem(QtCore.QRectF(0, -self.rectSize, 100, self.rectSize))
+        self.backgroundRect.setBrush(QtGui.QBrush(QtCore.Qt.DiagCrossPattern))
+        self.colorMode = 'rgb'
+        
+        TickSliderItem.__init__(self, *args, **kargs)
+        
+        self.colorDialog = QtGui.QColorDialog()
+        self.colorDialog.setOption(QtGui.QColorDialog.ShowAlphaChannel, True)
+        self.colorDialog.setOption(QtGui.QColorDialog.DontUseNativeDialog, True)
+        
+        self.colorDialog.currentColorChanged.connect(self.currentColorChanged)
+        self.colorDialog.rejected.connect(self.currentColorRejected)
+        self.colorDialog.accepted.connect(self.currentColorAccepted)
+        
+        self.backgroundRect.setParentItem(self)
+        self.gradRect.setParentItem(self)
+        
+        self.setMaxDim(self.rectSize + self.tickSize)
+        
+        self.rgbAction = QtGui.QAction('RGB', self)
+        self.rgbAction.setCheckable(True)
+        self.rgbAction.triggered.connect(lambda: self.setColorMode('rgb'))
+        self.hsvAction = QtGui.QAction('HSV', self)
+        self.hsvAction.setCheckable(True)
+        self.hsvAction.triggered.connect(lambda: self.setColorMode('hsv'))
+            
+        self.menu = QtGui.QMenu()
+        
+        ## build context menu of gradients
+        l = self.length
+        self.length = 100
+        global Gradients
+        for g in Gradients:
+            px = QtGui.QPixmap(100, 15)
+            p = QtGui.QPainter(px)
+            self.restoreState(Gradients[g])
+            grad = self.getGradient()
+            brush = QtGui.QBrush(grad)
+            p.fillRect(QtCore.QRect(0, 0, 100, 15), brush)
+            p.end()
+            label = QtGui.QLabel()
+            label.setPixmap(px)
+            label.setContentsMargins(1, 1, 1, 1)
+            act = QtGui.QWidgetAction(self)
+            act.setDefaultWidget(label)
+            act.triggered.connect(self.contextMenuClicked)
+            act.name = g
+            self.menu.addAction(act)
+        self.length = l
+        self.menu.addSeparator()
+        self.menu.addAction(self.rgbAction)
+        self.menu.addAction(self.hsvAction)
+        
+        
+        for t in list(self.ticks.keys()):
+            self.removeTick(t)
+        self.addTick(0, QtGui.QColor(0,0,0), True)
+        self.addTick(1, QtGui.QColor(255,0,0), True)
+        self.setColorMode('rgb')
+        self.updateGradient()
+    
+    def setOrientation(self, orientation):
+        ## public
+        """
+        Set the orientation of the GradientEditorItem. 
+        
+        ==============  ===================================================================
+        **Arguments:**
+        orientation     Options are: 'left', 'right', 'top', 'bottom'
+                        The orientation option specifies which side of the gradient the
+                        ticks are on, as well as whether the gradient is vertical ('right'
+                        and 'left') or horizontal ('top' and 'bottom').
+        ==============  ===================================================================
+        """
+        TickSliderItem.setOrientation(self, orientation)
+        self.translate(0, self.rectSize)
+    
+    def showMenu(self, ev):
+        #private
+        self.menu.popup(ev.screenPos().toQPoint())
+    
+    def contextMenuClicked(self, b=None):
+        #private
+        #global Gradients
+        act = self.sender()
+        self.loadPreset(act.name)
+        
+    @addGradientListToDocstring()
+    def loadPreset(self, name):
+        """
+        Load a predefined gradient. Currently defined gradients are: 
+        """## TODO: provide image with names of defined gradients
+        
+        #global Gradients
+        self.restoreState(Gradients[name])
+    
+    def setColorMode(self, cm):
+        """
+        Set the color mode for the gradient. Options are: 'hsv', 'rgb'
+        
+        """
+        
+        ## public
+        if cm not in ['rgb', 'hsv']:
+            raise Exception("Unknown color mode %s. Options are 'rgb' and 'hsv'." % str(cm))
+        
+        try:
+            self.rgbAction.blockSignals(True)
+            self.hsvAction.blockSignals(True)
+            self.rgbAction.setChecked(cm == 'rgb')
+            self.hsvAction.setChecked(cm == 'hsv')
+        finally:
+            self.rgbAction.blockSignals(False)
+            self.hsvAction.blockSignals(False)
+        self.colorMode = cm
+        self.updateGradient()
+        
+    def colorMap(self):
+        """Return a ColorMap object representing the current state of the editor."""
+        if self.colorMode == 'hsv':
+            raise NotImplementedError('hsv colormaps not yet supported')
+        pos = []
+        color = []
+        for t,x in self.listTicks():
+            pos.append(x)
+            c = t.color
+            color.append([c.red(), c.green(), c.blue(), c.alpha()])
+        return ColorMap(np.array(pos), np.array(color, dtype=np.ubyte))
+        
+    def updateGradient(self):
+        #private
+        self.gradient = self.getGradient()
+        self.gradRect.setBrush(QtGui.QBrush(self.gradient))
+        self.sigGradientChanged.emit(self)
+        
+    def setLength(self, newLen):
+        #private (but maybe public)
+        TickSliderItem.setLength(self, newLen)
+        self.backgroundRect.setRect(1, -self.rectSize, newLen, self.rectSize)
+        self.gradRect.setRect(1, -self.rectSize, newLen, self.rectSize)
+        self.updateGradient()
+        
+    def currentColorChanged(self, color):
+        #private
+        if color.isValid() and self.currentTick is not None:
+            self.setTickColor(self.currentTick, color)
+            self.updateGradient()
+            
+    def currentColorRejected(self):
+        #private
+        self.setTickColor(self.currentTick, self.currentTickColor)
+        self.updateGradient()
+        
+    def currentColorAccepted(self):
+        self.sigGradientChangeFinished.emit(self)
+        
+    def tickClicked(self, tick, ev):
+        #private
+        if ev.button() == QtCore.Qt.LeftButton:
+            self.raiseColorDialog(tick)
+        elif ev.button() == QtCore.Qt.RightButton:
+            self.raiseTickContextMenu(tick, ev)
+            
+    def raiseColorDialog(self, tick):
+        if not tick.colorChangeAllowed:
+            return
+        self.currentTick = tick
+        self.currentTickColor = tick.color
+        self.colorDialog.setCurrentColor(tick.color)
+        self.colorDialog.open()
+        
+    def raiseTickContextMenu(self, tick, ev):
+        self.tickMenu = TickMenu(tick, self)
+        self.tickMenu.popup(ev.screenPos().toQPoint())
+    
+    def tickMoved(self, tick, pos):
+        #private
+        TickSliderItem.tickMoved(self, tick, pos)
+        self.updateGradient()
+
+    def tickMoveFinished(self, tick):
+        self.sigGradientChangeFinished.emit(self)
+    
+
+    def getGradient(self):
+        """Return a QLinearGradient object."""
+        g = QtGui.QLinearGradient(QtCore.QPointF(0,0), QtCore.QPointF(self.length,0))
+        if self.colorMode == 'rgb':
+            ticks = self.listTicks()
+            g.setStops([(x, QtGui.QColor(t.color)) for t,x in ticks])
+        elif self.colorMode == 'hsv':  ## HSV mode is approximated for display by interpolating 10 points between each stop
+            ticks = self.listTicks()
+            stops = []
+            stops.append((ticks[0][1], ticks[0][0].color))
+            for i in range(1,len(ticks)):
+                x1 = ticks[i-1][1]
+                x2 = ticks[i][1]
+                dx = (x2-x1) / 10.
+                for j in range(1,10):
+                    x = x1 + dx*j
+                    stops.append((x, self.getColor(x)))
+                stops.append((x2, self.getColor(x2)))
+            g.setStops(stops)
+        return g
+        
+    def getColor(self, x, toQColor=True):
+        """
+        Return a color for a given value.
+        
+        ==============  ==================================================================
+        **Arguments:**
+        x               Value (position on gradient) of requested color.
+        toQColor        If true, returns a QColor object, else returns a (r,g,b,a) tuple.
+        ==============  ==================================================================
+        """
+        ticks = self.listTicks()
+        if x <= ticks[0][1]:
+            c = ticks[0][0].color
+            if toQColor:
+                return QtGui.QColor(c)  # always copy colors before handing them out
+            else:
+                return (c.red(), c.green(), c.blue(), c.alpha())
+        if x >= ticks[-1][1]:
+            c = ticks[-1][0].color
+            if toQColor:
+                return QtGui.QColor(c)  # always copy colors before handing them out
+            else:
+                return (c.red(), c.green(), c.blue(), c.alpha())
+            
+        x2 = ticks[0][1]
+        for i in range(1,len(ticks)):
+            x1 = x2
+            x2 = ticks[i][1]
+            if x1 <= x and x2 >= x:
+                break
+                
+        dx = (x2-x1)
+        if dx == 0:
+            f = 0.
+        else:
+            f = (x-x1) / dx
+        c1 = ticks[i-1][0].color
+        c2 = ticks[i][0].color
+        if self.colorMode == 'rgb':
+            r = c1.red() * (1.-f) + c2.red() * f
+            g = c1.green() * (1.-f) + c2.green() * f
+            b = c1.blue() * (1.-f) + c2.blue() * f
+            a = c1.alpha() * (1.-f) + c2.alpha() * f
+            if toQColor:
+                return QtGui.QColor(int(r), int(g), int(b), int(a))
+            else:
+                return (r,g,b,a)
+        elif self.colorMode == 'hsv':
+            h1,s1,v1,_ = c1.getHsv()
+            h2,s2,v2,_ = c2.getHsv()
+            h = h1 * (1.-f) + h2 * f
+            s = s1 * (1.-f) + s2 * f
+            v = v1 * (1.-f) + v2 * f
+            c = QtGui.QColor()
+            c.setHsv(h,s,v)
+            if toQColor:
+                return c
+            else:
+                return (c.red(), c.green(), c.blue(), c.alpha())
+                    
+    def getLookupTable(self, nPts, alpha=None):
+        """
+        Return an RGB(A) lookup table (ndarray). 
+        
+        ==============  ============================================================================
+        **Arguments:**
+        nPts            The number of points in the returned lookup table.
+        alpha           True, False, or None - Specifies whether or not alpha values are included
+                        in the table.If alpha is None, alpha will be automatically determined.
+        ==============  ============================================================================
+        """
+        if alpha is None:
+            alpha = self.usesAlpha()
+        if alpha:
+            table = np.empty((nPts,4), dtype=np.ubyte)
+        else:
+            table = np.empty((nPts,3), dtype=np.ubyte)
+            
+        for i in range(nPts):
+            x = float(i)/(nPts-1)
+            color = self.getColor(x, toQColor=False)
+            table[i] = color[:table.shape[1]]
+            
+        return table
+    
+    def usesAlpha(self):
+        """Return True if any ticks have an alpha < 255"""
+        
+        ticks = self.listTicks()
+        for t in ticks:
+            if t[0].color.alpha() < 255:
+                return True
+            
+        return False
+            
+    def isLookupTrivial(self):
+        """Return True if the gradient has exactly two stops in it: black at 0.0 and white at 1.0"""
+        ticks = self.listTicks()
+        if len(ticks) != 2:
+            return False
+        if ticks[0][1] != 0.0 or ticks[1][1] != 1.0:
+            return False
+        c1 = fn.colorTuple(ticks[0][0].color)
+        c2 = fn.colorTuple(ticks[1][0].color)
+        if c1 != (0,0,0,255) or c2 != (255,255,255,255):
+            return False
+        return True
+
+
+    def mouseReleaseEvent(self, ev):
+        #private
+        TickSliderItem.mouseReleaseEvent(self, ev)
+        self.updateGradient()
+        
+    def addTick(self, x, color=None, movable=True, finish=True):
+        """
+        Add a tick to the gradient. Return the tick.
+        
+        ==============  ==================================================================
+        **Arguments:**
+        x               Position where tick should be added.
+        color           Color of added tick. If color is not specified, the color will be
+                        the color of the gradient at the specified position.
+        movable         Specifies whether the tick is movable with the mouse.
+        ==============  ==================================================================
+        """
+        
+        
+        if color is None:
+            color = self.getColor(x)
+        t = TickSliderItem.addTick(self, x, color=color, movable=movable)
+        t.colorChangeAllowed = True
+        t.removeAllowed = True
+        
+        if finish:
+            self.sigGradientChangeFinished.emit(self)
+        return t
+
+
+    def removeTick(self, tick, finish=True):
+        TickSliderItem.removeTick(self, tick)
+        if finish:
+            self.updateGradient()
+            self.sigGradientChangeFinished.emit(self)
+        
+        
+    def saveState(self):
+        """
+        Return a dictionary with parameters for rebuilding the gradient. Keys will include:
+        
+           - 'mode': hsv or rgb
+           - 'ticks': a list of tuples (pos, (r,g,b,a))
+        """
+        ## public
+        ticks = []
+        for t in self.ticks:
+            c = t.color
+            ticks.append((self.ticks[t], (c.red(), c.green(), c.blue(), c.alpha())))
+        state = {'mode': self.colorMode, 'ticks': ticks}
+        return state
+        
+    def restoreState(self, state):
+        """
+        Restore the gradient specified in state.
+        
+        ==============  ====================================================================
+        **Arguments:**
+        state           A dictionary with same structure as those returned by
+                        :func:`saveState <pyqtgraph.GradientEditorItem.saveState>`
+                      
+                        Keys must include:
+                      
+                            - 'mode': hsv or rgb
+                            - 'ticks': a list of tuples (pos, (r,g,b,a))
+        ==============  ====================================================================
+        """
+        ## public
+        self.setColorMode(state['mode'])
+        for t in list(self.ticks.keys()):
+            self.removeTick(t, finish=False)
+        for t in state['ticks']:
+            c = QtGui.QColor(*t[1])
+            self.addTick(t[0], c, finish=False)
+        self.updateGradient()
+        self.sigGradientChangeFinished.emit(self)
+        
+    def setColorMap(self, cm):
+        self.setColorMode('rgb')
+        for t in list(self.ticks.keys()):
+            self.removeTick(t, finish=False)
+        colors = cm.getColors(mode='qcolor')
+        for i in range(len(cm.pos)):
+            x = cm.pos[i]
+            c = colors[i]
+            self.addTick(x, c, finish=False)
+        self.updateGradient()
+        self.sigGradientChangeFinished.emit(self)
+
+
+class Tick(QtGui.QGraphicsWidget):  ## NOTE: Making this a subclass of GraphicsObject instead results in
+                                    ## activating this bug: https://bugreports.qt-project.org/browse/PYSIDE-86
+    ## private class
+
+    # When making Tick a subclass of QtGui.QGraphicsObject as origin,
+    # ..GraphicsScene.items(self, *args) will get Tick object as a
+    # class of QtGui.QMultimediaWidgets.QGraphicsVideoItem in python2.7-PyQt5(5.4.0)
+
+    sigMoving = QtCore.Signal(object)
+    sigMoved = QtCore.Signal(object)
+    
+    def __init__(self, view, pos, color, movable=True, scale=10, pen='w'):
+        self.movable = movable
+        self.moving = False
+        self.view = weakref.ref(view)
+        self.scale = scale
+        self.color = color
+        self.pen = fn.mkPen(pen)
+        self.hoverPen = fn.mkPen(255,255,0)
+        self.currentPen = self.pen
+        self.pg = QtGui.QPainterPath(QtCore.QPointF(0,0))
+        self.pg.lineTo(QtCore.QPointF(-scale/3**0.5, scale))
+        self.pg.lineTo(QtCore.QPointF(scale/3**0.5, scale))
+        self.pg.closeSubpath()
+        
+        QtGui.QGraphicsWidget.__init__(self)
+        self.setPos(pos[0], pos[1])
+        if self.movable:
+            self.setZValue(1)
+        else:
+            self.setZValue(0)
+
+    def boundingRect(self):
+        return self.pg.boundingRect()
+    
+    def shape(self):
+        return self.pg
+
+    def paint(self, p, *args):
+        p.setRenderHints(QtGui.QPainter.Antialiasing)
+        p.fillPath(self.pg, fn.mkBrush(self.color))
+        
+        p.setPen(self.currentPen)
+        p.drawPath(self.pg)
+
+
+    def mouseDragEvent(self, ev):
+        if self.movable and ev.button() == QtCore.Qt.LeftButton:
+            if ev.isStart():
+                self.moving = True
+                self.cursorOffset = self.pos() - self.mapToParent(ev.buttonDownPos())
+                self.startPosition = self.pos()
+            ev.accept()
+            
+            if not self.moving:
+                return
+                
+            newPos = self.cursorOffset + self.mapToParent(ev.pos())
+            newPos.setY(self.pos().y())
+            
+            self.setPos(newPos)
+            self.view().tickMoved(self, newPos)
+            self.sigMoving.emit(self)
+            if ev.isFinish():
+                self.moving = False
+                self.sigMoved.emit(self)
+                self.view().tickMoveFinished(self)
+
+    def mouseClickEvent(self, ev):
+        if  ev.button() == QtCore.Qt.RightButton and self.moving:
+            ev.accept()
+            self.setPos(self.startPosition)
+            self.view().tickMoved(self, self.startPosition)
+            self.moving = False
+            self.sigMoving.emit(self)
+            self.sigMoved.emit(self)
+        else:
+            self.view().tickClicked(self, ev)
+            ##remove
+
+    def hoverEvent(self, ev):
+        if (not ev.isExit()) and ev.acceptDrags(QtCore.Qt.LeftButton):
+            ev.acceptClicks(QtCore.Qt.LeftButton)
+            ev.acceptClicks(QtCore.Qt.RightButton)
+            self.currentPen = self.hoverPen
+        else:
+            self.currentPen = self.pen
+        self.update()
+        
+
+class TickMenu(QtGui.QMenu):
+    
+    def __init__(self, tick, sliderItem):
+        QtGui.QMenu.__init__(self)
+        
+        self.tick = weakref.ref(tick)
+        self.sliderItem = weakref.ref(sliderItem)
+        
+        self.removeAct = self.addAction("Remove Tick", lambda: self.sliderItem().removeTick(tick))
+        if (not self.tick().removeAllowed) or len(self.sliderItem().ticks) < 3:
+            self.removeAct.setEnabled(False)
+            
+        positionMenu = self.addMenu("Set Position")
+        w = QtGui.QWidget()
+        l = QtGui.QGridLayout()
+        w.setLayout(l)
+        
+        value = sliderItem.tickValue(tick)
+        self.fracPosSpin = SpinBox()
+        self.fracPosSpin.setOpts(value=value, bounds=(0.0, 1.0), step=0.01, decimals=2)
+        #self.dataPosSpin = SpinBox(value=dataVal)
+        #self.dataPosSpin.setOpts(decimals=3, siPrefix=True)
+                
+        l.addWidget(QtGui.QLabel("Position:"), 0,0)
+        l.addWidget(self.fracPosSpin, 0, 1)
+        #l.addWidget(QtGui.QLabel("Position (data units):"), 1, 0)
+        #l.addWidget(self.dataPosSpin, 1,1)
+        
+        #if self.sliderItem().dataParent is None:
+        #    self.dataPosSpin.setEnabled(False)
+        
+        a = QtGui.QWidgetAction(self)
+        a.setDefaultWidget(w)
+        positionMenu.addAction(a)        
+        
+        self.fracPosSpin.sigValueChanging.connect(self.fractionalValueChanged)
+        #self.dataPosSpin.valueChanged.connect(self.dataValueChanged)
+        
+        colorAct = self.addAction("Set Color", lambda: self.sliderItem().raiseColorDialog(self.tick()))
+        if not self.tick().colorChangeAllowed:
+            colorAct.setEnabled(False)
+
+    def fractionalValueChanged(self, x):
+        self.sliderItem().setTickValue(self.tick(), self.fracPosSpin.value())
+        #if self.sliderItem().dataParent is not None:
+        #    self.dataPosSpin.blockSignals(True)
+        #    self.dataPosSpin.setValue(self.sliderItem().tickDataValue(self.tick()))
+        #    self.dataPosSpin.blockSignals(False)
+            
+    #def dataValueChanged(self, val):
+    #    self.sliderItem().setTickValue(self.tick(), val, dataUnits=True)
+    #    self.fracPosSpin.blockSignals(True)
+    #    self.fracPosSpin.setValue(self.sliderItem().tickValue(self.tick()))
+    #    self.fracPosSpin.blockSignals(False)
+
diff --git a/libs/pyqtgraph/graphicsItems/GradientLegend.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/GradientLegend.py
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/GradientLegend.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/GradientLegend.py
diff --git a/libs/pyqtgraph/graphicsItems/GraphItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/GraphItem.py
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/GraphItem.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/GraphItem.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/GraphicsItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/GraphicsItem.py
new file mode 100644
index 00000000..d45818dc
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/GraphicsItem.py
@@ -0,0 +1,581 @@
+from ..Qt import QtGui, QtCore, isQObjectAlive
+from ..GraphicsScene import GraphicsScene
+from ..Point import Point
+from .. import functions as fn
+import weakref
+import operator
+from ..util.lru_cache import LRUCache
+
+
+class GraphicsItem(object):
+    """
+    **Bases:** :class:`object`
+
+    Abstract class providing useful methods to GraphicsObject and GraphicsWidget.
+    (This is required because we cannot have multiple inheritance with QObject subclasses.)
+
+    A note about Qt's GraphicsView framework:
+
+    The GraphicsView system places a lot of emphasis on the notion that the graphics within the scene should be device independent--you should be able to take the same graphics and display them on screens of different resolutions, printers, export to SVG, etc. This is nice in principle, but causes me a lot of headache in practice. It means that I have to circumvent all the device-independent expectations any time I want to operate in pixel coordinates rather than arbitrary scene coordinates. A lot of the code in GraphicsItem is devoted to this task--keeping track of view widgets and device transforms, computing the size and shape of a pixel in local item coordinates, etc. Note that in item coordinates, a pixel does not have to be square or even rectangular, so just asking how to increase a bounding rect by 2px can be a rather complex task.
+    """
+    _pixelVectorGlobalCache = LRUCache(100, 70)
+    
+    def __init__(self, register=True):
+        if not hasattr(self, '_qtBaseClass'):
+            for b in self.__class__.__bases__:
+                if issubclass(b, QtGui.QGraphicsItem):
+                    self.__class__._qtBaseClass = b
+                    break
+        if not hasattr(self, '_qtBaseClass'):
+            raise Exception('Could not determine Qt base class for GraphicsItem: %s' % str(self))
+        
+        self._pixelVectorCache = [None, None]
+        self._viewWidget = None
+        self._viewBox = None
+        self._connectedView = None
+        self._exportOpts = False   ## If False, not currently exporting. Otherwise, contains dict of export options.
+        if register:
+            GraphicsScene.registerObject(self)  ## workaround for pyqt bug in graphicsscene.items()
+                    
+    def getViewWidget(self):
+        """
+        Return the view widget for this item. 
+        
+        If the scene has multiple views, only the first view is returned.
+        The return value is cached; clear the cached value with forgetViewWidget().
+        If the view has been deleted by Qt, return None.
+        """
+        if self._viewWidget is None:
+            scene = self.scene()
+            if scene is None:
+                return None
+            views = scene.views()
+            if len(views) < 1:
+                return None
+            self._viewWidget = weakref.ref(self.scene().views()[0])
+            
+        v = self._viewWidget()
+        if v is not None and not isQObjectAlive(v):
+            return None
+            
+        return v
+    
+    def forgetViewWidget(self):
+        self._viewWidget = None
+    
+    def getViewBox(self):
+        """
+        Return the first ViewBox or GraphicsView which bounds this item's visible space.
+        If this item is not contained within a ViewBox, then the GraphicsView is returned.
+        If the item is contained inside nested ViewBoxes, then the inner-most ViewBox is returned.
+        The result is cached; clear the cache with forgetViewBox()
+        """
+        if self._viewBox is None:
+            p = self
+            while True:
+                try:
+                    p = p.parentItem()
+                except RuntimeError:  ## sometimes happens as items are being removed from a scene and collected.
+                    return None
+                if p is None:
+                    vb = self.getViewWidget()
+                    if vb is None:
+                        return None
+                    else:
+                        self._viewBox = weakref.ref(vb)
+                        break
+                if hasattr(p, 'implements') and p.implements('ViewBox'):
+                    self._viewBox = weakref.ref(p)
+                    break
+        return self._viewBox()  ## If we made it this far, _viewBox is definitely not None
+
+    def forgetViewBox(self):
+        self._viewBox = None
+        
+    def deviceTransform(self, viewportTransform=None):
+        """
+        Return the transform that converts local item coordinates to device coordinates (usually pixels).
+        Extends deviceTransform to automatically determine the viewportTransform.
+        """
+        if self._exportOpts is not False and 'painter' in self._exportOpts: ## currently exporting; device transform may be different.
+            return self._exportOpts['painter'].deviceTransform() * self.sceneTransform()
+            
+        if viewportTransform is None:
+            view = self.getViewWidget()
+            if view is None:
+                return None
+            viewportTransform = view.viewportTransform()
+        dt = self._qtBaseClass.deviceTransform(self, viewportTransform)
+        
+        #xmag = abs(dt.m11())+abs(dt.m12())
+        #ymag = abs(dt.m21())+abs(dt.m22())
+        #if xmag * ymag == 0: 
+        if dt.determinant() == 0:  ## occurs when deviceTransform is invalid because widget has not been displayed
+            return None
+        else:
+            return dt
+        
+    def viewTransform(self):
+        """Return the transform that maps from local coordinates to the item's ViewBox coordinates
+        If there is no ViewBox, return the scene transform.
+        Returns None if the item does not have a view."""
+        view = self.getViewBox()
+        if view is None:
+            return None
+        if hasattr(view, 'implements') and view.implements('ViewBox'):
+            tr = self.itemTransform(view.innerSceneItem())
+            if isinstance(tr, tuple):
+                tr = tr[0]   ## difference between pyside and pyqt
+            return tr
+        else:
+            return self.sceneTransform()
+            #return self.deviceTransform(view.viewportTransform())
+
+
+
+    def getBoundingParents(self):
+        """Return a list of parents to this item that have child clipping enabled."""
+        p = self
+        parents = []
+        while True:
+            p = p.parentItem()
+            if p is None:
+                break
+            if p.flags() & self.ItemClipsChildrenToShape:
+                parents.append(p)
+        return parents
+    
+    def viewRect(self):
+        """Return the bounds (in item coordinates) of this item's ViewBox or GraphicsWidget"""
+        view = self.getViewBox()
+        if view is None:
+            return None
+        bounds = self.mapRectFromView(view.viewRect())
+        if bounds is None:
+            return None
+
+        bounds = bounds.normalized()
+        
+        ## nah.
+        #for p in self.getBoundingParents():
+            #bounds &= self.mapRectFromScene(p.sceneBoundingRect())
+            
+        return bounds
+        
+        
+        
+    def pixelVectors(self, direction=None):
+        """Return vectors in local coordinates representing the width and height of a view pixel.
+        If direction is specified, then return vectors parallel and orthogonal to it.
+        
+        Return (None, None) if pixel size is not yet defined (usually because the item has not yet been displayed)
+        or if pixel size is below floating-point precision limit.
+        """
+        
+        ## This is an expensive function that gets called very frequently.
+        ## We have two levels of cache to try speeding things up.
+        
+        dt = self.deviceTransform()
+        if dt is None:
+            return None, None
+            
+        ## Ignore translation. If the translation is much larger than the scale
+        ## (such as when looking at unix timestamps), we can get floating-point errors.
+        dt.setMatrix(dt.m11(), dt.m12(), 0, dt.m21(), dt.m22(), 0, 0, 0, 1)
+        
+        ## check local cache
+        if direction is None and dt == self._pixelVectorCache[0]:
+            return tuple(map(Point, self._pixelVectorCache[1]))  ## return a *copy*
+        
+        ## check global cache
+        #key = (dt.m11(), dt.m21(), dt.m31(), dt.m12(), dt.m22(), dt.m32(), dt.m31(), dt.m32())
+        key = (dt.m11(), dt.m21(), dt.m12(), dt.m22())
+        pv = self._pixelVectorGlobalCache.get(key, None)
+        if direction is None and pv is not None:
+            self._pixelVectorCache = [dt, pv]
+            return tuple(map(Point,pv))  ## return a *copy*
+        
+        
+        if direction is None:
+            direction = QtCore.QPointF(1, 0)  
+        if direction.manhattanLength() == 0:
+            raise Exception("Cannot compute pixel length for 0-length vector.")
+            
+        ## attempt to re-scale direction vector to fit within the precision of the coordinate system
+        ## Here's the problem: we need to map the vector 'direction' from the item to the device, via transform 'dt'.
+        ## In some extreme cases, this mapping can fail unless the length of 'direction' is cleverly chosen.
+        ## Example:
+        ##   dt = [ 1, 0,    2 
+        ##          0, 2, 1e20
+        ##          0, 0,    1 ]
+        ## Then we map the origin (0,0) and direction (0,1) and get:
+        ##    o' = 2,1e20
+        ##    d' = 2,1e20  <-- should be 1e20+2, but this can't be represented with a 32-bit float
+        ##    
+        ##    |o' - d'|  == 0    <-- this is the problem.
+        
+        ## Perhaps the easiest solution is to exclude the transformation column from dt. Does this cause any other problems?
+        
+        #if direction.x() == 0:
+            #r = abs(dt.m32())/(abs(dt.m12()) + abs(dt.m22()))
+            ##r = 1.0/(abs(dt.m12()) + abs(dt.m22()))
+        #elif direction.y() == 0:
+            #r = abs(dt.m31())/(abs(dt.m11()) + abs(dt.m21()))
+            ##r = 1.0/(abs(dt.m11()) + abs(dt.m21()))
+        #else:
+            #r = ((abs(dt.m32())/(abs(dt.m12()) + abs(dt.m22()))) * (abs(dt.m31())/(abs(dt.m11()) + abs(dt.m21()))))**0.5
+        #if r == 0:
+            #r = 1.  ## shouldn't need to do this; probably means the math above is wrong?
+        #directionr = direction * r
+        directionr = direction
+        
+        ## map direction vector onto device
+        #viewDir = Point(dt.map(directionr) - dt.map(Point(0,0)))
+        #mdirection = dt.map(directionr)
+        dirLine = QtCore.QLineF(QtCore.QPointF(0,0), directionr)
+        viewDir = dt.map(dirLine)
+        if viewDir.length() == 0:
+            return None, None   ##  pixel size cannot be represented on this scale
+           
+        ## get unit vector and orthogonal vector (length of pixel)
+        #orthoDir = Point(viewDir[1], -viewDir[0])  ## orthogonal to line in pixel-space
+        try:  
+            normView = viewDir.unitVector()
+            #normView = viewDir.norm()  ## direction of one pixel orthogonal to line
+            normOrtho = normView.normalVector()
+            #normOrtho = orthoDir.norm()
+        except:
+            raise Exception("Invalid direction %s" %directionr)
+            
+        ## map back to item 
+        dti = fn.invertQTransform(dt)
+        #pv = Point(dti.map(normView)-dti.map(Point(0,0))), Point(dti.map(normOrtho)-dti.map(Point(0,0)))
+        pv = Point(dti.map(normView).p2()), Point(dti.map(normOrtho).p2())
+        self._pixelVectorCache[1] = pv
+        self._pixelVectorCache[0] = dt
+        self._pixelVectorGlobalCache[key] = pv
+        return self._pixelVectorCache[1]
+    
+        
+    def pixelLength(self, direction, ortho=False):
+        """Return the length of one pixel in the direction indicated (in local coordinates)
+        If ortho=True, then return the length of one pixel orthogonal to the direction indicated.
+        
+        Return None if pixel size is not yet defined (usually because the item has not yet been displayed).
+        """
+        normV, orthoV = self.pixelVectors(direction)
+        if normV == None or orthoV == None:
+            return None
+        if ortho:
+            return orthoV.length()
+        return normV.length()
+        
+
+    def pixelSize(self):
+        ## deprecated
+        v = self.pixelVectors()
+        if v == (None, None):
+            return None, None
+        return (v[0].x()**2+v[0].y()**2)**0.5, (v[1].x()**2+v[1].y()**2)**0.5
+
+    def pixelWidth(self):
+        ## deprecated
+        vt = self.deviceTransform()
+        if vt is None:
+            return 0
+        vt = fn.invertQTransform(vt)
+        return vt.map(QtCore.QLineF(0, 0, 1, 0)).length()
+        
+    def pixelHeight(self):
+        ## deprecated
+        vt = self.deviceTransform()
+        if vt is None:
+            return 0
+        vt = fn.invertQTransform(vt)
+        return vt.map(QtCore.QLineF(0, 0, 0, 1)).length()
+        #return Point(vt.map(QtCore.QPointF(0, 1))-vt.map(QtCore.QPointF(0, 0))).length()
+        
+        
+    def mapToDevice(self, obj):
+        """
+        Return *obj* mapped from local coordinates to device coordinates (pixels).
+        If there is no device mapping available, return None.
+        """
+        vt = self.deviceTransform()
+        if vt is None:
+            return None
+        return vt.map(obj)
+        
+    def mapFromDevice(self, obj):
+        """
+        Return *obj* mapped from device coordinates (pixels) to local coordinates.
+        If there is no device mapping available, return None.
+        """
+        vt = self.deviceTransform()
+        if vt is None:
+            return None
+        if isinstance(obj, QtCore.QPoint):
+            obj = QtCore.QPointF(obj)
+        vt = fn.invertQTransform(vt)
+        return vt.map(obj)
+
+    def mapRectToDevice(self, rect):
+        """
+        Return *rect* mapped from local coordinates to device coordinates (pixels).
+        If there is no device mapping available, return None.
+        """
+        vt = self.deviceTransform()
+        if vt is None:
+            return None
+        return vt.mapRect(rect)
+
+    def mapRectFromDevice(self, rect):
+        """
+        Return *rect* mapped from device coordinates (pixels) to local coordinates.
+        If there is no device mapping available, return None.
+        """
+        vt = self.deviceTransform()
+        if vt is None:
+            return None
+        vt = fn.invertQTransform(vt)
+        return vt.mapRect(rect)
+    
+    def mapToView(self, obj):
+        vt = self.viewTransform()
+        if vt is None:
+            return None
+        return vt.map(obj)
+        
+    def mapRectToView(self, obj):
+        vt = self.viewTransform()
+        if vt is None:
+            return None
+        return vt.mapRect(obj)
+        
+    def mapFromView(self, obj):
+        vt = self.viewTransform()
+        if vt is None:
+            return None
+        vt = fn.invertQTransform(vt)
+        return vt.map(obj)
+
+    def mapRectFromView(self, obj):
+        vt = self.viewTransform()
+        if vt is None:
+            return None
+        vt = fn.invertQTransform(vt)
+        return vt.mapRect(obj)
+
+    def pos(self):
+        return Point(self._qtBaseClass.pos(self))
+    
+    def viewPos(self):
+        return self.mapToView(self.mapFromParent(self.pos()))
+    
+    def parentItem(self):
+        ## PyQt bug -- some items are returned incorrectly.
+        return GraphicsScene.translateGraphicsItem(self._qtBaseClass.parentItem(self))
+        
+    def setParentItem(self, parent):
+        ## Workaround for Qt bug: https://bugreports.qt-project.org/browse/QTBUG-18616
+        if parent is not None:
+            pscene = parent.scene()
+            if pscene is not None and self.scene() is not pscene:
+                pscene.addItem(self)
+        return self._qtBaseClass.setParentItem(self, parent)
+    
+    def childItems(self):
+        ## PyQt bug -- some child items are returned incorrectly.
+        return list(map(GraphicsScene.translateGraphicsItem, self._qtBaseClass.childItems(self)))
+
+
+    def sceneTransform(self):
+        ## Qt bug: do no allow access to sceneTransform() until 
+        ## the item has a scene.
+        
+        if self.scene() is None:
+            return self.transform()
+        else:
+            return self._qtBaseClass.sceneTransform(self)
+
+
+    def transformAngle(self, relativeItem=None):
+        """Return the rotation produced by this item's transform (this assumes there is no shear in the transform)
+        If relativeItem is given, then the angle is determined relative to that item.
+        """
+        if relativeItem is None:
+            relativeItem = self.parentItem()
+            
+
+        tr = self.itemTransform(relativeItem)
+        if isinstance(tr, tuple):  ## difference between pyside and pyqt
+            tr = tr[0]
+        #vec = tr.map(Point(1,0)) - tr.map(Point(0,0))
+        vec = tr.map(QtCore.QLineF(0,0,1,0))
+        #return Point(vec).angle(Point(1,0))
+        return vec.angleTo(QtCore.QLineF(vec.p1(), vec.p1()+QtCore.QPointF(1,0)))
+        
+    #def itemChange(self, change, value):
+        #ret = self._qtBaseClass.itemChange(self, change, value)
+        #if change == self.ItemParentHasChanged or change == self.ItemSceneHasChanged:
+            #print "Item scene changed:", self
+            #self.setChildScene(self)  ## This is bizarre.
+        #return ret
+
+    #def setChildScene(self, ch):
+        #scene = self.scene()
+        #for ch2 in ch.childItems():
+            #if ch2.scene() is not scene:
+                #print "item", ch2, "has different scene:", ch2.scene(), scene
+                #scene.addItem(ch2)
+                #QtGui.QApplication.processEvents()
+                #print "   --> ", ch2.scene()
+            #self.setChildScene(ch2)
+
+    def parentChanged(self):
+        """Called when the item's parent has changed. 
+        This method handles connecting / disconnecting from ViewBox signals
+        to make sure viewRangeChanged works properly. It should generally be 
+        extended, not overridden."""
+        self._updateView()
+        
+
+    def _updateView(self):
+        ## called to see whether this item has a new view to connect to
+        ## NOTE: This is called from GraphicsObject.itemChange or GraphicsWidget.itemChange.
+
+        ## It is possible this item has moved to a different ViewBox or widget;
+        ## clear out previously determined references to these.
+        self.forgetViewBox()
+        self.forgetViewWidget()
+        
+        ## check for this item's current viewbox or view widget
+        view = self.getViewBox()
+        #if view is None:
+            ##print "  no view"
+            #return
+
+        oldView = None
+        if self._connectedView is not None:
+            oldView = self._connectedView()
+            
+        if view is oldView:
+            #print "  already have view", view
+            return
+
+        ## disconnect from previous view
+        if oldView is not None:
+            for signal, slot in [('sigRangeChanged', self.viewRangeChanged),
+                                 ('sigDeviceRangeChanged', self.viewRangeChanged), 
+                                 ('sigTransformChanged', self.viewTransformChanged), 
+                                 ('sigDeviceTransformChanged', self.viewTransformChanged)]:
+                try:
+                    getattr(oldView, signal).disconnect(slot)
+                except (TypeError, AttributeError, RuntimeError):
+                    # TypeError and RuntimeError are from pyqt and pyside, respectively
+                    pass
+            
+            self._connectedView = None
+
+        ## connect to new view
+        if view is not None:
+            #print "connect:", self, view
+            if hasattr(view, 'sigDeviceRangeChanged'):
+                # connect signals from GraphicsView
+                view.sigDeviceRangeChanged.connect(self.viewRangeChanged)
+                view.sigDeviceTransformChanged.connect(self.viewTransformChanged)
+            else:
+                # connect signals from ViewBox
+                view.sigRangeChanged.connect(self.viewRangeChanged)
+                view.sigTransformChanged.connect(self.viewTransformChanged)
+            self._connectedView = weakref.ref(view)
+            self.viewRangeChanged()
+            self.viewTransformChanged()
+        
+        ## inform children that their view might have changed
+        self._replaceView(oldView)
+        
+        self.viewChanged(view, oldView)
+        
+    def viewChanged(self, view, oldView):
+        """Called when this item's view has changed
+        (ie, the item has been added to or removed from a ViewBox)"""
+        pass
+        
+    def _replaceView(self, oldView, item=None):
+        if item is None:
+            item = self
+        for child in item.childItems():
+            if isinstance(child, GraphicsItem):
+                if child.getViewBox() is oldView:
+                    child._updateView()
+                        #self._replaceView(oldView, child)
+            else:
+                self._replaceView(oldView, child)
+        
+        
+
+    def viewRangeChanged(self):
+        """
+        Called whenever the view coordinates of the ViewBox containing this item have changed.
+        """
+        pass
+    
+    def viewTransformChanged(self):
+        """
+        Called whenever the transformation matrix of the view has changed.
+        (eg, the view range has changed or the view was resized)
+        """
+        pass
+    
+    #def prepareGeometryChange(self):
+        #self._qtBaseClass.prepareGeometryChange(self)
+        #self.informViewBoundsChanged()
+        
+    def informViewBoundsChanged(self):
+        """
+        Inform this item's container ViewBox that the bounds of this item have changed.
+        This is used by ViewBox to react if auto-range is enabled.
+        """
+        view = self.getViewBox()
+        if view is not None and hasattr(view, 'implements') and view.implements('ViewBox'):
+            view.itemBoundsChanged(self)  ## inform view so it can update its range if it wants
+    
+    def childrenShape(self):
+        """Return the union of the shapes of all descendants of this item in local coordinates."""
+        childs = self.allChildItems()
+        shapes = [self.mapFromItem(c, c.shape()) for c in self.allChildItems()]
+        return reduce(operator.add, shapes)
+    
+    def allChildItems(self, root=None):
+        """Return list of the entire item tree descending from this item."""
+        if root is None:
+            root = self
+        tree = []
+        for ch in root.childItems():
+            tree.append(ch)
+            tree.extend(self.allChildItems(ch))
+        return tree
+    
+    
+    def setExportMode(self, export, opts=None):
+        """
+        This method is called by exporters to inform items that they are being drawn for export
+        with a specific set of options. Items access these via self._exportOptions.
+        When exporting is complete, _exportOptions is set to False.
+        """
+        if opts is None:
+            opts = {}
+        if export:
+            self._exportOpts = opts
+            #if 'antialias' not in opts:
+                #self._exportOpts['antialias'] = True
+        else:
+            self._exportOpts = False
+    
+    #def update(self):
+        #self._qtBaseClass.update(self)
+        #print "Update:", self
+
+    def getContextMenus(self, event):
+        return [self.getMenu()] if hasattr(self, "getMenu") else []
diff --git a/libs/pyqtgraph/graphicsItems/GraphicsLayout.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/GraphicsLayout.py
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/GraphicsLayout.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/GraphicsLayout.py
diff --git a/libs/pyqtgraph/graphicsItems/GraphicsObject.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/GraphicsObject.py
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/GraphicsObject.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/GraphicsObject.py
diff --git a/libs/pyqtgraph/graphicsItems/GraphicsWidget.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/GraphicsWidget.py
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/GraphicsWidget.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/GraphicsWidget.py
diff --git a/libs/pyqtgraph/graphicsItems/GraphicsWidgetAnchor.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/GraphicsWidgetAnchor.py
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/GraphicsWidgetAnchor.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/GraphicsWidgetAnchor.py
diff --git a/libs/pyqtgraph/graphicsItems/GridItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/GridItem.py
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/GridItem.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/GridItem.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/HistogramLUTItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/HistogramLUTItem.py
new file mode 100644
index 00000000..31764250
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/HistogramLUTItem.py
@@ -0,0 +1,215 @@
+"""
+GraphicsWidget displaying an image histogram along with gradient editor. Can be used to adjust the appearance of images.
+"""
+
+
+from ..Qt import QtGui, QtCore
+from .. import functions as fn
+from .GraphicsWidget import GraphicsWidget
+from .ViewBox import *
+from .GradientEditorItem import *
+from .LinearRegionItem import *
+from .PlotDataItem import *
+from .AxisItem import *
+from .GridItem import *
+from ..Point import Point
+from .. import functions as fn
+import numpy as np
+from .. import debug as debug
+
+import weakref
+
+__all__ = ['HistogramLUTItem']
+
+
+class HistogramLUTItem(GraphicsWidget):
+    """
+    This is a graphicsWidget which provides controls for adjusting the display of an image.
+    Includes:
+
+    - Image histogram 
+    - Movable region over histogram to select black/white levels
+    - Gradient editor to define color lookup table for single-channel images
+    """
+    
+    sigLookupTableChanged = QtCore.Signal(object)
+    sigLevelsChanged = QtCore.Signal(object)
+    sigLevelChangeFinished = QtCore.Signal(object)
+    
+    def __init__(self, image=None, fillHistogram=True):
+        """
+        If *image* (ImageItem) is provided, then the control will be automatically linked to the image and changes to the control will be immediately reflected in the image's appearance.
+        By default, the histogram is rendered with a fill. For performance, set *fillHistogram* = False.
+        """
+        GraphicsWidget.__init__(self)
+        self.lut = None
+        self.imageItem = lambda: None  # fake a dead weakref
+        
+        self.layout = QtGui.QGraphicsGridLayout()
+        self.setLayout(self.layout)
+        self.layout.setContentsMargins(1,1,1,1)
+        self.layout.setSpacing(0)
+        self.vb = ViewBox(parent=self)
+        self.vb.setMaximumWidth(152)
+        self.vb.setMinimumWidth(45)
+        self.vb.setMouseEnabled(x=False, y=True)
+        self.gradient = GradientEditorItem()
+        self.gradient.setOrientation('right')
+        self.gradient.loadPreset('grey')
+        self.region = LinearRegionItem([0, 1], LinearRegionItem.Horizontal)
+        self.region.setZValue(1000)
+        self.vb.addItem(self.region)
+        self.axis = AxisItem('left', linkView=self.vb, maxTickLength=-10, parent=self)
+        self.layout.addItem(self.axis, 0, 0)
+        self.layout.addItem(self.vb, 0, 1)
+        self.layout.addItem(self.gradient, 0, 2)
+        self.range = None
+        self.gradient.setFlag(self.gradient.ItemStacksBehindParent)
+        self.vb.setFlag(self.gradient.ItemStacksBehindParent)
+        
+        #self.grid = GridItem()
+        #self.vb.addItem(self.grid)
+        
+        self.gradient.sigGradientChanged.connect(self.gradientChanged)
+        self.region.sigRegionChanged.connect(self.regionChanging)
+        self.region.sigRegionChangeFinished.connect(self.regionChanged)
+        self.vb.sigRangeChanged.connect(self.viewRangeChanged)
+        self.plot = PlotDataItem()
+        self.plot.rotate(90)
+        self.fillHistogram(fillHistogram)
+            
+        self.vb.addItem(self.plot)
+        self.autoHistogramRange()
+        
+        if image is not None:
+            self.setImageItem(image)
+        #self.setSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding)
+        
+    def fillHistogram(self, fill=True, level=0.0, color=(100, 100, 200)):
+        if fill:
+            self.plot.setFillLevel(level)
+            self.plot.setFillBrush(color)
+        else:
+            self.plot.setFillLevel(None)
+        
+    #def sizeHint(self, *args):
+        #return QtCore.QSizeF(115, 200)
+        
+    def paint(self, p, *args):
+        pen = self.region.lines[0].pen
+        rgn = self.getLevels()
+        p1 = self.vb.mapFromViewToItem(self, Point(self.vb.viewRect().center().x(), rgn[0]))
+        p2 = self.vb.mapFromViewToItem(self, Point(self.vb.viewRect().center().x(), rgn[1]))
+        gradRect = self.gradient.mapRectToParent(self.gradient.gradRect.rect())
+        for pen in [fn.mkPen('k', width=3), pen]:
+            p.setPen(pen)
+            p.drawLine(p1, gradRect.bottomLeft())
+            p.drawLine(p2, gradRect.topLeft())
+            p.drawLine(gradRect.topLeft(), gradRect.topRight())
+            p.drawLine(gradRect.bottomLeft(), gradRect.bottomRight())
+        #p.drawRect(self.boundingRect())
+        
+        
+    def setHistogramRange(self, mn, mx, padding=0.1):
+        """Set the Y range on the histogram plot. This disables auto-scaling."""
+        self.vb.enableAutoRange(self.vb.YAxis, False)
+        self.vb.setYRange(mn, mx, padding)
+        
+        #d = mx-mn
+        #mn -= d*padding
+        #mx += d*padding
+        #self.range = [mn,mx]
+        #self.updateRange()
+        #self.vb.setMouseEnabled(False, True)
+        #self.region.setBounds([mn,mx])
+        
+    def autoHistogramRange(self):
+        """Enable auto-scaling on the histogram plot."""
+        self.vb.enableAutoRange(self.vb.XYAxes)
+        #self.range = None
+        #self.updateRange()
+        #self.vb.setMouseEnabled(False, False)
+            
+    #def updateRange(self):
+        #self.vb.autoRange()
+        #if self.range is not None:
+            #self.vb.setYRange(*self.range)
+        #vr = self.vb.viewRect()
+        
+        #self.region.setBounds([vr.top(), vr.bottom()])
+
+    def setImageItem(self, img):
+        """Set an ImageItem to have its levels and LUT automatically controlled
+        by this HistogramLUTItem.
+        """
+        self.imageItem = weakref.ref(img)
+        img.sigImageChanged.connect(self.imageChanged)
+        img.setLookupTable(self.getLookupTable)  ## send function pointer, not the result
+        #self.gradientChanged()
+        self.regionChanged()
+        self.imageChanged(autoLevel=True)
+        #self.vb.autoRange()
+        
+    def viewRangeChanged(self):
+        self.update()
+    
+    def gradientChanged(self):
+        if self.imageItem() is not None:
+            if self.gradient.isLookupTrivial():
+                self.imageItem().setLookupTable(None) #lambda x: x.astype(np.uint8))
+            else:
+                self.imageItem().setLookupTable(self.getLookupTable)  ## send function pointer, not the result
+            
+        self.lut = None
+        #if self.imageItem is not None:
+            #self.imageItem.setLookupTable(self.gradient.getLookupTable(512))
+        self.sigLookupTableChanged.emit(self)
+
+    def getLookupTable(self, img=None, n=None, alpha=None):
+        """Return a lookup table from the color gradient defined by this 
+        HistogramLUTItem.
+        """
+        if n is None:
+            if img.dtype == np.uint8:
+                n = 256
+            else:
+                n = 512
+        if self.lut is None:
+            self.lut = self.gradient.getLookupTable(n, alpha=alpha)
+        return self.lut
+
+    def regionChanged(self):
+        if self.imageItem() is not None:
+            self.imageItem().setLevels(self.region.getRegion())
+        self.sigLevelChangeFinished.emit(self)
+        #self.update()
+
+    def regionChanging(self):
+        if self.imageItem() is not None:
+            self.imageItem().setLevels(self.region.getRegion())
+        self.sigLevelsChanged.emit(self)
+        self.update()
+
+    def imageChanged(self, autoLevel=False, autoRange=False):
+        profiler = debug.Profiler()
+        h = self.imageItem().getHistogram()
+        profiler('get histogram')
+        if h[0] is None:
+            return
+        self.plot.setData(*h)
+        profiler('set plot')
+        if autoLevel:
+            mn = h[0][0]
+            mx = h[0][-1]
+            self.region.setRegion([mn, mx])
+            profiler('set region')
+            
+    def getLevels(self):
+        """Return the min and max levels.
+        """
+        return self.region.getRegion()
+        
+    def setLevels(self, mn, mx):
+        """Set the min and max levels.
+        """
+        self.region.setRegion([mn, mx])
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ImageItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ImageItem.py
new file mode 100644
index 00000000..3d45ad77
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ImageItem.py
@@ -0,0 +1,611 @@
+from __future__ import division
+
+from ..Qt import QtGui, QtCore
+import numpy as np
+import collections
+from .. import functions as fn
+from .. import debug as debug
+from .GraphicsObject import GraphicsObject
+from ..Point import Point
+from .. import getConfigOption
+
+
+__all__ = ['ImageItem']
+
+
+class ImageItem(GraphicsObject):
+    """
+    **Bases:** :class:`GraphicsObject <pyqtgraph.GraphicsObject>`
+    
+    GraphicsObject displaying an image. Optimized for rapid update (ie video display).
+    This item displays either a 2D numpy array (height, width) or
+    a 3D array (height, width, RGBa). This array is optionally scaled (see 
+    :func:`setLevels <pyqtgraph.ImageItem.setLevels>`) and/or colored
+    with a lookup table (see :func:`setLookupTable <pyqtgraph.ImageItem.setLookupTable>`)
+    before being displayed.
+    
+    ImageItem is frequently used in conjunction with 
+    :class:`HistogramLUTItem <pyqtgraph.HistogramLUTItem>` or 
+    :class:`HistogramLUTWidget <pyqtgraph.HistogramLUTWidget>` to provide a GUI
+    for controlling the levels and lookup table used to display the image.
+    """
+    
+    sigImageChanged = QtCore.Signal()
+    sigRemoveRequested = QtCore.Signal(object)  # self; emitted when 'remove' is selected from context menu
+    
+    def __init__(self, image=None, **kargs):
+        """
+        See :func:`setImage <pyqtgraph.ImageItem.setImage>` for all allowed initialization arguments.
+        """
+        GraphicsObject.__init__(self)
+        self.menu = None
+        self.image = None   ## original image data
+        self.qimage = None  ## rendered image for display
+        
+        self.paintMode = None
+        
+        self.levels = None  ## [min, max] or [[redMin, redMax], ...]
+        self.lut = None
+        self.autoDownsample = False
+        
+        self.axisOrder = getConfigOption('imageAxisOrder')
+        
+        # In some cases, we use a modified lookup table to handle both rescaling
+        # and LUT more efficiently
+        self._effectiveLut = None
+        
+        self.drawKernel = None
+        self.border = None
+        self.removable = False
+        
+        if image is not None:
+            self.setImage(image, **kargs)
+        else:
+            self.setOpts(**kargs)
+
+    def setCompositionMode(self, mode):
+        """Change the composition mode of the item (see QPainter::CompositionMode
+        in the Qt documentation). This is useful when overlaying multiple ImageItems.
+        
+        ============================================  ============================================================
+        **Most common arguments:**
+        QtGui.QPainter.CompositionMode_SourceOver     Default; image replaces the background if it
+                                                      is opaque. Otherwise, it uses the alpha channel to blend
+                                                      the image with the background.
+        QtGui.QPainter.CompositionMode_Overlay        The image color is mixed with the background color to 
+                                                      reflect the lightness or darkness of the background.
+        QtGui.QPainter.CompositionMode_Plus           Both the alpha and color of the image and background pixels 
+                                                      are added together.
+        QtGui.QPainter.CompositionMode_Multiply       The output is the image color multiplied by the background.
+        ============================================  ============================================================
+        """
+        self.paintMode = mode
+        self.update()
+        
+    def setBorder(self, b):
+        self.border = fn.mkPen(b)
+        self.update()
+        
+    def width(self):
+        if self.image is None:
+            return None
+        axis = 0 if self.axisOrder == 'col-major' else 1
+        return self.image.shape[axis]
+        
+    def height(self):
+        if self.image is None:
+            return None
+        axis = 1 if self.axisOrder == 'col-major' else 0
+        return self.image.shape[axis]
+
+    def boundingRect(self):
+        if self.image is None:
+            return QtCore.QRectF(0., 0., 0., 0.)
+        return QtCore.QRectF(0., 0., float(self.width()), float(self.height()))
+
+    def setLevels(self, levels, update=True):
+        """
+        Set image scaling levels. Can be one of:
+        
+        * [blackLevel, whiteLevel]
+        * [[minRed, maxRed], [minGreen, maxGreen], [minBlue, maxBlue]]
+            
+        Only the first format is compatible with lookup tables. See :func:`makeARGB <pyqtgraph.makeARGB>`
+        for more details on how levels are applied.
+        """
+        if levels is not None:
+            levels = np.asarray(levels)
+        if not fn.eq(levels, self.levels):
+            self.levels = levels
+            self._effectiveLut = None
+            if update:
+                self.updateImage()
+        
+    def getLevels(self):
+        return self.levels
+        #return self.whiteLevel, self.blackLevel
+
+    def setLookupTable(self, lut, update=True):
+        """
+        Set the lookup table (numpy array) to use for this image. (see 
+        :func:`makeARGB <pyqtgraph.makeARGB>` for more information on how this is used).
+        Optionally, lut can be a callable that accepts the current image as an 
+        argument and returns the lookup table to use.
+        
+        Ordinarily, this table is supplied by a :class:`HistogramLUTItem <pyqtgraph.HistogramLUTItem>`
+        or :class:`GradientEditorItem <pyqtgraph.GradientEditorItem>`.
+        """
+        if lut is not self.lut:
+            self.lut = lut
+            self._effectiveLut = None
+            if update:
+                self.updateImage()
+
+    def setAutoDownsample(self, ads):
+        """
+        Set the automatic downsampling mode for this ImageItem.
+        
+        Added in version 0.9.9
+        """
+        self.autoDownsample = ads
+        self.qimage = None
+        self.update()
+
+    def setOpts(self, update=True, **kargs):
+        if 'axisOrder' in kargs:
+            val = kargs['axisOrder']
+            if val not in ('row-major', 'col-major'):
+                raise ValueError('axisOrder must be either "row-major" or "col-major"')
+            self.axisOrder = val
+        if 'lut' in kargs:
+            self.setLookupTable(kargs['lut'], update=update)
+        if 'levels' in kargs:
+            self.setLevels(kargs['levels'], update=update)
+        #if 'clipLevel' in kargs:
+            #self.setClipLevel(kargs['clipLevel'])
+        if 'opacity' in kargs:
+            self.setOpacity(kargs['opacity'])
+        if 'compositionMode' in kargs:
+            self.setCompositionMode(kargs['compositionMode'])
+        if 'border' in kargs:
+            self.setBorder(kargs['border'])
+        if 'removable' in kargs:
+            self.removable = kargs['removable']
+            self.menu = None
+        if 'autoDownsample' in kargs:
+            self.setAutoDownsample(kargs['autoDownsample'])
+        if update:
+            self.update()
+
+    def setRect(self, rect):
+        """Scale and translate the image to fit within rect (must be a QRect or QRectF)."""
+        self.resetTransform()
+        self.translate(rect.left(), rect.top())
+        self.scale(rect.width() / self.width(), rect.height() / self.height())
+
+    def clear(self):
+        self.image = None
+        self.prepareGeometryChange()
+        self.informViewBoundsChanged()
+        self.update()
+
+    def setImage(self, image=None, autoLevels=None, **kargs):
+        """
+        Update the image displayed by this item. For more information on how the image
+        is processed before displaying, see :func:`makeARGB <pyqtgraph.makeARGB>`
+        
+        =================  =========================================================================
+        **Arguments:**
+        image              (numpy array) Specifies the image data. May be 2D (width, height) or 
+                           3D (width, height, RGBa). The array dtype must be integer or floating
+                           point of any bit depth. For 3D arrays, the third dimension must
+                           be of length 3 (RGB) or 4 (RGBA). See *notes* below.
+        autoLevels         (bool) If True, this forces the image to automatically select 
+                           levels based on the maximum and minimum values in the data.
+                           By default, this argument is true unless the levels argument is
+                           given.
+        lut                (numpy array) The color lookup table to use when displaying the image.
+                           See :func:`setLookupTable <pyqtgraph.ImageItem.setLookupTable>`.
+        levels             (min, max) The minimum and maximum values to use when rescaling the image
+                           data. By default, this will be set to the minimum and maximum values 
+                           in the image. If the image array has dtype uint8, no rescaling is necessary.
+        opacity            (float 0.0-1.0)
+        compositionMode    See :func:`setCompositionMode <pyqtgraph.ImageItem.setCompositionMode>`
+        border             Sets the pen used when drawing the image border. Default is None.
+        autoDownsample     (bool) If True, the image is automatically downsampled to match the
+                           screen resolution. This improves performance for large images and 
+                           reduces aliasing.
+        =================  =========================================================================
+        
+        
+        **Notes:**        
+        
+        For backward compatibility, image data is assumed to be in column-major order (column, row).
+        However, most image data is stored in row-major order (row, column) and will need to be
+        transposed before calling setImage()::
+        
+            imageitem.setImage(imagedata.T)
+            
+        This requirement can be changed by calling ``image.setOpts(axisOrder='row-major')`` or
+        by changing the ``imageAxisOrder`` :ref:`global configuration option <apiref_config>`.
+        
+        
+        """
+        profile = debug.Profiler()
+
+        gotNewData = False
+        if image is None:
+            if self.image is None:
+                return
+        else:
+            gotNewData = True
+            shapeChanged = (self.image is None or image.shape != self.image.shape)
+            image = image.view(np.ndarray)
+            if self.image is None or image.dtype != self.image.dtype:
+                self._effectiveLut = None
+            self.image = image
+            if self.image.shape[0] > 2**15-1 or self.image.shape[1] > 2**15-1:
+                if 'autoDownsample' not in kargs:
+                    kargs['autoDownsample'] = True
+            if shapeChanged:
+                self.prepareGeometryChange()
+                self.informViewBoundsChanged()
+
+        profile()
+
+        if autoLevels is None:
+            if 'levels' in kargs:
+                autoLevels = False
+            else:
+                autoLevels = True
+        if autoLevels:
+            img = self.image
+            while img.size > 2**16:
+                img = img[::2, ::2]
+            mn, mx = img.min(), img.max()
+            if mn == mx:
+                mn = 0
+                mx = 255
+            kargs['levels'] = [mn,mx]
+
+        profile()
+
+        self.setOpts(update=False, **kargs)
+
+        profile()
+
+        self.qimage = None
+        self.update()
+
+        profile()
+
+        if gotNewData:
+            self.sigImageChanged.emit()
+
+    def dataTransform(self):
+        """Return the transform that maps from this image's input array to its
+        local coordinate system.
+        
+        This transform corrects for the transposition that occurs when image data
+        is interpreted in row-major order.
+        """
+        # Might eventually need to account for downsampling / clipping here
+        tr = QtGui.QTransform()
+        if self.axisOrder == 'row-major':
+            # transpose
+            tr.scale(1, -1)
+            tr.rotate(-90)
+        return tr
+
+    def inverseDataTransform(self):
+        """Return the transform that maps from this image's local coordinate
+        system to its input array.
+        
+        See dataTransform() for more information.
+        """
+        tr = QtGui.QTransform()
+        if self.axisOrder == 'row-major':
+            # transpose
+            tr.scale(1, -1)
+            tr.rotate(-90)
+        return tr
+
+    def mapToData(self, obj):
+        tr = self.inverseDataTransform()
+        return tr.map(obj)
+
+    def mapFromData(self, obj):
+        tr = self.dataTransform()
+        return tr.map(obj)
+
+    def quickMinMax(self, targetSize=1e6):
+        """
+        Estimate the min/max values of the image data by subsampling.
+        """
+        data = self.image
+        while data.size > targetSize:
+            ax = np.argmax(data.shape)
+            sl = [slice(None)] * data.ndim
+            sl[ax] = slice(None, None, 2)
+            data = data[sl]
+        return nanmin(data), nanmax(data)
+
+    def updateImage(self, *args, **kargs):
+        ## used for re-rendering qimage from self.image.
+        
+        ## can we make any assumptions here that speed things up?
+        ## dtype, range, size are all the same?
+        defaults = {
+            'autoLevels': False,
+        }
+        defaults.update(kargs)
+        return self.setImage(*args, **defaults)
+
+    def render(self):
+        # Convert data to QImage for display.
+        
+        profile = debug.Profiler()
+        if self.image is None or self.image.size == 0:
+            return
+        if isinstance(self.lut, collections.Callable):
+            lut = self.lut(self.image)
+        else:
+            lut = self.lut
+
+        if self.autoDownsample:
+            # reduce dimensions of image based on screen resolution
+            o = self.mapToDevice(QtCore.QPointF(0,0))
+            x = self.mapToDevice(QtCore.QPointF(1,0))
+            y = self.mapToDevice(QtCore.QPointF(0,1))
+            w = Point(x-o).length()
+            h = Point(y-o).length()
+            if w == 0 or h == 0:
+                self.qimage = None
+                return
+            xds = max(1, int(1.0 / w))
+            yds = max(1, int(1.0 / h))
+            axes = [1, 0] if self.axisOrder == 'row-major' else [0, 1]
+            image = fn.downsample(self.image, xds, axis=axes[0])
+            image = fn.downsample(image, yds, axis=axes[1])
+            self._lastDownsample = (xds, yds)
+        else:
+            image = self.image
+
+        # if the image data is a small int, then we can combine levels + lut
+        # into a single lut for better performance
+        levels = self.levels
+        if levels is not None and levels.ndim == 1 and image.dtype in (np.ubyte, np.uint16):
+            if self._effectiveLut is None:
+                eflsize = 2**(image.itemsize*8)
+                ind = np.arange(eflsize)
+                minlev, maxlev = levels
+                levdiff = maxlev - minlev
+                levdiff = 1 if levdiff == 0 else levdiff  # don't allow division by 0
+                if lut is None:
+                    efflut = fn.rescaleData(ind, scale=255./levdiff, 
+                                            offset=minlev, dtype=np.ubyte)
+                else:
+                    lutdtype = np.min_scalar_type(lut.shape[0]-1)
+                    efflut = fn.rescaleData(ind, scale=(lut.shape[0]-1)/levdiff,
+                                            offset=minlev, dtype=lutdtype, clip=(0, lut.shape[0]-1))
+                    efflut = lut[efflut]
+                
+                self._effectiveLut = efflut
+            lut = self._effectiveLut
+            levels = None
+        
+        # Assume images are in column-major order for backward compatibility
+        # (most images are in row-major order)
+        
+        if self.axisOrder == 'col-major':
+            image = image.transpose((1, 0, 2)[:image.ndim])
+        
+        argb, alpha = fn.makeARGB(image, lut=lut, levels=levels)
+        self.qimage = fn.makeQImage(argb, alpha, transpose=False)
+
+    def paint(self, p, *args):
+        profile = debug.Profiler()
+        if self.image is None:
+            return
+        if self.qimage is None:
+            self.render()
+            if self.qimage is None:
+                return
+            profile('render QImage')
+        if self.paintMode is not None:
+            p.setCompositionMode(self.paintMode)
+            profile('set comp mode')
+
+        shape = self.image.shape[:2] if self.axisOrder == 'col-major' else self.image.shape[:2][::-1]
+        p.drawImage(QtCore.QRectF(0,0,*shape), self.qimage)
+        profile('p.drawImage')
+        if self.border is not None:
+            p.setPen(self.border)
+            p.drawRect(self.boundingRect())
+
+    def save(self, fileName, *args):
+        """Save this image to file. Note that this saves the visible image (after scale/color changes), not the original data."""
+        if self.qimage is None:
+            self.render()
+        self.qimage.save(fileName, *args)
+
+    def getHistogram(self, bins='auto', step='auto', targetImageSize=200, targetHistogramSize=500, **kwds):
+        """Returns x and y arrays containing the histogram values for the current image.
+        For an explanation of the return format, see numpy.histogram().
+        
+        The *step* argument causes pixels to be skipped when computing the histogram to save time.
+        If *step* is 'auto', then a step is chosen such that the analyzed data has
+        dimensions roughly *targetImageSize* for each axis.
+        
+        The *bins* argument and any extra keyword arguments are passed to 
+        np.histogram(). If *bins* is 'auto', then a bin number is automatically
+        chosen based on the image characteristics:
+        
+        * Integer images will have approximately *targetHistogramSize* bins, 
+          with each bin having an integer width.
+        * All other types will have *targetHistogramSize* bins.
+        
+        This method is also used when automatically computing levels.
+        """
+        if self.image is None:
+            return None,None
+        if step == 'auto':
+            step = (int(np.ceil(self.image.shape[0] / targetImageSize)),
+                    int(np.ceil(self.image.shape[1] / targetImageSize)))
+        if np.isscalar(step):
+            step = (step, step)
+        stepData = self.image[::step[0], ::step[1]]
+        
+        if bins == 'auto':
+            if stepData.dtype.kind in "ui":
+                mn = stepData.min()
+                mx = stepData.max()
+                step = np.ceil((mx-mn) / 500.)
+                bins = np.arange(mn, mx+1.01*step, step, dtype=np.int)
+                if len(bins) == 0:
+                    bins = [mn, mx]
+            else:
+                bins = 500
+
+        kwds['bins'] = bins
+        stepData = stepData[np.isfinite(stepData)]
+        hist = np.histogram(stepData, **kwds)
+        
+        return hist[1][:-1], hist[0]
+
+    def setPxMode(self, b):
+        """
+        Set whether the item ignores transformations and draws directly to screen pixels.
+        If True, the item will not inherit any scale or rotation transformations from its
+        parent items, but its position will be transformed as usual.
+        (see GraphicsItem::ItemIgnoresTransformations in the Qt documentation)
+        """
+        self.setFlag(self.ItemIgnoresTransformations, b)
+    
+    def setScaledMode(self):
+        self.setPxMode(False)
+
+    def getPixmap(self):
+        if self.qimage is None:
+            self.render()
+            if self.qimage is None:
+                return None
+        return QtGui.QPixmap.fromImage(self.qimage)
+    
+    def pixelSize(self):
+        """return scene-size of a single pixel in the image"""
+        br = self.sceneBoundingRect()
+        if self.image is None:
+            return 1,1
+        return br.width()/self.width(), br.height()/self.height()
+    
+    def viewTransformChanged(self):
+        if self.autoDownsample:
+            self.qimage = None
+            self.update()
+
+    def mouseDragEvent(self, ev):
+        if ev.button() != QtCore.Qt.LeftButton:
+            ev.ignore()
+            return
+        elif self.drawKernel is not None:
+            ev.accept()
+            self.drawAt(ev.pos(), ev)
+
+    def mouseClickEvent(self, ev):
+        if ev.button() == QtCore.Qt.RightButton:
+            if self.raiseContextMenu(ev):
+                ev.accept()
+        if self.drawKernel is not None and ev.button() == QtCore.Qt.LeftButton:
+            self.drawAt(ev.pos(), ev)
+
+    def raiseContextMenu(self, ev):
+        menu = self.getMenu()
+        if menu is None:
+            return False
+        menu = self.scene().addParentContextMenus(self, menu, ev)
+        pos = ev.screenPos()
+        menu.popup(QtCore.QPoint(pos.x(), pos.y()))
+        return True
+
+    def getMenu(self):
+        if self.menu is None:
+            if not self.removable:
+                return None
+            self.menu = QtGui.QMenu()
+            self.menu.setTitle("Image")
+            remAct = QtGui.QAction("Remove image", self.menu)
+            remAct.triggered.connect(self.removeClicked)
+            self.menu.addAction(remAct)
+            self.menu.remAct = remAct
+        return self.menu
+        
+    def hoverEvent(self, ev):
+        if not ev.isExit() and self.drawKernel is not None and ev.acceptDrags(QtCore.Qt.LeftButton):
+            ev.acceptClicks(QtCore.Qt.LeftButton) ## we don't use the click, but we also don't want anyone else to use it.
+            ev.acceptClicks(QtCore.Qt.RightButton)
+        elif not ev.isExit() and self.removable:
+            ev.acceptClicks(QtCore.Qt.RightButton)  ## accept context menu clicks
+
+    def tabletEvent(self, ev):
+        pass
+        #print(ev.device())
+        #print(ev.pointerType())
+        #print(ev.pressure())
+    
+    def drawAt(self, pos, ev=None):
+        pos = [int(pos.x()), int(pos.y())]
+        dk = self.drawKernel
+        kc = self.drawKernelCenter
+        sx = [0,dk.shape[0]]
+        sy = [0,dk.shape[1]]
+        tx = [pos[0] - kc[0], pos[0] - kc[0]+ dk.shape[0]]
+        ty = [pos[1] - kc[1], pos[1] - kc[1]+ dk.shape[1]]
+        
+        for i in [0,1]:
+            dx1 = -min(0, tx[i])
+            dx2 = min(0, self.image.shape[0]-tx[i])
+            tx[i] += dx1+dx2
+            sx[i] += dx1+dx2
+
+            dy1 = -min(0, ty[i])
+            dy2 = min(0, self.image.shape[1]-ty[i])
+            ty[i] += dy1+dy2
+            sy[i] += dy1+dy2
+
+        ts = (slice(tx[0],tx[1]), slice(ty[0],ty[1]))
+        ss = (slice(sx[0],sx[1]), slice(sy[0],sy[1]))
+        mask = self.drawMask
+        src = dk
+        
+        if isinstance(self.drawMode, collections.Callable):
+            self.drawMode(dk, self.image, mask, ss, ts, ev)
+        else:
+            src = src[ss]
+            if self.drawMode == 'set':
+                if mask is not None:
+                    mask = mask[ss]
+                    self.image[ts] = self.image[ts] * (1-mask) + src * mask
+                else:
+                    self.image[ts] = src
+            elif self.drawMode == 'add':
+                self.image[ts] += src
+            else:
+                raise Exception("Unknown draw mode '%s'" % self.drawMode)
+            self.updateImage()
+        
+    def setDrawKernel(self, kernel=None, mask=None, center=(0,0), mode='set'):
+        self.drawKernel = kernel
+        self.drawKernelCenter = center
+        self.drawMode = mode
+        self.drawMask = mask
+
+    def removeClicked(self):
+        ## Send remove event only after we have exited the menu event handler
+        self.removeTimer = QtCore.QTimer()
+        self.removeTimer.timeout.connect(self.emitRemoveRequested)
+        self.removeTimer.start(0)
+
+    def emitRemoveRequested(self):
+        self.removeTimer.timeout.disconnect(self.emitRemoveRequested)
+        self.sigRemoveRequested.emit(self)
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/InfiniteLine.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/InfiniteLine.py
new file mode 100644
index 00000000..3da82327
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/InfiniteLine.py
@@ -0,0 +1,470 @@
+from ..Qt import QtGui, QtCore
+from ..Point import Point
+from .GraphicsObject import GraphicsObject
+from .TextItem import TextItem
+from .ViewBox import ViewBox
+from .. import functions as fn
+import numpy as np
+import weakref
+
+
+__all__ = ['InfiniteLine', 'InfLineLabel']
+
+
+class InfiniteLine(GraphicsObject):
+    """
+    **Bases:** :class:`GraphicsObject <pyqtgraph.GraphicsObject>`
+
+    Displays a line of infinite length.
+    This line may be dragged to indicate a position in data coordinates.
+
+    =============================== ===================================================
+    **Signals:**
+    sigDragged(self)
+    sigPositionChangeFinished(self)
+    sigPositionChanged(self)
+    =============================== ===================================================
+    """
+
+    sigDragged = QtCore.Signal(object)
+    sigPositionChangeFinished = QtCore.Signal(object)
+    sigPositionChanged = QtCore.Signal(object)
+
+    def __init__(self, pos=None, angle=90, pen=None, movable=False, bounds=None,
+                 hoverPen=None, label=None, labelOpts=None, name=None):
+        """
+        =============== ==================================================================
+        **Arguments:**
+        pos             Position of the line. This can be a QPointF or a single value for
+                        vertical/horizontal lines.
+        angle           Angle of line in degrees. 0 is horizontal, 90 is vertical.
+        pen             Pen to use when drawing line. Can be any arguments that are valid
+                        for :func:`mkPen <pyqtgraph.mkPen>`. Default pen is transparent
+                        yellow.
+        movable         If True, the line can be dragged to a new position by the user.
+        hoverPen        Pen to use when drawing line when hovering over it. Can be any
+                        arguments that are valid for :func:`mkPen <pyqtgraph.mkPen>`.
+                        Default pen is red.
+        bounds          Optional [min, max] bounding values. Bounds are only valid if the
+                        line is vertical or horizontal.
+        label           Text to be displayed in a label attached to the line, or
+                        None to show no label (default is None). May optionally
+                        include formatting strings to display the line value.
+        labelOpts       A dict of keyword arguments to use when constructing the
+                        text label. See :class:`InfLineLabel`.
+        name            Name of the item
+        =============== ==================================================================
+        """
+        self._boundingRect = None
+        self._line = None
+
+        self._name = name
+
+        GraphicsObject.__init__(self)
+
+        if bounds is None:              ## allowed value boundaries for orthogonal lines
+            self.maxRange = [None, None]
+        else:
+            self.maxRange = bounds
+        self.moving = False
+        self.setMovable(movable)
+        self.mouseHovering = False
+        self.p = [0, 0]
+        self.setAngle(angle)
+
+        if pos is None:
+            pos = Point(0,0)
+        self.setPos(pos)
+
+        if pen is None:
+            pen = (200, 200, 100)
+        self.setPen(pen)
+        if hoverPen is None:
+            self.setHoverPen(color=(255,0,0), width=self.pen.width())
+        else:
+            self.setHoverPen(hoverPen)
+        self.currentPen = self.pen
+        
+        if label is not None:
+            labelOpts = {} if labelOpts is None else labelOpts
+            self.label = InfLineLabel(self, text=label, **labelOpts)
+
+    def setMovable(self, m):
+        """Set whether the line is movable by the user."""
+        self.movable = m
+        self.setAcceptHoverEvents(m)
+
+    def setBounds(self, bounds):
+        """Set the (minimum, maximum) allowable values when dragging."""
+        self.maxRange = bounds
+        self.setValue(self.value())
+
+    def setPen(self, *args, **kwargs):
+        """Set the pen for drawing the line. Allowable arguments are any that are valid
+        for :func:`mkPen <pyqtgraph.mkPen>`."""
+        self.pen = fn.mkPen(*args, **kwargs)
+        if not self.mouseHovering:
+            self.currentPen = self.pen
+            self.update()
+
+    def setHoverPen(self, *args, **kwargs):
+        """Set the pen for drawing the line while the mouse hovers over it.
+        Allowable arguments are any that are valid
+        for :func:`mkPen <pyqtgraph.mkPen>`.
+
+        If the line is not movable, then hovering is also disabled.
+
+        Added in version 0.9.9."""
+        self.hoverPen = fn.mkPen(*args, **kwargs)
+        if self.mouseHovering:
+            self.currentPen = self.hoverPen
+            self.update()
+
+    def setAngle(self, angle):
+        """
+        Takes angle argument in degrees.
+        0 is horizontal; 90 is vertical.
+
+        Note that the use of value() and setValue() changes if the line is
+        not vertical or horizontal.
+        """
+        self.angle = ((angle+45) % 180) - 45   ##  -45 <= angle < 135
+        self.resetTransform()
+        self.rotate(self.angle)
+        self.update()
+
+    def setPos(self, pos):
+
+        if type(pos) in [list, tuple]:
+            newPos = pos
+        elif isinstance(pos, QtCore.QPointF):
+            newPos = [pos.x(), pos.y()]
+        else:
+            if self.angle == 90:
+                newPos = [pos, 0]
+            elif self.angle == 0:
+                newPos = [0, pos]
+            else:
+                raise Exception("Must specify 2D coordinate for non-orthogonal lines.")
+
+        ## check bounds (only works for orthogonal lines)
+        if self.angle == 90:
+            if self.maxRange[0] is not None:
+                newPos[0] = max(newPos[0], self.maxRange[0])
+            if self.maxRange[1] is not None:
+                newPos[0] = min(newPos[0], self.maxRange[1])
+        elif self.angle == 0:
+            if self.maxRange[0] is not None:
+                newPos[1] = max(newPos[1], self.maxRange[0])
+            if self.maxRange[1] is not None:
+                newPos[1] = min(newPos[1], self.maxRange[1])
+
+        if self.p != newPos:
+            self.p = newPos
+            self._invalidateCache()
+            GraphicsObject.setPos(self, Point(self.p))
+            self.sigPositionChanged.emit(self)
+
+    def getXPos(self):
+        return self.p[0]
+
+    def getYPos(self):
+        return self.p[1]
+
+    def getPos(self):
+        return self.p
+
+    def value(self):
+        """Return the value of the line. Will be a single number for horizontal and
+        vertical lines, and a list of [x,y] values for diagonal lines."""
+        if self.angle%180 == 0:
+            return self.getYPos()
+        elif self.angle%180 == 90:
+            return self.getXPos()
+        else:
+            return self.getPos()
+
+    def setValue(self, v):
+        """Set the position of the line. If line is horizontal or vertical, v can be
+        a single value. Otherwise, a 2D coordinate must be specified (list, tuple and
+        QPointF are all acceptable)."""
+        self.setPos(v)
+
+    ## broken in 4.7
+    #def itemChange(self, change, val):
+        #if change in [self.ItemScenePositionHasChanged, self.ItemSceneHasChanged]:
+            #self.updateLine()
+            #print "update", change
+            #print self.getBoundingParents()
+        #else:
+            #print "ignore", change
+        #return GraphicsObject.itemChange(self, change, val)
+
+    def _invalidateCache(self):
+        self._line = None
+        self._boundingRect = None
+
+    def boundingRect(self):
+        if self._boundingRect is None:
+            #br = UIGraphicsItem.boundingRect(self)
+            br = self.viewRect()
+            if br is None:
+                return QtCore.QRectF()
+            
+            ## add a 4-pixel radius around the line for mouse interaction.
+            px = self.pixelLength(direction=Point(1,0), ortho=True)  ## get pixel length orthogonal to the line
+            if px is None:
+                px = 0
+            w = (max(4, self.pen.width()/2, self.hoverPen.width()/2)+1) * px
+            br.setBottom(-w)
+            br.setTop(w)
+            
+            br = br.normalized()
+            self._boundingRect = br
+            self._line = QtCore.QLineF(br.right(), 0.0, br.left(), 0.0)
+        return self._boundingRect
+
+    def paint(self, p, *args):
+        p.setPen(self.currentPen)
+        p.drawLine(self._line)
+
+    def dataBounds(self, axis, frac=1.0, orthoRange=None):
+        if axis == 0:
+            return None   ## x axis should never be auto-scaled
+        else:
+            return (0,0)
+
+    def mouseDragEvent(self, ev):
+        if self.movable and ev.button() == QtCore.Qt.LeftButton:
+            if ev.isStart():
+                self.moving = True
+                self.cursorOffset = self.pos() - self.mapToParent(ev.buttonDownPos())
+                self.startPosition = self.pos()
+            ev.accept()
+
+            if not self.moving:
+                return
+
+            self.setPos(self.cursorOffset + self.mapToParent(ev.pos()))
+            self.sigDragged.emit(self)
+            if ev.isFinish():
+                self.moving = False
+                self.sigPositionChangeFinished.emit(self)
+
+    def mouseClickEvent(self, ev):
+        if self.moving and ev.button() == QtCore.Qt.RightButton:
+            ev.accept()
+            self.setPos(self.startPosition)
+            self.moving = False
+            self.sigDragged.emit(self)
+            self.sigPositionChangeFinished.emit(self)
+
+    def hoverEvent(self, ev):
+        if (not ev.isExit()) and self.movable and ev.acceptDrags(QtCore.Qt.LeftButton):
+            self.setMouseHover(True)
+        else:
+            self.setMouseHover(False)
+
+    def setMouseHover(self, hover):
+        ## Inform the item that the mouse is (not) hovering over it
+        if self.mouseHovering == hover:
+            return
+        self.mouseHovering = hover
+        if hover:
+            self.currentPen = self.hoverPen
+        else:
+            self.currentPen = self.pen
+        self.update()
+
+    def viewTransformChanged(self):
+        """
+        Called whenever the transformation matrix of the view has changed.
+        (eg, the view range has changed or the view was resized)
+        """
+        self._invalidateCache()
+        
+    def setName(self, name):
+        self._name = name
+
+    def name(self):
+        return self._name
+
+
+class InfLineLabel(TextItem):
+    """
+    A TextItem that attaches itself to an InfiniteLine.
+    
+    This class extends TextItem with the following features:
+    
+    * Automatically positions adjacent to the line at a fixed position along
+      the line and within the view box.
+    * Automatically reformats text when the line value has changed.
+    * Can optionally be dragged to change its location along the line.
+    * Optionally aligns to its parent line.
+
+    =============== ==================================================================
+    **Arguments:**
+    line            The InfiniteLine to which this label will be attached.
+    text            String to display in the label. May contain a {value} formatting
+                    string to display the current value of the line.
+    movable         Bool; if True, then the label can be dragged along the line.
+    position        Relative position (0.0-1.0) within the view to position the label
+                    along the line.
+    anchors         List of (x,y) pairs giving the text anchor positions that should
+                    be used when the line is moved to one side of the view or the
+                    other. This allows text to switch to the opposite side of the line
+                    as it approaches the edge of the view. These are automatically
+                    selected for some common cases, but may be specified if the 
+                    default values give unexpected results.
+    =============== ==================================================================
+    
+    All extra keyword arguments are passed to TextItem. A particularly useful
+    option here is to use `rotateAxis=(1, 0)`, which will cause the text to
+    be automatically rotated parallel to the line.
+    """
+    def __init__(self, line, text="", movable=False, position=0.5, anchors=None, **kwds):
+        self.line = line
+        self.movable = movable
+        self.moving = False
+        self.orthoPos = position  # text will always be placed on the line at a position relative to view bounds
+        self.format = text
+        self.line.sigPositionChanged.connect(self.valueChanged)
+        self._endpoints = (None, None)
+        if anchors is None:
+            # automatically pick sensible anchors
+            rax = kwds.get('rotateAxis', None)
+            if rax is not None:
+                if tuple(rax) == (1,0):
+                    anchors = [(0.5, 0), (0.5, 1)]
+                else:
+                    anchors = [(0, 0.5), (1, 0.5)]
+            else:
+                if line.angle % 180 == 0:
+                    anchors = [(0.5, 0), (0.5, 1)]
+                else:
+                    anchors = [(0, 0.5), (1, 0.5)]
+            
+        self.anchors = anchors
+        TextItem.__init__(self, **kwds)
+        self.setParentItem(line)
+        self.valueChanged()
+
+    def valueChanged(self):
+        if not self.isVisible():
+            return
+        value = self.line.value()
+        self.setText(self.format.format(value=value))
+        self.updatePosition()
+
+    def getEndpoints(self):
+        # calculate points where line intersects view box
+        # (in line coordinates)
+        if self._endpoints[0] is None:
+            lr = self.line.boundingRect()
+            pt1 = Point(lr.left(), 0)
+            pt2 = Point(lr.right(), 0)
+            
+            if self.line.angle % 90 != 0:
+                # more expensive to find text position for oblique lines.
+                view = self.getViewBox()
+                if not self.isVisible() or not isinstance(view, ViewBox):
+                    # not in a viewbox, skip update
+                    return (None, None)
+                p = QtGui.QPainterPath()
+                p.moveTo(pt1)
+                p.lineTo(pt2)
+                p = self.line.itemTransform(view)[0].map(p)
+                vr = QtGui.QPainterPath()
+                vr.addRect(view.boundingRect())
+                paths = vr.intersected(p).toSubpathPolygons(QtGui.QTransform())
+                if len(paths) > 0:
+                    l = list(paths[0])
+                    pt1 = self.line.mapFromItem(view, l[0])
+                    pt2 = self.line.mapFromItem(view, l[1])
+            self._endpoints = (pt1, pt2)
+        return self._endpoints
+    
+    def updatePosition(self):
+        # update text position to relative view location along line
+        self._endpoints = (None, None)
+        pt1, pt2 = self.getEndpoints()
+        if pt1 is None:
+            return
+        pt = pt2 * self.orthoPos + pt1 * (1-self.orthoPos)
+        self.setPos(pt)
+        
+        # update anchor to keep text visible as it nears the view box edge
+        vr = self.line.viewRect()
+        if vr is not None:
+            self.setAnchor(self.anchors[0 if vr.center().y() < 0 else 1])
+        
+    def setVisible(self, v):
+        TextItem.setVisible(self, v)
+        if v:
+            self.updateText()
+            self.updatePosition()
+            
+    def setMovable(self, m):
+        """Set whether this label is movable by dragging along the line.
+        """
+        self.movable = m
+        self.setAcceptHoverEvents(m)
+        
+    def setPosition(self, p):
+        """Set the relative position (0.0-1.0) of this label within the view box
+        and along the line. 
+        
+        For horizontal (angle=0) and vertical (angle=90) lines, a value of 0.0
+        places the text at the bottom or left of the view, respectively. 
+        """
+        self.orthoPos = p
+        self.updatePosition()
+        
+    def setFormat(self, text):
+        """Set the text format string for this label.
+        
+        May optionally contain "{value}" to include the lines current value
+        (the text will be reformatted whenever the line is moved).
+        """
+        self.format = text
+        self.valueChanged()
+        
+    def mouseDragEvent(self, ev):
+        if self.movable and ev.button() == QtCore.Qt.LeftButton:
+            if ev.isStart():
+                self._moving = True
+                self._cursorOffset = self._posToRel(ev.buttonDownPos())
+                self._startPosition = self.orthoPos
+            ev.accept()
+
+            if not self._moving:
+                return
+
+            rel = self._posToRel(ev.pos())
+            self.orthoPos = np.clip(self._startPosition + rel - self._cursorOffset, 0, 1)
+            self.updatePosition()
+            if ev.isFinish():
+                self._moving = False
+
+    def mouseClickEvent(self, ev):
+        if self.moving and ev.button() == QtCore.Qt.RightButton:
+            ev.accept()
+            self.orthoPos = self._startPosition
+            self.moving = False
+
+    def hoverEvent(self, ev):
+        if not ev.isExit() and self.movable:
+            ev.acceptDrags(QtCore.Qt.LeftButton)
+
+    def viewTransformChanged(self):
+        self.updatePosition()
+        TextItem.viewTransformChanged(self)
+
+    def _posToRel(self, pos):
+        # convert local position to relative position along line between view bounds
+        pt1, pt2 = self.getEndpoints()
+        if pt1 is None:
+            return 0
+        view = self.getViewBox()
+        pos = self.mapToParent(pos)
+        return (pos.x() - pt1.x()) / (pt2.x()-pt1.x())
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/IsocurveItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/IsocurveItem.py
new file mode 100644
index 00000000..03ebc69f
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/IsocurveItem.py
@@ -0,0 +1,111 @@
+from .. import getConfigOption
+from .GraphicsObject import *
+from .. import functions as fn
+from ..Qt import QtGui, QtCore
+
+
+class IsocurveItem(GraphicsObject):
+    """
+    **Bases:** :class:`GraphicsObject <pyqtgraph.GraphicsObject>`
+    
+    Item displaying an isocurve of a 2D array. To align this item correctly with an 
+    ImageItem, call ``isocurve.setParentItem(image)``.
+    """
+    def __init__(self, data=None, level=0, pen='w', axisOrder=None):
+        """
+        Create a new isocurve item. 
+        
+        ==============  ===============================================================
+        **Arguments:**
+        data            A 2-dimensional ndarray. Can be initialized as None, and set
+                        later using :func:`setData <pyqtgraph.IsocurveItem.setData>`
+        level           The cutoff value at which to draw the isocurve.
+        pen             The color of the curve item. Can be anything valid for
+                        :func:`mkPen <pyqtgraph.mkPen>`
+        axisOrder       May be either 'row-major' or 'col-major'. By default this uses
+                        the ``imageAxisOrder``
+                        :ref:`global configuration option <apiref_config>`.
+        ==============  ===============================================================
+        """
+        GraphicsObject.__init__(self)
+
+        self.level = level
+        self.data = None
+        self.path = None
+        self.axisOrder = getConfigOption('imageAxisOrder') if axisOrder is None else axisOrder
+        self.setPen(pen)
+        self.setData(data, level)
+    
+    def setData(self, data, level=None):
+        """
+        Set the data/image to draw isocurves for.
+        
+        ==============  ========================================================================
+        **Arguments:**
+        data            A 2-dimensional ndarray.
+        level           The cutoff value at which to draw the curve. If level is not specified,
+                        the previously set level is used.
+        ==============  ========================================================================
+        """
+        if level is None:
+            level = self.level
+        self.level = level
+        self.data = data
+        self.path = None
+        self.prepareGeometryChange()
+        self.update()
+
+    def setLevel(self, level):
+        """Set the level at which the isocurve is drawn."""
+        self.level = level
+        self.path = None
+        self.prepareGeometryChange()
+        self.update()
+
+    def setPen(self, *args, **kwargs):
+        """Set the pen used to draw the isocurve. Arguments can be any that are valid 
+        for :func:`mkPen <pyqtgraph.mkPen>`"""
+        self.pen = fn.mkPen(*args, **kwargs)
+        self.update()
+
+    def setBrush(self, *args, **kwargs):
+        """Set the brush used to draw the isocurve. Arguments can be any that are valid 
+        for :func:`mkBrush <pyqtgraph.mkBrush>`"""
+        self.brush = fn.mkBrush(*args, **kwargs)
+        self.update()
+        
+    def updateLines(self, data, level):
+        self.setData(data, level)
+
+    def boundingRect(self):
+        if self.data is None:
+            return QtCore.QRectF()
+        if self.path is None:
+            self.generatePath()
+        return self.path.boundingRect()
+    
+    def generatePath(self):
+        if self.data is None:
+            self.path = None
+            return
+        
+        if self.axisOrder == 'row-major':
+            data = self.data.T
+        else:
+            data = self.data
+        
+        lines = fn.isocurve(data, self.level, connected=True, extendToEdge=True)
+        self.path = QtGui.QPainterPath()
+        for line in lines:
+            self.path.moveTo(*line[0])
+            for p in line[1:]:
+                self.path.lineTo(*p)
+    
+    def paint(self, p, *args):
+        if self.data is None:
+            return
+        if self.path is None:
+            self.generatePath()
+        p.setPen(self.pen)
+        p.drawPath(self.path)
+    
\ No newline at end of file
diff --git a/libs/pyqtgraph/graphicsItems/ItemGroup.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ItemGroup.py
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/ItemGroup.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ItemGroup.py
diff --git a/libs/pyqtgraph/graphicsItems/LabelItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/LabelItem.py
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/LabelItem.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/LabelItem.py
diff --git a/libs/pyqtgraph/graphicsItems/LegendItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/LegendItem.py
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/LegendItem.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/LegendItem.py
diff --git a/libs/pyqtgraph/graphicsItems/LinearRegionItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/LinearRegionItem.py
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/LinearRegionItem.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/LinearRegionItem.py
diff --git a/libs/pyqtgraph/graphicsItems/MultiPlotItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/MultiPlotItem.py
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/MultiPlotItem.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/MultiPlotItem.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/PlotCurveItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/PlotCurveItem.py
new file mode 100644
index 00000000..d66a8a99
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/PlotCurveItem.py
@@ -0,0 +1,606 @@
+from ..Qt import QtGui, QtCore
+try:
+    from ..Qt import QtOpenGL
+    HAVE_OPENGL = True
+except:
+    HAVE_OPENGL = False
+    
+import numpy as np
+from .GraphicsObject import GraphicsObject
+from .. import functions as fn
+from ..Point import Point
+import struct, sys
+from .. import getConfigOption
+from .. import debug
+
+__all__ = ['PlotCurveItem']
+class PlotCurveItem(GraphicsObject):
+    
+    
+    """
+    Class representing a single plot curve. Instances of this class are created
+    automatically as part of PlotDataItem; these rarely need to be instantiated
+    directly.
+    
+    Features:
+    
+    - Fast data update
+    - Fill under curve
+    - Mouse interaction
+    
+    ====================  ===============================================
+    **Signals:**
+    sigPlotChanged(self)  Emitted when the data being plotted has changed
+    sigClicked(self)      Emitted when the curve is clicked
+    ====================  ===============================================
+    """
+    
+    sigPlotChanged = QtCore.Signal(object)
+    sigClicked = QtCore.Signal(object)
+    
+    def __init__(self, *args, **kargs):
+        """
+        Forwards all arguments to :func:`setData <pyqtgraph.PlotCurveItem.setData>`.
+        
+        Some extra arguments are accepted as well:
+        
+        ==============  =======================================================
+        **Arguments:**
+        parent          The parent GraphicsObject (optional)
+        clickable       If True, the item will emit sigClicked when it is 
+                        clicked on. Defaults to False.
+        ==============  =======================================================
+        """
+        GraphicsObject.__init__(self, kargs.get('parent', None))
+        self.clear()
+            
+        ## this is disastrous for performance.
+        #self.setCacheMode(QtGui.QGraphicsItem.DeviceCoordinateCache)
+        
+        self.metaData = {}
+        self.opts = {
+            'pen': fn.mkPen('w'),
+            'shadowPen': None,
+            'fillLevel': None,
+            'brush': None,
+            'stepMode': False,
+            'name': None,
+            'antialias': getConfigOption('antialias'),
+            'connect': 'all',
+            'mouseWidth': 8, # width of shape responding to mouse click
+        }
+        self.setClickable(kargs.get('clickable', False))
+        self.setData(*args, **kargs)
+        
+    def implements(self, interface=None):
+        ints = ['plotData']
+        if interface is None:
+            return ints
+        return interface in ints
+    
+    def name(self):
+        return self.opts.get('name', None)
+    
+    def setClickable(self, s, width=None):
+        """Sets whether the item responds to mouse clicks.
+        
+        The *width* argument specifies the width in pixels orthogonal to the
+        curve that will respond to a mouse click.
+        """
+        self.clickable = s
+        if width is not None:
+            self.opts['mouseWidth'] = width
+            self._mouseShape = None
+            self._boundingRect = None        
+        
+        
+    def getData(self):
+        return self.xData, self.yData
+        
+    def dataBounds(self, ax, frac=1.0, orthoRange=None):
+        ## Need this to run as fast as possible.
+        ## check cache first:
+        cache = self._boundsCache[ax]
+        if cache is not None and cache[0] == (frac, orthoRange):
+            return cache[1]
+        
+        (x, y) = self.getData()
+        if x is None or len(x) == 0:
+            return (None, None)
+            
+        if ax == 0:
+            d = x
+            d2 = y
+        elif ax == 1:
+            d = y
+            d2 = x
+
+        ## If an orthogonal range is specified, mask the data now
+        if orthoRange is not None:
+            mask = (d2 >= orthoRange[0]) * (d2 <= orthoRange[1])
+            d = d[mask]
+            #d2 = d2[mask]
+            
+        if len(d) == 0:
+            return (None, None)
+
+        ## Get min/max (or percentiles) of the requested data range
+        if frac >= 1.0:
+            # include complete data range
+            # first try faster nanmin/max function, then cut out infs if needed.
+            b = (np.nanmin(d), np.nanmax(d))
+            if any(np.isinf(b)):
+                mask = np.isfinite(d)
+                d = d[mask]
+                b = (d.min(), d.max())
+                
+        elif frac <= 0.0:
+            raise Exception("Value for parameter 'frac' must be > 0. (got %s)" % str(frac))
+        else:
+            # include a percentile of data range
+            mask = np.isfinite(d)
+            d = d[mask]
+            b = np.percentile(d, [50 * (1 - frac), 50 * (1 + frac)])
+
+        ## adjust for fill level
+        if ax == 1 and self.opts['fillLevel'] is not None:
+            b = (min(b[0], self.opts['fillLevel']), max(b[1], self.opts['fillLevel']))
+            
+        ## Add pen width only if it is non-cosmetic.
+        pen = self.opts['pen']
+        spen = self.opts['shadowPen']
+        if not pen.isCosmetic():
+            b = (b[0] - pen.widthF()*0.7072, b[1] + pen.widthF()*0.7072)
+        if spen is not None and not spen.isCosmetic() and spen.style() != QtCore.Qt.NoPen:
+            b = (b[0] - spen.widthF()*0.7072, b[1] + spen.widthF()*0.7072)
+            
+        self._boundsCache[ax] = [(frac, orthoRange), b]
+        return b
+            
+    def pixelPadding(self):
+        pen = self.opts['pen']
+        spen = self.opts['shadowPen']
+        w = 0
+        if pen.isCosmetic():
+            w += pen.widthF()*0.7072
+        if spen is not None and spen.isCosmetic() and spen.style() != QtCore.Qt.NoPen:
+            w = max(w, spen.widthF()*0.7072)
+        if self.clickable:
+            w = max(w, self.opts['mouseWidth']//2 + 1)
+        return w
+
+    def boundingRect(self):
+        if self._boundingRect is None:
+            (xmn, xmx) = self.dataBounds(ax=0)
+            (ymn, ymx) = self.dataBounds(ax=1)
+            if xmn is None:
+                return QtCore.QRectF()
+            
+            px = py = 0.0
+            pxPad = self.pixelPadding()
+            if pxPad > 0:
+                # determine length of pixel in local x, y directions    
+                px, py = self.pixelVectors()
+                try:
+                    px = 0 if px is None else px.length()
+                except OverflowError:
+                    px = 0
+                try:
+                    py = 0 if py is None else py.length()
+                except OverflowError:
+                    py = 0
+                
+                # return bounds expanded by pixel size
+                px *= pxPad
+                py *= pxPad
+            #px += self._maxSpotWidth * 0.5
+            #py += self._maxSpotWidth * 0.5
+            self._boundingRect = QtCore.QRectF(xmn-px, ymn-py, (2*px)+xmx-xmn, (2*py)+ymx-ymn)
+            
+        return self._boundingRect
+    
+    def viewTransformChanged(self):
+        self.invalidateBounds()
+        self.prepareGeometryChange()
+        
+    #def boundingRect(self):
+        #if self._boundingRect is None:
+            #(x, y) = self.getData()
+            #if x is None or y is None or len(x) == 0 or len(y) == 0:
+                #return QtCore.QRectF()
+                
+                
+            #if self.opts['shadowPen'] is not None:
+                #lineWidth = (max(self.opts['pen'].width(), self.opts['shadowPen'].width()) + 1)
+            #else:
+                #lineWidth = (self.opts['pen'].width()+1)
+                
+            
+            #pixels = self.pixelVectors()
+            #if pixels == (None, None):
+                #pixels = [Point(0,0), Point(0,0)]
+                
+            #xmin = x.min()
+            #xmax = x.max()
+            #ymin = y.min()
+            #ymax = y.max()
+            
+            #if self.opts['fillLevel'] is not None:
+                #ymin = min(ymin, self.opts['fillLevel'])
+                #ymax = max(ymax, self.opts['fillLevel'])
+                
+            #xmin -= pixels[0].x() * lineWidth
+            #xmax += pixels[0].x() * lineWidth
+            #ymin -= abs(pixels[1].y()) * lineWidth
+            #ymax += abs(pixels[1].y()) * lineWidth
+            
+            #self._boundingRect = QtCore.QRectF(xmin, ymin, xmax-xmin, ymax-ymin)
+        #return self._boundingRect
+
+        
+    def invalidateBounds(self):
+        self._boundingRect = None
+        self._boundsCache = [None, None]
+            
+    def setPen(self, *args, **kargs):
+        """Set the pen used to draw the curve."""
+        self.opts['pen'] = fn.mkPen(*args, **kargs)
+        self.invalidateBounds()
+        self.update()
+        
+    def setShadowPen(self, *args, **kargs):
+        """Set the shadow pen used to draw behind tyhe primary pen.
+        This pen must have a larger width than the primary 
+        pen to be visible.
+        """
+        self.opts['shadowPen'] = fn.mkPen(*args, **kargs)
+        self.invalidateBounds()
+        self.update()
+
+    def setBrush(self, *args, **kargs):
+        """Set the brush used when filling the area under the curve"""
+        self.opts['brush'] = fn.mkBrush(*args, **kargs)
+        self.invalidateBounds()
+        self.update()
+        
+    def setFillLevel(self, level):
+        """Set the level filled to when filling under the curve"""
+        self.opts['fillLevel'] = level
+        self.fillPath = None
+        self.invalidateBounds()
+        self.update()
+
+    def setData(self, *args, **kargs):
+        """
+        ==============  ========================================================
+        **Arguments:**
+        x, y            (numpy arrays) Data to show 
+        pen             Pen to use when drawing. Any single argument accepted by
+                        :func:`mkPen <pyqtgraph.mkPen>` is allowed.
+        shadowPen       Pen for drawing behind the primary pen. Usually this
+                        is used to emphasize the curve by providing a 
+                        high-contrast border. Any single argument accepted by
+                        :func:`mkPen <pyqtgraph.mkPen>` is allowed.
+        fillLevel       (float or None) Fill the area 'under' the curve to
+                        *fillLevel*
+        brush           QBrush to use when filling. Any single argument accepted
+                        by :func:`mkBrush <pyqtgraph.mkBrush>` is allowed.
+        antialias       (bool) Whether to use antialiasing when drawing. This
+                        is disabled by default because it decreases performance.
+        stepMode        If True, two orthogonal lines are drawn for each sample
+                        as steps. This is commonly used when drawing histograms.
+                        Note that in this case, len(x) == len(y) + 1
+        connect         Argument specifying how vertexes should be connected
+                        by line segments. Default is "all", indicating full
+                        connection. "pairs" causes only even-numbered segments
+                        to be drawn. "finite" causes segments to be omitted if
+                        they are attached to nan or inf values. For any other
+                        connectivity, specify an array of boolean values.
+        ==============  ========================================================
+        
+        If non-keyword arguments are used, they will be interpreted as
+        setData(y) for a single argument and setData(x, y) for two
+        arguments.
+        
+        
+        """
+        self.updateData(*args, **kargs)
+        
+    def updateData(self, *args, **kargs):
+        profiler = debug.Profiler()
+
+        if len(args) == 1:
+            kargs['y'] = args[0]
+        elif len(args) == 2:
+            kargs['x'] = args[0]
+            kargs['y'] = args[1]
+        
+        if 'y' not in kargs or kargs['y'] is None:
+            kargs['y'] = np.array([])
+        if 'x' not in kargs or kargs['x'] is None:
+            kargs['x'] = np.arange(len(kargs['y']))
+            
+        for k in ['x', 'y']:
+            data = kargs[k]
+            if isinstance(data, list):
+                data = np.array(data)
+                kargs[k] = data
+            if not isinstance(data, np.ndarray) or data.ndim > 1:
+                raise Exception("Plot data must be 1D ndarray.")
+            if 'complex' in str(data.dtype):
+                raise Exception("Can not plot complex data types.")
+            
+        profiler("data checks")
+        
+        #self.setCacheMode(QtGui.QGraphicsItem.NoCache)  ## Disabling and re-enabling the cache works around a bug in Qt 4.6 causing the cached results to display incorrectly
+                                                        ##    Test this bug with test_PlotWidget and zoom in on the animated plot
+        self.invalidateBounds()
+        self.prepareGeometryChange()
+        self.informViewBoundsChanged()
+        self.yData = kargs['y'].view(np.ndarray)
+        self.xData = kargs['x'].view(np.ndarray)
+        
+        profiler('copy')
+        
+        if 'stepMode' in kargs:
+            self.opts['stepMode'] = kargs['stepMode']
+        
+        if self.opts['stepMode'] is True:
+            if len(self.xData) != len(self.yData)+1:  ## allow difference of 1 for step mode plots
+                raise Exception("len(X) must be len(Y)+1 since stepMode=True (got %s and %s)" % (self.xData.shape, self.yData.shape))
+        else:
+            if self.xData.shape != self.yData.shape:  ## allow difference of 1 for step mode plots
+                raise Exception("X and Y arrays must be the same shape--got %s and %s." % (self.xData.shape, self.yData.shape))
+        
+        self.path = None
+        self.fillPath = None
+        self._mouseShape = None
+        #self.xDisp = self.yDisp = None
+        
+        if 'name' in kargs:
+            self.opts['name'] = kargs['name']
+        if 'connect' in kargs:
+            self.opts['connect'] = kargs['connect']
+        if 'pen' in kargs:
+            self.setPen(kargs['pen'])
+        if 'shadowPen' in kargs:
+            self.setShadowPen(kargs['shadowPen'])
+        if 'fillLevel' in kargs:
+            self.setFillLevel(kargs['fillLevel'])
+        if 'brush' in kargs:
+            self.setBrush(kargs['brush'])
+        if 'antialias' in kargs:
+            self.opts['antialias'] = kargs['antialias']
+        
+        
+        profiler('set')
+        self.update()
+        profiler('update')
+        self.sigPlotChanged.emit(self)
+        profiler('emit')
+        
+    def generatePath(self, x, y):
+        if self.opts['stepMode']:
+            ## each value in the x/y arrays generates 2 points.
+            x2 = np.empty((len(x),2), dtype=x.dtype)
+            x2[:] = x[:,np.newaxis]
+            if self.opts['fillLevel'] is None:
+                x = x2.reshape(x2.size)[1:-1]
+                y2 = np.empty((len(y),2), dtype=y.dtype)
+                y2[:] = y[:,np.newaxis]
+                y = y2.reshape(y2.size)
+            else:
+                ## If we have a fill level, add two extra points at either end
+                x = x2.reshape(x2.size)
+                y2 = np.empty((len(y)+2,2), dtype=y.dtype)
+                y2[1:-1] = y[:,np.newaxis]
+                y = y2.reshape(y2.size)[1:-1]
+                y[0] = self.opts['fillLevel']
+                y[-1] = self.opts['fillLevel']
+        
+        path = fn.arrayToQPath(x, y, connect=self.opts['connect'])
+        
+        return path
+
+
+    def getPath(self):
+        if self.path is None:
+            x,y = self.getData()
+            if x is None or len(x) == 0 or y is None or len(y) == 0:
+                self.path = QtGui.QPainterPath()
+            else:
+                self.path = self.generatePath(*self.getData())
+            self.fillPath = None
+            self._mouseShape = None
+            
+        return self.path
+
+    @debug.warnOnException  ## raising an exception here causes crash
+    def paint(self, p, opt, widget):
+        profiler = debug.Profiler()
+        if self.xData is None or len(self.xData) == 0:
+            return
+        
+        if HAVE_OPENGL and getConfigOption('enableExperimental') and isinstance(widget, QtOpenGL.QGLWidget):
+            self.paintGL(p, opt, widget)
+            return
+        
+        x = None
+        y = None
+        path = self.getPath()
+        
+        profiler('generate path')
+        
+        if self._exportOpts is not False:
+            aa = self._exportOpts.get('antialias', True)
+        else:
+            aa = self.opts['antialias']
+        
+        p.setRenderHint(p.Antialiasing, aa)
+        
+            
+        if self.opts['brush'] is not None and self.opts['fillLevel'] is not None:
+            if self.fillPath is None:
+                if x is None:
+                    x,y = self.getData()
+                p2 = QtGui.QPainterPath(self.path)
+                p2.lineTo(x[-1], self.opts['fillLevel'])
+                p2.lineTo(x[0], self.opts['fillLevel'])
+                p2.lineTo(x[0], y[0])
+                p2.closeSubpath()
+                self.fillPath = p2
+                
+            profiler('generate fill path')
+            p.fillPath(self.fillPath, self.opts['brush'])
+            profiler('draw fill path')
+            
+        sp = fn.mkPen(self.opts['shadowPen'])
+        cp = fn.mkPen(self.opts['pen'])
+ 
+        ## Copy pens and apply alpha adjustment
+        #sp = QtGui.QPen(self.opts['shadowPen'])
+        #cp = QtGui.QPen(self.opts['pen'])
+        #for pen in [sp, cp]:
+            #if pen is None:
+                #continue
+            #c = pen.color()
+            #c.setAlpha(c.alpha() * self.opts['alphaHint'])
+            #pen.setColor(c)
+            ##pen.setCosmetic(True)
+            
+            
+            
+        if sp is not None and sp.style() != QtCore.Qt.NoPen:
+            p.setPen(sp)
+            p.drawPath(path)
+        p.setPen(cp)
+        p.drawPath(path)
+        profiler('drawPath')
+        
+        #print "Render hints:", int(p.renderHints())
+        #p.setPen(QtGui.QPen(QtGui.QColor(255,0,0)))
+        #p.drawRect(self.boundingRect())
+        
+    def paintGL(self, p, opt, widget):
+        p.beginNativePainting()
+        import OpenGL.GL as gl
+        
+        ## set clipping viewport
+        view = self.getViewBox()
+        if view is not None:
+            rect = view.mapRectToItem(self, view.boundingRect())
+            #gl.glViewport(int(rect.x()), int(rect.y()), int(rect.width()), int(rect.height()))
+            
+            #gl.glTranslate(-rect.x(), -rect.y(), 0)
+            
+            gl.glEnable(gl.GL_STENCIL_TEST)
+            gl.glColorMask(gl.GL_FALSE, gl.GL_FALSE, gl.GL_FALSE, gl.GL_FALSE) # disable drawing to frame buffer
+            gl.glDepthMask(gl.GL_FALSE)  # disable drawing to depth buffer
+            gl.glStencilFunc(gl.GL_NEVER, 1, 0xFF)  
+            gl.glStencilOp(gl.GL_REPLACE, gl.GL_KEEP, gl.GL_KEEP)  
+            
+            ## draw stencil pattern
+            gl.glStencilMask(0xFF)
+            gl.glClear(gl.GL_STENCIL_BUFFER_BIT)
+            gl.glBegin(gl.GL_TRIANGLES)
+            gl.glVertex2f(rect.x(), rect.y())
+            gl.glVertex2f(rect.x()+rect.width(), rect.y())
+            gl.glVertex2f(rect.x(), rect.y()+rect.height())
+            gl.glVertex2f(rect.x()+rect.width(), rect.y()+rect.height())
+            gl.glVertex2f(rect.x()+rect.width(), rect.y())
+            gl.glVertex2f(rect.x(), rect.y()+rect.height())
+            gl.glEnd()
+                       
+            gl.glColorMask(gl.GL_TRUE, gl.GL_TRUE, gl.GL_TRUE, gl.GL_TRUE)
+            gl.glDepthMask(gl.GL_TRUE)
+            gl.glStencilMask(0x00)
+            gl.glStencilFunc(gl.GL_EQUAL, 1, 0xFF)
+            
+        try:
+            x, y = self.getData()
+            pos = np.empty((len(x), 2))
+            pos[:,0] = x
+            pos[:,1] = y
+            gl.glEnableClientState(gl.GL_VERTEX_ARRAY)
+            try:
+                gl.glVertexPointerf(pos)
+                pen = fn.mkPen(self.opts['pen'])
+                color = pen.color()
+                gl.glColor4f(color.red()/255., color.green()/255., color.blue()/255., color.alpha()/255.)
+                width = pen.width()
+                if pen.isCosmetic() and width < 1:
+                    width = 1
+                gl.glPointSize(width)
+                gl.glEnable(gl.GL_LINE_SMOOTH)
+                gl.glEnable(gl.GL_BLEND)
+                gl.glBlendFunc(gl.GL_SRC_ALPHA, gl.GL_ONE_MINUS_SRC_ALPHA)
+                gl.glHint(gl.GL_LINE_SMOOTH_HINT, gl.GL_NICEST)
+                gl.glDrawArrays(gl.GL_LINE_STRIP, 0, pos.size / pos.shape[-1])
+            finally:
+                gl.glDisableClientState(gl.GL_VERTEX_ARRAY)
+        finally:
+            p.endNativePainting()
+        
+    def clear(self):
+        self.xData = None  ## raw values
+        self.yData = None
+        self.xDisp = None  ## display values (after log / fft)
+        self.yDisp = None
+        self.path = None
+        self.fillPath = None
+        self._mouseShape = None
+        self._mouseBounds = None
+        self._boundsCache = [None, None]
+        #del self.xData, self.yData, self.xDisp, self.yDisp, self.path
+
+    def mouseShape(self):
+        """
+        Return a QPainterPath representing the clickable shape of the curve
+        
+        """
+        if self._mouseShape is None:
+            view = self.getViewBox()
+            if view is None:
+                return QtGui.QPainterPath()
+            stroker = QtGui.QPainterPathStroker()
+            path = self.getPath()
+            path = self.mapToItem(view, path)
+            stroker.setWidth(self.opts['mouseWidth'])
+            mousePath = stroker.createStroke(path)
+            self._mouseShape = self.mapFromItem(view, mousePath)
+        return self._mouseShape
+        
+    def mouseClickEvent(self, ev):
+        if not self.clickable or ev.button() != QtCore.Qt.LeftButton:
+            return
+        if self.mouseShape().contains(ev.pos()):
+            ev.accept()
+            self.sigClicked.emit(self)
+            
+
+
+class ROIPlotItem(PlotCurveItem):
+    """Plot curve that monitors an ROI and image for changes to automatically replot."""
+    def __init__(self, roi, data, img, axes=(0,1), xVals=None, color=None):
+        self.roi = roi
+        self.roiData = data
+        self.roiImg = img
+        self.axes = axes
+        self.xVals = xVals
+        PlotCurveItem.__init__(self, self.getRoiData(), x=self.xVals, color=color)
+        #roi.connect(roi, QtCore.SIGNAL('regionChanged'), self.roiChangedEvent)
+        roi.sigRegionChanged.connect(self.roiChangedEvent)
+        #self.roiChangedEvent()
+        
+    def getRoiData(self):
+        d = self.roi.getArrayRegion(self.roiData, self.roiImg, axes=self.axes)
+        if d is None:
+            return
+        while d.ndim > 1:
+            d = d.mean(axis=1)
+        return d
+        
+    def roiChangedEvent(self):
+        d = self.getRoiData()
+        self.updateData(d, self.xVals)
+
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/PlotDataItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/PlotDataItem.py
new file mode 100644
index 00000000..37245bec
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/PlotDataItem.py
@@ -0,0 +1,871 @@
+import numpy as np
+from .. import metaarray as metaarray
+from ..Qt import QtCore
+from .GraphicsObject import GraphicsObject
+from .PlotCurveItem import PlotCurveItem
+from .ScatterPlotItem import ScatterPlotItem
+from .. import functions as fn
+from .. import debug as debug
+from .. import getConfigOption
+
+
+class PlotDataItem(GraphicsObject):
+    """
+    **Bases:** :class:`GraphicsObject <pyqtgraph.GraphicsObject>`
+    
+    GraphicsItem for displaying plot curves, scatter plots, or both. 
+    While it is possible to use :class:`PlotCurveItem <pyqtgraph.PlotCurveItem>` or
+    :class:`ScatterPlotItem <pyqtgraph.ScatterPlotItem>` individually, this class
+    provides a unified interface to both. Instances of :class:`PlotDataItem` are 
+    usually created by plot() methods such as :func:`pyqtgraph.plot` and
+    :func:`PlotItem.plot() <pyqtgraph.PlotItem.plot>`.
+    
+    ============================== ==============================================
+    **Signals:**
+    sigPlotChanged(self)           Emitted when the data in this item is updated.  
+    sigClicked(self)               Emitted when the item is clicked.
+    sigPointsClicked(self, points) Emitted when a plot point is clicked
+                                   Sends the list of points under the mouse.
+    ============================== ==============================================
+    """
+    
+    sigPlotChanged = QtCore.Signal(object)
+    sigClicked = QtCore.Signal(object)
+    sigPointsClicked = QtCore.Signal(object, object)
+    
+    def __init__(self, *args, **kargs):
+        """
+        There are many different ways to create a PlotDataItem:
+        
+        **Data initialization arguments:** (x,y data only)
+        
+            =================================== ======================================
+            PlotDataItem(xValues, yValues)      x and y values may be any sequence (including ndarray) of real numbers
+            PlotDataItem(yValues)               y values only -- x will be automatically set to range(len(y))
+            PlotDataItem(x=xValues, y=yValues)  x and y given by keyword arguments
+            PlotDataItem(ndarray(Nx2))          numpy array with shape (N, 2) where x=data[:,0] and y=data[:,1]
+            =================================== ======================================
+        
+        **Data initialization arguments:** (x,y data AND may include spot style)
+        
+            ===========================   =========================================
+            PlotDataItem(recarray)        numpy array with dtype=[('x', float), ('y', float), ...]
+            PlotDataItem(list-of-dicts)   [{'x': x, 'y': y, ...},   ...] 
+            PlotDataItem(dict-of-lists)   {'x': [...], 'y': [...],  ...}           
+            PlotDataItem(MetaArray)       1D array of Y values with X sepecified as axis values 
+                                          OR 2D array with a column 'y' and extra columns as needed.
+            ===========================   =========================================
+        
+        **Line style keyword arguments:**
+
+            ==========   ==============================================================================
+            connect      Specifies how / whether vertexes should be connected. See
+                         :func:`arrayToQPath() <pyqtgraph.arrayToQPath>`
+            pen          Pen to use for drawing line between points.
+                         Default is solid grey, 1px width. Use None to disable line drawing.
+                         May be any single argument accepted by :func:`mkPen() <pyqtgraph.mkPen>`
+            shadowPen    Pen for secondary line to draw behind the primary line. disabled by default.
+                         May be any single argument accepted by :func:`mkPen() <pyqtgraph.mkPen>`
+            fillLevel    Fill the area between the curve and fillLevel
+            fillBrush    Fill to use when fillLevel is specified. 
+                         May be any single argument accepted by :func:`mkBrush() <pyqtgraph.mkBrush>`
+            stepMode     If True, two orthogonal lines are drawn for each sample
+                         as steps. This is commonly used when drawing histograms.
+                         Note that in this case, `len(x) == len(y) + 1`
+                         (added in version 0.9.9)
+            ==========   ==============================================================================
+        
+        **Point style keyword arguments:**  (see :func:`ScatterPlotItem.setData() <pyqtgraph.ScatterPlotItem.setData>` for more information)
+        
+            ============   =====================================================
+            symbol         Symbol to use for drawing points OR list of symbols, 
+                           one per point. Default is no symbol.
+                           Options are o, s, t, d, +, or any QPainterPath
+            symbolPen      Outline pen for drawing points OR list of pens, one 
+                           per point. May be any single argument accepted by 
+                           :func:`mkPen() <pyqtgraph.mkPen>`
+            symbolBrush    Brush for filling points OR list of brushes, one per 
+                           point. May be any single argument accepted by 
+                           :func:`mkBrush() <pyqtgraph.mkBrush>`
+            symbolSize     Diameter of symbols OR list of diameters.
+            pxMode         (bool) If True, then symbolSize is specified in 
+                           pixels. If False, then symbolSize is 
+                           specified in data coordinates.
+            ============   =====================================================
+        
+        **Optimization keyword arguments:**
+        
+            ================ =====================================================================
+            antialias        (bool) By default, antialiasing is disabled to improve performance.
+                             Note that in some cases (in particluar, when pxMode=True), points 
+                             will be rendered antialiased even if this is set to False.
+            decimate         deprecated.
+            downsample       (int) Reduce the number of samples displayed by this value
+            downsampleMethod 'subsample': Downsample by taking the first of N samples. 
+                             This method is fastest and least accurate.
+                             'mean': Downsample by taking the mean of N samples.
+                             'peak': Downsample by drawing a saw wave that follows the min 
+                             and max of the original data. This method produces the best 
+                             visual representation of the data but is slower.
+            autoDownsample   (bool) If True, resample the data before plotting to avoid plotting
+                             multiple line segments per pixel. This can improve performance when
+                             viewing very high-density data, but increases the initial overhead 
+                             and memory usage.
+            clipToView       (bool) If True, only plot data that is visible within the X range of
+                             the containing ViewBox. This can improve performance when plotting
+                             very large data sets where only a fraction of the data is visible
+                             at any time.
+            identical        *deprecated*
+            ================ =====================================================================
+        
+        **Meta-info keyword arguments:**
+        
+            ==========   ================================================
+            name         name of dataset. This would appear in a legend
+            ==========   ================================================
+        """
+        GraphicsObject.__init__(self)
+        self.setFlag(self.ItemHasNoContents)
+        self.xData = None
+        self.yData = None
+        self.xDisp = None
+        self.yDisp = None
+        #self.dataMask = None
+        #self.curves = []
+        #self.scatters = []
+        self.curve = PlotCurveItem()
+        self.scatter = ScatterPlotItem()
+        self.curve.setParentItem(self)
+        self.scatter.setParentItem(self)
+        
+        self.curve.sigClicked.connect(self.curveClicked)
+        self.scatter.sigClicked.connect(self.scatterClicked)
+        
+        
+        #self.clear()
+        self.opts = {
+            'connect': 'all',
+            
+            'fftMode': False,
+            'logMode': [False, False],
+            'alphaHint': 1.0,
+            'alphaMode': False,
+            
+            'pen': (200,200,200),
+            'shadowPen': None,
+            'fillLevel': None,
+            'fillBrush': None,
+            'stepMode': None, 
+            
+            'symbol': None,
+            'symbolSize': 10,
+            'symbolPen': (200,200,200),
+            'symbolBrush': (50, 50, 150),
+            'pxMode': True,
+            
+            'antialias': getConfigOption('antialias'),
+            'pointMode': None,
+            
+            'downsample': 1,
+            'autoDownsample': False,
+            'downsampleMethod': 'peak',
+            'autoDownsampleFactor': 5.,  # draw ~5 samples per pixel
+            'clipToView': False,
+            
+            'data': None,
+        }
+        self.setData(*args, **kargs)
+    
+    def implements(self, interface=None):
+        ints = ['plotData']
+        if interface is None:
+            return ints
+        return interface in ints
+    
+    def name(self):
+        return self.opts.get('name', None)
+    
+    def boundingRect(self):
+        return QtCore.QRectF()  ## let child items handle this
+
+    def setAlpha(self, alpha, auto):
+        if self.opts['alphaHint'] == alpha and self.opts['alphaMode'] == auto:
+            return
+        self.opts['alphaHint'] = alpha
+        self.opts['alphaMode'] = auto
+        self.setOpacity(alpha)
+        #self.update()
+        
+    def setFftMode(self, mode):
+        if self.opts['fftMode'] == mode:
+            return
+        self.opts['fftMode'] = mode
+        self.xDisp = self.yDisp = None
+        self.xClean = self.yClean = None
+        self.updateItems()
+        self.informViewBoundsChanged()
+    
+    def setLogMode(self, xMode, yMode):
+        if self.opts['logMode'] == [xMode, yMode]:
+            return
+        self.opts['logMode'] = [xMode, yMode]
+        self.xDisp = self.yDisp = None
+        self.xClean = self.yClean = None
+        self.updateItems()
+        self.informViewBoundsChanged()
+    
+    def setPointMode(self, mode):
+        if self.opts['pointMode'] == mode:
+            return
+        self.opts['pointMode'] = mode
+        self.update()
+        
+    def setPen(self, *args, **kargs):
+        """
+        | Sets the pen used to draw lines between points.
+        | *pen* can be a QPen or any argument accepted by :func:`pyqtgraph.mkPen() <pyqtgraph.mkPen>`
+        """
+        pen = fn.mkPen(*args, **kargs)
+        self.opts['pen'] = pen
+        #self.curve.setPen(pen)
+        #for c in self.curves:
+            #c.setPen(pen)
+        #self.update()
+        self.updateItems()
+        
+    def setShadowPen(self, *args, **kargs):
+        """
+        | Sets the shadow pen used to draw lines between points (this is for enhancing contrast or 
+          emphacizing data). 
+        | This line is drawn behind the primary pen (see :func:`setPen() <pyqtgraph.PlotDataItem.setPen>`)
+          and should generally be assigned greater width than the primary pen.
+        | *pen* can be a QPen or any argument accepted by :func:`pyqtgraph.mkPen() <pyqtgraph.mkPen>`
+        """
+        pen = fn.mkPen(*args, **kargs)
+        self.opts['shadowPen'] = pen
+        #for c in self.curves:
+            #c.setPen(pen)
+        #self.update()
+        self.updateItems()
+        
+    def setFillBrush(self, *args, **kargs):
+        brush = fn.mkBrush(*args, **kargs)
+        if self.opts['fillBrush'] == brush:
+            return
+        self.opts['fillBrush'] = brush
+        self.updateItems()
+        
+    def setBrush(self, *args, **kargs):
+        return self.setFillBrush(*args, **kargs)
+    
+    def setFillLevel(self, level):
+        if self.opts['fillLevel'] == level:
+            return
+        self.opts['fillLevel'] = level
+        self.updateItems()
+
+    def setSymbol(self, symbol):
+        if self.opts['symbol'] == symbol:
+            return
+        self.opts['symbol'] = symbol
+        #self.scatter.setSymbol(symbol)
+        self.updateItems()
+        
+    def setSymbolPen(self, *args, **kargs):
+        pen = fn.mkPen(*args, **kargs)
+        if self.opts['symbolPen'] == pen:
+            return
+        self.opts['symbolPen'] = pen
+        #self.scatter.setSymbolPen(pen)
+        self.updateItems()
+        
+    
+    
+    def setSymbolBrush(self, *args, **kargs):
+        brush = fn.mkBrush(*args, **kargs)
+        if self.opts['symbolBrush'] == brush:
+            return
+        self.opts['symbolBrush'] = brush
+        #self.scatter.setSymbolBrush(brush)
+        self.updateItems()
+    
+    
+    def setSymbolSize(self, size):
+        if self.opts['symbolSize'] == size:
+            return
+        self.opts['symbolSize'] = size
+        #self.scatter.setSymbolSize(symbolSize)
+        self.updateItems()
+
+    def setDownsampling(self, ds=None, auto=None, method=None):
+        """
+        Set the downsampling mode of this item. Downsampling reduces the number
+        of samples drawn to increase performance. 
+        
+        ==============  =================================================================
+        **Arguments:**
+        ds              (int) Reduce visible plot samples by this factor. To disable,
+                        set ds=1.
+        auto            (bool) If True, automatically pick *ds* based on visible range
+        mode            'subsample': Downsample by taking the first of N samples.
+                        This method is fastest and least accurate.
+                        'mean': Downsample by taking the mean of N samples.
+                        'peak': Downsample by drawing a saw wave that follows the min
+                        and max of the original data. This method produces the best
+                        visual representation of the data but is slower.
+        ==============  =================================================================
+        """
+        changed = False
+        if ds is not None:
+            if self.opts['downsample'] != ds:
+                changed = True
+                self.opts['downsample'] = ds
+                
+        if auto is not None and self.opts['autoDownsample'] != auto:
+            self.opts['autoDownsample'] = auto
+            changed = True
+                
+        if method is not None:
+            if self.opts['downsampleMethod'] != method:
+                changed = True
+                self.opts['downsampleMethod'] = method
+        
+        if changed:
+            self.xDisp = self.yDisp = None
+            self.updateItems()
+        
+    def setClipToView(self, clip):
+        if self.opts['clipToView'] == clip:
+            return
+        self.opts['clipToView'] = clip
+        self.xDisp = self.yDisp = None
+        self.updateItems()
+        
+        
+    def setData(self, *args, **kargs):
+        """
+        Clear any data displayed by this item and display new data.
+        See :func:`__init__() <pyqtgraph.PlotDataItem.__init__>` for details; it accepts the same arguments.
+        """
+        #self.clear()
+        profiler = debug.Profiler()
+        y = None
+        x = None
+        if len(args) == 1:
+            data = args[0]
+            dt = dataType(data)
+            if dt == 'empty':
+                pass
+            elif dt == 'listOfValues':
+                y = np.array(data)
+            elif dt == 'Nx2array':
+                x = data[:,0]
+                y = data[:,1]
+            elif dt == 'recarray' or dt == 'dictOfLists':
+                if 'x' in data:
+                    x = np.array(data['x'])
+                if 'y' in data:
+                    y = np.array(data['y'])
+            elif dt ==  'listOfDicts':
+                if 'x' in data[0]:
+                    x = np.array([d.get('x',None) for d in data])
+                if 'y' in data[0]:
+                    y = np.array([d.get('y',None) for d in data])
+                for k in ['data', 'symbolSize', 'symbolPen', 'symbolBrush', 'symbolShape']:
+                    if k in data:
+                        kargs[k] = [d.get(k, None) for d in data]
+            elif dt == 'MetaArray':
+                y = data.view(np.ndarray)
+                x = data.xvals(0).view(np.ndarray)
+            else:
+                raise Exception('Invalid data type %s' % type(data))
+            
+        elif len(args) == 2:
+            seq = ('listOfValues', 'MetaArray', 'empty')
+            dtyp = dataType(args[0]), dataType(args[1])
+            if dtyp[0] not in seq or dtyp[1] not in seq:
+                raise Exception('When passing two unnamed arguments, both must be a list or array of values. (got %s, %s)' % (str(type(args[0])), str(type(args[1]))))
+            if not isinstance(args[0], np.ndarray):
+                #x = np.array(args[0])
+                if dtyp[0] == 'MetaArray':
+                    x = args[0].asarray()
+                else:
+                    x = np.array(args[0])
+            else:
+                x = args[0].view(np.ndarray)
+            if not isinstance(args[1], np.ndarray):
+                #y = np.array(args[1])
+                if dtyp[1] == 'MetaArray':
+                    y = args[1].asarray()
+                else:
+                    y = np.array(args[1])
+            else:
+                y = args[1].view(np.ndarray)
+            
+        if 'x' in kargs:
+            x = kargs['x']
+        if 'y' in kargs:
+            y = kargs['y']
+
+        profiler('interpret data')
+        ## pull in all style arguments. 
+        ## Use self.opts to fill in anything not present in kargs.
+        
+        if 'name' in kargs:
+            self.opts['name'] = kargs['name']
+        if 'connect' in kargs:
+            self.opts['connect'] = kargs['connect']
+
+        ## if symbol pen/brush are given with no symbol, then assume symbol is 'o'
+        
+        if 'symbol' not in kargs and ('symbolPen' in kargs or 'symbolBrush' in kargs or 'symbolSize' in kargs):
+            kargs['symbol'] = 'o'
+            
+        if 'brush' in kargs:
+            kargs['fillBrush'] = kargs['brush']
+            
+        for k in list(self.opts.keys()):
+            if k in kargs:
+                self.opts[k] = kargs[k]
+                
+        #curveArgs = {}
+        #for k in ['pen', 'shadowPen', 'fillLevel', 'brush']:
+            #if k in kargs:
+                #self.opts[k] = kargs[k]
+            #curveArgs[k] = self.opts[k]
+            
+        #scatterArgs = {}
+        #for k,v in [('symbolPen','pen'), ('symbolBrush','brush'), ('symbol','symbol')]:
+            #if k in kargs:
+                #self.opts[k] = kargs[k]
+            #scatterArgs[v] = self.opts[k]
+        
+
+        if y is None:
+            return
+        if y is not None and x is None:
+            x = np.arange(len(y))
+        
+        if isinstance(x, list):
+            x = np.array(x)
+        if isinstance(y, list):
+            y = np.array(y)
+        
+        self.xData = x.view(np.ndarray)  ## one last check to make sure there are no MetaArrays getting by
+        self.yData = y.view(np.ndarray)
+        self.xClean = self.yClean = None
+        self.xDisp = None
+        self.yDisp = None
+        profiler('set data')
+        
+        self.updateItems()
+        profiler('update items')
+        
+        self.informViewBoundsChanged()
+        #view = self.getViewBox()
+        #if view is not None:
+            #view.itemBoundsChanged(self)  ## inform view so it can update its range if it wants
+        
+        self.sigPlotChanged.emit(self)
+        profiler('emit')
+
+    def updateItems(self):
+        
+        curveArgs = {}
+        for k,v in [('pen','pen'), ('shadowPen','shadowPen'), ('fillLevel','fillLevel'), ('fillBrush', 'brush'), ('antialias', 'antialias'), ('connect', 'connect'), ('stepMode', 'stepMode')]:
+            curveArgs[v] = self.opts[k]
+        
+        scatterArgs = {}
+        for k,v in [('symbolPen','pen'), ('symbolBrush','brush'), ('symbol','symbol'), ('symbolSize', 'size'), ('data', 'data'), ('pxMode', 'pxMode'), ('antialias', 'antialias')]:
+            if k in self.opts:
+                scatterArgs[v] = self.opts[k]
+        
+        x,y = self.getData()
+        #scatterArgs['mask'] = self.dataMask
+        
+        if curveArgs['pen'] is not None or (curveArgs['brush'] is not None and curveArgs['fillLevel'] is not None):
+            self.curve.setData(x=x, y=y, **curveArgs)
+            self.curve.show()
+        else:
+            self.curve.hide()
+        
+        if scatterArgs['symbol'] is not None:
+            self.scatter.setData(x=x, y=y, **scatterArgs)
+            self.scatter.show()
+        else:
+            self.scatter.hide()
+
+
+    def getData(self):
+        if self.xData is None:
+            return (None, None)
+        
+        #if self.xClean is None:
+            #nanMask = np.isnan(self.xData) | np.isnan(self.yData) | np.isinf(self.xData) | np.isinf(self.yData)
+            #if nanMask.any():
+                #self.dataMask = ~nanMask
+                #self.xClean = self.xData[self.dataMask]
+                #self.yClean = self.yData[self.dataMask]
+            #else:
+                #self.dataMask = None
+                #self.xClean = self.xData
+                #self.yClean = self.yData
+            
+        if self.xDisp is None:
+            x = self.xData
+            y = self.yData
+            
+            
+            #ds = self.opts['downsample']
+            #if isinstance(ds, int) and ds > 1:
+                #x = x[::ds]
+                ##y = resample(y[:len(x)*ds], len(x))  ## scipy.signal.resample causes nasty ringing
+                #y = y[::ds]
+            if self.opts['fftMode']:
+                x,y = self._fourierTransform(x, y)
+                # Ignore the first bin for fft data if we have a logx scale
+                if self.opts['logMode'][0]:
+                    x=x[1:]
+                    y=y[1:]                
+            if self.opts['logMode'][0]:
+                x = np.log10(x)
+            if self.opts['logMode'][1]:
+                y = np.log10(y)
+            #if any(self.opts['logMode']):  ## re-check for NANs after log
+                #nanMask = np.isinf(x) | np.isinf(y) | np.isnan(x) | np.isnan(y)
+                #if any(nanMask):
+                    #self.dataMask = ~nanMask
+                    #x = x[self.dataMask]
+                    #y = y[self.dataMask]
+                #else:
+                    #self.dataMask = None
+                    
+            ds = self.opts['downsample']
+            if not isinstance(ds, int):
+                ds = 1
+                
+            if self.opts['autoDownsample']:
+                # this option presumes that x-values have uniform spacing
+                range = self.viewRect()
+                if range is not None:
+                    dx = float(x[-1]-x[0]) / (len(x)-1)
+                    x0 = (range.left()-x[0]) / dx
+                    x1 = (range.right()-x[0]) / dx
+                    width = self.getViewBox().width()
+                    if width != 0.0:
+                        ds = int(max(1, int((x1-x0) / (width*self.opts['autoDownsampleFactor']))))
+                    ## downsampling is expensive; delay until after clipping.
+            
+            if self.opts['clipToView']:
+                view = self.getViewBox()
+                if view is None or not view.autoRangeEnabled()[0]:
+                    # this option presumes that x-values have uniform spacing
+                    range = self.viewRect()
+                    if range is not None and len(x) > 1:
+                        dx = float(x[-1]-x[0]) / (len(x)-1)
+                        # clip to visible region extended by downsampling value
+                        x0 = np.clip(int((range.left()-x[0])/dx)-1*ds , 0, len(x)-1)
+                        x1 = np.clip(int((range.right()-x[0])/dx)+2*ds , 0, len(x)-1)
+                        x = x[x0:x1]
+                        y = y[x0:x1]
+                    
+            if ds > 1:
+                if self.opts['downsampleMethod'] == 'subsample':
+                    x = x[::ds]
+                    y = y[::ds]
+                elif self.opts['downsampleMethod'] == 'mean':
+                    n = len(x) // ds
+                    x = x[:n*ds:ds]
+                    y = y[:n*ds].reshape(n,ds).mean(axis=1)
+                elif self.opts['downsampleMethod'] == 'peak':
+                    n = len(x) // ds
+                    x1 = np.empty((n,2))
+                    x1[:] = x[:n*ds:ds,np.newaxis]
+                    x = x1.reshape(n*2)
+                    y1 = np.empty((n,2))
+                    y2 = y[:n*ds].reshape((n, ds))
+                    y1[:,0] = y2.max(axis=1)
+                    y1[:,1] = y2.min(axis=1)
+                    y = y1.reshape(n*2)
+                
+                    
+            self.xDisp = x
+            self.yDisp = y
+        #print self.yDisp.shape, self.yDisp.min(), self.yDisp.max()
+        #print self.xDisp.shape, self.xDisp.min(), self.xDisp.max()
+        return self.xDisp, self.yDisp
+
+    def dataBounds(self, ax, frac=1.0, orthoRange=None):
+        """
+        Returns the range occupied by the data (along a specific axis) in this item.
+        This method is called by ViewBox when auto-scaling.
+
+        =============== =============================================================
+        **Arguments:**
+        ax              (0 or 1) the axis for which to return this item's data range
+        frac            (float 0.0-1.0) Specifies what fraction of the total data 
+                        range to return. By default, the entire range is returned.
+                        This allows the ViewBox to ignore large spikes in the data
+                        when auto-scaling.
+        orthoRange      ([min,max] or None) Specifies that only the data within the
+                        given range (orthogonal to *ax*) should me measured when 
+                        returning the data range. (For example, a ViewBox might ask
+                        what is the y-range of all data with x-values between min
+                        and max)
+        =============== =============================================================
+        """
+        
+        range = [None, None]
+        if self.curve.isVisible():
+            range = self.curve.dataBounds(ax, frac, orthoRange)
+        elif self.scatter.isVisible():
+            r2 = self.scatter.dataBounds(ax, frac, orthoRange)
+            range = [
+                r2[0] if range[0] is None else (range[0] if r2[0] is None else min(r2[0], range[0])),
+                r2[1] if range[1] is None else (range[1] if r2[1] is None else min(r2[1], range[1]))
+                ]
+        return range
+    
+    def pixelPadding(self):
+        """
+        Return the size in pixels that this item may draw beyond the values returned by dataBounds().
+        This method is called by ViewBox when auto-scaling.
+        """
+        pad = 0
+        if self.curve.isVisible():
+            pad = max(pad, self.curve.pixelPadding())
+        elif self.scatter.isVisible():
+            pad = max(pad, self.scatter.pixelPadding())
+        return pad
+        
+
+    def clear(self):
+        #for i in self.curves+self.scatters:
+            #if i.scene() is not None:
+                #i.scene().removeItem(i)
+        #self.curves = []
+        #self.scatters = []
+        self.xData = None
+        self.yData = None
+        #self.xClean = None
+        #self.yClean = None
+        self.xDisp = None
+        self.yDisp = None
+        self.curve.setData([])
+        self.scatter.setData([])
+            
+    def appendData(self, *args, **kargs):
+        pass
+    
+    def curveClicked(self):
+        self.sigClicked.emit(self)
+        
+    def scatterClicked(self, plt, points):
+        self.sigClicked.emit(self)
+        self.sigPointsClicked.emit(self, points)
+    
+    def viewRangeChanged(self):
+        # view range has changed; re-plot if needed
+        if self.opts['clipToView'] or self.opts['autoDownsample']:
+            self.xDisp = self.yDisp = None
+            self.updateItems()
+            
+    def _fourierTransform(self, x, y):
+        ## Perform fourier transform. If x values are not sampled uniformly,
+        ## then use np.interp to resample before taking fft.
+        dx = np.diff(x)
+        uniform = not np.any(np.abs(dx-dx[0]) > (abs(dx[0]) / 1000.))
+        if not uniform:
+            x2 = np.linspace(x[0], x[-1], len(x))
+            y = np.interp(x2, x, y)
+            x = x2
+        f = np.fft.fft(y) / len(y)
+        y = abs(f[1:len(f)/2])
+        dt = x[-1] - x[0]
+        x = np.linspace(0, 0.5*len(x)/dt, len(y))
+        return x, y
+    
+def dataType(obj):
+    if hasattr(obj, '__len__') and len(obj) == 0:
+        return 'empty'
+    if isinstance(obj, dict):
+        return 'dictOfLists'
+    elif isSequence(obj):
+        first = obj[0]
+        
+        if (hasattr(obj, 'implements') and obj.implements('MetaArray')):
+            return 'MetaArray'
+        elif isinstance(obj, np.ndarray):
+            if obj.ndim == 1:
+                if obj.dtype.names is None:
+                    return 'listOfValues'
+                else:
+                    return 'recarray'
+            elif obj.ndim == 2 and obj.dtype.names is None and obj.shape[1] == 2:
+                return 'Nx2array'
+            else:
+                raise Exception('array shape must be (N,) or (N,2); got %s instead' % str(obj.shape))
+        elif isinstance(first, dict):
+            return 'listOfDicts'
+        else:
+            return 'listOfValues'
+        
+        
+def isSequence(obj):
+    return hasattr(obj, '__iter__') or isinstance(obj, np.ndarray) or (hasattr(obj, 'implements') and obj.implements('MetaArray'))
+    
+            
+            
+#class TableData:
+    #"""
+    #Class for presenting multiple forms of tabular data through a consistent interface.
+    #May contain:
+        #- numpy record array
+        #- list-of-dicts (all dicts are _not_ required to have the same keys)
+        #- dict-of-lists
+        #- dict (single record)
+               #Note: if all the values in this record are lists, it will be interpreted as multiple records
+        
+    #Data can be accessed and modified by column, by row, or by value
+        #data[columnName]
+        #data[rowId]
+        #data[columnName, rowId] = value
+        #data[columnName] = [value, value, ...]
+        #data[rowId] = {columnName: value, ...}
+    #"""
+    
+    #def __init__(self, data):
+        #self.data = data
+        #if isinstance(data, np.ndarray):
+            #self.mode = 'array'
+        #elif isinstance(data, list):
+            #self.mode = 'list'
+        #elif isinstance(data, dict):
+            #types = set(map(type, data.values()))
+            ### dict may be a dict-of-lists or a single record
+            #types -= set([list, np.ndarray]) ## if dict contains any non-sequence values, it is probably a single record.
+            #if len(types) != 0:
+                #self.data = [self.data]
+                #self.mode = 'list'
+            #else:
+                #self.mode = 'dict'
+        #elif isinstance(data, TableData):
+            #self.data = data.data
+            #self.mode = data.mode
+        #else:
+            #raise TypeError(type(data))
+        
+        #for fn in ['__getitem__', '__setitem__']:
+            #setattr(self, fn, getattr(self, '_TableData'+fn+self.mode))
+        
+    #def originalData(self):
+        #return self.data
+    
+    #def toArray(self):
+        #if self.mode == 'array':
+            #return self.data
+        #if len(self) < 1:
+            ##return np.array([])  ## need to return empty array *with correct columns*, but this is very difficult, so just return None
+            #return None
+        #rec1 = self[0]
+        #dtype = functions.suggestRecordDType(rec1)
+        ##print rec1, dtype
+        #arr = np.empty(len(self), dtype=dtype)
+        #arr[0] = tuple(rec1.values())
+        #for i in xrange(1, len(self)):
+            #arr[i] = tuple(self[i].values())
+        #return arr
+            
+    #def __getitem__array(self, arg):
+        #if isinstance(arg, tuple):
+            #return self.data[arg[0]][arg[1]]
+        #else:
+            #return self.data[arg]
+            
+    #def __getitem__list(self, arg):
+        #if isinstance(arg, basestring):
+            #return [d.get(arg, None) for d in self.data]
+        #elif isinstance(arg, int):
+            #return self.data[arg]
+        #elif isinstance(arg, tuple):
+            #arg = self._orderArgs(arg)
+            #return self.data[arg[0]][arg[1]]
+        #else:
+            #raise TypeError(type(arg))
+        
+    #def __getitem__dict(self, arg):
+        #if isinstance(arg, basestring):
+            #return self.data[arg]
+        #elif isinstance(arg, int):
+            #return dict([(k, v[arg]) for k, v in self.data.iteritems()])
+        #elif isinstance(arg, tuple):
+            #arg = self._orderArgs(arg)
+            #return self.data[arg[1]][arg[0]]
+        #else:
+            #raise TypeError(type(arg))
+
+    #def __setitem__array(self, arg, val):
+        #if isinstance(arg, tuple):
+            #self.data[arg[0]][arg[1]] = val
+        #else:
+            #self.data[arg] = val
+
+    #def __setitem__list(self, arg, val):
+        #if isinstance(arg, basestring):
+            #if len(val) != len(self.data):
+                #raise Exception("Values (%d) and data set (%d) are not the same length." % (len(val), len(self.data)))
+            #for i, rec in enumerate(self.data):
+                #rec[arg] = val[i]
+        #elif isinstance(arg, int):
+            #self.data[arg] = val
+        #elif isinstance(arg, tuple):
+            #arg = self._orderArgs(arg)
+            #self.data[arg[0]][arg[1]] = val
+        #else:
+            #raise TypeError(type(arg))
+        
+    #def __setitem__dict(self, arg, val):
+        #if isinstance(arg, basestring):
+            #if len(val) != len(self.data[arg]):
+                #raise Exception("Values (%d) and data set (%d) are not the same length." % (len(val), len(self.data[arg])))
+            #self.data[arg] = val
+        #elif isinstance(arg, int):
+            #for k in self.data:
+                #self.data[k][arg] = val[k]
+        #elif isinstance(arg, tuple):
+            #arg = self._orderArgs(arg)
+            #self.data[arg[1]][arg[0]] = val
+        #else:
+            #raise TypeError(type(arg))
+
+    #def _orderArgs(self, args):
+        ### return args in (int, str) order
+        #if isinstance(args[0], basestring):
+            #return (args[1], args[0])
+        #else:
+            #return args
+        
+    #def __iter__(self):
+        #for i in xrange(len(self)):
+            #yield self[i]
+
+    #def __len__(self):
+        #if self.mode == 'array' or self.mode == 'list':
+            #return len(self.data)
+        #else:
+            #return max(map(len, self.data.values()))
+
+    #def columnNames(self):
+        #"""returns column names in no particular order"""
+        #if self.mode == 'array':
+            #return self.data.dtype.names
+        #elif self.mode == 'list':
+            #names = set()
+            #for row in self.data:
+                #names.update(row.keys())
+            #return list(names)
+        #elif self.mode == 'dict':
+            #return self.data.keys()
+            
+    #def keys(self):
+        #return self.columnNames()
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/PlotItem/PlotItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/PlotItem/PlotItem.py
new file mode 100644
index 00000000..41011df3
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/PlotItem/PlotItem.py
@@ -0,0 +1,1230 @@
+# -*- coding: utf-8 -*-
+"""
+PlotItem.py -  Graphics item implementing a scalable ViewBox with plotting powers.
+Copyright 2010  Luke Campagnola
+Distributed under MIT/X11 license. See license.txt for more infomation.
+
+This class is one of the workhorses of pyqtgraph. It implements a graphics item with 
+plots, labels, and scales which can be viewed inside a QGraphicsScene. If you want
+a widget that can be added to your GUI, see PlotWidget instead.
+
+This class is very heavily featured:
+  - Automatically creates and manages PlotCurveItems
+  - Fast display and update of plots
+  - Manages zoom/pan ViewBox, scale, and label elements
+  - Automatic scaling when data changes
+  - Control panel with a huge feature set including averaging, decimation,
+    display, power spectrum, svg/png export, plot linking, and more.
+"""
+import sys
+import weakref
+import numpy as np
+import os
+from ...Qt import QtGui, QtCore, QT_LIB
+from ... import pixmaps
+from ... import functions as fn
+from ...widgets.FileDialog import FileDialog
+from .. PlotDataItem import PlotDataItem
+from .. ViewBox import ViewBox
+from .. AxisItem import AxisItem
+from .. LabelItem import LabelItem
+from .. LegendItem import LegendItem
+from .. GraphicsWidget import GraphicsWidget
+from .. ButtonItem import ButtonItem
+from .. InfiniteLine import InfiniteLine
+from ...WidgetGroup import WidgetGroup
+from ...python2_3 import basestring
+
+if QT_LIB == 'PyQt4':
+    from .plotConfigTemplate_pyqt import *
+elif QT_LIB == 'PySide':
+    from .plotConfigTemplate_pyside import *
+elif QT_LIB == 'PyQt5':
+    from .plotConfigTemplate_pyqt5 import *
+
+__all__ = ['PlotItem']
+
+try:
+    from metaarray import *
+    HAVE_METAARRAY = True
+except:
+    HAVE_METAARRAY = False
+
+
+
+
+class PlotItem(GraphicsWidget):
+    
+    """
+    **Bases:** :class:`GraphicsWidget <pyqtgraph.GraphicsWidget>`
+    
+    Plot graphics item that can be added to any graphics scene. Implements axes, titles, and interactive viewbox. 
+    PlotItem also provides some basic analysis functionality that may be accessed from the context menu.
+    Use :func:`plot() <pyqtgraph.PlotItem.plot>` to create a new PlotDataItem and add it to the view.
+    Use :func:`addItem() <pyqtgraph.PlotItem.addItem>` to add any QGraphicsItem to the view.
+    
+    This class wraps several methods from its internal ViewBox:
+    :func:`setXRange <pyqtgraph.ViewBox.setXRange>`,
+    :func:`setYRange <pyqtgraph.ViewBox.setYRange>`,
+    :func:`setRange <pyqtgraph.ViewBox.setRange>`,
+    :func:`autoRange <pyqtgraph.ViewBox.autoRange>`,
+    :func:`setXLink <pyqtgraph.ViewBox.setXLink>`,
+    :func:`setYLink <pyqtgraph.ViewBox.setYLink>`,
+    :func:`setAutoPan <pyqtgraph.ViewBox.setAutoPan>`,
+    :func:`setAutoVisible <pyqtgraph.ViewBox.setAutoVisible>`,
+    :func:`setLimits <pyqtgraph.ViewBox.setLimits>`,
+    :func:`viewRect <pyqtgraph.ViewBox.viewRect>`,
+    :func:`viewRange <pyqtgraph.ViewBox.viewRange>`,
+    :func:`setMouseEnabled <pyqtgraph.ViewBox.setMouseEnabled>`,
+    :func:`enableAutoRange <pyqtgraph.ViewBox.enableAutoRange>`,
+    :func:`disableAutoRange <pyqtgraph.ViewBox.disableAutoRange>`,
+    :func:`setAspectLocked <pyqtgraph.ViewBox.setAspectLocked>`,
+    :func:`invertY <pyqtgraph.ViewBox.invertY>`,
+    :func:`invertX <pyqtgraph.ViewBox.invertX>`,
+    :func:`register <pyqtgraph.ViewBox.register>`,
+    :func:`unregister <pyqtgraph.ViewBox.unregister>`
+    
+    The ViewBox itself can be accessed by calling :func:`getViewBox() <pyqtgraph.PlotItem.getViewBox>` 
+    
+    ==================== =======================================================================
+    **Signals:**
+    sigYRangeChanged     wrapped from :class:`ViewBox <pyqtgraph.ViewBox>`
+    sigXRangeChanged     wrapped from :class:`ViewBox <pyqtgraph.ViewBox>`
+    sigRangeChanged      wrapped from :class:`ViewBox <pyqtgraph.ViewBox>`
+    ==================== =======================================================================
+    """
+    
+    sigRangeChanged = QtCore.Signal(object, object)    ## Emitted when the ViewBox range has changed
+    sigYRangeChanged = QtCore.Signal(object, object)   ## Emitted when the ViewBox Y range has changed
+    sigXRangeChanged = QtCore.Signal(object, object)   ## Emitted when the ViewBox X range has changed
+    
+    
+    lastFileDir = None
+    
+    def __init__(self, parent=None, name=None, labels=None, title=None, viewBox=None, axisItems=None, enableMenu=True, **kargs):
+        """
+        Create a new PlotItem. All arguments are optional.
+        Any extra keyword arguments are passed to PlotItem.plot().
+        
+        ==============  ==========================================================================================
+        **Arguments:**
+        *title*         Title to display at the top of the item. Html is allowed.
+        *labels*        A dictionary specifying the axis labels to display::
+                   
+                            {'left': (args), 'bottom': (args), ...}
+                     
+                        The name of each axis and the corresponding arguments are passed to 
+                        :func:`PlotItem.setLabel() <pyqtgraph.PlotItem.setLabel>`
+                        Optionally, PlotItem my also be initialized with the keyword arguments left,
+                        right, top, or bottom to achieve the same effect.
+        *name*          Registers a name for this view so that others may link to it
+        *viewBox*       If specified, the PlotItem will be constructed with this as its ViewBox.
+        *axisItems*     Optional dictionary instructing the PlotItem to use pre-constructed items
+                        for its axes. The dict keys must be axis names ('left', 'bottom', 'right', 'top')
+                        and the values must be instances of AxisItem (or at least compatible with AxisItem).
+        ==============  ==========================================================================================
+        """
+        
+        GraphicsWidget.__init__(self, parent)
+        
+        self.setSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
+        
+        ## Set up control buttons
+        path = os.path.dirname(__file__)
+        #self.autoImageFile = os.path.join(path, 'auto.png')
+        #self.lockImageFile = os.path.join(path, 'lock.png')
+        self.autoBtn = ButtonItem(pixmaps.getPixmap('auto'), 14, self)
+        self.autoBtn.mode = 'auto'
+        self.autoBtn.clicked.connect(self.autoBtnClicked)
+        #self.autoBtn.hide()
+        self.buttonsHidden = False ## whether the user has requested buttons to be hidden
+        self.mouseHovering = False
+        
+        self.layout = QtGui.QGraphicsGridLayout()
+        self.layout.setContentsMargins(1,1,1,1)
+        self.setLayout(self.layout)
+        self.layout.setHorizontalSpacing(0)
+        self.layout.setVerticalSpacing(0)
+        
+        if viewBox is None:
+            viewBox = ViewBox(parent=self)
+        self.vb = viewBox
+        self.vb.sigStateChanged.connect(self.viewStateChanged)
+        self.setMenuEnabled(enableMenu, enableMenu) ## en/disable plotitem and viewbox menus
+        
+        if name is not None:
+            self.vb.register(name)
+        self.vb.sigRangeChanged.connect(self.sigRangeChanged)
+        self.vb.sigXRangeChanged.connect(self.sigXRangeChanged)
+        self.vb.sigYRangeChanged.connect(self.sigYRangeChanged)
+        
+        self.layout.addItem(self.vb, 2, 1)
+        self.alpha = 1.0
+        self.autoAlpha = True
+        self.spectrumMode = False
+        
+        self.legend = None
+        
+        ## Create and place axis items
+        if axisItems is None:
+            axisItems = {}
+        self.axes = {}
+        for k, pos in (('top', (1,1)), ('bottom', (3,1)), ('left', (2,0)), ('right', (2,2))):
+            if k in axisItems:
+                axis = axisItems[k]
+            else:
+                axis = AxisItem(orientation=k, parent=self)
+            axis.linkToView(self.vb)
+            self.axes[k] = {'item': axis, 'pos': pos}
+            self.layout.addItem(axis, *pos)
+            axis.setZValue(-1000)
+            axis.setFlag(axis.ItemNegativeZStacksBehindParent)
+        
+        self.titleLabel = LabelItem('', size='11pt', parent=self)
+        self.layout.addItem(self.titleLabel, 0, 1)
+        self.setTitle(None)  ## hide
+        
+        
+        for i in range(4):
+            self.layout.setRowPreferredHeight(i, 0)
+            self.layout.setRowMinimumHeight(i, 0)
+            self.layout.setRowSpacing(i, 0)
+            self.layout.setRowStretchFactor(i, 1)
+            
+        for i in range(3):
+            self.layout.setColumnPreferredWidth(i, 0)
+            self.layout.setColumnMinimumWidth(i, 0)
+            self.layout.setColumnSpacing(i, 0)
+            self.layout.setColumnStretchFactor(i, 1)
+        self.layout.setRowStretchFactor(2, 100)
+        self.layout.setColumnStretchFactor(1, 100)
+        
+
+        self.items = []
+        self.curves = []
+        self.itemMeta = weakref.WeakKeyDictionary()
+        self.dataItems = []
+        self.paramList = {}
+        self.avgCurves = {}
+        
+        ### Set up context menu
+        
+        w = QtGui.QWidget()
+        self.ctrl = c = Ui_Form()
+        c.setupUi(w)
+        dv = QtGui.QDoubleValidator(self)
+        
+        menuItems = [
+            ('Transforms', c.transformGroup),
+            ('Downsample', c.decimateGroup),
+            ('Average', c.averageGroup),
+            ('Alpha', c.alphaGroup),
+            ('Grid', c.gridGroup),
+            ('Points', c.pointsGroup),
+        ]
+        
+        
+        self.ctrlMenu = QtGui.QMenu()
+        
+        self.ctrlMenu.setTitle('Plot Options')
+        self.subMenus = []
+        for name, grp in menuItems:
+            sm = QtGui.QMenu(name)
+            act = QtGui.QWidgetAction(self)
+            act.setDefaultWidget(grp)
+            sm.addAction(act)
+            self.subMenus.append(sm)
+            self.ctrlMenu.addMenu(sm)
+        
+        self.stateGroup = WidgetGroup()
+        for name, w in menuItems:
+            self.stateGroup.autoAdd(w)
+        
+        self.fileDialog = None
+        
+        c.alphaGroup.toggled.connect(self.updateAlpha)
+        c.alphaSlider.valueChanged.connect(self.updateAlpha)
+        c.autoAlphaCheck.toggled.connect(self.updateAlpha)
+
+        c.xGridCheck.toggled.connect(self.updateGrid)
+        c.yGridCheck.toggled.connect(self.updateGrid)
+        c.gridAlphaSlider.valueChanged.connect(self.updateGrid)
+
+        c.fftCheck.toggled.connect(self.updateSpectrumMode)
+        c.logXCheck.toggled.connect(self.updateLogMode)
+        c.logYCheck.toggled.connect(self.updateLogMode)
+
+        c.downsampleSpin.valueChanged.connect(self.updateDownsampling)
+        c.downsampleCheck.toggled.connect(self.updateDownsampling)
+        c.autoDownsampleCheck.toggled.connect(self.updateDownsampling)
+        c.subsampleRadio.toggled.connect(self.updateDownsampling)
+        c.meanRadio.toggled.connect(self.updateDownsampling)
+        c.clipToViewCheck.toggled.connect(self.updateDownsampling)
+
+        self.ctrl.avgParamList.itemClicked.connect(self.avgParamListClicked)
+        self.ctrl.averageGroup.toggled.connect(self.avgToggled)
+        
+        self.ctrl.maxTracesCheck.toggled.connect(self.updateDecimation)
+        self.ctrl.maxTracesSpin.valueChanged.connect(self.updateDecimation)
+        
+        self.hideAxis('right')
+        self.hideAxis('top')
+        self.showAxis('left')
+        self.showAxis('bottom')
+        
+        if labels is None:
+            labels = {}
+        for label in list(self.axes.keys()):
+            if label in kargs:
+                labels[label] = kargs[label]
+                del kargs[label]
+        for k in labels:
+            if isinstance(labels[k], basestring):
+                labels[k] = (labels[k],)
+            self.setLabel(k, *labels[k])
+                
+        if title is not None:
+            self.setTitle(title)
+        
+        if len(kargs) > 0:
+            self.plot(**kargs)
+        
+        
+    def implements(self, interface=None):
+        return interface in ['ViewBoxWrapper']
+
+    def getViewBox(self):
+        """Return the :class:`ViewBox <pyqtgraph.ViewBox>` contained within."""
+        return self.vb
+
+    
+    ## Wrap a few methods from viewBox. 
+    #Important: don't use a settattr(m, getattr(self.vb, m)) as we'd be leaving the viebox alive
+    #because we had a reference to an instance method (creating wrapper methods at runtime instead).
+    
+    for m in ['setXRange', 'setYRange', 'setXLink', 'setYLink', 'setAutoPan',         # NOTE: 
+              'setAutoVisible', 'setRange', 'autoRange', 'viewRect', 'viewRange',     # If you update this list, please 
+              'setMouseEnabled', 'setLimits', 'enableAutoRange', 'disableAutoRange',  # update the class docstring 
+              'setAspectLocked', 'invertY', 'invertX', 'register', 'unregister']:                # as well.
+                
+        def _create_method(name):
+            def method(self, *args, **kwargs):
+                return getattr(self.vb, name)(*args, **kwargs)
+            method.__name__ = name
+            return method
+        
+        locals()[m] = _create_method(m)
+        
+    del _create_method
+    
+    
+    def setLogMode(self, x=None, y=None):
+        """
+        Set log scaling for x and/or y axes.
+        This informs PlotDataItems to transform logarithmically and switches
+        the axes to use log ticking. 
+        
+        Note that *no other items* in the scene will be affected by
+        this; there is (currently) no generic way to redisplay a GraphicsItem
+        with log coordinates.
+        
+        """
+        if x is not None:
+            self.ctrl.logXCheck.setChecked(x)
+        if y is not None:
+            self.ctrl.logYCheck.setChecked(y)
+        
+    def showGrid(self, x=None, y=None, alpha=None):
+        """
+        Show or hide the grid for either axis.
+        
+        ==============  =====================================
+        **Arguments:**
+        x               (bool) Whether to show the X grid
+        y               (bool) Whether to show the Y grid
+        alpha           (0.0-1.0) Opacity of the grid
+        ==============  =====================================
+        """
+        if x is None and y is None and alpha is None:
+            raise Exception("Must specify at least one of x, y, or alpha.")  ## prevent people getting confused if they just call showGrid()
+        
+        if x is not None:
+            self.ctrl.xGridCheck.setChecked(x)
+        if y is not None:
+            self.ctrl.yGridCheck.setChecked(y)
+        if alpha is not None:
+            v = np.clip(alpha, 0, 1)*self.ctrl.gridAlphaSlider.maximum()
+            self.ctrl.gridAlphaSlider.setValue(v)
+        
+    #def paint(self, *args):
+        #prof = debug.Profiler()
+        #QtGui.QGraphicsWidget.paint(self, *args)
+        
+    ## bad idea. 
+    #def __getattr__(self, attr):  ## wrap ms
+        #return getattr(self.vb, attr)
+        
+    def close(self):
+        #print "delete", self
+        ## Most of this crap is needed to avoid PySide trouble. 
+        ## The problem seems to be whenever scene.clear() leads to deletion of widgets (either through proxies or qgraphicswidgets)
+        ## the solution is to manually remove all widgets before scene.clear() is called
+        if self.ctrlMenu is None: ## already shut down
+            return
+        self.ctrlMenu.setParent(None)
+        self.ctrlMenu = None
+        
+        self.autoBtn.setParent(None)
+        self.autoBtn = None
+        
+        for k in self.axes:
+            i = self.axes[k]['item']
+            i.close()
+            
+        self.axes = None
+        self.scene().removeItem(self.vb)
+        self.vb = None
+        
+    def registerPlot(self, name):   ## for backward compatibility
+        self.vb.register(name)
+        
+    def updateGrid(self, *args):
+        alpha = self.ctrl.gridAlphaSlider.value()
+        x = alpha if self.ctrl.xGridCheck.isChecked() else False
+        y = alpha if self.ctrl.yGridCheck.isChecked() else False
+        self.getAxis('top').setGrid(x)
+        self.getAxis('bottom').setGrid(x)
+        self.getAxis('left').setGrid(y)
+        self.getAxis('right').setGrid(y)
+
+    def viewGeometry(self):
+        """Return the screen geometry of the viewbox"""
+        v = self.scene().views()[0]
+        b = self.vb.mapRectToScene(self.vb.boundingRect())
+        wr = v.mapFromScene(b).boundingRect()
+        pos = v.mapToGlobal(v.pos())
+        wr.adjust(pos.x(), pos.y(), pos.x(), pos.y())
+        return wr
+
+
+    def avgToggled(self, b):
+        if b:
+            self.recomputeAverages()
+        for k in self.avgCurves:
+            self.avgCurves[k][1].setVisible(b)
+        
+    def avgParamListClicked(self, item):
+        name = str(item.text())
+        self.paramList[name] = (item.checkState() == QtCore.Qt.Checked)
+        self.recomputeAverages()
+        
+    def recomputeAverages(self):
+        if not self.ctrl.averageGroup.isChecked():
+            return
+        for k in self.avgCurves:
+            self.removeItem(self.avgCurves[k][1])
+        self.avgCurves = {}
+        for c in self.curves:
+            self.addAvgCurve(c)
+        self.replot()
+        
+    def addAvgCurve(self, curve):
+        ## Add a single curve into the pool of curves averaged together
+        
+        ## If there are plot parameters, then we need to determine which to average together.
+        remKeys = []
+        addKeys = []
+        if self.ctrl.avgParamList.count() > 0:
+        
+            ### First determine the key of the curve to which this new data should be averaged
+            for i in range(self.ctrl.avgParamList.count()):
+                item = self.ctrl.avgParamList.item(i)
+                if item.checkState() == QtCore.Qt.Checked:
+                    remKeys.append(str(item.text()))
+                else:
+                    addKeys.append(str(item.text()))
+                    
+            if len(remKeys) < 1:  ## In this case, there would be 1 average plot for each data plot; not useful.
+                return
+                
+        p = self.itemMeta.get(curve,{}).copy()
+        for k in p:
+            if type(k) is tuple:
+                p['.'.join(k)] = p[k]
+                del p[k]
+        for rk in remKeys:
+            if rk in p:
+                del p[rk]
+        for ak in addKeys:
+            if ak not in p:
+                p[ak] = None
+        key = tuple(p.items())
+        
+        ### Create a new curve if needed
+        if key not in self.avgCurves:
+            plot = PlotDataItem()
+            plot.setPen(fn.mkPen([0, 200, 0]))
+            plot.setShadowPen(fn.mkPen([0, 0, 0, 100], width=3))
+            plot.setAlpha(1.0, False)
+            plot.setZValue(100)
+            self.addItem(plot, skipAverage=True)
+            self.avgCurves[key] = [0, plot]
+        self.avgCurves[key][0] += 1
+        (n, plot) = self.avgCurves[key]
+        
+        ### Average data together
+        (x, y) = curve.getData()
+        stepMode = curve.opts['stepMode']
+        if plot.yData is not None and y.shape == plot.yData.shape:
+            # note that if shapes do not match, then the average resets.
+            newData = plot.yData * (n-1) / float(n) + y * 1.0 / float(n)
+            plot.setData(plot.xData, newData, stepMode=stepMode)
+        else:
+            plot.setData(x, y, stepMode=stepMode)
+        
+    def autoBtnClicked(self):
+        if self.autoBtn.mode == 'auto':
+            self.enableAutoRange()
+            self.autoBtn.hide()
+        else:
+            self.disableAutoRange()
+            
+    def viewStateChanged(self):
+        self.updateButtons()
+            
+    def enableAutoScale(self):
+        """
+        Enable auto-scaling. The plot will continuously scale to fit the boundaries of its data.
+        """
+        print("Warning: enableAutoScale is deprecated. Use enableAutoRange(axis, enable) instead.")
+        self.vb.enableAutoRange(self.vb.XYAxes)
+
+    def addItem(self, item, *args, **kargs):
+        """
+        Add a graphics item to the view box. 
+        If the item has plot data (PlotDataItem, PlotCurveItem, ScatterPlotItem), it may
+        be included in analysis performed by the PlotItem.
+        """
+        self.items.append(item)
+        vbargs = {}
+        if 'ignoreBounds' in kargs:
+            vbargs['ignoreBounds'] = kargs['ignoreBounds']
+        self.vb.addItem(item, *args, **vbargs)
+        name = None
+        if hasattr(item, 'implements') and item.implements('plotData'):
+            name = item.name()
+            self.dataItems.append(item)
+            #self.plotChanged()
+            
+            params = kargs.get('params', {})
+            self.itemMeta[item] = params
+            #item.setMeta(params)
+            self.curves.append(item)
+            #self.addItem(c)
+            
+        if hasattr(item, 'setLogMode'):
+            item.setLogMode(self.ctrl.logXCheck.isChecked(), self.ctrl.logYCheck.isChecked())
+            
+        if isinstance(item, PlotDataItem):
+            ## configure curve for this plot
+            (alpha, auto) = self.alphaState()
+            item.setAlpha(alpha, auto)
+            item.setFftMode(self.ctrl.fftCheck.isChecked())
+            item.setDownsampling(*self.downsampleMode())
+            item.setClipToView(self.clipToViewMode())
+            item.setPointMode(self.pointMode())
+            
+            ## Hide older plots if needed
+            self.updateDecimation()
+            
+            ## Add to average if needed
+            self.updateParamList()
+            if self.ctrl.averageGroup.isChecked() and 'skipAverage' not in kargs:
+                self.addAvgCurve(item)
+                
+            #c.connect(c, QtCore.SIGNAL('plotChanged'), self.plotChanged)
+            #item.sigPlotChanged.connect(self.plotChanged)
+            #self.plotChanged()
+        #name = kargs.get('name', getattr(item, 'opts', {}).get('name', None))
+        if name is not None and hasattr(self, 'legend') and self.legend is not None:
+            self.legend.addItem(item, name=name)
+            
+
+    def addDataItem(self, item, *args):
+        print("PlotItem.addDataItem is deprecated. Use addItem instead.")
+        self.addItem(item, *args)
+        
+    def listDataItems(self):
+        """Return a list of all data items (PlotDataItem, PlotCurveItem, ScatterPlotItem, etc)
+        contained in this PlotItem."""
+        return self.dataItems[:]
+        
+    def addCurve(self, c, params=None):
+        print("PlotItem.addCurve is deprecated. Use addItem instead.")
+        self.addItem(c, params)
+
+    def addLine(self, x=None, y=None, z=None, **kwds):
+        """
+        Create an InfiniteLine and add to the plot. 
+        
+        If *x* is specified,
+        the line will be vertical. If *y* is specified, the line will be
+        horizontal. All extra keyword arguments are passed to
+        :func:`InfiniteLine.__init__() <pyqtgraph.InfiniteLine.__init__>`.
+        Returns the item created.
+        """
+        pos = kwds.get('pos', x if x is not None else y)
+        angle = kwds.get('angle', 0 if x is None else 90)
+        line = InfiniteLine(pos, angle, **kwds)
+        self.addItem(line)
+        if z is not None:
+            line.setZValue(z)
+        return line
+        
+        
+
+    def removeItem(self, item):
+        """
+        Remove an item from the internal ViewBox.
+        """
+        if not item in self.items:
+            return
+        self.items.remove(item)
+        if item in self.dataItems:
+            self.dataItems.remove(item)
+            
+        if item.scene() is not None:
+            self.vb.removeItem(item)
+        if item in self.curves:
+            self.curves.remove(item)
+            self.updateDecimation()
+            self.updateParamList()
+            #item.connect(item, QtCore.SIGNAL('plotChanged'), self.plotChanged)
+            #item.sigPlotChanged.connect(self.plotChanged)
+
+    def clear(self):
+        """
+        Remove all items from the ViewBox.
+        """
+        for i in self.items[:]:
+            self.removeItem(i)
+        self.avgCurves = {}
+    
+    def clearPlots(self):
+        for i in self.curves[:]:
+            self.removeItem(i)
+        self.avgCurves = {}
+        
+    
+    def plot(self, *args, **kargs):
+        """
+        Add and return a new plot.
+        See :func:`PlotDataItem.__init__ <pyqtgraph.PlotDataItem.__init__>` for data arguments
+        
+        Extra allowed arguments are:
+            clear    - clear all plots before displaying new data
+            params   - meta-parameters to associate with this data
+        """
+        
+        
+        clear = kargs.get('clear', False)
+        params = kargs.get('params', None)
+          
+        if clear:
+            self.clear()
+            
+        item = PlotDataItem(*args, **kargs)
+            
+        if params is None:
+            params = {}
+        self.addItem(item, params=params)
+        
+        return item
+
+    def addLegend(self, size=None, offset=(30, 30)):
+        """
+        Create a new LegendItem and anchor it over the internal ViewBox.
+        Plots will be automatically displayed in the legend if they
+        are created with the 'name' argument.
+        """
+        self.legend = LegendItem(size, offset)
+        self.legend.setParentItem(self.vb)
+        return self.legend
+        
+    def scatterPlot(self, *args, **kargs):
+        if 'pen' in kargs:
+            kargs['symbolPen'] = kargs['pen']
+        kargs['pen'] = None
+            
+        if 'brush' in kargs:
+            kargs['symbolBrush'] = kargs['brush']
+            del kargs['brush']
+            
+        if 'size' in kargs:
+            kargs['symbolSize'] = kargs['size']
+            del kargs['size']
+
+        return self.plot(*args, **kargs)
+                
+    def replot(self):
+        self.update()
+
+    def updateParamList(self):
+        self.ctrl.avgParamList.clear()
+        ## Check to see that each parameter for each curve is present in the list
+        for c in self.curves:
+            for p in list(self.itemMeta.get(c, {}).keys()):
+                if type(p) is tuple:
+                    p = '.'.join(p)
+                    
+                ## If the parameter is not in the list, add it.
+                matches = self.ctrl.avgParamList.findItems(p, QtCore.Qt.MatchExactly)
+                if len(matches) == 0:
+                    i = QtGui.QListWidgetItem(p)
+                    if p in self.paramList and self.paramList[p] is True:
+                        i.setCheckState(QtCore.Qt.Checked)
+                    else:
+                        i.setCheckState(QtCore.Qt.Unchecked)
+                    self.ctrl.avgParamList.addItem(i)
+                else:
+                    i = matches[0]
+                    
+                self.paramList[p] = (i.checkState() == QtCore.Qt.Checked)
+
+
+    ## Qt's SVG-writing capabilities are pretty terrible. 
+    def writeSvgCurves(self, fileName=None):
+        if fileName is None:
+            self.fileDialog = FileDialog()
+            if PlotItem.lastFileDir is not None:
+                self.fileDialog.setDirectory(PlotItem.lastFileDir)
+            self.fileDialog.setFileMode(QtGui.QFileDialog.AnyFile)
+            self.fileDialog.setAcceptMode(QtGui.QFileDialog.AcceptSave) 
+            self.fileDialog.show()
+            self.fileDialog.fileSelected.connect(self.writeSvg)
+            return
+        #if fileName is None:
+            #fileName = QtGui.QFileDialog.getSaveFileName()
+        if isinstance(fileName, tuple):
+            raise Exception("Not implemented yet..")
+        fileName = str(fileName)
+        PlotItem.lastFileDir = os.path.dirname(fileName)
+        
+        rect = self.vb.viewRect()
+        xRange = rect.left(), rect.right() 
+        
+        svg = ""
+        fh = open(fileName, 'w')
+
+        dx = max(rect.right(),0) - min(rect.left(),0)
+        ymn = min(rect.top(), rect.bottom())
+        ymx = max(rect.top(), rect.bottom())
+        dy = max(ymx,0) - min(ymn,0)
+        sx = 1.
+        sy = 1.
+        while dx*sx < 10:
+            sx *= 1000
+        while dy*sy < 10:
+            sy *= 1000
+        sy *= -1
+
+        #fh.write('<svg viewBox="%f %f %f %f">\n' % (rect.left()*sx, rect.top()*sx, rect.width()*sy, rect.height()*sy))
+        fh.write('<svg>\n')
+        fh.write('<path fill="none" stroke="#000000" stroke-opacity="0.5" stroke-width="1" d="M%f,0 L%f,0"/>\n' % (rect.left()*sx, rect.right()*sx))
+        fh.write('<path fill="none" stroke="#000000" stroke-opacity="0.5" stroke-width="1" d="M0,%f L0,%f"/>\n' % (rect.top()*sy, rect.bottom()*sy))
+
+
+        for item in self.curves:
+            if isinstance(item, PlotCurveItem):
+                color = fn.colorStr(item.pen.color())
+                opacity = item.pen.color().alpha() / 255.
+                color = color[:6]
+                x, y = item.getData()
+                mask = (x > xRange[0]) * (x < xRange[1])
+                mask[:-1] += mask[1:]
+                m2 = mask.copy()
+                mask[1:] += m2[:-1]
+                x = x[mask]
+                y = y[mask]
+                
+                x *= sx
+                y *= sy
+                
+                #fh.write('<g fill="none" stroke="#%s" stroke-opacity="1" stroke-width="1">\n' % color)
+                fh.write('<path fill="none" stroke="#%s" stroke-opacity="%f" stroke-width="1" d="M%f,%f ' % (color, opacity, x[0], y[0]))
+                for i in range(1, len(x)):
+                    fh.write('L%f,%f ' % (x[i], y[i]))
+                
+                fh.write('"/>')
+                #fh.write("</g>")
+        for item in self.dataItems:
+            if isinstance(item, ScatterPlotItem):
+                
+                pRect = item.boundingRect()
+                vRect = pRect.intersected(rect)
+                
+                for point in item.points():
+                    pos = point.pos()
+                    if not rect.contains(pos):
+                        continue
+                    color = fn.colorStr(point.brush.color())
+                    opacity = point.brush.color().alpha() / 255.
+                    color = color[:6]
+                    x = pos.x() * sx
+                    y = pos.y() * sy
+                    
+                    fh.write('<circle cx="%f" cy="%f" r="1" fill="#%s" stroke="none" fill-opacity="%f"/>\n' % (x, y, color, opacity))
+        
+        fh.write("</svg>\n")
+        
+        
+    
+    def writeSvg(self, fileName=None):
+        if fileName is None:
+            fileName = QtGui.QFileDialog.getSaveFileName()
+        fileName = str(fileName)
+        PlotItem.lastFileDir = os.path.dirname(fileName)
+        
+        from ...exporters import SVGExporter
+        ex = SVGExporter(self)
+        ex.export(fileName)
+        
+    def writeImage(self, fileName=None):
+        if fileName is None:
+            self.fileDialog = FileDialog()
+            if PlotItem.lastFileDir is not None:
+                self.fileDialog.setDirectory(PlotItem.lastFileDir)
+            self.fileDialog.setFileMode(QtGui.QFileDialog.AnyFile)
+            self.fileDialog.setAcceptMode(QtGui.QFileDialog.AcceptSave) 
+            self.fileDialog.show()
+            self.fileDialog.fileSelected.connect(self.writeImage)
+            return
+        #if fileName is None:
+            #fileName = QtGui.QFileDialog.getSaveFileName()
+        if isinstance(fileName, tuple):
+            raise Exception("Not implemented yet..")
+        fileName = str(fileName)
+        PlotItem.lastFileDir = os.path.dirname(fileName)
+        self.png = QtGui.QImage(int(self.size().width()), int(self.size().height()), QtGui.QImage.Format_ARGB32)
+        painter = QtGui.QPainter(self.png)
+        painter.setRenderHints(painter.Antialiasing | painter.TextAntialiasing)
+        self.scene().render(painter, QtCore.QRectF(), self.mapRectToScene(self.boundingRect()))
+        painter.end()
+        self.png.save(fileName)
+        
+    def writeCsv(self, fileName=None):
+        if fileName is None:
+            self.fileDialog = FileDialog()
+            if PlotItem.lastFileDir is not None:
+                self.fileDialog.setDirectory(PlotItem.lastFileDir)
+            self.fileDialog.setFileMode(QtGui.QFileDialog.AnyFile)
+            self.fileDialog.setAcceptMode(QtGui.QFileDialog.AcceptSave) 
+            self.fileDialog.show()
+            self.fileDialog.fileSelected.connect(self.writeCsv)
+            return
+        #if fileName is None:
+            #fileName = QtGui.QFileDialog.getSaveFileName()
+        fileName = str(fileName)
+        PlotItem.lastFileDir = os.path.dirname(fileName)
+        
+        fd = open(fileName, 'w')
+        data = [c.getData() for c in self.curves]
+        i = 0
+        while True:
+            done = True
+            for d in data:
+                if i < len(d[0]):
+                    fd.write('%g,%g,'%(d[0][i], d[1][i]))
+                    done = False
+                else:
+                    fd.write(' , ,')
+            fd.write('\n')
+            if done:
+                break
+            i += 1
+        fd.close()
+
+
+    def saveState(self):
+        state = self.stateGroup.state()
+        state['paramList'] = self.paramList.copy()
+        state['view'] = self.vb.getState()
+        return state
+        
+    def restoreState(self, state):
+        if 'paramList' in state:
+            self.paramList = state['paramList'].copy()
+            
+        self.stateGroup.setState(state)
+        self.updateSpectrumMode()
+        self.updateDownsampling()
+        self.updateAlpha()
+        self.updateDecimation()
+        
+        if 'powerSpectrumGroup' in state:
+            state['fftCheck'] = state['powerSpectrumGroup']
+        if 'gridGroup' in state:
+            state['xGridCheck'] = state['gridGroup']
+            state['yGridCheck'] = state['gridGroup']
+            
+        self.stateGroup.setState(state)
+        self.updateParamList()
+        
+        if 'view' not in state:
+            r = [[float(state['xMinText']), float(state['xMaxText'])], [float(state['yMinText']), float(state['yMaxText'])]]
+            state['view'] = {
+                'autoRange': [state['xAutoRadio'], state['yAutoRadio']],
+                'linkedViews': [state['xLinkCombo'], state['yLinkCombo']],
+                'targetRange': r,
+                'viewRange': r,
+            }
+        self.vb.setState(state['view'])
+        
+
+    def widgetGroupInterface(self):
+        return (None, PlotItem.saveState, PlotItem.restoreState)
+      
+    def updateSpectrumMode(self, b=None):
+        if b is None:
+            b = self.ctrl.fftCheck.isChecked()
+        for c in self.curves:
+            c.setFftMode(b)
+        self.enableAutoRange()
+        self.recomputeAverages()
+            
+    def updateLogMode(self):
+        x = self.ctrl.logXCheck.isChecked()
+        y = self.ctrl.logYCheck.isChecked()
+        for i in self.items:
+            if hasattr(i, 'setLogMode'):
+                i.setLogMode(x,y)
+        self.getAxis('bottom').setLogMode(x)
+        self.getAxis('top').setLogMode(x)
+        self.getAxis('left').setLogMode(y)
+        self.getAxis('right').setLogMode(y)
+        self.enableAutoRange()
+        self.recomputeAverages()
+        
+    def setDownsampling(self, ds=None, auto=None, mode=None):
+        """Change the default downsampling mode for all PlotDataItems managed by this plot.
+        
+        =============== =================================================================
+        **Arguments:**
+        ds              (int) Reduce visible plot samples by this factor, or
+                        (bool) To enable/disable downsampling without changing the value.
+        auto            (bool) If True, automatically pick *ds* based on visible range
+        mode            'subsample': Downsample by taking the first of N samples.
+                        This method is fastest and least accurate.
+                        'mean': Downsample by taking the mean of N samples.
+                        'peak': Downsample by drawing a saw wave that follows the min
+                        and max of the original data. This method produces the best
+                        visual representation of the data but is slower.
+        =============== =================================================================
+        """
+        if ds is not None:
+            if ds is False:
+                self.ctrl.downsampleCheck.setChecked(False)
+            elif ds is True:
+                self.ctrl.downsampleCheck.setChecked(True)
+            else:
+                self.ctrl.downsampleCheck.setChecked(True)
+                self.ctrl.downsampleSpin.setValue(ds)
+                
+        if auto is not None:
+            if auto and ds is not False:
+                self.ctrl.downsampleCheck.setChecked(True)
+            self.ctrl.autoDownsampleCheck.setChecked(auto)
+            
+        if mode is not None:
+            if mode == 'subsample':
+                self.ctrl.subsampleRadio.setChecked(True)
+            elif mode == 'mean':
+                self.ctrl.meanRadio.setChecked(True)
+            elif mode == 'peak':
+                self.ctrl.peakRadio.setChecked(True)
+            else:
+                raise ValueError("mode argument must be 'subsample', 'mean', or 'peak'.")
+            
+    def updateDownsampling(self):
+        ds, auto, method = self.downsampleMode()
+        clip = self.ctrl.clipToViewCheck.isChecked()
+        for c in self.curves:
+            c.setDownsampling(ds, auto, method)
+            c.setClipToView(clip)
+        self.recomputeAverages()
+        
+    def downsampleMode(self):
+        if self.ctrl.downsampleCheck.isChecked():
+            ds = self.ctrl.downsampleSpin.value()
+        else:
+            ds = 1
+            
+        auto = self.ctrl.downsampleCheck.isChecked() and self.ctrl.autoDownsampleCheck.isChecked()
+            
+        if self.ctrl.subsampleRadio.isChecked():
+            method = 'subsample' 
+        elif self.ctrl.meanRadio.isChecked():
+            method = 'mean'
+        elif self.ctrl.peakRadio.isChecked():
+            method = 'peak'
+        
+        return ds, auto, method
+        
+    def setClipToView(self, clip):
+        """Set the default clip-to-view mode for all PlotDataItems managed by this plot.
+        If *clip* is True, then PlotDataItems will attempt to draw only points within the visible
+        range of the ViewBox."""
+        self.ctrl.clipToViewCheck.setChecked(clip)
+        
+    def clipToViewMode(self):
+        return self.ctrl.clipToViewCheck.isChecked()
+        
+        
+        
+    def updateDecimation(self):
+        if self.ctrl.maxTracesCheck.isChecked():
+            numCurves = self.ctrl.maxTracesSpin.value()
+        else:
+            numCurves = -1
+            
+        curves = self.curves[:]
+        split = len(curves) - numCurves
+        for i in range(len(curves)):
+            if numCurves == -1 or i >= split:
+                curves[i].show()
+            else:
+                if self.ctrl.forgetTracesCheck.isChecked():
+                    curves[i].clear()
+                    self.removeItem(curves[i])
+                else:
+                    curves[i].hide()
+        
+      
+    def updateAlpha(self, *args):
+        (alpha, auto) = self.alphaState()
+        for c in self.curves:
+            c.setAlpha(alpha**2, auto)
+     
+    def alphaState(self):
+        enabled = self.ctrl.alphaGroup.isChecked()
+        auto = self.ctrl.autoAlphaCheck.isChecked()
+        alpha = float(self.ctrl.alphaSlider.value()) / self.ctrl.alphaSlider.maximum()
+        if auto:
+            alpha = 1.0  ## should be 1/number of overlapping plots
+        if not enabled:
+            auto = False
+            alpha = 1.0
+        return (alpha, auto)
+
+    def pointMode(self):
+        if self.ctrl.pointsGroup.isChecked():
+            if self.ctrl.autoPointsCheck.isChecked():
+                mode = None
+            else:
+                mode = True
+        else:
+            mode = False
+        return mode
+        
+
+    def resizeEvent(self, ev):
+        if self.autoBtn is None:  ## already closed down
+            return
+        btnRect = self.mapRectFromItem(self.autoBtn, self.autoBtn.boundingRect())
+        y = self.size().height() - btnRect.height()
+        self.autoBtn.setPos(0, y)
+    
+    
+    def getMenu(self):
+        return self.ctrlMenu
+    
+    def getContextMenus(self, event):
+        ## called when another item is displaying its context menu; we get to add extras to the end of the menu.
+        if self.menuEnabled():
+            return self.ctrlMenu
+        else:
+            return None
+    
+    def setMenuEnabled(self, enableMenu=True, enableViewBoxMenu='same'):
+        """
+        Enable or disable the context menu for this PlotItem.
+        By default, the ViewBox's context menu will also be affected.
+        (use enableViewBoxMenu=None to leave the ViewBox unchanged)
+        """
+        self._menuEnabled = enableMenu
+        if enableViewBoxMenu is None:
+            return
+        if enableViewBoxMenu is 'same':
+            enableViewBoxMenu = enableMenu 
+        self.vb.setMenuEnabled(enableViewBoxMenu)
+    
+    def menuEnabled(self):
+        return self._menuEnabled
+    
+    def hoverEvent(self, ev):
+        if ev.enter:
+            self.mouseHovering = True
+        if ev.exit:
+            self.mouseHovering = False
+            
+        self.updateButtons()
+    
+
+    def getLabel(self, key):
+        pass
+        
+    def _checkScaleKey(self, key):
+        if key not in self.axes:
+            raise Exception("Scale '%s' not found. Scales are: %s" % (key, str(list(self.axes.keys()))))
+        
+    def getScale(self, key):
+        return self.getAxis(key)
+        
+    def getAxis(self, name):
+        """Return the specified AxisItem. 
+        *name* should be 'left', 'bottom', 'top', or 'right'."""
+        self._checkScaleKey(name)
+        return self.axes[name]['item']
+        
+    def setLabel(self, axis, text=None, units=None, unitPrefix=None, **args):
+        """
+        Set the label for an axis. Basic HTML formatting is allowed.
+        
+        ==============  =================================================================
+        **Arguments:**
+        axis            must be one of 'left', 'bottom', 'right', or 'top'
+        text            text to display along the axis. HTML allowed.
+        units           units to display after the title. If units are given,
+                        then an SI prefix will be automatically appended
+                        and the axis values will be scaled accordingly.
+                        (ie, use 'V' instead of 'mV'; 'm' will be added automatically)
+        ==============  =================================================================
+        """
+        self.getAxis(axis).setLabel(text=text, units=units, **args)
+        self.showAxis(axis)
+        
+    def setLabels(self, **kwds):
+        """
+        Convenience function allowing multiple labels and/or title to be set in one call.
+        Keyword arguments can be 'title', 'left', 'bottom', 'right', or 'top'.
+        Values may be strings or a tuple of arguments to pass to setLabel.
+        """
+        for k,v in kwds.items():
+            if k == 'title':
+                self.setTitle(v)
+            else:
+                if isinstance(v, basestring):
+                    v = (v,)
+                self.setLabel(k, *v)
+        
+        
+    def showLabel(self, axis, show=True):
+        """
+        Show or hide one of the plot's axis labels (the axis itself will be unaffected).
+        axis must be one of 'left', 'bottom', 'right', or 'top'
+        """
+        self.getScale(axis).showLabel(show)
+
+    def setTitle(self, title=None, **args):
+        """
+        Set the title of the plot. Basic HTML formatting is allowed.
+        If title is None, then the title will be hidden.
+        """
+        if title is None:
+            self.titleLabel.setVisible(False)
+            self.layout.setRowFixedHeight(0, 0)
+            self.titleLabel.setMaximumHeight(0)
+        else:
+            self.titleLabel.setMaximumHeight(30)
+            self.layout.setRowFixedHeight(0, 30)
+            self.titleLabel.setVisible(True)
+            self.titleLabel.setText(title, **args)
+
+    def showAxis(self, axis, show=True):
+        """
+        Show or hide one of the plot's axes.
+        axis must be one of 'left', 'bottom', 'right', or 'top'
+        """
+        s = self.getScale(axis)
+        p = self.axes[axis]['pos']
+        if show:
+            s.show()
+        else:
+            s.hide()
+            
+    def hideAxis(self, axis):
+        """Hide one of the PlotItem's axes. ('left', 'bottom', 'right', or 'top')"""
+        self.showAxis(axis, False)
+            
+    def showScale(self, *args, **kargs):
+        print("Deprecated. use showAxis() instead")
+        return self.showAxis(*args, **kargs)
+            
+    def hideButtons(self):
+        """Causes auto-scale button ('A' in lower-left corner) to be hidden for this PlotItem"""
+        #self.ctrlBtn.hide()
+        self.buttonsHidden = True
+        self.updateButtons()
+        
+    def showButtons(self):
+        """Causes auto-scale button ('A' in lower-left corner) to be visible for this PlotItem"""
+        #self.ctrlBtn.hide()
+        self.buttonsHidden = False
+        self.updateButtons()
+        
+    def updateButtons(self):
+        try:
+            if self._exportOpts is False and self.mouseHovering and not self.buttonsHidden and not all(self.vb.autoRangeEnabled()):
+                self.autoBtn.show()
+            else:
+                self.autoBtn.hide()
+        except RuntimeError:
+            pass  # this can happen if the plot has been deleted.
+            
+    def _plotArray(self, arr, x=None, **kargs):
+        if arr.ndim != 1:
+            raise Exception("Array must be 1D to plot (shape is %s)" % arr.shape)
+        if x is None:
+            x = np.arange(arr.shape[0])
+        if x.ndim != 1:
+            raise Exception("X array must be 1D to plot (shape is %s)" % x.shape)
+        c = PlotCurveItem(arr, x=x, **kargs)
+        return c
+            
+        
+        
+    def _plotMetaArray(self, arr, x=None, autoLabel=True, **kargs):
+        inf = arr.infoCopy()
+        if arr.ndim != 1:
+            raise Exception('can only automatically plot 1 dimensional arrays.')
+        ## create curve
+        try:
+            xv = arr.xvals(0)
+        except:
+            if x is None:
+                xv = np.arange(arr.shape[0])
+            else:
+                xv = x
+        c = PlotCurveItem(**kargs)
+        c.setData(x=xv, y=arr.view(np.ndarray))
+        
+        if autoLabel:
+            name = arr._info[0].get('name', None)
+            units = arr._info[0].get('units', None)
+            self.setLabel('bottom', text=name, units=units)
+            
+            name = arr._info[1].get('name', None)
+            units = arr._info[1].get('units', None)
+            self.setLabel('left', text=name, units=units)
+            
+        return c
+
+      
+    def setExportMode(self, export, opts=None):
+        GraphicsWidget.setExportMode(self, export, opts)
+        self.updateButtons()
+        #if export:
+            #self.autoBtn.hide()
+        #else:
+            #self.autoBtn.show()
+    
diff --git a/libs/pyqtgraph/graphicsItems/PlotItem/__init__.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/PlotItem/__init__.py
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/PlotItem/__init__.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/PlotItem/__init__.py
diff --git a/libs/pyqtgraph/graphicsItems/PlotItem/plotConfigTemplate.ui b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/PlotItem/plotConfigTemplate.ui
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/PlotItem/plotConfigTemplate.ui
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/PlotItem/plotConfigTemplate.ui
diff --git a/libs/pyqtgraph/graphicsItems/PlotItem/plotConfigTemplate_pyqt.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/PlotItem/plotConfigTemplate_pyqt.py
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/PlotItem/plotConfigTemplate_pyqt.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/PlotItem/plotConfigTemplate_pyqt.py
diff --git a/libs/pyqtgraph/graphicsItems/PlotItem/plotConfigTemplate_pyqt5.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/PlotItem/plotConfigTemplate_pyqt5.py
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/PlotItem/plotConfigTemplate_pyqt5.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/PlotItem/plotConfigTemplate_pyqt5.py
diff --git a/libs/pyqtgraph/graphicsItems/PlotItem/plotConfigTemplate_pyside.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/PlotItem/plotConfigTemplate_pyside.py
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/PlotItem/plotConfigTemplate_pyside.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/PlotItem/plotConfigTemplate_pyside.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ROI.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ROI.py
new file mode 100644
index 00000000..81a4e651
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ROI.py
@@ -0,0 +1,2331 @@
+# -*- coding: utf-8 -*-
+"""
+ROI.py -  Interactive graphics items for GraphicsView (ROI widgets)
+Copyright 2010  Luke Campagnola
+Distributed under MIT/X11 license. See license.txt for more infomation.
+
+Implements a series of graphics items which display movable/scalable/rotatable shapes
+for use as region-of-interest markers. ROI class automatically handles extraction 
+of array data from ImageItems.
+
+The ROI class is meant to serve as the base for more specific types; see several examples
+of how to build an ROI at the bottom of the file.
+"""
+
+from ..Qt import QtCore, QtGui
+import numpy as np
+#from numpy.linalg import norm
+from ..Point import *
+from ..SRTTransform import SRTTransform
+from math import cos, sin
+from .. import functions as fn
+from .GraphicsObject import GraphicsObject
+from .UIGraphicsItem import UIGraphicsItem
+from .. import getConfigOption
+
+__all__ = [
+    'ROI', 
+    'TestROI', 'RectROI', 'EllipseROI', 'CircleROI', 'PolygonROI', 
+    'LineROI', 'MultiLineROI', 'MultiRectROI', 'LineSegmentROI', 'PolyLineROI', 'SpiralROI', 'CrosshairROI',
+]
+
+
+def rectStr(r):
+    return "[%f, %f] + [%f, %f]" % (r.x(), r.y(), r.width(), r.height())
+
+class ROI(GraphicsObject):
+    """
+    Generic region-of-interest widget.
+    
+    Can be used for implementing many types of selection box with 
+    rotate/translate/scale handles.
+    ROIs can be customized to have a variety of shapes (by subclassing or using
+    any of the built-in subclasses) and any combination of draggable handles
+    that allow the user to manipulate the ROI.
+    
+    
+    
+    ================ ===========================================================
+    **Arguments**
+    pos              (length-2 sequence) Indicates the position of the ROI's 
+                     origin. For most ROIs, this is the lower-left corner of
+                     its bounding rectangle.
+    size             (length-2 sequence) Indicates the width and height of the 
+                     ROI.
+    angle            (float) The rotation of the ROI in degrees. Default is 0.
+    invertible       (bool) If True, the user may resize the ROI to have 
+                     negative width or height (assuming the ROI has scale
+                     handles). Default is False.
+    maxBounds        (QRect, QRectF, or None) Specifies boundaries that the ROI 
+                     cannot be dragged outside of by the user. Default is None.
+    snapSize         (float) The spacing of snap positions used when *scaleSnap*
+                     or *translateSnap* are enabled. Default is 1.0.
+    scaleSnap        (bool) If True, the width and height of the ROI are forced
+                     to be integer multiples of *snapSize* when being resized
+                     by the user. Default is False.
+    translateSnap    (bool) If True, the x and y positions of the ROI are forced
+                     to be integer multiples of *snapSize* when being resized
+                     by the user. Default is False.
+    rotateSnap       (bool) If True, the ROI angle is forced to a multiple of 
+                     15 degrees when rotated by the user. Default is False.
+    parent           (QGraphicsItem) The graphics item parent of this ROI. It
+                     is generally not necessary to specify the parent.
+    pen              (QPen or argument to pg.mkPen) The pen to use when drawing
+                     the shape of the ROI.
+    movable          (bool) If True, the ROI can be moved by dragging anywhere 
+                     inside the ROI. Default is True.
+    removable        (bool) If True, the ROI will be given a context menu with
+                     an option to remove the ROI. The ROI emits
+                     sigRemoveRequested when this menu action is selected.
+                     Default is False.
+    ================ ===========================================================
+    
+    
+    
+    ======================= ====================================================
+    **Signals**
+    sigRegionChangeFinished Emitted when the user stops dragging the ROI (or
+                            one of its handles) or if the ROI is changed
+                            programatically.
+    sigRegionChangeStarted  Emitted when the user starts dragging the ROI (or
+                            one of its handles).
+    sigRegionChanged        Emitted any time the position of the ROI changes,
+                            including while it is being dragged by the user.
+    sigHoverEvent           Emitted when the mouse hovers over the ROI.
+    sigClicked              Emitted when the user clicks on the ROI.
+                            Note that clicking is disabled by default to prevent
+                            stealing clicks from objects behind the ROI. To 
+                            enable clicking, call 
+                            roi.setAcceptedMouseButtons(QtCore.Qt.LeftButton). 
+                            See QtGui.QGraphicsItem documentation for more 
+                            details.
+    sigRemoveRequested      Emitted when the user selects 'remove' from the 
+                            ROI's context menu (if available).
+    ======================= ====================================================
+    """
+    
+    sigRegionChangeFinished = QtCore.Signal(object)
+    sigRegionChangeStarted = QtCore.Signal(object)
+    sigRegionChanged = QtCore.Signal(object)
+    sigHoverEvent = QtCore.Signal(object)
+    sigClicked = QtCore.Signal(object, object)
+    sigRemoveRequested = QtCore.Signal(object)
+    
+    def __init__(self, pos, size=Point(1, 1), angle=0.0, invertible=False, maxBounds=None, snapSize=1.0, scaleSnap=False, translateSnap=False, rotateSnap=False, parent=None, pen=None, movable=True, removable=False):
+        #QObjectWorkaround.__init__(self)
+        GraphicsObject.__init__(self, parent)
+        self.setAcceptedMouseButtons(QtCore.Qt.NoButton)
+        pos = Point(pos)
+        size = Point(size)
+        self.aspectLocked = False
+        self.translatable = movable
+        self.rotateAllowed = True
+        self.removable = removable
+        self.menu = None
+        
+        self.freeHandleMoved = False ## keep track of whether free handles have moved since last change signal was emitted.
+        self.mouseHovering = False
+        if pen is None:
+            pen = (255, 255, 255)
+        self.setPen(pen)
+        
+        self.handlePen = QtGui.QPen(QtGui.QColor(150, 255, 255))
+        self.handles = []
+        self.state = {'pos': Point(0,0), 'size': Point(1,1), 'angle': 0}  ## angle is in degrees for ease of Qt integration
+        self.lastState = None
+        self.setPos(pos)
+        self.setAngle(angle)
+        self.setSize(size)
+        self.setZValue(10)
+        self.isMoving = False
+        
+        self.handleSize = 5
+        self.invertible = invertible
+        self.maxBounds = maxBounds
+        
+        self.snapSize = snapSize
+        self.translateSnap = translateSnap
+        self.rotateSnap = rotateSnap
+        self.scaleSnap = scaleSnap
+        #self.setFlag(self.ItemIsSelectable, True)
+    
+    def getState(self):
+        return self.stateCopy()
+
+    def stateCopy(self):
+        sc = {}
+        sc['pos'] = Point(self.state['pos'])
+        sc['size'] = Point(self.state['size'])
+        sc['angle'] = self.state['angle']
+        return sc
+        
+    def saveState(self):
+        """Return the state of the widget in a format suitable for storing to 
+        disk. (Points are converted to tuple)
+        
+        Combined with setState(), this allows ROIs to be easily saved and 
+        restored."""
+        state = {}
+        state['pos'] = tuple(self.state['pos'])
+        state['size'] = tuple(self.state['size'])
+        state['angle'] = self.state['angle']
+        return state
+    
+    def setState(self, state, update=True):
+        """
+        Set the state of the ROI from a structure generated by saveState() or
+        getState().
+        """
+        self.setPos(state['pos'], update=False)
+        self.setSize(state['size'], update=False)
+        self.setAngle(state['angle'], update=update)
+    
+    def setZValue(self, z):
+        QtGui.QGraphicsItem.setZValue(self, z)
+        for h in self.handles:
+            h['item'].setZValue(z+1)
+        
+    def parentBounds(self):
+        """
+        Return the bounding rectangle of this ROI in the coordinate system
+        of its parent.        
+        """
+        return self.mapToParent(self.boundingRect()).boundingRect()
+
+    def setPen(self, *args, **kwargs):
+        """
+        Set the pen to use when drawing the ROI shape.
+        For arguments, see :func:`mkPen <pyqtgraph.mkPen>`.
+        """
+        self.pen = fn.mkPen(*args, **kwargs)
+        self.currentPen = self.pen
+        self.update()
+        
+    def size(self):
+        """Return the size (w,h) of the ROI."""
+        return self.getState()['size']
+        
+    def pos(self):
+        """Return the position (x,y) of the ROI's origin. 
+        For most ROIs, this will be the lower-left corner."""
+        return self.getState()['pos']
+        
+    def angle(self):
+        """Return the angle of the ROI in degrees."""
+        return self.getState()['angle']
+        
+    def setPos(self, pos, y=None, update=True, finish=True):
+        """Set the position of the ROI (in the parent's coordinate system).
+        
+        Accepts either separate (x, y) arguments or a single :class:`Point` or
+        ``QPointF`` argument. 
+        
+        By default, this method causes both ``sigRegionChanged`` and
+        ``sigRegionChangeFinished`` to be emitted. If *finish* is False, then
+        ``sigRegionChangeFinished`` will not be emitted. You can then use 
+        stateChangeFinished() to cause the signal to be emitted after a series
+        of state changes.
+        
+        If *update* is False, the state change will be remembered but not processed and no signals 
+        will be emitted. You can then use stateChanged() to complete the state change. This allows
+        multiple change functions to be called sequentially while minimizing processing overhead
+        and repeated signals. Setting ``update=False`` also forces ``finish=False``.
+        """
+        if y is None:
+            pos = Point(pos)
+        else:
+            # avoid ambiguity where update is provided as a positional argument
+            if isinstance(y, bool):
+                raise TypeError("Positional arguments to setPos() must be numerical.")
+            pos = Point(pos, y)
+        self.state['pos'] = pos
+        QtGui.QGraphicsItem.setPos(self, pos)
+        if update:
+            self.stateChanged(finish=finish)
+        
+    def setSize(self, size, update=True, finish=True):
+        """Set the size of the ROI. May be specified as a QPoint, Point, or list of two values.
+        See setPos() for an explanation of the update and finish arguments.
+        """
+        size = Point(size)
+        self.prepareGeometryChange()
+        self.state['size'] = size
+        if update:
+            self.stateChanged(finish=finish)
+        
+    def setAngle(self, angle, update=True, finish=True):
+        """Set the angle of rotation (in degrees) for this ROI.
+        See setPos() for an explanation of the update and finish arguments.
+        """
+        self.state['angle'] = angle
+        tr = QtGui.QTransform()
+        #tr.rotate(-angle * 180 / np.pi)
+        tr.rotate(angle)
+        self.setTransform(tr)
+        if update:
+            self.stateChanged(finish=finish)
+        
+    def scale(self, s, center=[0,0], update=True, finish=True):
+        """
+        Resize the ROI by scaling relative to *center*.
+        See setPos() for an explanation of the *update* and *finish* arguments.
+        """
+        c = self.mapToParent(Point(center) * self.state['size'])
+        self.prepareGeometryChange()
+        newSize = self.state['size'] * s
+        c1 = self.mapToParent(Point(center) * newSize)
+        newPos = self.state['pos'] + c - c1
+        
+        self.setSize(newSize, update=False)
+        self.setPos(newPos, update=update, finish=finish)
+        
+   
+    def translate(self, *args, **kargs):
+        """
+        Move the ROI to a new position.
+        Accepts either (x, y, snap) or ([x,y], snap) as arguments
+        If the ROI is bounded and the move would exceed boundaries, then the ROI
+        is moved to the nearest acceptable position instead.
+        
+        *snap* can be:
+        
+        =============== ==========================================================================
+        None (default)  use self.translateSnap and self.snapSize to determine whether/how to snap
+        False           do not snap
+        Point(w,h)      snap to rectangular grid with spacing (w,h)
+        True            snap using self.snapSize (and ignoring self.translateSnap)
+        =============== ==========================================================================
+           
+        Also accepts *update* and *finish* arguments (see setPos() for a description of these).
+        """
+
+        if len(args) == 1:
+            pt = args[0]
+        else:
+            pt = args
+            
+        newState = self.stateCopy()
+        newState['pos'] = newState['pos'] + pt
+        
+        ## snap position
+        #snap = kargs.get('snap', None)
+        #if (snap is not False)   and   not (snap is None and self.translateSnap is False):
+        
+        snap = kargs.get('snap', None)
+        if snap is None:
+            snap = self.translateSnap
+        if snap is not False:
+            newState['pos'] = self.getSnapPosition(newState['pos'], snap=snap)
+        
+        #d = ev.scenePos() - self.mapToScene(self.pressPos)
+        if self.maxBounds is not None:
+            r = self.stateRect(newState)
+            #r0 = self.sceneTransform().mapRect(self.boundingRect())
+            d = Point(0,0)
+            if self.maxBounds.left() > r.left():
+                d[0] = self.maxBounds.left() - r.left()
+            elif self.maxBounds.right() < r.right():
+                d[0] = self.maxBounds.right() - r.right()
+            if self.maxBounds.top() > r.top():
+                d[1] = self.maxBounds.top() - r.top()
+            elif self.maxBounds.bottom() < r.bottom():
+                d[1] = self.maxBounds.bottom() - r.bottom()
+            newState['pos'] += d
+        
+        #self.state['pos'] = newState['pos']
+        update = kargs.get('update', True)
+        finish = kargs.get('finish', True)
+        self.setPos(newState['pos'], update=update, finish=finish)
+        #if 'update' not in kargs or kargs['update'] is True:
+        #self.stateChanged()
+
+    def rotate(self, angle, update=True, finish=True):
+        """
+        Rotate the ROI by *angle* degrees. 
+        
+        Also accepts *update* and *finish* arguments (see setPos() for a 
+        description of these).
+        """
+        self.setAngle(self.angle()+angle, update=update, finish=finish)
+
+    def handleMoveStarted(self):
+        self.preMoveState = self.getState()
+    
+    def addTranslateHandle(self, pos, axes=None, item=None, name=None, index=None):
+        """
+        Add a new translation handle to the ROI. Dragging the handle will move 
+        the entire ROI without changing its angle or shape. 
+        
+        Note that, by default, ROIs may be moved by dragging anywhere inside the
+        ROI. However, for larger ROIs it may be desirable to disable this and
+        instead provide one or more translation handles.
+        
+        =================== ====================================================
+        **Arguments**
+        pos                 (length-2 sequence) The position of the handle 
+                            relative to the shape of the ROI. A value of (0,0)
+                            indicates the origin, whereas (1, 1) indicates the
+                            upper-right corner, regardless of the ROI's size.
+        item                The Handle instance to add. If None, a new handle
+                            will be created.
+        name                The name of this handle (optional). Handles are 
+                            identified by name when calling 
+                            getLocalHandlePositions and getSceneHandlePositions.
+        =================== ====================================================
+        """
+        pos = Point(pos)
+        return self.addHandle({'name': name, 'type': 't', 'pos': pos, 'item': item}, index=index)
+    
+    def addFreeHandle(self, pos=None, axes=None, item=None, name=None, index=None):
+        """
+        Add a new free handle to the ROI. Dragging free handles has no effect
+        on the position or shape of the ROI. 
+        
+        =================== ====================================================
+        **Arguments**
+        pos                 (length-2 sequence) The position of the handle 
+                            relative to the shape of the ROI. A value of (0,0)
+                            indicates the origin, whereas (1, 1) indicates the
+                            upper-right corner, regardless of the ROI's size.
+        item                The Handle instance to add. If None, a new handle
+                            will be created.
+        name                The name of this handle (optional). Handles are 
+                            identified by name when calling 
+                            getLocalHandlePositions and getSceneHandlePositions.
+        =================== ====================================================
+        """
+        if pos is not None:
+            pos = Point(pos)
+        return self.addHandle({'name': name, 'type': 'f', 'pos': pos, 'item': item}, index=index)
+    
+    def addScaleHandle(self, pos, center, axes=None, item=None, name=None, lockAspect=False, index=None):
+        """
+        Add a new scale handle to the ROI. Dragging a scale handle allows the
+        user to change the height and/or width of the ROI.
+        
+        =================== ====================================================
+        **Arguments**
+        pos                 (length-2 sequence) The position of the handle 
+                            relative to the shape of the ROI. A value of (0,0)
+                            indicates the origin, whereas (1, 1) indicates the
+                            upper-right corner, regardless of the ROI's size.
+        center              (length-2 sequence) The center point around which 
+                            scaling takes place. If the center point has the
+                            same x or y value as the handle position, then 
+                            scaling will be disabled for that axis.
+        item                The Handle instance to add. If None, a new handle
+                            will be created.
+        name                The name of this handle (optional). Handles are 
+                            identified by name when calling 
+                            getLocalHandlePositions and getSceneHandlePositions.
+        =================== ====================================================
+        """
+        pos = Point(pos)
+        center = Point(center)
+        info = {'name': name, 'type': 's', 'center': center, 'pos': pos, 'item': item, 'lockAspect': lockAspect}
+        if pos.x() == center.x():
+            info['xoff'] = True
+        if pos.y() == center.y():
+            info['yoff'] = True
+        return self.addHandle(info, index=index)
+    
+    def addRotateHandle(self, pos, center, item=None, name=None, index=None):
+        """
+        Add a new rotation handle to the ROI. Dragging a rotation handle allows 
+        the user to change the angle of the ROI.
+        
+        =================== ====================================================
+        **Arguments**
+        pos                 (length-2 sequence) The position of the handle 
+                            relative to the shape of the ROI. A value of (0,0)
+                            indicates the origin, whereas (1, 1) indicates the
+                            upper-right corner, regardless of the ROI's size.
+        center              (length-2 sequence) The center point around which 
+                            rotation takes place.
+        item                The Handle instance to add. If None, a new handle
+                            will be created.
+        name                The name of this handle (optional). Handles are 
+                            identified by name when calling 
+                            getLocalHandlePositions and getSceneHandlePositions.
+        =================== ====================================================
+        """
+        pos = Point(pos)
+        center = Point(center)
+        return self.addHandle({'name': name, 'type': 'r', 'center': center, 'pos': pos, 'item': item}, index=index)
+    
+    def addScaleRotateHandle(self, pos, center, item=None, name=None, index=None):
+        """
+        Add a new scale+rotation handle to the ROI. When dragging a handle of 
+        this type, the user can simultaneously rotate the ROI around an 
+        arbitrary center point as well as scale the ROI by dragging the handle
+        toward or away from the center point.
+        
+        =================== ====================================================
+        **Arguments**
+        pos                 (length-2 sequence) The position of the handle 
+                            relative to the shape of the ROI. A value of (0,0)
+                            indicates the origin, whereas (1, 1) indicates the
+                            upper-right corner, regardless of the ROI's size.
+        center              (length-2 sequence) The center point around which 
+                            scaling and rotation take place.
+        item                The Handle instance to add. If None, a new handle
+                            will be created.
+        name                The name of this handle (optional). Handles are 
+                            identified by name when calling 
+                            getLocalHandlePositions and getSceneHandlePositions.
+        =================== ====================================================
+        """
+        pos = Point(pos)
+        center = Point(center)
+        if pos[0] != center[0] and pos[1] != center[1]:
+            raise Exception("Scale/rotate handles must have either the same x or y coordinate as their center point.")
+        return self.addHandle({'name': name, 'type': 'sr', 'center': center, 'pos': pos, 'item': item}, index=index)
+    
+    def addRotateFreeHandle(self, pos, center, axes=None, item=None, name=None, index=None):
+        """
+        Add a new rotation+free handle to the ROI. When dragging a handle of 
+        this type, the user can rotate the ROI around an 
+        arbitrary center point, while moving toward or away from the center 
+        point has no effect on the shape of the ROI.
+        
+        =================== ====================================================
+        **Arguments**
+        pos                 (length-2 sequence) The position of the handle 
+                            relative to the shape of the ROI. A value of (0,0)
+                            indicates the origin, whereas (1, 1) indicates the
+                            upper-right corner, regardless of the ROI's size.
+        center              (length-2 sequence) The center point around which 
+                            rotation takes place.
+        item                The Handle instance to add. If None, a new handle
+                            will be created.
+        name                The name of this handle (optional). Handles are 
+                            identified by name when calling 
+                            getLocalHandlePositions and getSceneHandlePositions.
+        =================== ====================================================
+        """
+        pos = Point(pos)
+        center = Point(center)
+        return self.addHandle({'name': name, 'type': 'rf', 'center': center, 'pos': pos, 'item': item}, index=index)
+    
+    def addHandle(self, info, index=None):
+        ## If a Handle was not supplied, create it now
+        if 'item' not in info or info['item'] is None:
+            h = Handle(self.handleSize, typ=info['type'], pen=self.handlePen, parent=self)
+            h.setPos(info['pos'] * self.state['size'])
+            info['item'] = h
+        else:
+            h = info['item']
+            if info['pos'] is None:
+                info['pos'] = h.pos()
+            
+        ## connect the handle to this ROI
+        #iid = len(self.handles)
+        h.connectROI(self)
+        if index is None:
+            self.handles.append(info)
+        else:
+            self.handles.insert(index, info)
+        
+        h.setZValue(self.zValue()+1)
+        self.stateChanged()
+        return h
+    
+    def indexOfHandle(self, handle):
+        """
+        Return the index of *handle* in the list of this ROI's handles.
+        """
+        if isinstance(handle, Handle):
+            index = [i for i, info in enumerate(self.handles) if info['item'] is handle]    
+            if len(index) == 0:
+                raise Exception("Cannot return handle index; not attached to this ROI")
+            return index[0]
+        else:
+            return handle
+        
+    def removeHandle(self, handle):
+        """Remove a handle from this ROI. Argument may be either a Handle 
+        instance or the integer index of the handle."""
+        index = self.indexOfHandle(handle)
+            
+        handle = self.handles[index]['item']
+        self.handles.pop(index)
+        handle.disconnectROI(self)
+        if len(handle.rois) == 0:
+            self.scene().removeItem(handle)
+        self.stateChanged()
+    
+    def replaceHandle(self, oldHandle, newHandle):
+        """Replace one handle in the ROI for another. This is useful when 
+        connecting multiple ROIs together.
+        
+        *oldHandle* may be a Handle instance or the index of a handle to be
+        replaced."""
+        index = self.indexOfHandle(oldHandle)
+        info = self.handles[index]
+        self.removeHandle(index)
+        info['item'] = newHandle
+        info['pos'] = newHandle.pos()
+        self.addHandle(info, index=index)
+        
+    def checkRemoveHandle(self, handle):
+        ## This is used when displaying a Handle's context menu to determine
+        ## whether removing is allowed. 
+        ## Subclasses may wish to override this to disable the menu entry.
+        ## Note: by default, handles are not user-removable even if this method returns True.
+        return True
+        
+        
+    def getLocalHandlePositions(self, index=None):
+        """Returns the position of handles in the ROI's coordinate system.
+        
+        The format returned is a list of (name, pos) tuples.
+        """
+        if index == None:
+            positions = []
+            for h in self.handles:
+                positions.append((h['name'], h['pos']))
+            return positions
+        else:
+            return (self.handles[index]['name'], self.handles[index]['pos'])
+            
+    def getSceneHandlePositions(self, index=None):
+        """Returns the position of handles in the scene coordinate system.
+        
+        The format returned is a list of (name, pos) tuples.
+        """
+        if index == None:
+            positions = []
+            for h in self.handles:
+                positions.append((h['name'], h['item'].scenePos()))
+            return positions
+        else:
+            return (self.handles[index]['name'], self.handles[index]['item'].scenePos())
+        
+    def getHandles(self):
+        """
+        Return a list of this ROI's Handles.
+        """
+        return [h['item'] for h in self.handles]
+    
+    def mapSceneToParent(self, pt):
+        return self.mapToParent(self.mapFromScene(pt))
+
+    def setSelected(self, s):
+        QtGui.QGraphicsItem.setSelected(self, s)
+        #print "select", self, s
+        if s:
+            for h in self.handles:
+                h['item'].show()
+        else:
+            for h in self.handles:
+                h['item'].hide()
+
+
+    def hoverEvent(self, ev):
+        hover = False
+        if not ev.isExit():
+            if self.translatable and ev.acceptDrags(QtCore.Qt.LeftButton):
+                hover=True
+                
+            for btn in [QtCore.Qt.LeftButton, QtCore.Qt.RightButton, QtCore.Qt.MidButton]:
+                if int(self.acceptedMouseButtons() & btn) > 0 and ev.acceptClicks(btn):
+                    hover=True
+            if self.contextMenuEnabled():
+                ev.acceptClicks(QtCore.Qt.RightButton)
+                
+        if hover:
+            self.setMouseHover(True)
+            self.sigHoverEvent.emit(self)
+            ev.acceptClicks(QtCore.Qt.LeftButton)  ## If the ROI is hilighted, we should accept all clicks to avoid confusion.
+            ev.acceptClicks(QtCore.Qt.RightButton)
+            ev.acceptClicks(QtCore.Qt.MidButton)
+        else:
+            self.setMouseHover(False)
+
+    def setMouseHover(self, hover):
+        ## Inform the ROI that the mouse is(not) hovering over it
+        if self.mouseHovering == hover:
+            return
+        self.mouseHovering = hover
+        self._updateHoverColor()
+        
+    def _updateHoverColor(self):
+        pen = self._makePen()
+        if self.currentPen != pen:
+            self.currentPen = pen
+            self.update()
+        
+    def _makePen(self):
+        # Generate the pen color for this ROI based on its current state.
+        if self.mouseHovering:
+            return fn.mkPen(255, 255, 0)
+        else:
+            return self.pen
+
+    def contextMenuEnabled(self):
+        return self.removable
+    
+    def raiseContextMenu(self, ev):
+        if not self.contextMenuEnabled():
+            return
+        menu = self.getMenu()
+        menu = self.scene().addParentContextMenus(self, menu, ev)
+        pos = ev.screenPos()
+        menu.popup(QtCore.QPoint(pos.x(), pos.y()))
+
+    def getMenu(self):
+        if self.menu is None:
+            self.menu = QtGui.QMenu()
+            self.menu.setTitle("ROI")
+            remAct = QtGui.QAction("Remove ROI", self.menu)
+            remAct.triggered.connect(self.removeClicked)
+            self.menu.addAction(remAct)
+            self.menu.remAct = remAct
+        return self.menu
+
+    def removeClicked(self):
+        ## Send remove event only after we have exited the menu event handler
+        QtCore.QTimer.singleShot(0, lambda: self.sigRemoveRequested.emit(self))
+        
+    def mouseDragEvent(self, ev):
+        if ev.isStart():
+            #p = ev.pos()
+            #if not self.isMoving and not self.shape().contains(p):
+                #ev.ignore()
+                #return        
+            if ev.button() == QtCore.Qt.LeftButton:
+                self.setSelected(True)
+                if self.translatable:
+                    self.isMoving = True
+                    self.preMoveState = self.getState()
+                    self.cursorOffset = self.pos() - self.mapToParent(ev.buttonDownPos())
+                    self.sigRegionChangeStarted.emit(self)
+                    ev.accept()
+                else:
+                    ev.ignore()
+
+        elif ev.isFinish():
+            if self.translatable:
+                if self.isMoving:
+                    self.stateChangeFinished()
+                self.isMoving = False
+            return
+
+        if self.translatable and self.isMoving and ev.buttons() == QtCore.Qt.LeftButton:
+            snap = True if (ev.modifiers() & QtCore.Qt.ControlModifier) else None
+            newPos = self.mapToParent(ev.pos()) + self.cursorOffset
+            self.translate(newPos - self.pos(), snap=snap, finish=False)
+        
+    def mouseClickEvent(self, ev):
+        if ev.button() == QtCore.Qt.RightButton and self.isMoving:
+            ev.accept()
+            self.cancelMove()
+        if ev.button() == QtCore.Qt.RightButton and self.contextMenuEnabled():
+            self.raiseContextMenu(ev)
+            ev.accept()
+        elif int(ev.button() & self.acceptedMouseButtons()) > 0:
+            ev.accept()
+            self.sigClicked.emit(self, ev)
+        else:
+            ev.ignore()
+
+    def cancelMove(self):
+        self.isMoving = False
+        self.setState(self.preMoveState)
+
+    def checkPointMove(self, handle, pos, modifiers):
+        """When handles move, they must ask the ROI if the move is acceptable.
+        By default, this always returns True. Subclasses may wish override.
+        """
+        return True
+
+    def movePoint(self, handle, pos, modifiers=QtCore.Qt.KeyboardModifier(), finish=True, coords='parent'):
+        ## called by Handles when they are moved. 
+        ## pos is the new position of the handle in scene coords, as requested by the handle.
+        
+        newState = self.stateCopy()
+        index = self.indexOfHandle(handle)
+        h = self.handles[index]
+        p0 = self.mapToParent(h['pos'] * self.state['size'])
+        p1 = Point(pos)
+        
+        if coords == 'parent':
+            pass
+        elif coords == 'scene':
+            p1 = self.mapSceneToParent(p1)
+        else:
+            raise Exception("New point location must be given in either 'parent' or 'scene' coordinates.")
+
+        
+        ## transform p0 and p1 into parent's coordinates (same as scene coords if there is no parent). I forget why.
+        #p0 = self.mapSceneToParent(p0)
+        #p1 = self.mapSceneToParent(p1)
+
+        ## Handles with a 'center' need to know their local position relative to the center point (lp0, lp1)
+        if 'center' in h:
+            c = h['center']
+            cs = c * self.state['size']
+            lp0 = self.mapFromParent(p0) - cs
+            lp1 = self.mapFromParent(p1) - cs
+        
+        if h['type'] == 't':
+            snap = True if (modifiers & QtCore.Qt.ControlModifier) else None
+            #if self.translateSnap or ():
+                #snap = Point(self.snapSize, self.snapSize)
+            self.translate(p1-p0, snap=snap, update=False)
+        
+        elif h['type'] == 'f':
+            newPos = self.mapFromParent(p1)
+            h['item'].setPos(newPos)
+            h['pos'] = newPos
+            self.freeHandleMoved = True
+            #self.sigRegionChanged.emit(self)  ## should be taken care of by call to stateChanged()
+            
+        elif h['type'] == 's':
+            ## If a handle and its center have the same x or y value, we can't scale across that axis.
+            if h['center'][0] == h['pos'][0]:
+                lp1[0] = 0
+            if h['center'][1] == h['pos'][1]:
+                lp1[1] = 0
+            
+            ## snap 
+            if self.scaleSnap or (modifiers & QtCore.Qt.ControlModifier):
+                lp1[0] = round(lp1[0] / self.snapSize) * self.snapSize
+                lp1[1] = round(lp1[1] / self.snapSize) * self.snapSize
+                
+            ## preserve aspect ratio (this can override snapping)
+            if h['lockAspect'] or (modifiers & QtCore.Qt.AltModifier):
+                #arv = Point(self.preMoveState['size']) - 
+                lp1 = lp1.proj(lp0)
+            
+            ## determine scale factors and new size of ROI
+            hs = h['pos'] - c
+            if hs[0] == 0:
+                hs[0] = 1
+            if hs[1] == 0:
+                hs[1] = 1
+            newSize = lp1 / hs
+            
+            ## Perform some corrections and limit checks
+            if newSize[0] == 0:
+                newSize[0] = newState['size'][0]
+            if newSize[1] == 0:
+                newSize[1] = newState['size'][1]
+            if not self.invertible:
+                if newSize[0] < 0:
+                    newSize[0] = newState['size'][0]
+                if newSize[1] < 0:
+                    newSize[1] = newState['size'][1]
+            if self.aspectLocked:
+                newSize[0] = newSize[1]
+            
+            ## Move ROI so the center point occupies the same scene location after the scale
+            s0 = c * self.state['size']
+            s1 = c * newSize
+            cc = self.mapToParent(s0 - s1) - self.mapToParent(Point(0, 0))
+            
+            ## update state, do more boundary checks
+            newState['size'] = newSize
+            newState['pos'] = newState['pos'] + cc
+            if self.maxBounds is not None:
+                r = self.stateRect(newState)
+                if not self.maxBounds.contains(r):
+                    return
+            
+            self.setPos(newState['pos'], update=False)
+            self.setSize(newState['size'], update=False)
+        
+        elif h['type'] in ['r', 'rf']:
+            if h['type'] == 'rf':
+                self.freeHandleMoved = True
+            
+            if not self.rotateAllowed:
+                return
+            ## If the handle is directly over its center point, we can't compute an angle.
+            try:
+                if lp1.length() == 0 or lp0.length() == 0:
+                    return
+            except OverflowError:
+                return
+            
+            ## determine new rotation angle, constrained if necessary
+            ang = newState['angle'] - lp0.angle(lp1)
+            if ang is None:  ## this should never happen..
+                return
+            if self.rotateSnap or (modifiers & QtCore.Qt.ControlModifier):
+                ang = round(ang / 15.) * 15.  ## 180/12 = 15
+            
+            ## create rotation transform
+            tr = QtGui.QTransform()
+            tr.rotate(ang)
+            
+            ## move ROI so that center point remains stationary after rotate
+            cc = self.mapToParent(cs) - (tr.map(cs) + self.state['pos'])
+            newState['angle'] = ang
+            newState['pos'] = newState['pos'] + cc
+            
+            ## check boundaries, update
+            if self.maxBounds is not None:
+                r = self.stateRect(newState)
+                if not self.maxBounds.contains(r):
+                    return
+            #self.setTransform(tr)
+            self.setPos(newState['pos'], update=False)
+            self.setAngle(ang, update=False)
+            #self.state = newState
+            
+            ## If this is a free-rotate handle, its distance from the center may change.
+            
+            if h['type'] == 'rf':
+                h['item'].setPos(self.mapFromScene(p1))  ## changes ROI coordinates of handle
+                
+        elif h['type'] == 'sr':
+            if h['center'][0] == h['pos'][0]:
+                scaleAxis = 1
+                nonScaleAxis=0
+            else:
+                scaleAxis = 0
+                nonScaleAxis=1
+            
+            try:
+                if lp1.length() == 0 or lp0.length() == 0:
+                    return
+            except OverflowError:
+                return
+            
+            ang = newState['angle'] - lp0.angle(lp1)
+            if ang is None:
+                return
+            if self.rotateSnap or (modifiers & QtCore.Qt.ControlModifier):
+                #ang = round(ang / (np.pi/12.)) * (np.pi/12.)
+                ang = round(ang / 15.) * 15.
+            
+            hs = abs(h['pos'][scaleAxis] - c[scaleAxis])
+            newState['size'][scaleAxis] = lp1.length() / hs
+            #if self.scaleSnap or (modifiers & QtCore.Qt.ControlModifier):
+            if self.scaleSnap:  ## use CTRL only for angular snap here.
+                newState['size'][scaleAxis] = round(newState['size'][scaleAxis] / self.snapSize) * self.snapSize
+            if newState['size'][scaleAxis] == 0:
+                newState['size'][scaleAxis] = 1
+            if self.aspectLocked:
+                newState['size'][nonScaleAxis] = newState['size'][scaleAxis]
+                
+            c1 = c * newState['size']
+            tr = QtGui.QTransform()
+            tr.rotate(ang)
+            
+            cc = self.mapToParent(cs) - (tr.map(c1) + self.state['pos'])
+            newState['angle'] = ang
+            newState['pos'] = newState['pos'] + cc
+            if self.maxBounds is not None:
+                r = self.stateRect(newState)
+                if not self.maxBounds.contains(r):
+                    return
+            #self.setTransform(tr)
+            #self.setPos(newState['pos'], update=False)
+            #self.prepareGeometryChange()
+            #self.state = newState
+            self.setState(newState, update=False)
+        
+        self.stateChanged(finish=finish)
+    
+    def stateChanged(self, finish=True):
+        """Process changes to the state of the ROI.
+        If there are any changes, then the positions of handles are updated accordingly
+        and sigRegionChanged is emitted. If finish is True, then 
+        sigRegionChangeFinished will also be emitted."""
+        
+        changed = False
+        if self.lastState is None:
+            changed = True
+        else:
+            state = self.getState()
+            for k in list(state.keys()):
+                if state[k] != self.lastState[k]:
+                    changed = True
+        
+        self.prepareGeometryChange()
+        if changed:
+            ## Move all handles to match the current configuration of the ROI
+            for h in self.handles:
+                if h['item'] in self.childItems():
+                    p = h['pos']
+                    h['item'].setPos(h['pos'] * self.state['size'])
+                #else:
+                #    trans = self.state['pos']-self.lastState['pos']
+                #    h['item'].setPos(h['pos'] + h['item'].parentItem().mapFromParent(trans))
+                    
+            self.update()
+            self.sigRegionChanged.emit(self)
+        elif self.freeHandleMoved:
+            self.sigRegionChanged.emit(self)
+            
+        self.freeHandleMoved = False
+        self.lastState = self.getState()
+            
+        if finish:
+            self.stateChangeFinished()
+            self.informViewBoundsChanged()
+    
+    def stateChangeFinished(self):
+        self.sigRegionChangeFinished.emit(self)
+    
+    def stateRect(self, state):
+        r = QtCore.QRectF(0, 0, state['size'][0], state['size'][1])
+        tr = QtGui.QTransform()
+        #tr.rotate(-state['angle'] * 180 / np.pi)
+        tr.rotate(-state['angle'])
+        r = tr.mapRect(r)
+        return r.adjusted(state['pos'][0], state['pos'][1], state['pos'][0], state['pos'][1])
+    
+    
+    def getSnapPosition(self, pos, snap=None):
+        ## Given that pos has been requested, return the nearest snap-to position
+        ## optionally, snap may be passed in to specify a rectangular snap grid.
+        ## override this function for more interesting snap functionality..
+        
+        if snap is None or snap is True:
+            if self.snapSize is None:
+                return pos
+            snap = Point(self.snapSize, self.snapSize)
+        
+        return Point(
+            round(pos[0] / snap[0]) * snap[0],
+            round(pos[1] / snap[1]) * snap[1]
+        )
+    
+    def boundingRect(self):
+        return QtCore.QRectF(0, 0, self.state['size'][0], self.state['size'][1]).normalized()
+
+    def paint(self, p, opt, widget):
+        # p.save()
+        # Note: don't use self.boundingRect here, because subclasses may need to redefine it.
+        r = QtCore.QRectF(0, 0, self.state['size'][0], self.state['size'][1]).normalized()
+        
+        p.setRenderHint(QtGui.QPainter.Antialiasing)
+        p.setPen(self.currentPen)
+        p.translate(r.left(), r.top())
+        p.scale(r.width(), r.height())
+        p.drawRect(0, 0, 1, 1)
+        # p.restore()
+
+    def getArraySlice(self, data, img, axes=(0,1), returnSlice=True):
+        """Return a tuple of slice objects that can be used to slice the region
+        from *data* that is covered by the bounding rectangle of this ROI.
+        Also returns the transform that maps the ROI into data coordinates.
+        
+        If returnSlice is set to False, the function returns a pair of tuples with the values that would have 
+        been used to generate the slice objects. ((ax0Start, ax0Stop), (ax1Start, ax1Stop))
+        
+        If the slice cannot be computed (usually because the scene/transforms are not properly
+        constructed yet), then the method returns None.
+        """
+        ## Determine shape of array along ROI axes
+        dShape = (data.shape[axes[0]], data.shape[axes[1]])
+        
+        ## Determine transform that maps ROI bounding box to image coordinates
+        try:
+            tr = self.sceneTransform() * fn.invertQTransform(img.sceneTransform())
+        except np.linalg.linalg.LinAlgError:
+            return None
+            
+        ## Modify transform to scale from image coords to data coords
+        axisOrder = img.axisOrder
+        if axisOrder == 'row-major':
+            tr.scale(float(dShape[1]) / img.width(), float(dShape[0]) / img.height())
+        else:
+            tr.scale(float(dShape[0]) / img.width(), float(dShape[1]) / img.height())
+        
+        ## Transform ROI bounds into data bounds
+        dataBounds = tr.mapRect(self.boundingRect())
+        
+        ## Intersect transformed ROI bounds with data bounds
+        if axisOrder == 'row-major':
+            intBounds = dataBounds.intersected(QtCore.QRectF(0, 0, dShape[1], dShape[0]))
+        else:
+            intBounds = dataBounds.intersected(QtCore.QRectF(0, 0, dShape[0], dShape[1]))
+        
+        ## Determine index values to use when referencing the array. 
+        bounds = (
+            (int(min(intBounds.left(), intBounds.right())), int(1+max(intBounds.left(), intBounds.right()))),
+            (int(min(intBounds.bottom(), intBounds.top())), int(1+max(intBounds.bottom(), intBounds.top())))
+        )
+        if axisOrder == 'row-major':
+            bounds = bounds[::-1]
+        
+        if returnSlice:
+            ## Create slice objects
+            sl = [slice(None)] * data.ndim
+            sl[axes[0]] = slice(*bounds[0])
+            sl[axes[1]] = slice(*bounds[1])
+            return tuple(sl), tr
+        else:
+            return bounds, tr
+
+    def getArrayRegion(self, data, img, axes=(0,1), returnMappedCoords=False, **kwds):
+        """Use the position and orientation of this ROI relative to an imageItem 
+        to pull a slice from an array.
+        
+        =================== ====================================================
+        **Arguments**
+        data                The array to slice from. Note that this array does
+                            *not* have to be the same data that is represented
+                            in *img*.
+        img                 (ImageItem or other suitable QGraphicsItem)
+                            Used to determine the relationship between the 
+                            ROI and the boundaries of *data*.
+        axes                (length-2 tuple) Specifies the axes in *data* that
+                            correspond to the (x, y) axes of *img*. If the
+                            image's axis order is set to
+                            'row-major', then the axes are instead specified in
+                            (y, x) order.
+        returnMappedCoords  (bool) If True, the array slice is returned along
+                            with a corresponding array of coordinates that were
+                            used to extract data from the original array.
+        \**kwds             All keyword arguments are passed to 
+                            :func:`affineSlice <pyqtgraph.affineSlice>`.
+        =================== ====================================================
+        
+        This method uses :func:`affineSlice <pyqtgraph.affineSlice>` to generate
+        the slice from *data* and uses :func:`getAffineSliceParams <pyqtgraph.ROI.getAffineSliceParams>`
+        to determine the parameters to pass to :func:`affineSlice <pyqtgraph.affineSlice>`.
+        
+        If *returnMappedCoords* is True, then the method returns a tuple (result, coords) 
+        such that coords is the set of coordinates used to interpolate values from the original
+        data, mapped into the parent coordinate system of the image. This is useful, when slicing
+        data from images that have been transformed, for determining the location of each value
+        in the sliced data.
+        
+        All extra keyword arguments are passed to :func:`affineSlice <pyqtgraph.affineSlice>`.
+        """
+        # this is a hidden argument for internal use
+        fromBR = kwds.pop('fromBoundingRect', False)
+        
+        shape, vectors, origin = self.getAffineSliceParams(data, img, axes, fromBoundingRect=fromBR)
+        if not returnMappedCoords:
+            rgn = fn.affineSlice(data, shape=shape, vectors=vectors, origin=origin, axes=axes, **kwds)
+            return rgn
+        else:
+            kwds['returnCoords'] = True
+            result, coords = fn.affineSlice(data, shape=shape, vectors=vectors, origin=origin, axes=axes, **kwds)
+            
+            ### map coordinates and return
+            mapped = fn.transformCoordinates(img.transform(), coords)
+            return result, mapped
+
+    def getAffineSliceParams(self, data, img, axes=(0,1), fromBoundingRect=False):
+        """
+        Returns the parameters needed to use :func:`affineSlice <pyqtgraph.affineSlice>`
+        (shape, vectors, origin) to extract a subset of *data* using this ROI 
+        and *img* to specify the subset.
+        
+        If *fromBoundingRect* is True, then the ROI's bounding rectangle is used
+        rather than the shape of the ROI.
+        
+        See :func:`getArrayRegion <pyqtgraph.ROI.getArrayRegion>` for more information.
+        """
+        if self.scene() is not img.scene():
+            raise Exception("ROI and target item must be members of the same scene.")
+        
+        origin = img.mapToData(self.mapToItem(img, QtCore.QPointF(0, 0)))
+        
+        ## vx and vy point in the directions of the slice axes, but must be scaled properly
+        vx = img.mapToData(self.mapToItem(img, QtCore.QPointF(1, 0))) - origin
+        vy = img.mapToData(self.mapToItem(img, QtCore.QPointF(0, 1))) - origin
+        
+        lvx = np.sqrt(vx.x()**2 + vx.y()**2)
+        lvy = np.sqrt(vy.x()**2 + vy.y()**2)
+        #pxLen = img.width() / float(data.shape[axes[0]])
+        ##img.width is number of pixels, not width of item.
+        ##need pxWidth and pxHeight instead of pxLen ?
+        #sx =  pxLen / lvx
+        #sy =  pxLen / lvy
+        sx = 1.0 / lvx
+        sy = 1.0 / lvy
+        
+        vectors = ((vx.x()*sx, vx.y()*sx), (vy.x()*sy, vy.y()*sy))
+        if fromBoundingRect is True:
+            shape = self.boundingRect().width(), self.boundingRect().height()
+            origin = img.mapToData(self.mapToItem(img, self.boundingRect().topLeft()))
+            origin = (origin.x(), origin.y())
+        else:
+            shape = self.state['size']
+            origin = (origin.x(), origin.y())
+        
+        shape = [abs(shape[0]/sx), abs(shape[1]/sy)]
+        
+        if img.axisOrder == 'row-major':
+            # transpose output
+            vectors = vectors[::-1]
+            shape = shape[::-1]
+
+        return shape, vectors, origin
+
+    def renderShapeMask(self, width, height):
+        """Return an array of 0.0-1.0 into which the shape of the item has been drawn.
+        
+        This can be used to mask array selections.
+        """
+        if width == 0 or height == 0:
+            return np.empty((width, height), dtype=float)
+        
+        # QImage(width, height, format)
+        im = QtGui.QImage(width, height, QtGui.QImage.Format_ARGB32)
+        im.fill(0x0)
+        p = QtGui.QPainter(im)
+        p.setPen(fn.mkPen(None))
+        p.setBrush(fn.mkBrush('w'))
+        shape = self.shape()
+        bounds = shape.boundingRect()
+        p.scale(im.width() / bounds.width(), im.height() / bounds.height())
+        p.translate(-bounds.topLeft())
+        p.drawPath(shape)
+        p.end()
+        mask = fn.imageToArray(im, transpose=True)[:,:,0].astype(float) / 255.
+        return mask
+        
+    def getGlobalTransform(self, relativeTo=None):
+        """Return global transformation (rotation angle+translation) required to move 
+        from relative state to current state. If relative state isn't specified,
+        then we use the state of the ROI when mouse is pressed."""
+        if relativeTo == None:
+            relativeTo = self.preMoveState
+        st = self.getState()
+        
+        ## this is only allowed because we will be comparing the two 
+        relativeTo['scale'] = relativeTo['size']
+        st['scale'] = st['size']
+        
+        t1 = SRTTransform(relativeTo)
+        t2 = SRTTransform(st)
+        return t2/t1
+        
+        
+        #st = self.getState()
+        
+        ### rotation
+        #ang = (st['angle']-relativeTo['angle']) * 180. / 3.14159265358
+        #rot = QtGui.QTransform()
+        #rot.rotate(-ang)
+
+        ### We need to come up with a universal transformation--one that can be applied to other objects 
+        ### such that all maintain alignment. 
+        ### More specifically, we need to turn the ROI's position and angle into
+        ### a rotation _around the origin_ and a translation.
+        
+        #p0 = Point(relativeTo['pos'])
+
+        ### base position, rotated
+        #p1 = rot.map(p0)
+        
+        #trans = Point(st['pos']) - p1
+        #return trans, ang
+
+    def applyGlobalTransform(self, tr):
+        st = self.getState()
+        
+        st['scale'] = st['size']
+        st = SRTTransform(st)
+        st = (st * tr).saveState()
+        st['size'] = st['scale']
+        self.setState(st)
+
+
+class Handle(UIGraphicsItem):
+    """
+    Handle represents a single user-interactable point attached to an ROI. They
+    are usually created by a call to one of the ROI.add___Handle() methods.
+    
+    Handles are represented as a square, diamond, or circle, and are drawn with 
+    fixed pixel size regardless of the scaling of the view they are displayed in.
+    
+    Handles may be dragged to change the position, size, orientation, or other
+    properties of the ROI they are attached to.
+    
+    
+    """
+    types = {   ## defines number of sides, start angle for each handle type
+        't': (4, np.pi/4),
+        'f': (4, np.pi/4), 
+        's': (4, 0),
+        'r': (12, 0),
+        'sr': (12, 0),
+        'rf': (12, 0),
+    }
+
+    sigClicked = QtCore.Signal(object, object)   # self, event
+    sigRemoveRequested = QtCore.Signal(object)   # self
+    
+    def __init__(self, radius, typ=None, pen=(200, 200, 220), parent=None, deletable=False):
+        #print "   create item with parent", parent
+        #self.bounds = QtCore.QRectF(-1e-10, -1e-10, 2e-10, 2e-10)
+        #self.setFlags(self.ItemIgnoresTransformations | self.ItemSendsScenePositionChanges)
+        self.rois = []
+        self.radius = radius
+        self.typ = typ
+        self.pen = fn.mkPen(pen)
+        self.currentPen = self.pen
+        self.pen.setWidth(0)
+        self.pen.setCosmetic(True)
+        self.isMoving = False
+        self.sides, self.startAng = self.types[typ]
+        self.buildPath()
+        self._shape = None
+        self.menu = self.buildMenu()
+        
+        UIGraphicsItem.__init__(self, parent=parent)
+        self.setAcceptedMouseButtons(QtCore.Qt.NoButton)
+        self.deletable = deletable
+        if deletable:
+            self.setAcceptedMouseButtons(QtCore.Qt.RightButton)        
+        #self.updateShape()
+        self.setZValue(11)
+            
+    def connectROI(self, roi):
+        ### roi is the "parent" roi, i is the index of the handle in roi.handles
+        self.rois.append(roi)
+        
+    def disconnectROI(self, roi):
+        self.rois.remove(roi)
+        #for i, r in enumerate(self.roi):
+            #if r[0] == roi:
+                #self.roi.pop(i)
+                
+    #def close(self):
+        #for r in self.roi:
+            #r.removeHandle(self)
+            
+    def setDeletable(self, b):
+        self.deletable = b
+        if b:
+            self.setAcceptedMouseButtons(self.acceptedMouseButtons() | QtCore.Qt.RightButton)
+        else:
+            self.setAcceptedMouseButtons(self.acceptedMouseButtons() & ~QtCore.Qt.RightButton)
+            
+    def removeClicked(self):
+        self.sigRemoveRequested.emit(self)
+
+    def hoverEvent(self, ev):
+        hover = False
+        if not ev.isExit():
+            if ev.acceptDrags(QtCore.Qt.LeftButton):
+                hover=True
+            for btn in [QtCore.Qt.LeftButton, QtCore.Qt.RightButton, QtCore.Qt.MidButton]:
+                if int(self.acceptedMouseButtons() & btn) > 0 and ev.acceptClicks(btn):
+                    hover=True
+                    
+        if hover:
+            self.currentPen = fn.mkPen(255, 255,0)
+        else:
+            self.currentPen = self.pen
+        self.update()
+        #if (not ev.isExit()) and ev.acceptDrags(QtCore.Qt.LeftButton):
+            #self.currentPen = fn.mkPen(255, 255,0)
+        #else:
+            #self.currentPen = self.pen
+        #self.update()
+            
+
+
+    def mouseClickEvent(self, ev):
+        ## right-click cancels drag
+        if ev.button() == QtCore.Qt.RightButton and self.isMoving:
+            self.isMoving = False  ## prevents any further motion
+            self.movePoint(self.startPos, finish=True)
+            #for r in self.roi:
+                #r[0].cancelMove()
+            ev.accept()
+        elif int(ev.button() & self.acceptedMouseButtons()) > 0:
+            ev.accept()
+            if ev.button() == QtCore.Qt.RightButton and self.deletable:
+                self.raiseContextMenu(ev)
+            self.sigClicked.emit(self, ev)
+        else:
+            ev.ignore()        
+            
+            #elif self.deletable:
+                #ev.accept()
+                #self.raiseContextMenu(ev)
+            #else:
+                #ev.ignore()
+                
+    def buildMenu(self):
+        menu = QtGui.QMenu()
+        menu.setTitle("Handle")
+        self.removeAction = menu.addAction("Remove handle", self.removeClicked) 
+        return menu
+        
+    def getMenu(self):
+        return self.menu
+
+    def raiseContextMenu(self, ev):
+        menu = self.scene().addParentContextMenus(self, self.getMenu(), ev)
+        
+        ## Make sure it is still ok to remove this handle
+        removeAllowed = all([r.checkRemoveHandle(self) for r in self.rois])
+        self.removeAction.setEnabled(removeAllowed)
+        pos = ev.screenPos()
+        menu.popup(QtCore.QPoint(pos.x(), pos.y()))    
+
+    def mouseDragEvent(self, ev):
+        if ev.button() != QtCore.Qt.LeftButton:
+            return
+        ev.accept()
+        
+        ## Inform ROIs that a drag is happening 
+        ##  note: the ROI is informed that the handle has moved using ROI.movePoint
+        ##  this is for other (more nefarious) purposes.
+        #for r in self.roi:
+            #r[0].pointDragEvent(r[1], ev)
+            
+        if ev.isFinish():
+            if self.isMoving:
+                for r in self.rois:
+                    r.stateChangeFinished()
+            self.isMoving = False
+        elif ev.isStart():
+            for r in self.rois:
+                r.handleMoveStarted()
+            self.isMoving = True
+            self.startPos = self.scenePos()
+            self.cursorOffset = self.scenePos() - ev.buttonDownScenePos()
+            
+        if self.isMoving:  ## note: isMoving may become False in mid-drag due to right-click.
+            pos = ev.scenePos() + self.cursorOffset
+            self.movePoint(pos, ev.modifiers(), finish=False)
+
+    def movePoint(self, pos, modifiers=QtCore.Qt.KeyboardModifier(), finish=True):
+        for r in self.rois:
+            if not r.checkPointMove(self, pos, modifiers):
+                return
+        #print "point moved; inform %d ROIs" % len(self.roi)
+        # A handle can be used by multiple ROIs; tell each to update its handle position
+        for r in self.rois:
+            r.movePoint(self, pos, modifiers, finish=finish, coords='scene')
+        
+    def buildPath(self):
+        size = self.radius
+        self.path = QtGui.QPainterPath()
+        ang = self.startAng
+        dt = 2*np.pi / self.sides
+        for i in range(0, self.sides+1):
+            x = size * cos(ang)
+            y = size * sin(ang)
+            ang += dt
+            if i == 0:
+                self.path.moveTo(x, y)
+            else:
+                self.path.lineTo(x, y)            
+            
+    def paint(self, p, opt, widget):
+        ### determine rotation of transform
+        #m = self.sceneTransform()
+        ##mi = m.inverted()[0]
+        #v = m.map(QtCore.QPointF(1, 0)) - m.map(QtCore.QPointF(0, 0))
+        #va = np.arctan2(v.y(), v.x())
+        
+        ### Determine length of unit vector in painter's coords
+        ##size = mi.map(Point(self.radius, self.radius)) - mi.map(Point(0, 0))
+        ##size = (size.x()*size.x() + size.y() * size.y()) ** 0.5
+        #size = self.radius
+        
+        #bounds = QtCore.QRectF(-size, -size, size*2, size*2)
+        #if bounds != self.bounds:
+            #self.bounds = bounds
+            #self.prepareGeometryChange()
+        p.setRenderHints(p.Antialiasing, True)
+        p.setPen(self.currentPen)
+        
+        #p.rotate(va * 180. / 3.1415926)
+        #p.drawPath(self.path)        
+        p.drawPath(self.shape())
+        #ang = self.startAng + va
+        #dt = 2*np.pi / self.sides
+        #for i in range(0, self.sides):
+            #x1 = size * cos(ang)
+            #y1 = size * sin(ang)
+            #x2 = size * cos(ang+dt)
+            #y2 = size * sin(ang+dt)
+            #ang += dt
+            #p.drawLine(Point(x1, y1), Point(x2, y2))
+            
+    def shape(self):
+        if self._shape is None:
+            s = self.generateShape()
+            if s is None:
+                return self.path
+            self._shape = s
+            self.prepareGeometryChange()  ## beware--this can cause the view to adjust, which would immediately invalidate the shape.
+        return self._shape
+    
+    def boundingRect(self):
+        #print 'roi:', self.roi
+        s1 = self.shape()
+        #print "   s1:", s1
+        #s2 = self.shape()
+        #print "   s2:", s2
+        
+        return self.shape().boundingRect()
+            
+    def generateShape(self):
+        ## determine rotation of transform
+        #m = self.sceneTransform()  ## Qt bug: do not access sceneTransform() until we know this object has a scene.
+        #mi = m.inverted()[0]
+        dt = self.deviceTransform()
+        
+        if dt is None:
+            self._shape = self.path
+            return None
+        
+        v = dt.map(QtCore.QPointF(1, 0)) - dt.map(QtCore.QPointF(0, 0))
+        va = np.arctan2(v.y(), v.x())
+        
+        dti = fn.invertQTransform(dt)
+        devPos = dt.map(QtCore.QPointF(0,0))
+        tr = QtGui.QTransform()
+        tr.translate(devPos.x(), devPos.y())
+        tr.rotate(va * 180. / 3.1415926)
+        
+        return dti.map(tr.map(self.path))
+        
+        
+    def viewTransformChanged(self):
+        GraphicsObject.viewTransformChanged(self)
+        self._shape = None  ## invalidate shape, recompute later if requested.
+        self.update()
+        
+    #def itemChange(self, change, value):
+        #if change == self.ItemScenePositionHasChanged:
+            #self.updateShape()
+
+
+class TestROI(ROI):
+    def __init__(self, pos, size, **args):
+        #QtGui.QGraphicsRectItem.__init__(self, pos[0], pos[1], size[0], size[1])
+        ROI.__init__(self, pos, size, **args)
+        #self.addTranslateHandle([0, 0])
+        self.addTranslateHandle([0.5, 0.5])
+        self.addScaleHandle([1, 1], [0, 0])
+        self.addScaleHandle([0, 0], [1, 1])
+        self.addScaleRotateHandle([1, 0.5], [0.5, 0.5])
+        self.addScaleHandle([0.5, 1], [0.5, 0.5])
+        self.addRotateHandle([1, 0], [0, 0])
+        self.addRotateHandle([0, 1], [1, 1])
+
+
+
+class RectROI(ROI):
+    """
+    Rectangular ROI subclass with a single scale handle at the top-right corner.
+    
+    ============== =============================================================
+    **Arguments**
+    pos            (length-2 sequence) The position of the ROI origin.
+                   See ROI().
+    size           (length-2 sequence) The size of the ROI. See ROI().
+    centered       (bool) If True, scale handles affect the ROI relative to its
+                   center, rather than its origin.
+    sideScalers    (bool) If True, extra scale handles are added at the top and 
+                   right edges.
+    \**args        All extra keyword arguments are passed to ROI()
+    ============== =============================================================
+    
+    """
+    def __init__(self, pos, size, centered=False, sideScalers=False, **args):
+        #QtGui.QGraphicsRectItem.__init__(self, 0, 0, size[0], size[1])
+        ROI.__init__(self, pos, size, **args)
+        if centered:
+            center = [0.5, 0.5]
+        else:
+            center = [0, 0]
+            
+        #self.addTranslateHandle(center)
+        self.addScaleHandle([1, 1], center)
+        if sideScalers:
+            self.addScaleHandle([1, 0.5], [center[0], 0.5])
+            self.addScaleHandle([0.5, 1], [0.5, center[1]])
+
+class LineROI(ROI):
+    """
+    Rectangular ROI subclass with scale-rotate handles on either side. This
+    allows the ROI to be positioned as if moving the ends of a line segment.
+    A third handle controls the width of the ROI orthogonal to its "line" axis.
+    
+    ============== =============================================================
+    **Arguments**
+    pos1           (length-2 sequence) The position of the center of the ROI's
+                   left edge.
+    pos2           (length-2 sequence) The position of the center of the ROI's
+                   right edge.
+    width          (float) The width of the ROI.
+    \**args        All extra keyword arguments are passed to ROI()
+    ============== =============================================================
+    
+    """
+    def __init__(self, pos1, pos2, width, **args):
+        pos1 = Point(pos1)
+        pos2 = Point(pos2)
+        d = pos2-pos1
+        l = d.length()
+        ang = Point(1, 0).angle(d)
+        ra = ang * np.pi / 180.
+        c = Point(-width/2. * sin(ra), -width/2. * cos(ra))
+        pos1 = pos1 + c
+        
+        ROI.__init__(self, pos1, size=Point(l, width), angle=ang, **args)
+        self.addScaleRotateHandle([0, 0.5], [1, 0.5])
+        self.addScaleRotateHandle([1, 0.5], [0, 0.5])
+        self.addScaleHandle([0.5, 1], [0.5, 0.5])
+        
+
+        
+class MultiRectROI(QtGui.QGraphicsObject):
+    """
+    Chain of rectangular ROIs connected by handles. 
+    
+    This is generally used to mark a curved path through 
+    an image similarly to PolyLineROI. It differs in that each segment
+    of the chain is rectangular instead of linear and thus has width.
+    
+    ============== =============================================================
+    **Arguments**
+    points         (list of length-2 sequences) The list of points in the path.
+    width          (float) The width of the ROIs orthogonal to the path.
+    \**args        All extra keyword arguments are passed to ROI()
+    ============== =============================================================
+    """
+    sigRegionChangeFinished = QtCore.Signal(object)
+    sigRegionChangeStarted = QtCore.Signal(object)
+    sigRegionChanged = QtCore.Signal(object)
+    
+    def __init__(self, points, width, pen=None, **args):
+        QtGui.QGraphicsObject.__init__(self)
+        self.pen = pen
+        self.roiArgs = args
+        self.lines = []
+        if len(points) < 2:
+            raise Exception("Must start with at least 2 points")
+        
+        ## create first segment
+        self.addSegment(points[1], connectTo=points[0], scaleHandle=True)
+        
+        ## create remaining segments
+        for p in points[2:]:
+            self.addSegment(p)
+        
+        
+    def paint(self, *args):
+        pass
+    
+    def boundingRect(self):
+        return QtCore.QRectF()
+        
+    def roiChangedEvent(self):
+        w = self.lines[0].state['size'][1]
+        for l in self.lines[1:]:
+            w0 = l.state['size'][1]
+            if w == w0:
+                continue
+            l.scale([1.0, w/w0], center=[0.5,0.5])
+        self.sigRegionChanged.emit(self)
+            
+    def roiChangeStartedEvent(self):
+        self.sigRegionChangeStarted.emit(self)
+        
+    def roiChangeFinishedEvent(self):
+        self.sigRegionChangeFinished.emit(self)
+        
+    def getHandlePositions(self):
+        """Return the positions of all handles in local coordinates."""
+        pos = [self.mapFromScene(self.lines[0].getHandles()[0].scenePos())]
+        for l in self.lines:
+            pos.append(self.mapFromScene(l.getHandles()[1].scenePos()))
+        return pos
+        
+    def getArrayRegion(self, arr, img=None, axes=(0,1), **kwds):
+        rgns = []
+        for l in self.lines:
+            rgn = l.getArrayRegion(arr, img, axes=axes, **kwds)
+            if rgn is None:
+                continue
+                #return None
+            rgns.append(rgn)
+            #print l.state['size']
+            
+        ## make sure orthogonal axis is the same size
+        ## (sometimes fp errors cause differences)
+        if img.axisOrder == 'row-major':
+            axes = axes[::-1]
+        ms = min([r.shape[axes[1]] for r in rgns])
+        sl = [slice(None)] * rgns[0].ndim
+        sl[axes[1]] = slice(0,ms)
+        rgns = [r[sl] for r in rgns]
+        #print [r.shape for r in rgns], axes
+        
+        return np.concatenate(rgns, axis=axes[0])
+        
+    def addSegment(self, pos=(0,0), scaleHandle=False, connectTo=None):
+        """
+        Add a new segment to the ROI connecting from the previous endpoint to *pos*.
+        (pos is specified in the parent coordinate system of the MultiRectROI)
+        """
+        
+        ## by default, connect to the previous endpoint
+        if connectTo is None:
+            connectTo = self.lines[-1].getHandles()[1]
+            
+        ## create new ROI
+        newRoi = ROI((0,0), [1, 5], parent=self, pen=self.pen, **self.roiArgs)
+        self.lines.append(newRoi)
+        
+        ## Add first SR handle
+        if isinstance(connectTo, Handle):
+            self.lines[-1].addScaleRotateHandle([0, 0.5], [1, 0.5], item=connectTo)
+            newRoi.movePoint(connectTo, connectTo.scenePos(), coords='scene')
+        else:
+            h = self.lines[-1].addScaleRotateHandle([0, 0.5], [1, 0.5])
+            newRoi.movePoint(h, connectTo, coords='scene')
+            
+        ## add second SR handle
+        h = self.lines[-1].addScaleRotateHandle([1, 0.5], [0, 0.5]) 
+        newRoi.movePoint(h, pos)
+        
+        ## optionally add scale handle (this MUST come after the two SR handles)
+        if scaleHandle:
+            newRoi.addScaleHandle([0.5, 1], [0.5, 0.5])
+            
+        newRoi.translatable = False 
+        newRoi.sigRegionChanged.connect(self.roiChangedEvent) 
+        newRoi.sigRegionChangeStarted.connect(self.roiChangeStartedEvent) 
+        newRoi.sigRegionChangeFinished.connect(self.roiChangeFinishedEvent)
+        self.sigRegionChanged.emit(self) 
+    
+
+    def removeSegment(self, index=-1): 
+        """Remove a segment from the ROI."""
+        roi = self.lines[index]
+        self.lines.pop(index)
+        self.scene().removeItem(roi)
+        roi.sigRegionChanged.disconnect(self.roiChangedEvent) 
+        roi.sigRegionChangeStarted.disconnect(self.roiChangeStartedEvent) 
+        roi.sigRegionChangeFinished.disconnect(self.roiChangeFinishedEvent)
+        
+        self.sigRegionChanged.emit(self)
+        
+        
+class MultiLineROI(MultiRectROI):
+    def __init__(self, *args, **kwds):
+        MultiRectROI.__init__(self, *args, **kwds)
+        print("Warning: MultiLineROI has been renamed to MultiRectROI. (and MultiLineROI may be redefined in the future)")
+
+        
+class EllipseROI(ROI):
+    """
+    Elliptical ROI subclass with one scale handle and one rotation handle.
+    
+    
+    ============== =============================================================
+    **Arguments**
+    pos            (length-2 sequence) The position of the ROI's origin.
+    size           (length-2 sequence) The size of the ROI's bounding rectangle.
+    \**args        All extra keyword arguments are passed to ROI()
+    ============== =============================================================
+    
+    """
+    def __init__(self, pos, size, **args):
+        #QtGui.QGraphicsRectItem.__init__(self, 0, 0, size[0], size[1])
+        ROI.__init__(self, pos, size, **args)
+        self.addRotateHandle([1.0, 0.5], [0.5, 0.5])
+        self.addScaleHandle([0.5*2.**-0.5 + 0.5, 0.5*2.**-0.5 + 0.5], [0.5, 0.5])
+            
+    def paint(self, p, opt, widget):
+        r = self.boundingRect()
+        p.setRenderHint(QtGui.QPainter.Antialiasing)
+        p.setPen(self.currentPen)
+        
+        p.scale(r.width(), r.height())## workaround for GL bug
+        r = QtCore.QRectF(r.x()/r.width(), r.y()/r.height(), 1,1)
+        
+        p.drawEllipse(r)
+        
+    def getArrayRegion(self, arr, img=None, axes=(0, 1), **kwds):
+        """
+        Return the result of ROI.getArrayRegion() masked by the elliptical shape
+        of the ROI. Regions outside the ellipse are set to 0.
+        """
+        # Note: we could use the same method as used by PolyLineROI, but this
+        # implementation produces a nicer mask.
+        arr = ROI.getArrayRegion(self, arr, img, axes, **kwds)
+        if arr is None or arr.shape[axes[0]] == 0 or arr.shape[axes[1]] == 0:
+            return arr
+        w = arr.shape[axes[0]]
+        h = arr.shape[axes[1]]
+        ## generate an ellipsoidal mask
+        mask = np.fromfunction(lambda x,y: (((x+0.5)/(w/2.)-1)**2+ ((y+0.5)/(h/2.)-1)**2)**0.5 < 1, (w, h))
+        
+        # reshape to match array axes
+        if axes[0] > axes[1]:
+            mask = mask.T
+        shape = [(n if i in axes else 1) for i,n in enumerate(arr.shape)]
+        mask = mask.reshape(shape)
+        
+        return arr * mask
+    
+    def shape(self):
+        self.path = QtGui.QPainterPath()
+        self.path.addEllipse(self.boundingRect())
+        return self.path
+        
+        
+class CircleROI(EllipseROI):
+    """
+    Circular ROI subclass. Behaves exactly as EllipseROI, but may only be scaled
+    proportionally to maintain its aspect ratio.
+    
+    ============== =============================================================
+    **Arguments**
+    pos            (length-2 sequence) The position of the ROI's origin.
+    size           (length-2 sequence) The size of the ROI's bounding rectangle.
+    \**args        All extra keyword arguments are passed to ROI()
+    ============== =============================================================
+    
+    """
+    def __init__(self, pos, size, **args):
+        ROI.__init__(self, pos, size, **args)
+        self.aspectLocked = True
+        #self.addTranslateHandle([0.5, 0.5])
+        self.addScaleHandle([0.5*2.**-0.5 + 0.5, 0.5*2.**-0.5 + 0.5], [0.5, 0.5])
+
+
+class PolygonROI(ROI):
+    ## deprecated. Use PloyLineROI instead.
+    
+    def __init__(self, positions, pos=None, **args):
+        if pos is None:
+            pos = [0,0]
+        ROI.__init__(self, pos, [1,1], **args)
+        #ROI.__init__(self, positions[0])
+        for p in positions:
+            self.addFreeHandle(p)
+        self.setZValue(1000)
+        print("Warning: PolygonROI is deprecated. Use PolyLineROI instead.")
+        
+            
+    def listPoints(self):
+        return [p['item'].pos() for p in self.handles]
+            
+    #def movePoint(self, *args, **kargs):
+        #ROI.movePoint(self, *args, **kargs)
+        #self.prepareGeometryChange()
+        #for h in self.handles:
+            #h['pos'] = h['item'].pos()
+            
+    def paint(self, p, *args):
+        p.setRenderHint(QtGui.QPainter.Antialiasing)
+        p.setPen(self.currentPen)
+        for i in range(len(self.handles)):
+            h1 = self.handles[i]['item'].pos()
+            h2 = self.handles[i-1]['item'].pos()
+            p.drawLine(h1, h2)
+        
+    def boundingRect(self):
+        r = QtCore.QRectF()
+        for h in self.handles:
+            r |= self.mapFromItem(h['item'], h['item'].boundingRect()).boundingRect()   ## |= gives the union of the two QRectFs
+        return r
+    
+    def shape(self):
+        p = QtGui.QPainterPath()
+        p.moveTo(self.handles[0]['item'].pos())
+        for i in range(len(self.handles)):
+            p.lineTo(self.handles[i]['item'].pos())
+        return p
+    
+    def stateCopy(self):
+        sc = {}
+        sc['pos'] = Point(self.state['pos'])
+        sc['size'] = Point(self.state['size'])
+        sc['angle'] = self.state['angle']
+        #sc['handles'] = self.handles
+        return sc
+
+    
+class PolyLineROI(ROI):
+    """
+    Container class for multiple connected LineSegmentROIs.
+    
+    This class allows the user to draw paths of multiple line segments.
+    
+    ============== =============================================================
+    **Arguments**
+    positions      (list of length-2 sequences) The list of points in the path.
+                   Note that, unlike the handle positions specified in other
+                   ROIs, these positions must be expressed in the normal
+                   coordinate system of the ROI, rather than (0 to 1) relative
+                   to the size of the ROI.
+    closed         (bool) if True, an extra LineSegmentROI is added connecting 
+                   the beginning and end points.
+    \**args        All extra keyword arguments are passed to ROI()
+    ============== =============================================================
+    
+    """
+    def __init__(self, positions, closed=False, pos=None, **args):
+        
+        if pos is None:
+            pos = [0,0]
+            
+        self.closed = closed
+        self.segments = []
+        ROI.__init__(self, pos, size=[1,1], **args)
+        
+        self.setPoints(positions)
+
+    def setPoints(self, points, closed=None):
+        """
+        Set the complete sequence of points displayed by this ROI.
+        
+        ============= =========================================================
+        **Arguments**
+        points        List of (x,y) tuples specifying handle locations to set.
+        closed        If bool, then this will set whether the ROI is closed 
+                      (the last point is connected to the first point). If
+                      None, then the closed mode is left unchanged.
+        ============= =========================================================
+        
+        """
+        if closed is not None:
+            self.closed = closed
+        
+        self.clearPoints()
+        
+        for p in points:
+            self.addFreeHandle(p)
+        
+        start = -1 if self.closed else 0
+        for i in range(start, len(self.handles)-1):
+            self.addSegment(self.handles[i]['item'], self.handles[i+1]['item'])
+        
+    def clearPoints(self):
+        """
+        Remove all handles and segments.
+        """
+        while len(self.handles) > 0:
+            self.removeHandle(self.handles[0]['item'])
+    
+    def getState(self):
+        state = ROI.getState(self)
+        state['closed'] = self.closed
+        state['points'] = [Point(h.pos()) for h in self.getHandles()]
+        return state
+
+    def saveState(self):
+        state = ROI.saveState(self)
+        state['closed'] = self.closed
+        state['points'] = [tuple(h.pos()) for h in self.getHandles()]
+        return state
+
+    def setState(self, state):
+        ROI.setState(self, state)
+        self.setPoints(state['points'], closed=state['closed'])
+        
+    def addSegment(self, h1, h2, index=None):
+        seg = _PolyLineSegment(handles=(h1, h2), pen=self.pen, parent=self, movable=False)
+        if index is None:
+            self.segments.append(seg)
+        else:
+            self.segments.insert(index, seg)
+        seg.sigClicked.connect(self.segmentClicked)
+        seg.setAcceptedMouseButtons(QtCore.Qt.LeftButton)
+        seg.setZValue(self.zValue()+1)
+        for h in seg.handles:
+            h['item'].setDeletable(True)
+            h['item'].setAcceptedMouseButtons(h['item'].acceptedMouseButtons() | QtCore.Qt.LeftButton) ## have these handles take left clicks too, so that handles cannot be added on top of other handles
+        
+    def setMouseHover(self, hover):
+        ## Inform all the ROI's segments that the mouse is(not) hovering over it
+        ROI.setMouseHover(self, hover)
+        for s in self.segments:
+            s.setParentHover(hover)
+          
+    def addHandle(self, info, index=None):
+        h = ROI.addHandle(self, info, index=index)
+        h.sigRemoveRequested.connect(self.removeHandle)
+        self.stateChanged(finish=True)
+        return h
+        
+    def segmentClicked(self, segment, ev=None, pos=None): ## pos should be in this item's coordinate system
+        if ev != None:
+            pos = segment.mapToParent(ev.pos())
+        elif pos != None:
+            pos = pos
+        else:
+            raise Exception("Either an event or a position must be given.")
+        h1 = segment.handles[0]['item']
+        h2 = segment.handles[1]['item']
+        
+        i = self.segments.index(segment)
+        h3 = self.addFreeHandle(pos, index=self.indexOfHandle(h2))
+        self.addSegment(h3, h2, index=i+1)
+        segment.replaceHandle(h2, h3)
+        
+    def removeHandle(self, handle, updateSegments=True):
+        ROI.removeHandle(self, handle)
+        handle.sigRemoveRequested.disconnect(self.removeHandle)
+        
+        if not updateSegments:
+            return
+        segments = handle.rois[:]
+        
+        if len(segments) == 1:
+            self.removeSegment(segments[0])
+        elif len(segments) > 1:
+            handles = [h['item'] for h in segments[1].handles]
+            handles.remove(handle)
+            segments[0].replaceHandle(handle, handles[0])
+            self.removeSegment(segments[1])
+        self.stateChanged(finish=True)
+        
+    def removeSegment(self, seg):
+        for handle in seg.handles[:]:
+            seg.removeHandle(handle['item'])
+        self.segments.remove(seg)
+        seg.sigClicked.disconnect(self.segmentClicked)
+        self.scene().removeItem(seg)
+        
+    def checkRemoveHandle(self, h):
+        ## called when a handle is about to display its context menu
+        if self.closed:
+            return len(self.handles) > 3
+        else:
+            return len(self.handles) > 2
+        
+    def paint(self, p, *args):
+        pass
+    
+    def boundingRect(self):
+        return self.shape().boundingRect()
+
+    def shape(self):
+        p = QtGui.QPainterPath()
+        if len(self.handles) == 0:
+            return p
+        p.moveTo(self.handles[0]['item'].pos())
+        for i in range(len(self.handles)):
+            p.lineTo(self.handles[i]['item'].pos())
+        p.lineTo(self.handles[0]['item'].pos())
+        return p
+
+    def getArrayRegion(self, data, img, axes=(0,1), **kwds):
+        """
+        Return the result of ROI.getArrayRegion(), masked by the shape of the 
+        ROI. Values outside the ROI shape are set to 0.
+        """
+        br = self.boundingRect()
+        if br.width() > 1000:
+            raise Exception()
+        sliced = ROI.getArrayRegion(self, data, img, axes=axes, fromBoundingRect=True, **kwds)
+        
+        if img.axisOrder == 'col-major':
+            mask = self.renderShapeMask(sliced.shape[axes[0]], sliced.shape[axes[1]])
+        else:
+            mask = self.renderShapeMask(sliced.shape[axes[1]], sliced.shape[axes[0]])
+            mask = mask.T
+            
+        # reshape mask to ensure it is applied to the correct data axes
+        shape = [1] * data.ndim
+        shape[axes[0]] = sliced.shape[axes[0]]
+        shape[axes[1]] = sliced.shape[axes[1]]
+        mask = mask.reshape(shape)
+
+        return sliced * mask
+
+    def setPen(self, *args, **kwds):
+        ROI.setPen(self, *args, **kwds)
+        for seg in self.segments:
+            seg.setPen(*args, **kwds)
+
+
+
+class LineSegmentROI(ROI):
+    """
+    ROI subclass with two freely-moving handles defining a line.
+    
+    ============== =============================================================
+    **Arguments**
+    positions      (list of two length-2 sequences) The endpoints of the line 
+                   segment. Note that, unlike the handle positions specified in 
+                   other ROIs, these positions must be expressed in the normal
+                   coordinate system of the ROI, rather than (0 to 1) relative
+                   to the size of the ROI.
+    \**args        All extra keyword arguments are passed to ROI()
+    ============== =============================================================
+    """
+    
+    def __init__(self, positions=(None, None), pos=None, handles=(None,None), **args):
+        if pos is None:
+            pos = [0,0]
+            
+        ROI.__init__(self, pos, [1,1], **args)
+        #ROI.__init__(self, positions[0])
+        if len(positions) > 2:
+            raise Exception("LineSegmentROI must be defined by exactly 2 positions. For more points, use PolyLineROI.")
+        
+        for i, p in enumerate(positions):
+            self.addFreeHandle(p, item=handles[i])
+                
+        
+    def listPoints(self):
+        return [p['item'].pos() for p in self.handles]
+            
+    def paint(self, p, *args):
+        p.setRenderHint(QtGui.QPainter.Antialiasing)
+        p.setPen(self.currentPen)
+        h1 = self.handles[0]['item'].pos()
+        h2 = self.handles[1]['item'].pos()
+        p.drawLine(h1, h2)
+        
+    def boundingRect(self):
+        return self.shape().boundingRect()
+    
+    def shape(self):
+        p = QtGui.QPainterPath()
+    
+        h1 = self.handles[0]['item'].pos()
+        h2 = self.handles[1]['item'].pos()
+        dh = h2-h1
+        if dh.length() == 0:
+            return p
+        pxv = self.pixelVectors(dh)[1]
+        if pxv is None:
+            return p
+            
+        pxv *= 4
+        
+        p.moveTo(h1+pxv)
+        p.lineTo(h2+pxv)
+        p.lineTo(h2-pxv)
+        p.lineTo(h1-pxv)
+        p.lineTo(h1+pxv)
+      
+        return p
+    
+    def getArrayRegion(self, data, img, axes=(0,1), order=1, **kwds):
+        """
+        Use the position of this ROI relative to an imageItem to pull a slice 
+        from an array.
+        
+        Since this pulls 1D data from a 2D coordinate system, the return value 
+        will have ndim = data.ndim-1
+        
+        See ROI.getArrayRegion() for a description of the arguments.
+        """
+        
+        imgPts = [self.mapToItem(img, h['item'].pos()) for h in self.handles]
+        rgns = []
+        for i in range(len(imgPts)-1):
+            d = Point(imgPts[i+1] - imgPts[i])
+            o = Point(imgPts[i])
+            r = fn.affineSlice(data, shape=(int(d.length()),), vectors=[Point(d.norm())], origin=o, axes=axes, order=order, **kwds)
+            rgns.append(r)
+            
+        return np.concatenate(rgns, axis=axes[0])
+        
+
+class _PolyLineSegment(LineSegmentROI):
+    # Used internally by PolyLineROI
+    def __init__(self, *args, **kwds):
+        self._parentHovering = False
+        LineSegmentROI.__init__(self, *args, **kwds)
+        
+    def setParentHover(self, hover):
+        # set independently of own hover state
+        if self._parentHovering != hover:
+            self._parentHovering = hover
+            self._updateHoverColor()
+        
+    def _makePen(self):
+        if self.mouseHovering or self._parentHovering:
+            return fn.mkPen(255, 255, 0)
+        else:
+            return self.pen
+        
+    def hoverEvent(self, ev):
+        # accept drags even though we discard them to prevent competition with parent ROI
+        # (unless parent ROI is not movable)
+        if self.parentItem().translatable:
+            ev.acceptDrags(QtCore.Qt.LeftButton)
+        return LineSegmentROI.hoverEvent(self, ev)
+
+
+class SpiralROI(ROI):
+    def __init__(self, pos=None, size=None, **args):
+        if size == None:
+            size = [100e-6,100e-6]
+        if pos == None:
+            pos = [0,0]
+        ROI.__init__(self, pos, size, **args)
+        self.translateSnap = False
+        self.addFreeHandle([0.25,0], name='a')
+        self.addRotateFreeHandle([1,0], [0,0], name='r')
+        #self.getRadius()
+        #QtCore.connect(self, QtCore.SIGNAL('regionChanged'), self.
+        
+        
+    def getRadius(self):
+        radius = Point(self.handles[1]['item'].pos()).length()
+        #r2 = radius[1]
+        #r3 = r2[0]
+        return radius
+    
+    def boundingRect(self):
+        r = self.getRadius()
+        return QtCore.QRectF(-r*1.1, -r*1.1, 2.2*r, 2.2*r)
+        #return self.bounds
+    
+    #def movePoint(self, *args, **kargs):
+        #ROI.movePoint(self, *args, **kargs)
+        #self.prepareGeometryChange()
+        #for h in self.handles:
+            #h['pos'] = h['item'].pos()/self.state['size'][0]
+            
+    def stateChanged(self, finish=True):
+        ROI.stateChanged(self, finish=finish)
+        if len(self.handles) > 1:
+            self.path = QtGui.QPainterPath()
+            h0 = Point(self.handles[0]['item'].pos()).length()
+            a = h0/(2.0*np.pi)
+            theta = 30.0*(2.0*np.pi)/360.0
+            self.path.moveTo(QtCore.QPointF(a*theta*cos(theta), a*theta*sin(theta)))
+            x0 = a*theta*cos(theta)
+            y0 = a*theta*sin(theta)
+            radius = self.getRadius()
+            theta += 20.0*(2.0*np.pi)/360.0
+            i = 0
+            while Point(x0, y0).length() < radius and i < 1000:
+                x1 = a*theta*cos(theta)
+                y1 = a*theta*sin(theta)
+                self.path.lineTo(QtCore.QPointF(x1,y1))
+                theta += 20.0*(2.0*np.pi)/360.0
+                x0 = x1
+                y0 = y1
+                i += 1
+           
+                
+            return self.path
+    
+        
+    def shape(self):
+        p = QtGui.QPainterPath()
+        p.addEllipse(self.boundingRect())
+        return p
+    
+    def paint(self, p, *args):
+        p.setRenderHint(QtGui.QPainter.Antialiasing)
+        #path = self.shape()
+        p.setPen(self.currentPen)
+        p.drawPath(self.path)
+        p.setPen(QtGui.QPen(QtGui.QColor(255,0,0)))
+        p.drawPath(self.shape())
+        p.setPen(QtGui.QPen(QtGui.QColor(0,0,255)))
+        p.drawRect(self.boundingRect())
+        
+    
+class CrosshairROI(ROI):
+    """A crosshair ROI whose position is at the center of the crosshairs. By default, it is scalable, rotatable and translatable."""
+    
+    def __init__(self, pos=None, size=None, **kargs):
+        if size == None:
+            #size = [100e-6,100e-6]
+            size=[1,1]
+        if pos == None:
+            pos = [0,0]
+        self._shape = None
+        ROI.__init__(self, pos, size, **kargs)
+        
+        self.sigRegionChanged.connect(self.invalidate)
+        self.addScaleRotateHandle(Point(1, 0), Point(0, 0))
+        self.aspectLocked = True
+
+    def invalidate(self):
+        self._shape = None
+        self.prepareGeometryChange()
+        
+    def boundingRect(self):
+        #size = self.size()
+        #return QtCore.QRectF(-size[0]/2., -size[1]/2., size[0], size[1]).normalized()
+        return self.shape().boundingRect()
+    
+    #def getRect(self):
+        ### same as boundingRect -- for internal use so that boundingRect can be re-implemented in subclasses
+        #size = self.size()
+        #return QtCore.QRectF(-size[0]/2., -size[1]/2., size[0], size[1]).normalized()
+        
+    
+    def shape(self):
+        if self._shape is None:
+            radius = self.getState()['size'][1]
+            p = QtGui.QPainterPath()
+            p.moveTo(Point(0, -radius))
+            p.lineTo(Point(0, radius))
+            p.moveTo(Point(-radius, 0))
+            p.lineTo(Point(radius, 0))
+            p = self.mapToDevice(p)
+            stroker = QtGui.QPainterPathStroker()
+            stroker.setWidth(10)
+            outline = stroker.createStroke(p)
+            self._shape = self.mapFromDevice(outline)
+            
+        
+            ##h1 = self.handles[0]['item'].pos()
+            ##h2 = self.handles[1]['item'].pos()
+            #w1 = Point(-0.5, 0)*self.size()
+            #w2 = Point(0.5, 0)*self.size()
+            #h1 = Point(0, -0.5)*self.size()
+            #h2 = Point(0, 0.5)*self.size()
+            
+            #dh = h2-h1
+            #dw = w2-w1
+            #if dh.length() == 0 or dw.length() == 0:
+                #return p
+            #pxv = self.pixelVectors(dh)[1]
+            #if pxv is None:
+                #return p
+                
+            #pxv *= 4
+            
+            #p.moveTo(h1+pxv)
+            #p.lineTo(h2+pxv)
+            #p.lineTo(h2-pxv)
+            #p.lineTo(h1-pxv)
+            #p.lineTo(h1+pxv)
+            
+            #pxv = self.pixelVectors(dw)[1]
+            #if pxv is None:
+                #return p
+                
+            #pxv *= 4
+            
+            #p.moveTo(w1+pxv)
+            #p.lineTo(w2+pxv)
+            #p.lineTo(w2-pxv)
+            #p.lineTo(w1-pxv)
+            #p.lineTo(w1+pxv)
+        
+        return self._shape
+    
+    def paint(self, p, *args):
+        #p.save()
+        #r = self.getRect()
+        radius = self.getState()['size'][1]
+        p.setRenderHint(QtGui.QPainter.Antialiasing)
+        p.setPen(self.currentPen)
+        #p.translate(r.left(), r.top())
+        #p.scale(r.width()/10., r.height()/10.) ## need to scale up a little because drawLine has trouble dealing with 0.5
+        #p.drawLine(0,5, 10,5)
+        #p.drawLine(5,0, 5,10)
+        #p.restore()
+        
+        p.drawLine(Point(0, -radius), Point(0, radius))
+        p.drawLine(Point(-radius, 0), Point(radius, 0))
+        
+        
diff --git a/libs/pyqtgraph/graphicsItems/ScaleBar.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ScaleBar.py
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/ScaleBar.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ScaleBar.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ScatterPlotItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ScatterPlotItem.py
new file mode 100644
index 00000000..54667b50
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ScatterPlotItem.py
@@ -0,0 +1,979 @@
+from itertools import starmap, repeat
+try:
+    from itertools import imap
+except ImportError:
+    imap = map
+import numpy as np
+import weakref
+from ..Qt import QtGui, QtCore, USE_PYSIDE, USE_PYQT5
+from ..Point import Point
+from .. import functions as fn
+from .GraphicsItem import GraphicsItem
+from .GraphicsObject import GraphicsObject
+from .. import getConfigOption
+from ..pgcollections import OrderedDict
+from .. import debug
+from ..python2_3 import basestring
+
+__all__ = ['ScatterPlotItem', 'SpotItem']
+
+
+## Build all symbol paths
+Symbols = OrderedDict([(name, QtGui.QPainterPath()) for name in ['o', 's', 't', 't1', 't2', 't3','d', '+', 'x', 'p', 'h', 'star']])
+Symbols['o'].addEllipse(QtCore.QRectF(-0.5, -0.5, 1, 1))
+Symbols['s'].addRect(QtCore.QRectF(-0.5, -0.5, 1, 1))
+coords = {
+    't': [(-0.5, -0.5), (0, 0.5), (0.5, -0.5)],
+    't1': [(-0.5, 0.5), (0, -0.5), (0.5, 0.5)],
+    't2': [(-0.5, -0.5), (-0.5, 0.5), (0.5, 0)],
+    't3': [(0.5, 0.5), (0.5, -0.5), (-0.5, 0)],
+    'd': [(0., -0.5), (-0.4, 0.), (0, 0.5), (0.4, 0)],
+    '+': [
+        (-0.5, -0.05), (-0.5, 0.05), (-0.05, 0.05), (-0.05, 0.5),
+        (0.05, 0.5), (0.05, 0.05), (0.5, 0.05), (0.5, -0.05),
+        (0.05, -0.05), (0.05, -0.5), (-0.05, -0.5), (-0.05, -0.05)
+    ],
+    'p': [(0, -0.5), (-0.4755, -0.1545), (-0.2939, 0.4045),
+          (0.2939, 0.4045), (0.4755, -0.1545)],
+    'h': [(0.433, 0.25), (0., 0.5), (-0.433, 0.25), (-0.433, -0.25),
+          (0, -0.5), (0.433, -0.25)],
+    'star': [(0, -0.5), (-0.1123, -0.1545), (-0.4755, -0.1545),
+             (-0.1816, 0.059), (-0.2939, 0.4045), (0, 0.1910),
+             (0.2939, 0.4045), (0.1816, 0.059), (0.4755, -0.1545),
+             (0.1123, -0.1545)]
+}
+for k, c in coords.items():
+    Symbols[k].moveTo(*c[0])
+    for x,y in c[1:]:
+        Symbols[k].lineTo(x, y)
+    Symbols[k].closeSubpath()
+tr = QtGui.QTransform()
+tr.rotate(45)
+Symbols['x'] = tr.map(Symbols['+'])
+
+
+def drawSymbol(painter, symbol, size, pen, brush):
+    if symbol is None:
+        return
+    painter.scale(size, size)
+    painter.setPen(pen)
+    painter.setBrush(brush)
+    if isinstance(symbol, basestring):
+        symbol = Symbols[symbol]
+    if np.isscalar(symbol):
+        symbol = list(Symbols.values())[symbol % len(Symbols)]
+    painter.drawPath(symbol)
+
+
+def renderSymbol(symbol, size, pen, brush, device=None):
+    """
+    Render a symbol specification to QImage.
+    Symbol may be either a QPainterPath or one of the keys in the Symbols dict.
+    If *device* is None, a new QPixmap will be returned. Otherwise,
+    the symbol will be rendered into the device specified (See QPainter documentation
+    for more information).
+    """
+    ## Render a spot with the given parameters to a pixmap
+    penPxWidth = max(np.ceil(pen.widthF()), 1)
+    if device is None:
+        device = QtGui.QImage(int(size+penPxWidth), int(size+penPxWidth), QtGui.QImage.Format_ARGB32)
+        device.fill(0)
+    p = QtGui.QPainter(device)
+    try:
+        p.setRenderHint(p.Antialiasing)
+        p.translate(device.width()*0.5, device.height()*0.5)
+        drawSymbol(p, symbol, size, pen, brush)
+    finally:
+        p.end()
+    return device
+
+def makeSymbolPixmap(size, pen, brush, symbol):
+    ## deprecated
+    img = renderSymbol(symbol, size, pen, brush)
+    return QtGui.QPixmap(img)
+
+class SymbolAtlas(object):
+    """
+    Used to efficiently construct a single QPixmap containing all rendered symbols
+    for a ScatterPlotItem. This is required for fragment rendering.
+
+    Use example:
+        atlas = SymbolAtlas()
+        sc1 = atlas.getSymbolCoords('o', 5, QPen(..), QBrush(..))
+        sc2 = atlas.getSymbolCoords('t', 10, QPen(..), QBrush(..))
+        pm = atlas.getAtlas()
+
+    """
+    def __init__(self):
+        # symbol key : QRect(...) coordinates where symbol can be found in atlas.
+        # note that the coordinate list will always be the same list object as
+        # long as the symbol is in the atlas, but the coordinates may
+        # change if the atlas is rebuilt.
+        # weak value; if all external refs to this list disappear,
+        # the symbol will be forgotten.
+        self.symbolMap = weakref.WeakValueDictionary()
+
+        self.atlasData = None # numpy array of atlas image
+        self.atlas = None     # atlas as QPixmap
+        self.atlasValid = False
+        self.max_width=0
+
+    def getSymbolCoords(self, opts):
+        """
+        Given a list of spot records, return an object representing the coordinates of that symbol within the atlas
+        """
+        sourceRect = np.empty(len(opts), dtype=object)
+        keyi = None
+        sourceRecti = None
+        for i, rec in enumerate(opts):
+            key = (rec[3], rec[2], id(rec[4]), id(rec[5]))   # TODO: use string indexes?
+            if key == keyi:
+                sourceRect[i] = sourceRecti
+            else:
+                try:
+                    sourceRect[i] = self.symbolMap[key]
+                except KeyError:
+                    newRectSrc = QtCore.QRectF()
+                    newRectSrc.pen = rec['pen']
+                    newRectSrc.brush = rec['brush']
+                    self.symbolMap[key] = newRectSrc
+                    self.atlasValid = False
+                    sourceRect[i] = newRectSrc
+                    keyi = key
+                    sourceRecti = newRectSrc
+        return sourceRect
+
+    def buildAtlas(self):
+        # get rendered array for all symbols, keep track of avg/max width
+        rendered = {}
+        avgWidth = 0.0
+        maxWidth = 0
+        images = []
+        for key, sourceRect in self.symbolMap.items():
+            if sourceRect.width() == 0:
+                img = renderSymbol(key[0], key[1], sourceRect.pen, sourceRect.brush)
+                images.append(img)  ## we only need this to prevent the images being garbage collected immediately
+                arr = fn.imageToArray(img, copy=False, transpose=False)
+            else:
+                (y,x,h,w) = sourceRect.getRect()
+                arr = self.atlasData[int(x):int(x+w), int(y):int(y+w)]
+            rendered[key] = arr
+            w = arr.shape[0]
+            avgWidth += w
+            maxWidth = max(maxWidth, w)
+
+        nSymbols = len(rendered)
+        if nSymbols > 0:
+            avgWidth /= nSymbols
+            width = max(maxWidth, avgWidth * (nSymbols**0.5))
+        else:
+            avgWidth = 0
+            width = 0
+
+        # sort symbols by height
+        symbols = sorted(rendered.keys(), key=lambda x: rendered[x].shape[1], reverse=True)
+
+        self.atlasRows = []
+
+        x = width
+        y = 0
+        rowheight = 0
+        for key in symbols:
+            arr = rendered[key]
+            w,h = arr.shape[:2]
+            if x+w > width:
+                y += rowheight
+                x = 0
+                rowheight = h
+                self.atlasRows.append([y, rowheight, 0])
+            self.symbolMap[key].setRect(y, x, h, w)
+            x += w
+            self.atlasRows[-1][2] = x
+        height = y + rowheight
+
+        self.atlasData = np.zeros((int(width), int(height), 4), dtype=np.ubyte)
+        for key in symbols:
+            y, x, h, w = self.symbolMap[key].getRect()
+            self.atlasData[int(x):int(x+w), int(y):int(y+h)] = rendered[key]
+        self.atlas = None
+        self.atlasValid = True
+        self.max_width = maxWidth
+
+    def getAtlas(self):
+        if not self.atlasValid:
+            self.buildAtlas()
+        if self.atlas is None:
+            if len(self.atlasData) == 0:
+                return QtGui.QPixmap(0,0)
+            img = fn.makeQImage(self.atlasData, copy=False, transpose=False)
+            self.atlas = QtGui.QPixmap(img)
+        return self.atlas
+
+
+
+
+class ScatterPlotItem(GraphicsObject):
+    """
+    Displays a set of x/y points. Instances of this class are created
+    automatically as part of PlotDataItem; these rarely need to be instantiated
+    directly.
+
+    The size, shape, pen, and fill brush may be set for each point individually
+    or for all points.
+
+
+    ========================  ===============================================
+    **Signals:**
+    sigPlotChanged(self)      Emitted when the data being plotted has changed
+    sigClicked(self, points)  Emitted when the curve is clicked. Sends a list
+                              of all the points under the mouse pointer.
+    ========================  ===============================================
+
+    """
+    #sigPointClicked = QtCore.Signal(object, object)
+    sigClicked = QtCore.Signal(object, object)  ## self, points
+    sigPlotChanged = QtCore.Signal(object)
+    def __init__(self, *args, **kargs):
+        """
+        Accepts the same arguments as setData()
+        """
+        profiler = debug.Profiler()
+        GraphicsObject.__init__(self)
+
+        self.picture = None   # QPicture used for rendering when pxmode==False
+        self.fragmentAtlas = SymbolAtlas()
+
+        self.data = np.empty(0, dtype=[('x', float), ('y', float), ('size', float), ('symbol', object), ('pen', object), ('brush', object), ('data', object), ('item', object), ('sourceRect', object), ('targetRect', object), ('width', float)])
+        self.bounds = [None, None]  ## caches data bounds
+        self._maxSpotWidth = 0      ## maximum size of the scale-variant portion of all spots
+        self._maxSpotPxWidth = 0    ## maximum size of the scale-invariant portion of all spots
+        self.opts = {
+            'pxMode': True,
+            'useCache': True,  ## If useCache is False, symbols are re-drawn on every paint.
+            'antialias': getConfigOption('antialias'),
+            'name': None,
+        }
+
+        self.setPen(fn.mkPen(getConfigOption('foreground')), update=False)
+        self.setBrush(fn.mkBrush(100,100,150), update=False)
+        self.setSymbol('o', update=False)
+        self.setSize(7, update=False)
+        profiler()
+        self.setData(*args, **kargs)
+        profiler('setData')
+
+        #self.setCacheMode(self.DeviceCoordinateCache)
+
+    def setData(self, *args, **kargs):
+        """
+        **Ordered Arguments:**
+
+        * If there is only one unnamed argument, it will be interpreted like the 'spots' argument.
+        * If there are two unnamed arguments, they will be interpreted as sequences of x and y values.
+
+        ====================== ===============================================================================================
+        **Keyword Arguments:**
+        *spots*                Optional list of dicts. Each dict specifies parameters for a single spot:
+                               {'pos': (x,y), 'size', 'pen', 'brush', 'symbol'}. This is just an alternate method
+                               of passing in data for the corresponding arguments.
+        *x*,*y*                1D arrays of x,y values.
+        *pos*                  2D structure of x,y pairs (such as Nx2 array or list of tuples)
+        *pxMode*               If True, spots are always the same size regardless of scaling, and size is given in px.
+                               Otherwise, size is in scene coordinates and the spots scale with the view.
+                               Default is True
+        *symbol*               can be one (or a list) of:
+                               * 'o'  circle (default)
+                               * 's'  square
+                               * 't'  triangle
+                               * 'd'  diamond
+                               * '+'  plus
+                               * any QPainterPath to specify custom symbol shapes. To properly obey the position and size,
+                               custom symbols should be centered at (0,0) and width and height of 1.0. Note that it is also
+                               possible to 'install' custom shapes by setting ScatterPlotItem.Symbols[key] = shape.
+        *pen*                  The pen (or list of pens) to use for drawing spot outlines.
+        *brush*                The brush (or list of brushes) to use for filling spots.
+        *size*                 The size (or list of sizes) of spots. If *pxMode* is True, this value is in pixels. Otherwise,
+                               it is in the item's local coordinate system.
+        *data*                 a list of python objects used to uniquely identify each spot.
+        *identical*            *Deprecated*. This functionality is handled automatically now.
+        *antialias*            Whether to draw symbols with antialiasing. Note that if pxMode is True, symbols are
+                               always rendered with antialiasing (since the rendered symbols can be cached, this
+                               incurs very little performance cost)
+        *name*                 The name of this item. Names are used for automatically
+                               generating LegendItem entries and by some exporters.
+        ====================== ===============================================================================================
+        """
+        oldData = self.data  ## this causes cached pixmaps to be preserved while new data is registered.
+        self.clear()  ## clear out all old data
+        self.addPoints(*args, **kargs)
+
+    def addPoints(self, *args, **kargs):
+        """
+        Add new points to the scatter plot.
+        Arguments are the same as setData()
+        """
+
+        ## deal with non-keyword arguments
+        if len(args) == 1:
+            kargs['spots'] = args[0]
+        elif len(args) == 2:
+            kargs['x'] = args[0]
+            kargs['y'] = args[1]
+        elif len(args) > 2:
+            raise Exception('Only accepts up to two non-keyword arguments.')
+
+        ## convert 'pos' argument to 'x' and 'y'
+        if 'pos' in kargs:
+            pos = kargs['pos']
+            if isinstance(pos, np.ndarray):
+                kargs['x'] = pos[:,0]
+                kargs['y'] = pos[:,1]
+            else:
+                x = []
+                y = []
+                for p in pos:
+                    if isinstance(p, QtCore.QPointF):
+                        x.append(p.x())
+                        y.append(p.y())
+                    else:
+                        x.append(p[0])
+                        y.append(p[1])
+                kargs['x'] = x
+                kargs['y'] = y
+
+        ## determine how many spots we have
+        if 'spots' in kargs:
+            numPts = len(kargs['spots'])
+        elif 'y' in kargs and kargs['y'] is not None:
+            numPts = len(kargs['y'])
+        else:
+            kargs['x'] = []
+            kargs['y'] = []
+            numPts = 0
+
+        ## Extend record array
+        oldData = self.data
+        self.data = np.empty(len(oldData)+numPts, dtype=self.data.dtype)
+        ## note that np.empty initializes object fields to None and string fields to ''
+
+        self.data[:len(oldData)] = oldData
+        #for i in range(len(oldData)):
+            #oldData[i]['item']._data = self.data[i]  ## Make sure items have proper reference to new array
+
+        newData = self.data[len(oldData):]
+        newData['size'] = -1  ## indicates to use default size
+
+        if 'spots' in kargs:
+            spots = kargs['spots']
+            for i in range(len(spots)):
+                spot = spots[i]
+                for k in spot:
+                    if k == 'pos':
+                        pos = spot[k]
+                        if isinstance(pos, QtCore.QPointF):
+                            x,y = pos.x(), pos.y()
+                        else:
+                            x,y = pos[0], pos[1]
+                        newData[i]['x'] = x
+                        newData[i]['y'] = y
+                    elif k == 'pen':
+                        newData[i][k] = fn.mkPen(spot[k])
+                    elif k == 'brush':
+                        newData[i][k] = fn.mkBrush(spot[k])
+                    elif k in ['x', 'y', 'size', 'symbol', 'brush', 'data']:
+                        newData[i][k] = spot[k]
+                    else:
+                        raise Exception("Unknown spot parameter: %s" % k)
+        elif 'y' in kargs:
+            newData['x'] = kargs['x']
+            newData['y'] = kargs['y']
+
+        if 'pxMode' in kargs:
+            self.setPxMode(kargs['pxMode'])
+        if 'antialias' in kargs:
+            self.opts['antialias'] = kargs['antialias']
+
+        ## Set any extra parameters provided in keyword arguments
+        for k in ['pen', 'brush', 'symbol', 'size']:
+            if k in kargs:
+                setMethod = getattr(self, 'set' + k[0].upper() + k[1:])
+                setMethod(kargs[k], update=False, dataSet=newData, mask=kargs.get('mask', None))
+
+        if 'data' in kargs:
+            self.setPointData(kargs['data'], dataSet=newData)
+
+        self.prepareGeometryChange()
+        self.informViewBoundsChanged()
+        self.bounds = [None, None]
+        self.invalidate()
+        self.updateSpots(newData)
+        self.sigPlotChanged.emit(self)
+
+    def invalidate(self):
+        ## clear any cached drawing state
+        self.picture = None
+        self.update()
+
+    def getData(self):
+        return self.data['x'], self.data['y']
+
+    def setPoints(self, *args, **kargs):
+        ##Deprecated; use setData
+        return self.setData(*args, **kargs)
+
+    def implements(self, interface=None):
+        ints = ['plotData']
+        if interface is None:
+            return ints
+        return interface in ints
+
+    def name(self):
+        return self.opts.get('name', None)
+
+    def setPen(self, *args, **kargs):
+        """Set the pen(s) used to draw the outline around each spot.
+        If a list or array is provided, then the pen for each spot will be set separately.
+        Otherwise, the arguments are passed to pg.mkPen and used as the default pen for
+        all spots which do not have a pen explicitly set."""
+        update = kargs.pop('update', True)
+        dataSet = kargs.pop('dataSet', self.data)
+
+        if len(args) == 1 and (isinstance(args[0], np.ndarray) or isinstance(args[0], list)):
+            pens = args[0]
+            if 'mask' in kargs and kargs['mask'] is not None:
+                pens = pens[kargs['mask']]
+            if len(pens) != len(dataSet):
+                raise Exception("Number of pens does not match number of points (%d != %d)" % (len(pens), len(dataSet)))
+            dataSet['pen'] = pens
+        else:
+            self.opts['pen'] = fn.mkPen(*args, **kargs)
+
+        dataSet['sourceRect'] = None
+        if update:
+            self.updateSpots(dataSet)
+
+    def setBrush(self, *args, **kargs):
+        """Set the brush(es) used to fill the interior of each spot.
+        If a list or array is provided, then the brush for each spot will be set separately.
+        Otherwise, the arguments are passed to pg.mkBrush and used as the default brush for
+        all spots which do not have a brush explicitly set."""
+        update = kargs.pop('update', True)
+        dataSet = kargs.pop('dataSet', self.data)
+
+        if len(args) == 1 and (isinstance(args[0], np.ndarray) or isinstance(args[0], list)):
+            brushes = args[0]
+            if 'mask' in kargs and kargs['mask'] is not None:
+                brushes = brushes[kargs['mask']]
+            if len(brushes) != len(dataSet):
+                raise Exception("Number of brushes does not match number of points (%d != %d)" % (len(brushes), len(dataSet)))
+            dataSet['brush'] = brushes
+        else:
+            self.opts['brush'] = fn.mkBrush(*args, **kargs)
+            #self._spotPixmap = None
+
+        dataSet['sourceRect'] = None
+        if update:
+            self.updateSpots(dataSet)
+
+    def setSymbol(self, symbol, update=True, dataSet=None, mask=None):
+        """Set the symbol(s) used to draw each spot.
+        If a list or array is provided, then the symbol for each spot will be set separately.
+        Otherwise, the argument will be used as the default symbol for
+        all spots which do not have a symbol explicitly set."""
+        if dataSet is None:
+            dataSet = self.data
+
+        if isinstance(symbol, np.ndarray) or isinstance(symbol, list):
+            symbols = symbol
+            if mask is not None:
+                symbols = symbols[mask]
+            if len(symbols) != len(dataSet):
+                raise Exception("Number of symbols does not match number of points (%d != %d)" % (len(symbols), len(dataSet)))
+            dataSet['symbol'] = symbols
+        else:
+            self.opts['symbol'] = symbol
+            self._spotPixmap = None
+
+        dataSet['sourceRect'] = None
+        if update:
+            self.updateSpots(dataSet)
+
+    def setSize(self, size, update=True, dataSet=None, mask=None):
+        """Set the size(s) used to draw each spot.
+        If a list or array is provided, then the size for each spot will be set separately.
+        Otherwise, the argument will be used as the default size for
+        all spots which do not have a size explicitly set."""
+        if dataSet is None:
+            dataSet = self.data
+
+        if isinstance(size, np.ndarray) or isinstance(size, list):
+            sizes = size
+            if mask is not None:
+                sizes = sizes[mask]
+            if len(sizes) != len(dataSet):
+                raise Exception("Number of sizes does not match number of points (%d != %d)" % (len(sizes), len(dataSet)))
+            dataSet['size'] = sizes
+        else:
+            self.opts['size'] = size
+            self._spotPixmap = None
+
+        dataSet['sourceRect'] = None
+        if update:
+            self.updateSpots(dataSet)
+
+    def setPointData(self, data, dataSet=None, mask=None):
+        if dataSet is None:
+            dataSet = self.data
+
+        if isinstance(data, np.ndarray) or isinstance(data, list):
+            if mask is not None:
+                data = data[mask]
+            if len(data) != len(dataSet):
+                raise Exception("Length of meta data does not match number of points (%d != %d)" % (len(data), len(dataSet)))
+
+        ## Bug: If data is a numpy record array, then items from that array must be copied to dataSet one at a time.
+        ## (otherwise they are converted to tuples and thus lose their field names.
+        if isinstance(data, np.ndarray) and (data.dtype.fields is not None)and len(data.dtype.fields) > 1:
+            for i, rec in enumerate(data):
+                dataSet['data'][i] = rec
+        else:
+            dataSet['data'] = data
+
+    def setPxMode(self, mode):
+        if self.opts['pxMode'] == mode:
+            return
+
+        self.opts['pxMode'] = mode
+        self.invalidate()
+
+    def updateSpots(self, dataSet=None):
+        if dataSet is None:
+            dataSet = self.data
+
+        invalidate = False
+        if self.opts['pxMode']:
+            mask = np.equal(dataSet['sourceRect'], None)
+            if np.any(mask):
+                invalidate = True
+                opts = self.getSpotOpts(dataSet[mask])
+                sourceRect = self.fragmentAtlas.getSymbolCoords(opts)
+                dataSet['sourceRect'][mask] = sourceRect
+
+            self.fragmentAtlas.getAtlas() # generate atlas so source widths are available.
+
+            dataSet['width'] = np.array(list(imap(QtCore.QRectF.width, dataSet['sourceRect'])))/2
+            dataSet['targetRect'] = None
+            self._maxSpotPxWidth = self.fragmentAtlas.max_width
+        else:
+            self._maxSpotWidth = 0
+            self._maxSpotPxWidth = 0
+            self.measureSpotSizes(dataSet)
+
+        if invalidate:
+            self.invalidate()
+
+    def getSpotOpts(self, recs, scale=1.0):
+        if recs.ndim == 0:
+            rec = recs
+            symbol = rec['symbol']
+            if symbol is None:
+                symbol = self.opts['symbol']
+            size = rec['size']
+            if size < 0:
+                size = self.opts['size']
+            pen = rec['pen']
+            if pen is None:
+                pen = self.opts['pen']
+            brush = rec['brush']
+            if brush is None:
+                brush = self.opts['brush']
+            return (symbol, size*scale, fn.mkPen(pen), fn.mkBrush(brush))
+        else:
+            recs = recs.copy()
+            recs['symbol'][np.equal(recs['symbol'], None)] = self.opts['symbol']
+            recs['size'][np.equal(recs['size'], -1)] = self.opts['size']
+            recs['size'] *= scale
+            recs['pen'][np.equal(recs['pen'], None)] = fn.mkPen(self.opts['pen'])
+            recs['brush'][np.equal(recs['brush'], None)] = fn.mkBrush(self.opts['brush'])
+            return recs
+
+
+
+    def measureSpotSizes(self, dataSet):
+        for rec in dataSet:
+            ## keep track of the maximum spot size and pixel size
+            symbol, size, pen, brush = self.getSpotOpts(rec)
+            width = 0
+            pxWidth = 0
+            if self.opts['pxMode']:
+                pxWidth = size + pen.widthF()
+            else:
+                width = size
+                if pen.isCosmetic():
+                    pxWidth += pen.widthF()
+                else:
+                    width += pen.widthF()
+            self._maxSpotWidth = max(self._maxSpotWidth, width)
+            self._maxSpotPxWidth = max(self._maxSpotPxWidth, pxWidth)
+        self.bounds = [None, None]
+
+
+    def clear(self):
+        """Remove all spots from the scatter plot"""
+        #self.clearItems()
+        self.data = np.empty(0, dtype=self.data.dtype)
+        self.bounds = [None, None]
+        self.invalidate()
+
+    def dataBounds(self, ax, frac=1.0, orthoRange=None):
+        if frac >= 1.0 and orthoRange is None and self.bounds[ax] is not None:
+            return self.bounds[ax]
+
+        #self.prepareGeometryChange()
+        if self.data is None or len(self.data) == 0:
+            return (None, None)
+
+        if ax == 0:
+            d = self.data['x']
+            d2 = self.data['y']
+        elif ax == 1:
+            d = self.data['y']
+            d2 = self.data['x']
+
+        if orthoRange is not None:
+            mask = (d2 >= orthoRange[0]) * (d2 <= orthoRange[1])
+            d = d[mask]
+            d2 = d2[mask]
+
+        if frac >= 1.0:
+            self.bounds[ax] = (np.nanmin(d) - self._maxSpotWidth*0.7072, np.nanmax(d) + self._maxSpotWidth*0.7072)
+            return self.bounds[ax]
+        elif frac <= 0.0:
+            raise Exception("Value for parameter 'frac' must be > 0. (got %s)" % str(frac))
+        else:
+            mask = np.isfinite(d)
+            d = d[mask]
+            return np.percentile(d, [50 * (1 - frac), 50 * (1 + frac)])
+
+    def pixelPadding(self):
+        return self._maxSpotPxWidth*0.7072
+
+    def boundingRect(self):
+        (xmn, xmx) = self.dataBounds(ax=0)
+        (ymn, ymx) = self.dataBounds(ax=1)
+        if xmn is None or xmx is None:
+            xmn = 0
+            xmx = 0
+        if ymn is None or ymx is None:
+            ymn = 0
+            ymx = 0
+
+        px = py = 0.0
+        pxPad = self.pixelPadding()
+        if pxPad > 0:
+            # determine length of pixel in local x, y directions
+            px, py = self.pixelVectors()
+            try:
+                px = 0 if px is None else px.length()
+            except OverflowError:
+                px = 0
+            try:
+                py = 0 if py is None else py.length()
+            except OverflowError:
+                py = 0
+
+            # return bounds expanded by pixel size
+            px *= pxPad
+            py *= pxPad
+        return QtCore.QRectF(xmn-px, ymn-py, (2*px)+xmx-xmn, (2*py)+ymx-ymn)
+
+    def viewTransformChanged(self):
+        self.prepareGeometryChange()
+        GraphicsObject.viewTransformChanged(self)
+        self.bounds = [None, None]
+        self.data['targetRect'] = None
+
+    def setExportMode(self, *args, **kwds):
+        GraphicsObject.setExportMode(self, *args, **kwds)
+        self.invalidate()
+
+
+    def mapPointsToDevice(self, pts):
+        # Map point locations to device
+        tr = self.deviceTransform()
+        if tr is None:
+            return None
+
+        #pts = np.empty((2,len(self.data['x'])))
+        #pts[0] = self.data['x']
+        #pts[1] = self.data['y']
+        pts = fn.transformCoordinates(tr, pts)
+        pts -= self.data['width']
+        pts = np.clip(pts, -2**30, 2**30) ## prevent Qt segmentation fault.
+
+        return pts
+
+    def getViewMask(self, pts):
+        # Return bool mask indicating all points that are within viewbox
+        # pts is expressed in *device coordiantes*
+        vb = self.getViewBox()
+        if vb is None:
+            return None
+        viewBounds = vb.mapRectToDevice(vb.boundingRect())
+        w = self.data['width']
+        mask = ((pts[0] + w > viewBounds.left()) &
+                (pts[0] - w < viewBounds.right()) &
+                (pts[1] + w > viewBounds.top()) &
+                (pts[1] - w < viewBounds.bottom())) ## remove out of view points
+        return mask
+
+
+    @debug.warnOnException  ## raising an exception here causes crash
+    def paint(self, p, *args):
+
+        #p.setPen(fn.mkPen('r'))
+        #p.drawRect(self.boundingRect())
+
+        if self._exportOpts is not False:
+            aa = self._exportOpts.get('antialias', True)
+            scale = self._exportOpts.get('resolutionScale', 1.0)  ## exporting to image; pixel resolution may have changed
+        else:
+            aa = self.opts['antialias']
+            scale = 1.0
+
+        if self.opts['pxMode'] is True:
+            p.resetTransform()
+
+            # Map point coordinates to device
+            pts = np.vstack([self.data['x'], self.data['y']])
+            pts = self.mapPointsToDevice(pts)
+            if pts is None:
+                return
+
+            # Cull points that are outside view
+            viewMask = self.getViewMask(pts)
+            #pts = pts[:,mask]
+            #data = self.data[mask]
+
+            if self.opts['useCache'] and self._exportOpts is False:
+                # Draw symbols from pre-rendered atlas
+                atlas = self.fragmentAtlas.getAtlas()
+
+                # Update targetRects if necessary
+                updateMask = viewMask & np.equal(self.data['targetRect'], None)
+                if np.any(updateMask):
+                    updatePts = pts[:,updateMask]
+                    width = self.data[updateMask]['width']*2
+                    self.data['targetRect'][updateMask] = list(imap(QtCore.QRectF, updatePts[0,:], updatePts[1,:], width, width))
+
+                data = self.data[viewMask]
+                if USE_PYSIDE or USE_PYQT5:
+                    list(imap(p.drawPixmap, data['targetRect'], repeat(atlas), data['sourceRect']))
+                else:
+                    p.drawPixmapFragments(data['targetRect'].tolist(), data['sourceRect'].tolist(), atlas)
+            else:
+                # render each symbol individually
+                p.setRenderHint(p.Antialiasing, aa)
+
+                data = self.data[viewMask]
+                pts = pts[:,viewMask]
+                for i, rec in enumerate(data):
+                    p.resetTransform()
+                    p.translate(pts[0,i] + rec['width'], pts[1,i] + rec['width'])
+                    drawSymbol(p, *self.getSpotOpts(rec, scale))
+        else:
+            if self.picture is None:
+                self.picture = QtGui.QPicture()
+                p2 = QtGui.QPainter(self.picture)
+                for rec in self.data:
+                    if scale != 1.0:
+                        rec = rec.copy()
+                        rec['size'] *= scale
+                    p2.resetTransform()
+                    p2.translate(rec['x'], rec['y'])
+                    drawSymbol(p2, *self.getSpotOpts(rec, scale))
+                p2.end()
+
+            p.setRenderHint(p.Antialiasing, aa)
+            self.picture.play(p)
+
+    def points(self):
+        for rec in self.data:
+            if rec['item'] is None:
+                rec['item'] = SpotItem(rec, self)
+        return self.data['item']
+
+    def pointsAt(self, pos):
+        x = pos.x()
+        y = pos.y()
+        pw = self.pixelWidth()
+        ph = self.pixelHeight()
+        pts = []
+        for s in self.points():
+            sp = s.pos()
+            ss = s.size()
+            sx = sp.x()
+            sy = sp.y()
+            s2x = s2y = ss * 0.5
+            if self.opts['pxMode']:
+                s2x *= pw
+                s2y *= ph
+            if x > sx-s2x and x < sx+s2x and y > sy-s2y and y < sy+s2y:
+                pts.append(s)
+                #print "HIT:", x, y, sx, sy, s2x, s2y
+            #else:
+                #print "No hit:", (x, y), (sx, sy)
+                #print "       ", (sx-s2x, sy-s2y), (sx+s2x, sy+s2y)
+        return pts[::-1]
+
+
+    def mouseClickEvent(self, ev):
+        if ev.button() == QtCore.Qt.LeftButton:
+            pts = self.pointsAt(ev.pos())
+            if len(pts) > 0:
+                self.ptsClicked = pts
+                self.sigClicked.emit(self, self.ptsClicked)
+                ev.accept()
+            else:
+                #print "no spots"
+                ev.ignore()
+        else:
+            ev.ignore()
+
+
+class SpotItem(object):
+    """
+    Class referring to individual spots in a scatter plot.
+    These can be retrieved by calling ScatterPlotItem.points() or
+    by connecting to the ScatterPlotItem's click signals.
+    """
+
+    def __init__(self, data, plot):
+        #GraphicsItem.__init__(self, register=False)
+        self._data = data
+        self._plot = plot
+        #self.setParentItem(plot)
+        #self.setPos(QtCore.QPointF(data['x'], data['y']))
+        #self.updateItem()
+
+    def data(self):
+        """Return the user data associated with this spot."""
+        return self._data['data']
+
+    def size(self):
+        """Return the size of this spot.
+        If the spot has no explicit size set, then return the ScatterPlotItem's default size instead."""
+        if self._data['size'] == -1:
+            return self._plot.opts['size']
+        else:
+            return self._data['size']
+
+    def pos(self):
+        return Point(self._data['x'], self._data['y'])
+
+    def viewPos(self):
+        return self._plot.mapToView(self.pos())
+
+    def setSize(self, size):
+        """Set the size of this spot.
+        If the size is set to -1, then the ScatterPlotItem's default size
+        will be used instead."""
+        self._data['size'] = size
+        self.updateItem()
+
+    def symbol(self):
+        """Return the symbol of this spot.
+        If the spot has no explicit symbol set, then return the ScatterPlotItem's default symbol instead.
+        """
+        symbol = self._data['symbol']
+        if symbol is None:
+            symbol = self._plot.opts['symbol']
+        try:
+            n = int(symbol)
+            symbol = list(Symbols.keys())[n % len(Symbols)]
+        except:
+            pass
+        return symbol
+
+    def setSymbol(self, symbol):
+        """Set the symbol for this spot.
+        If the symbol is set to '', then the ScatterPlotItem's default symbol will be used instead."""
+        self._data['symbol'] = symbol
+        self.updateItem()
+
+    def pen(self):
+        pen = self._data['pen']
+        if pen is None:
+            pen = self._plot.opts['pen']
+        return fn.mkPen(pen)
+
+    def setPen(self, *args, **kargs):
+        """Set the outline pen for this spot"""
+        pen = fn.mkPen(*args, **kargs)
+        self._data['pen'] = pen
+        self.updateItem()
+
+    def resetPen(self):
+        """Remove the pen set for this spot; the scatter plot's default pen will be used instead."""
+        self._data['pen'] = None  ## Note this is NOT the same as calling setPen(None)
+        self.updateItem()
+
+    def brush(self):
+        brush = self._data['brush']
+        if brush is None:
+            brush = self._plot.opts['brush']
+        return fn.mkBrush(brush)
+
+    def setBrush(self, *args, **kargs):
+        """Set the fill brush for this spot"""
+        brush = fn.mkBrush(*args, **kargs)
+        self._data['brush'] = brush
+        self.updateItem()
+
+    def resetBrush(self):
+        """Remove the brush set for this spot; the scatter plot's default brush will be used instead."""
+        self._data['brush'] = None  ## Note this is NOT the same as calling setBrush(None)
+        self.updateItem()
+
+    def setData(self, data):
+        """Set the user-data associated with this spot"""
+        self._data['data'] = data
+
+    def updateItem(self):
+        self._data['sourceRect'] = None
+        self._plot.updateSpots(self._data.reshape(1))
+        self._plot.invalidate()
+
+#class PixmapSpotItem(SpotItem, QtGui.QGraphicsPixmapItem):
+    #def __init__(self, data, plot):
+        #QtGui.QGraphicsPixmapItem.__init__(self)
+        #self.setFlags(self.flags() | self.ItemIgnoresTransformations)
+        #SpotItem.__init__(self, data, plot)
+
+    #def setPixmap(self, pixmap):
+        #QtGui.QGraphicsPixmapItem.setPixmap(self, pixmap)
+        #self.setOffset(-pixmap.width()/2.+0.5, -pixmap.height()/2.)
+
+    #def updateItem(self):
+        #symbolOpts = (self._data['pen'], self._data['brush'], self._data['size'], self._data['symbol'])
+
+        ### If all symbol options are default, use default pixmap
+        #if symbolOpts == (None, None, -1, ''):
+            #pixmap = self._plot.defaultSpotPixmap()
+        #else:
+            #pixmap = makeSymbolPixmap(size=self.size(), pen=self.pen(), brush=self.brush(), symbol=self.symbol())
+        #self.setPixmap(pixmap)
+
+
+#class PathSpotItem(SpotItem, QtGui.QGraphicsPathItem):
+    #def __init__(self, data, plot):
+        #QtGui.QGraphicsPathItem.__init__(self)
+        #SpotItem.__init__(self, data, plot)
+
+    #def updateItem(self):
+        #QtGui.QGraphicsPathItem.setPath(self, Symbols[self.symbol()])
+        #QtGui.QGraphicsPathItem.setPen(self, self.pen())
+        #QtGui.QGraphicsPathItem.setBrush(self, self.brush())
+        #size = self.size()
+        #self.resetTransform()
+        #self.scale(size, size)
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/TextItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/TextItem.py
new file mode 100644
index 00000000..b2587ded
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/TextItem.py
@@ -0,0 +1,203 @@
+import numpy as np
+from ..Qt import QtCore, QtGui
+from ..Point import Point
+from .. import functions as fn
+from .GraphicsObject import GraphicsObject
+
+
+class TextItem(GraphicsObject):
+    """
+    GraphicsItem displaying unscaled text (the text will always appear normal even inside a scaled ViewBox). 
+    """
+    def __init__(self, text='', color=(200,200,200), html=None, anchor=(0,0),
+                 border=None, fill=None, angle=0, rotateAxis=None):
+        """
+        ==============  =================================================================================
+        **Arguments:**
+        *text*          The text to display
+        *color*         The color of the text (any format accepted by pg.mkColor)
+        *html*          If specified, this overrides both *text* and *color*
+        *anchor*        A QPointF or (x,y) sequence indicating what region of the text box will
+                        be anchored to the item's position. A value of (0,0) sets the upper-left corner
+                        of the text box to be at the position specified by setPos(), while a value of (1,1)
+                        sets the lower-right corner.
+        *border*        A pen to use when drawing the border
+        *fill*          A brush to use when filling within the border
+        *angle*         Angle in degrees to rotate text. Default is 0; text will be displayed upright.
+        *rotateAxis*    If None, then a text angle of 0 always points along the +x axis of the scene.
+                        If a QPointF or (x,y) sequence is given, then it represents a vector direction
+                        in the parent's coordinate system that the 0-degree line will be aligned to. This
+                        Allows text to follow both the position and orientation of its parent while still
+                        discarding any scale and shear factors.
+        ==============  =================================================================================
+
+
+        The effects of the `rotateAxis` and `angle` arguments are added independently. So for example:
+
+        * rotateAxis=None, angle=0 -> normal horizontal text
+        * rotateAxis=None, angle=90 -> normal vertical text
+        * rotateAxis=(1, 0), angle=0 -> text aligned with x axis of its parent
+        * rotateAxis=(0, 1), angle=0 -> text aligned with y axis of its parent
+        * rotateAxis=(1, 0), angle=90 -> text orthogonal to x axis of its parent        
+        """
+                     
+        self.anchor = Point(anchor)
+        self.rotateAxis = None if rotateAxis is None else Point(rotateAxis)
+        #self.angle = 0
+        GraphicsObject.__init__(self)
+        self.textItem = QtGui.QGraphicsTextItem()
+        self.textItem.setParentItem(self)
+        self._lastTransform = None
+        self._lastScene = None
+        self._bounds = QtCore.QRectF()
+        if html is None:
+            self.setColor(color)
+            self.setText(text)
+        else:
+            self.setHtml(html)
+        self.fill = fn.mkBrush(fill)
+        self.border = fn.mkPen(border)
+        self.setAngle(angle)
+
+    def setText(self, text, color=None):
+        """
+        Set the text of this item. 
+        
+        This method sets the plain text of the item; see also setHtml().
+        """
+        if color is not None:
+            self.setColor(color)
+        self.textItem.setPlainText(text)
+        self.updateTextPos()
+        
+    def setPlainText(self, *args):
+        """
+        Set the plain text to be rendered by this item. 
+        
+        See QtGui.QGraphicsTextItem.setPlainText().
+        """
+        self.textItem.setPlainText(*args)
+        self.updateTextPos()
+        
+    def setHtml(self, *args):
+        """
+        Set the HTML code to be rendered by this item. 
+        
+        See QtGui.QGraphicsTextItem.setHtml().
+        """
+        self.textItem.setHtml(*args)
+        self.updateTextPos()
+        
+    def setTextWidth(self, *args):
+        """
+        Set the width of the text.
+        
+        If the text requires more space than the width limit, then it will be
+        wrapped into multiple lines.
+        
+        See QtGui.QGraphicsTextItem.setTextWidth().
+        """
+        self.textItem.setTextWidth(*args)
+        self.updateTextPos()
+        
+    def setFont(self, *args):
+        """
+        Set the font for this text. 
+        
+        See QtGui.QGraphicsTextItem.setFont().
+        """
+        self.textItem.setFont(*args)
+        self.updateTextPos()
+        
+    def setAngle(self, angle):
+        self.angle = angle
+        self.updateTransform()
+        
+    def setAnchor(self, anchor):
+        self.anchor = Point(anchor)
+        self.updateTextPos()
+
+    def setColor(self, color):
+        """
+        Set the color for this text.
+        
+        See QtGui.QGraphicsItem.setDefaultTextColor().
+        """
+        self.color = fn.mkColor(color)
+        self.textItem.setDefaultTextColor(self.color)
+        
+    def updateTextPos(self):
+        # update text position to obey anchor
+        r = self.textItem.boundingRect()
+        tl = self.textItem.mapToParent(r.topLeft())
+        br = self.textItem.mapToParent(r.bottomRight())
+        offset = (br - tl) * self.anchor
+        self.textItem.setPos(-offset)
+        
+        ### Needed to maintain font size when rendering to image with increased resolution
+        #self.textItem.resetTransform()
+        ##self.textItem.rotate(self.angle)
+        #if self._exportOpts is not False and 'resolutionScale' in self._exportOpts:
+            #s = self._exportOpts['resolutionScale']
+            #self.textItem.scale(s, s)
+        
+    def boundingRect(self):
+        return self.textItem.mapToParent(self.textItem.boundingRect()).boundingRect()
+
+    def viewTransformChanged(self):
+        # called whenever view transform has changed.
+        # Do this here to avoid double-updates when view changes.
+        self.updateTransform()
+        
+    def paint(self, p, *args):
+        # this is not ideal because it requires the transform to be updated at every draw.
+        # ideally, we would have a sceneTransformChanged event to react to..
+        s = self.scene()
+        ls = self._lastScene
+        if s is not ls:
+            if ls is not None:
+                ls.sigPrepareForPaint.disconnect(self.updateTransform)
+            self._lastScene = s
+            if s is not None:
+                s.sigPrepareForPaint.connect(self.updateTransform)
+            self.updateTransform()
+            p.setTransform(self.sceneTransform())
+        
+        if self.border.style() != QtCore.Qt.NoPen or self.fill.style() != QtCore.Qt.NoBrush:
+            p.setPen(self.border)
+            p.setBrush(self.fill)
+            p.setRenderHint(p.Antialiasing, True)
+            p.drawPolygon(self.textItem.mapToParent(self.textItem.boundingRect()))
+        
+    def updateTransform(self):
+        # update transform such that this item has the correct orientation
+        # and scaling relative to the scene, but inherits its position from its
+        # parent.
+        # This is similar to setting ItemIgnoresTransformations = True, but 
+        # does not break mouse interaction and collision detection.
+        p = self.parentItem()
+        if p is None:
+            pt = QtGui.QTransform()
+        else:
+            pt = p.sceneTransform()
+        
+        if pt == self._lastTransform:
+            return
+
+        t = pt.inverted()[0]
+        # reset translation
+        t.setMatrix(t.m11(), t.m12(), t.m13(), t.m21(), t.m22(), t.m23(), 0, 0, t.m33())
+        
+        # apply rotation
+        angle = -self.angle
+        if self.rotateAxis is not None:
+            d = pt.map(self.rotateAxis) - pt.map(Point(0, 0))
+            a = np.arctan2(d.y(), d.x()) * 180 / np.pi
+            angle += a
+        t.rotate(angle)
+        
+        self.setTransform(t)
+        
+        self._lastTransform = pt
+        
+        self.updateTextPos()
diff --git a/libs/pyqtgraph/graphicsItems/UIGraphicsItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/UIGraphicsItem.py
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/UIGraphicsItem.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/UIGraphicsItem.py
diff --git a/libs/pyqtgraph/graphicsItems/VTickGroup.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/VTickGroup.py
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/VTickGroup.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/VTickGroup.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ViewBox/ViewBox.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ViewBox/ViewBox.py
new file mode 100644
index 00000000..4cab8662
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ViewBox/ViewBox.py
@@ -0,0 +1,1769 @@
+import weakref
+import sys
+from copy import deepcopy
+import numpy as np
+from ...Qt import QtGui, QtCore
+from ...python2_3 import sortList, basestring, cmp
+from ...Point import Point
+from ... import functions as fn
+from .. ItemGroup import ItemGroup
+from .. GraphicsWidget import GraphicsWidget
+from ... import debug as debug
+from ... import getConfigOption
+from ...Qt import isQObjectAlive
+
+__all__ = ['ViewBox']
+
+class WeakList(object):
+
+    def __init__(self):
+        self._items = []
+
+    def append(self, obj):
+        #Add backwards to iterate backwards (to make iterating more efficient on removal).
+        self._items.insert(0, weakref.ref(obj))
+
+    def __iter__(self):
+        i = len(self._items)-1
+        while i >= 0:
+            ref = self._items[i]
+            d = ref()
+            if d is None:
+                del self._items[i]
+            else:
+                yield d
+            i -= 1
+
+class ChildGroup(ItemGroup):
+    
+    def __init__(self, parent):
+        ItemGroup.__init__(self, parent)
+        
+        # Used as callback to inform ViewBox when items are added/removed from 
+        # the group. 
+        # Note 1: We would prefer to override itemChange directly on the 
+        #         ViewBox, but this causes crashes on PySide.
+        # Note 2: We might also like to use a signal rather than this callback
+        #         mechanism, but this causes a different PySide crash.        
+        self.itemsChangedListeners = WeakList()
+ 
+        # excempt from telling view when transform changes
+        self._GraphicsObject__inform_view_on_change = False
+    
+    def itemChange(self, change, value):
+        ret = ItemGroup.itemChange(self, change, value)
+        if change == self.ItemChildAddedChange or change == self.ItemChildRemovedChange:
+            try:
+                itemsChangedListeners = self.itemsChangedListeners
+            except AttributeError:
+                # It's possible that the attribute was already collected when the itemChange happened
+                # (if it was triggered during the gc of the object).
+                pass
+            else:
+                for listener in itemsChangedListeners:
+                    listener.itemsChanged()
+        return ret
+
+
+class ViewBox(GraphicsWidget):
+    """
+    **Bases:** :class:`GraphicsWidget <pyqtgraph.GraphicsWidget>`
+    
+    Box that allows internal scaling/panning of children by mouse drag. 
+    This class is usually created automatically as part of a :class:`PlotItem <pyqtgraph.PlotItem>` or :class:`Canvas <pyqtgraph.canvas.Canvas>` or with :func:`GraphicsLayout.addViewBox() <pyqtgraph.GraphicsLayout.addViewBox>`.
+    
+    Features:
+    
+    * Scaling contents by mouse or auto-scale when contents change
+    * View linking--multiple views display the same data ranges
+    * Configurable by context menu
+    * Item coordinate mapping methods
+    
+    """
+    
+    sigYRangeChanged = QtCore.Signal(object, object)
+    sigXRangeChanged = QtCore.Signal(object, object)
+    sigRangeChangedManually = QtCore.Signal(object)
+    sigRangeChanged = QtCore.Signal(object, object)
+    #sigActionPositionChanged = QtCore.Signal(object)
+    sigStateChanged = QtCore.Signal(object)
+    sigTransformChanged = QtCore.Signal(object)
+    sigResized = QtCore.Signal(object)
+    
+    ## mouse modes
+    PanMode = 3
+    RectMode = 1
+    
+    ## axes
+    XAxis = 0
+    YAxis = 1
+    XYAxes = 2
+    
+    ## for linking views together
+    NamedViews = weakref.WeakValueDictionary()   # name: ViewBox
+    AllViews = weakref.WeakKeyDictionary()       # ViewBox: None
+    
+    def __init__(self, parent=None, border=None, lockAspect=False, enableMouse=True, invertY=False, enableMenu=True, name=None, invertX=False):
+        """
+        ==============  =============================================================
+        **Arguments:**
+        *parent*        (QGraphicsWidget) Optional parent widget
+        *border*        (QPen) Do draw a border around the view, give any
+                        single argument accepted by :func:`mkPen <pyqtgraph.mkPen>`
+        *lockAspect*    (False or float) The aspect ratio to lock the view
+                        coorinates to. (or False to allow the ratio to change)
+        *enableMouse*   (bool) Whether mouse can be used to scale/pan the view
+        *invertY*       (bool) See :func:`invertY <pyqtgraph.ViewBox.invertY>`
+        *invertX*       (bool) See :func:`invertX <pyqtgraph.ViewBox.invertX>`
+        *enableMenu*    (bool) Whether to display a context menu when 
+                        right-clicking on the ViewBox background.
+        *name*          (str) Used to register this ViewBox so that it appears
+                        in the "Link axis" dropdown inside other ViewBox
+                        context menus. This allows the user to manually link
+                        the axes of any other view to this one. 
+        ==============  =============================================================
+        """
+        
+        GraphicsWidget.__init__(self, parent)
+        self.name = None
+        self.linksBlocked = False
+        self.addedItems = []
+        #self.gView = view
+        #self.showGrid = showGrid
+        self._matrixNeedsUpdate = True  ## indicates that range has changed, but matrix update was deferred
+        self._autoRangeNeedsUpdate = True ## indicates auto-range needs to be recomputed.
+
+        self._lastScene = None  ## stores reference to the last known scene this view was a part of.
+        
+        self.state = {
+            
+            ## separating targetRange and viewRange allows the view to be resized
+            ## while keeping all previously viewed contents visible
+            'targetRange': [[0,1], [0,1]],   ## child coord. range visible [[xmin, xmax], [ymin, ymax]]
+            'viewRange': [[0,1], [0,1]],     ## actual range viewed
+        
+            'yInverted': invertY,
+            'xInverted': invertX,
+            'aspectLocked': False,    ## False if aspect is unlocked, otherwise float specifies the locked ratio.
+            'autoRange': [True, True],  ## False if auto range is disabled, 
+                                          ## otherwise float gives the fraction of data that is visible
+            'autoPan': [False, False],         ## whether to only pan (do not change scaling) when auto-range is enabled
+            'autoVisibleOnly': [False, False], ## whether to auto-range only to the visible portion of a plot 
+            'linkedViews': [None, None],  ## may be None, "viewName", or weakref.ref(view)
+                                          ## a name string indicates that the view *should* link to another, but no view with that name exists yet.
+            
+            'mouseEnabled': [enableMouse, enableMouse],
+            'mouseMode': ViewBox.PanMode if getConfigOption('leftButtonPan') else ViewBox.RectMode,  
+            'enableMenu': enableMenu,
+            'wheelScaleFactor': -1.0 / 8.0,
+
+            'background': None,
+            
+            # Limits
+            'limits': {
+                'xLimits': [None, None],   # Maximum and minimum visible X values 
+                'yLimits': [None, None],   # Maximum and minimum visible Y values  
+                'xRange': [None, None],   # Maximum and minimum X range
+                'yRange': [None, None],   # Maximum and minimum Y range 
+                }
+            
+        }
+        self._updatingRange = False  ## Used to break recursive loops. See updateAutoRange.
+        self._itemBoundsCache = weakref.WeakKeyDictionary()
+        
+        self.locateGroup = None  ## items displayed when using ViewBox.locate(item)
+        
+        self.setFlag(self.ItemClipsChildrenToShape)
+        self.setFlag(self.ItemIsFocusable, True)  ## so we can receive key presses
+        
+        ## childGroup is required so that ViewBox has local coordinates similar to device coordinates.
+        ## this is a workaround for a Qt + OpenGL bug that causes improper clipping
+        ## https://bugreports.qt.nokia.com/browse/QTBUG-23723
+        self.childGroup = ChildGroup(self)
+        self.childGroup.itemsChangedListeners.append(self)
+        
+        self.background = QtGui.QGraphicsRectItem(self.rect())
+        self.background.setParentItem(self)
+        self.background.setZValue(-1e6)
+        self.background.setPen(fn.mkPen(None))
+        self.updateBackground()
+        
+        #self.useLeftButtonPan = pyqtgraph.getConfigOption('leftButtonPan') # normally use left button to pan
+        # this also enables capture of keyPressEvents.
+        
+        ## Make scale box that is shown when dragging on the view
+        self.rbScaleBox = QtGui.QGraphicsRectItem(0, 0, 1, 1)
+        self.rbScaleBox.setPen(fn.mkPen((255,255,100), width=1))
+        self.rbScaleBox.setBrush(fn.mkBrush(255,255,0,100))
+        self.rbScaleBox.setZValue(1e9)
+        self.rbScaleBox.hide()
+        self.addItem(self.rbScaleBox, ignoreBounds=True)
+        
+        ## show target rect for debugging
+        self.target = QtGui.QGraphicsRectItem(0, 0, 1, 1)
+        self.target.setPen(fn.mkPen('r'))
+        self.target.setParentItem(self)
+        self.target.hide()
+        
+        self.axHistory = [] # maintain a history of zoom locations
+        self.axHistoryPointer = -1 # pointer into the history. Allows forward/backward movement, not just "undo"
+        
+        self.setZValue(-100)
+        self.setSizePolicy(QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding))
+        
+        self.setAspectLocked(lockAspect)
+        
+        self.border = fn.mkPen(border)
+        self.menu = ViewBoxMenu(self)
+        
+        self.register(name)
+        if name is None:
+            self.updateViewLists()
+        
+    def register(self, name):
+        """
+        Add this ViewBox to the registered list of views. 
+        
+        This allows users to manually link the axes of any other ViewBox to
+        this one. The specified *name* will appear in the drop-down lists for 
+        axis linking in the context menus of all other views.
+        
+        The same can be accomplished by initializing the ViewBox with the *name* attribute.
+        """
+        ViewBox.AllViews[self] = None
+        if self.name is not None:
+            del ViewBox.NamedViews[self.name]
+        self.name = name
+        if name is not None:
+            ViewBox.NamedViews[name] = self
+            ViewBox.updateAllViewLists()
+            sid = id(self)
+            self.destroyed.connect(lambda: ViewBox.forgetView(sid, name) if (ViewBox is not None and 'sid' in locals() and 'name' in locals()) else None)
+            #self.destroyed.connect(self.unregister)
+
+    def unregister(self):
+        """
+        Remove this ViewBox from the list of linkable views. (see :func:`register() <pyqtgraph.ViewBox.register>`)
+        """
+        del ViewBox.AllViews[self]
+        if self.name is not None:
+            del ViewBox.NamedViews[self.name]
+
+    def close(self):
+        self.clear()
+        self.unregister()
+
+    def implements(self, interface):
+        return interface == 'ViewBox'
+        
+    # removed due to https://bugreports.qt-project.org/browse/PYSIDE-86
+    #def itemChange(self, change, value):
+        ## Note: Calling QWidget.itemChange causes segv in python 3 + PyQt
+        ##ret = QtGui.QGraphicsItem.itemChange(self, change, value)
+        #ret = GraphicsWidget.itemChange(self, change, value)
+        #if change == self.ItemSceneChange:
+            #scene = self.scene()
+            #if scene is not None and hasattr(scene, 'sigPrepareForPaint'):
+                #scene.sigPrepareForPaint.disconnect(self.prepareForPaint)
+        #elif change == self.ItemSceneHasChanged:
+            #scene = self.scene()
+            #if scene is not None and hasattr(scene, 'sigPrepareForPaint'):
+                #scene.sigPrepareForPaint.connect(self.prepareForPaint)
+        #return ret
+        
+    def checkSceneChange(self):
+        # ViewBox needs to receive sigPrepareForPaint from its scene before 
+        # being painted. However, we have no way of being informed when the
+        # scene has changed in order to make this connection. The usual way
+        # to do this is via itemChange(), but bugs prevent this approach
+        # (see above). Instead, we simply check at every paint to see whether
+        # (the scene has changed.
+        scene = self.scene()
+        if scene == self._lastScene:
+            return
+        if self._lastScene is not None and hasattr(self.lastScene, 'sigPrepareForPaint'):
+            self._lastScene.sigPrepareForPaint.disconnect(self.prepareForPaint)
+        if scene is not None and hasattr(scene, 'sigPrepareForPaint'):
+            scene.sigPrepareForPaint.connect(self.prepareForPaint)
+        self.prepareForPaint()
+        self._lastScene = scene
+            
+            
+        
+
+    def prepareForPaint(self):
+        #autoRangeEnabled = (self.state['autoRange'][0] is not False) or (self.state['autoRange'][1] is not False)
+        # don't check whether auto range is enabled here--only check when setting dirty flag.
+        if self._autoRangeNeedsUpdate: # and autoRangeEnabled: 
+            self.updateAutoRange()
+        if self._matrixNeedsUpdate:
+            self.updateMatrix()
+        
+    def getState(self, copy=True):
+        """Return the current state of the ViewBox. 
+        Linked views are always converted to view names in the returned state."""
+        state = self.state.copy()
+        views = []
+        for v in state['linkedViews']:
+            if isinstance(v, weakref.ref):
+                v = v()
+            if v is None or isinstance(v, basestring):
+                views.append(v)
+            else:
+                views.append(v.name)
+        state['linkedViews'] = views
+        if copy:
+            return deepcopy(state)
+        else:
+            return state
+        
+    def setState(self, state):
+        """Restore the state of this ViewBox.
+        (see also getState)"""
+        state = state.copy()
+        self.setXLink(state['linkedViews'][0])
+        self.setYLink(state['linkedViews'][1])
+        del state['linkedViews']
+        
+        self.state.update(state)
+        #self.updateMatrix()
+        self.updateViewRange()
+        self.sigStateChanged.emit(self)
+
+    def setBackgroundColor(self, color):
+        """
+        Set the background color of the ViewBox.
+        
+        If color is None, then no background will be drawn.
+        
+        Added in version 0.9.9
+        """
+        self.background.setVisible(color is not None)
+        self.state['background'] = color
+        self.updateBackground()
+
+    def setMouseMode(self, mode):
+        """
+        Set the mouse interaction mode. *mode* must be either ViewBox.PanMode or ViewBox.RectMode.
+        In PanMode, the left mouse button pans the view and the right button scales.
+        In RectMode, the left button draws a rectangle which updates the visible region (this mode is more suitable for single-button mice)
+        """
+        if mode not in [ViewBox.PanMode, ViewBox.RectMode]:
+            raise Exception("Mode must be ViewBox.PanMode or ViewBox.RectMode")
+        self.state['mouseMode'] = mode
+        self.sigStateChanged.emit(self)
+
+    #def toggleLeftAction(self, act):  ## for backward compatibility
+        #if act.text() is 'pan':
+            #self.setLeftButtonAction('pan')
+        #elif act.text() is 'zoom':
+            #self.setLeftButtonAction('rect')
+
+    def setLeftButtonAction(self, mode='rect'):  ## for backward compatibility
+        if mode.lower() == 'rect':
+            self.setMouseMode(ViewBox.RectMode)
+        elif mode.lower() == 'pan':
+            self.setMouseMode(ViewBox.PanMode)
+        else:
+            raise Exception('graphicsItems:ViewBox:setLeftButtonAction: unknown mode = %s (Options are "pan" and "rect")' % mode)
+            
+    def innerSceneItem(self):
+        return self.childGroup
+    
+    def setMouseEnabled(self, x=None, y=None):
+        """
+        Set whether each axis is enabled for mouse interaction. *x*, *y* arguments must be True or False.
+        This allows the user to pan/scale one axis of the view while leaving the other axis unchanged.
+        """
+        if x is not None:
+            self.state['mouseEnabled'][0] = x
+        if y is not None:
+            self.state['mouseEnabled'][1] = y
+        self.sigStateChanged.emit(self)
+            
+    def mouseEnabled(self):
+        return self.state['mouseEnabled'][:]
+        
+    def setMenuEnabled(self, enableMenu=True):
+        self.state['enableMenu'] = enableMenu
+        self.sigStateChanged.emit(self)
+
+    def menuEnabled(self):
+        return self.state.get('enableMenu', True)       
+    
+    def addItem(self, item, ignoreBounds=False):
+        """
+        Add a QGraphicsItem to this view. The view will include this item when determining how to set its range
+        automatically unless *ignoreBounds* is True.
+        """
+        if item.zValue() < self.zValue():
+            item.setZValue(self.zValue()+1)
+        scene = self.scene()
+        if scene is not None and scene is not item.scene():
+            scene.addItem(item)  ## Necessary due to Qt bug: https://bugreports.qt-project.org/browse/QTBUG-18616
+        item.setParentItem(self.childGroup)
+        if not ignoreBounds:
+            self.addedItems.append(item)
+        self.updateAutoRange()
+        #print "addItem:", item, item.boundingRect()
+        
+    def removeItem(self, item):
+        """Remove an item from this view."""
+        try:
+            self.addedItems.remove(item)
+        except:
+            pass
+        self.scene().removeItem(item)
+        self.updateAutoRange()
+
+    def clear(self):
+        for i in self.addedItems[:]:
+            self.removeItem(i)
+        for ch in self.childGroup.childItems():
+            ch.setParentItem(None)
+        
+    def resizeEvent(self, ev):
+        self.linkedXChanged()
+        self.linkedYChanged()
+        self.updateAutoRange()
+        self.updateViewRange()
+        self._matrixNeedsUpdate = True
+        self.sigStateChanged.emit(self)
+        self.background.setRect(self.rect())
+        self.sigResized.emit(self)
+        
+    def viewRange(self):
+        """Return a the view's visible range as a list: [[xmin, xmax], [ymin, ymax]]"""
+        return [x[:] for x in self.state['viewRange']]  ## return copy
+
+    def viewRect(self):
+        """Return a QRectF bounding the region visible within the ViewBox"""
+        try:
+            vr0 = self.state['viewRange'][0]
+            vr1 = self.state['viewRange'][1]
+            return QtCore.QRectF(vr0[0], vr1[0], vr0[1]-vr0[0], vr1[1] - vr1[0])
+        except:
+            print("make qrectf failed:", self.state['viewRange'])
+            raise
+    
+    def targetRange(self):
+        return [x[:] for x in self.state['targetRange']]  ## return copy
+    
+    def targetRect(self):  
+        """
+        Return the region which has been requested to be visible. 
+        (this is not necessarily the same as the region that is *actually* visible--
+        resizing and aspect ratio constraints can cause targetRect() and viewRect() to differ)
+        """
+        try:
+            tr0 = self.state['targetRange'][0]
+            tr1 = self.state['targetRange'][1]
+            return QtCore.QRectF(tr0[0], tr1[0], tr0[1]-tr0[0], tr1[1] - tr1[0])
+        except:
+            print("make qrectf failed:", self.state['targetRange'])
+            raise
+
+    def _resetTarget(self):
+        # Reset target range to exactly match current view range.
+        # This is used during mouse interaction to prevent unpredictable
+        # behavior (because the user is unaware of targetRange).
+        if self.state['aspectLocked'] is False: # (interferes with aspect locking)
+            self.state['targetRange'] = [self.state['viewRange'][0][:], self.state['viewRange'][1][:]]
+
+    def setRange(self, rect=None, xRange=None, yRange=None, padding=None, update=True, disableAutoRange=True):
+        """
+        Set the visible range of the ViewBox.
+        Must specify at least one of *rect*, *xRange*, or *yRange*. 
+        
+        ================== =====================================================================
+        **Arguments:**
+        *rect*             (QRectF) The full range that should be visible in the view box.
+        *xRange*           (min,max) The range that should be visible along the x-axis.
+        *yRange*           (min,max) The range that should be visible along the y-axis.
+        *padding*          (float) Expand the view by a fraction of the requested range. 
+                           By default, this value is set between 0.02 and 0.1 depending on
+                           the size of the ViewBox.
+        *update*           (bool) If True, update the range of the ViewBox immediately. 
+                           Otherwise, the update is deferred until before the next render.
+        *disableAutoRange* (bool) If True, auto-ranging is diabled. Otherwise, it is left
+                           unchanged.
+        ================== =====================================================================
+        
+        """
+        #print self.name, "ViewBox.setRange", rect, xRange, yRange, padding
+        #import traceback
+        #traceback.print_stack()
+        
+        changes = {}   # axes
+        setRequested = [False, False]
+        
+        if rect is not None:
+            changes = {0: [rect.left(), rect.right()], 1: [rect.top(), rect.bottom()]}
+            setRequested = [True, True]
+        if xRange is not None:
+            changes[0] = xRange
+            setRequested[0] = True
+        if yRange is not None:
+            changes[1] = yRange
+            setRequested[1] = True
+
+        if len(changes) == 0:
+            print(rect)
+            raise Exception("Must specify at least one of rect, xRange, or yRange. (gave rect=%s)" % str(type(rect)))
+        
+        # Update axes one at a time
+        changed = [False, False]
+        for ax, range in changes.items():
+            mn = min(range)
+            mx = max(range)
+            
+            # If we requested 0 range, try to preserve previous scale. 
+            # Otherwise just pick an arbitrary scale.
+            if mn == mx:   
+                dy = self.state['viewRange'][ax][1] - self.state['viewRange'][ax][0]
+                if dy == 0:
+                    dy = 1
+                mn -= dy*0.5
+                mx += dy*0.5
+                xpad = 0.0
+                
+            # Make sure no nan/inf get through
+            if not all(np.isfinite([mn, mx])):
+                raise Exception("Cannot set range [%s, %s]" % (str(mn), str(mx)))
+            
+            # Apply padding
+            if padding is None:
+                xpad = self.suggestPadding(ax)
+            else:
+                xpad = padding
+            p = (mx-mn) * xpad
+            mn -= p
+            mx += p
+            
+            # Set target range
+            if self.state['targetRange'][ax] != [mn, mx]:
+                self.state['targetRange'][ax] = [mn, mx]
+                changed[ax] = True
+                
+        # Update viewRange to match targetRange as closely as possible while 
+        # accounting for aspect ratio constraint
+        lockX, lockY = setRequested
+        if lockX and lockY:
+            lockX = False
+            lockY = False
+        self.updateViewRange(lockX, lockY)
+            
+        # Disable auto-range for each axis that was requested to be set
+        if disableAutoRange:
+            xOff = False if setRequested[0] else None
+            yOff = False if setRequested[1] else None
+            self.enableAutoRange(x=xOff, y=yOff)
+            changed.append(True)
+
+        # If nothing has changed, we are done.
+        if any(changed):
+            #if update and self.matrixNeedsUpdate:
+                #self.updateMatrix(changed)
+            #return 
+        
+            self.sigStateChanged.emit(self)
+            
+            # Update target rect for debugging
+            if self.target.isVisible():
+                self.target.setRect(self.mapRectFromItem(self.childGroup, self.targetRect()))
+                
+        # If ortho axes have auto-visible-only, update them now
+        # Note that aspect ratio constraints and auto-visible probably do not work together..
+        if changed[0] and self.state['autoVisibleOnly'][1] and (self.state['autoRange'][0] is not False):
+            self._autoRangeNeedsUpdate = True
+            #self.updateAutoRange()  ## Maybe just indicate that auto range needs to be updated?
+        elif changed[1] and self.state['autoVisibleOnly'][0] and (self.state['autoRange'][1] is not False):
+            self._autoRangeNeedsUpdate = True
+            #self.updateAutoRange()
+            
+        ## Update view matrix only if requested
+        #if update:
+            #self.updateMatrix(changed)
+        ## Otherwise, indicate that the matrix needs to be updated
+        #else:
+            #self.matrixNeedsUpdate = True
+            
+        ## Inform linked views that the range has changed <<This should be moved>>
+        #for ax, range in changes.items():
+            #link = self.linkedView(ax)
+            #if link is not None:
+                #link.linkedViewChanged(self, ax)
+
+
+            
+    def setYRange(self, min, max, padding=None, update=True):
+        """
+        Set the visible Y range of the view to [*min*, *max*]. 
+        The *padding* argument causes the range to be set larger by the fraction specified.
+        (by default, this value is between 0.02 and 0.1 depending on the size of the ViewBox)
+        """
+        self.setRange(yRange=[min, max], update=update, padding=padding)
+        
+    def setXRange(self, min, max, padding=None, update=True):
+        """
+        Set the visible X range of the view to [*min*, *max*]. 
+        The *padding* argument causes the range to be set larger by the fraction specified.
+        (by default, this value is between 0.02 and 0.1 depending on the size of the ViewBox)
+        """
+        self.setRange(xRange=[min, max], update=update, padding=padding)
+
+    def autoRange(self, padding=None, items=None, item=None):
+        """
+        Set the range of the view box to make all children visible.
+        Note that this is not the same as enableAutoRange, which causes the view to 
+        automatically auto-range whenever its contents are changed.
+        
+        ==============  ============================================================
+        **Arguments:**
+        padding         The fraction of the total data range to add on to the final
+                        visible range. By default, this value is set between 0.02
+                        and 0.1 depending on the size of the ViewBox.
+        items           If specified, this is a list of items to consider when
+                        determining the visible range.
+        ==============  ============================================================
+        """
+        if item is None:
+            bounds = self.childrenBoundingRect(items=items)
+        else:
+            print("Warning: ViewBox.autoRange(item=__) is deprecated. Use 'items' argument instead.")
+            bounds = self.mapFromItemToView(item, item.boundingRect()).boundingRect()
+            
+        if bounds is not None:
+            self.setRange(bounds, padding=padding)
+            
+    def suggestPadding(self, axis):
+        l = self.width() if axis==0 else self.height()
+        if l > 0:
+            padding = np.clip(1./(l**0.5), 0.02, 0.1)
+        else:
+            padding = 0.02
+        return padding
+    
+    def setLimits(self, **kwds):
+        """
+        Set limits that constrain the possible view ranges.
+        
+        **Panning limits**. The following arguments define the region within the 
+        viewbox coordinate system that may be accessed by panning the view.
+        
+        =========== ============================================================
+        xMin        Minimum allowed x-axis value
+        xMax        Maximum allowed x-axis value
+        yMin        Minimum allowed y-axis value
+        yMax        Maximum allowed y-axis value
+        =========== ============================================================        
+        
+        **Scaling limits**. These arguments prevent the view being zoomed in or
+        out too far.
+        
+        =========== ============================================================
+        minXRange   Minimum allowed left-to-right span across the view.
+        maxXRange   Maximum allowed left-to-right span across the view.
+        minYRange   Minimum allowed top-to-bottom span across the view.
+        maxYRange   Maximum allowed top-to-bottom span across the view.
+        =========== ============================================================
+        
+        Added in version 0.9.9
+        """
+        update = False
+        allowed = ['xMin', 'xMax', 'yMin', 'yMax', 'minXRange', 'maxXRange', 'minYRange', 'maxYRange']
+        for kwd in kwds:
+            if kwd not in allowed:
+                raise ValueError("Invalid keyword argument '%s'." % kwd)
+        #for kwd in ['xLimits', 'yLimits', 'minRange', 'maxRange']:
+            #if kwd in kwds and self.state['limits'][kwd] != kwds[kwd]:
+                #self.state['limits'][kwd] = kwds[kwd]
+                #update = True
+        for axis in [0,1]:
+            for mnmx in [0,1]:
+                kwd = [['xMin', 'xMax'], ['yMin', 'yMax']][axis][mnmx]
+                lname = ['xLimits', 'yLimits'][axis]
+                if kwd in kwds and self.state['limits'][lname][mnmx] != kwds[kwd]:
+                    self.state['limits'][lname][mnmx] = kwds[kwd]
+                    update = True
+                kwd = [['minXRange', 'maxXRange'], ['minYRange', 'maxYRange']][axis][mnmx]
+                lname = ['xRange', 'yRange'][axis]
+                if kwd in kwds and self.state['limits'][lname][mnmx] != kwds[kwd]:
+                    self.state['limits'][lname][mnmx] = kwds[kwd]
+                    update = True
+                    
+        if update:
+            self.updateViewRange()
+                    
+            
+            
+            
+    def scaleBy(self, s=None, center=None, x=None, y=None):
+        """
+        Scale by *s* around given center point (or center of view).
+        *s* may be a Point or tuple (x, y).
+        
+        Optionally, x or y may be specified individually. This allows the other 
+        axis to be left unaffected (note that using a scale factor of 1.0 may
+        cause slight changes due to floating-point error).
+        """
+        if s is not None:
+            scale = Point(s)
+        else:
+            scale = [x, y]
+        
+        affect = [True, True]
+        if scale[0] is None and scale[1] is None:
+            return
+        elif scale[0] is None:
+            affect[0] = False
+            scale[0] = 1.0
+        elif scale[1] is None:
+            affect[1] = False
+            scale[1] = 1.0
+            
+        scale = Point(scale)
+            
+        if self.state['aspectLocked'] is not False:
+            scale[0] = scale[1]
+
+        vr = self.targetRect()
+        if center is None:
+            center = Point(vr.center())
+        else:
+            center = Point(center)
+        
+        tl = center + (vr.topLeft()-center) * scale
+        br = center + (vr.bottomRight()-center) * scale
+        
+        if not affect[0]:
+            self.setYRange(tl.y(), br.y(), padding=0)
+        elif not affect[1]:
+            self.setXRange(tl.x(), br.x(), padding=0)
+        else:
+            self.setRange(QtCore.QRectF(tl, br), padding=0)
+        
+    def translateBy(self, t=None, x=None, y=None):
+        """
+        Translate the view by *t*, which may be a Point or tuple (x, y).
+        
+        Alternately, x or y may be specified independently, leaving the other
+        axis unchanged (note that using a translation of 0 may still cause
+        small changes due to floating-point error).
+        """
+        vr = self.targetRect()
+        if t is not None:
+            t = Point(t)
+            self.setRange(vr.translated(t), padding=0)
+        else:
+            if x is not None:
+                x = vr.left()+x, vr.right()+x
+            if y is not None:
+                y = vr.top()+y, vr.bottom()+y
+            if x is not None or y is not None:
+                self.setRange(xRange=x, yRange=y, padding=0)
+            
+        
+        
+    def enableAutoRange(self, axis=None, enable=True, x=None, y=None):
+        """
+        Enable (or disable) auto-range for *axis*, which may be ViewBox.XAxis, ViewBox.YAxis, or ViewBox.XYAxes for both
+        (if *axis* is omitted, both axes will be changed).
+        When enabled, the axis will automatically rescale when items are added/removed or change their shape.
+        The argument *enable* may optionally be a float (0.0-1.0) which indicates the fraction of the data that should
+        be visible (this only works with items implementing a dataRange method, such as PlotDataItem).
+        """
+        #print "autorange:", axis, enable
+        #if not enable:
+            #import traceback
+            #traceback.print_stack()
+        
+        # support simpler interface:
+        if x is not None or y is not None:
+            if x is not None:
+                self.enableAutoRange(ViewBox.XAxis, x)
+            if y is not None:
+                self.enableAutoRange(ViewBox.YAxis, y)
+            return
+        
+        if enable is True:
+            enable = 1.0
+        
+        if axis is None:
+            axis = ViewBox.XYAxes
+        
+        needAutoRangeUpdate = False
+        
+        if axis == ViewBox.XYAxes or axis == 'xy':
+            axes = [0, 1]
+        elif axis == ViewBox.XAxis or axis == 'x':
+            axes = [0]
+        elif axis == ViewBox.YAxis or axis == 'y':
+            axes = [1]
+        else:
+            raise Exception('axis argument must be ViewBox.XAxis, ViewBox.YAxis, or ViewBox.XYAxes.')
+        
+        for ax in axes:
+            if self.state['autoRange'][ax] != enable:
+                # If we are disabling, do one last auto-range to make sure that
+                # previously scheduled auto-range changes are enacted
+                if enable is False and self._autoRangeNeedsUpdate:
+                    self.updateAutoRange()
+                
+                self.state['autoRange'][ax] = enable
+                self._autoRangeNeedsUpdate |= (enable is not False)
+                self.update()
+
+
+        #if needAutoRangeUpdate:
+        #    self.updateAutoRange()
+        
+        self.sigStateChanged.emit(self)
+
+    def disableAutoRange(self, axis=None):
+        """Disables auto-range. (See enableAutoRange)"""
+        self.enableAutoRange(axis, enable=False)
+
+    def autoRangeEnabled(self):
+        return self.state['autoRange'][:]
+
+    def setAutoPan(self, x=None, y=None):
+        if x is not None:
+            self.state['autoPan'][0] = x
+        if y is not None:
+            self.state['autoPan'][1] = y
+        if None not in [x,y]:
+            self.updateAutoRange()
+
+    def setAutoVisible(self, x=None, y=None):
+        if x is not None:
+            self.state['autoVisibleOnly'][0] = x
+            if x is True:
+                self.state['autoVisibleOnly'][1] = False
+        if y is not None:
+            self.state['autoVisibleOnly'][1] = y
+            if y is True:
+                self.state['autoVisibleOnly'][0] = False
+        
+        if x is not None or y is not None:
+            self.updateAutoRange()
+
+    def updateAutoRange(self):
+        ## Break recursive loops when auto-ranging.
+        ## This is needed because some items change their size in response 
+        ## to a view change.
+        if self._updatingRange:
+            return
+        
+        self._updatingRange = True
+        try:
+            targetRect = self.viewRange()
+            if not any(self.state['autoRange']):
+                return
+                
+            fractionVisible = self.state['autoRange'][:]
+            for i in [0,1]:
+                if type(fractionVisible[i]) is bool:
+                    fractionVisible[i] = 1.0
+
+            childRange = None
+            
+            order = [0,1]
+            if self.state['autoVisibleOnly'][0] is True:
+                order = [1,0]
+
+            args = {}
+            for ax in order:
+                if self.state['autoRange'][ax] is False:
+                    continue
+                if self.state['autoVisibleOnly'][ax]:
+                    oRange = [None, None]
+                    oRange[ax] = targetRect[1-ax]
+                    childRange = self.childrenBounds(frac=fractionVisible, orthoRange=oRange)
+                    
+                else:
+                    if childRange is None:
+                        childRange = self.childrenBounds(frac=fractionVisible)
+                
+                ## Make corrections to range
+                xr = childRange[ax]
+                if xr is not None:
+                    if self.state['autoPan'][ax]:
+                        x = sum(xr) * 0.5
+                        w2 = (targetRect[ax][1]-targetRect[ax][0]) / 2.
+                        childRange[ax] = [x-w2, x+w2]
+                    else:
+                        padding = self.suggestPadding(ax)
+                        wp = (xr[1] - xr[0]) * padding
+                        childRange[ax][0] -= wp
+                        childRange[ax][1] += wp
+                    targetRect[ax] = childRange[ax]
+                    args['xRange' if ax == 0 else 'yRange'] = targetRect[ax]
+            if len(args) == 0:
+                return
+            args['padding'] = 0
+            args['disableAutoRange'] = False
+            
+             # check for and ignore bad ranges
+            for k in ['xRange', 'yRange']:
+                if k in args:
+                    if not np.all(np.isfinite(args[k])):
+                        r = args.pop(k)
+                        #print("Warning: %s is invalid: %s" % (k, str(r))
+                        
+            self.setRange(**args)
+        finally:
+            self._autoRangeNeedsUpdate = False
+            self._updatingRange = False
+        
+    def setXLink(self, view):
+        """Link this view's X axis to another view. (see LinkView)"""
+        self.linkView(self.XAxis, view)
+        
+    def setYLink(self, view):
+        """Link this view's Y axis to another view. (see LinkView)"""
+        self.linkView(self.YAxis, view)
+        
+        
+    def linkView(self, axis, view):
+        """
+        Link X or Y axes of two views and unlink any previously connected axes. *axis* must be ViewBox.XAxis or ViewBox.YAxis.
+        If view is None, the axis is left unlinked.
+        """
+        if isinstance(view, basestring):
+            if view == '':
+                view = None
+            else:
+                view = ViewBox.NamedViews.get(view, view)  ## convert view name to ViewBox if possible
+
+        if hasattr(view, 'implements') and view.implements('ViewBoxWrapper'):
+            view = view.getViewBox()
+
+        ## used to connect/disconnect signals between a pair of views
+        if axis == ViewBox.XAxis:
+            signal = 'sigXRangeChanged'
+            slot = self.linkedXChanged
+        else:
+            signal = 'sigYRangeChanged'
+            slot = self.linkedYChanged
+
+
+        oldLink = self.linkedView(axis)
+        if oldLink is not None:
+            try:
+                getattr(oldLink, signal).disconnect(slot)
+                oldLink.sigResized.disconnect(slot)
+            except (TypeError, RuntimeError):
+                ## This can occur if the view has been deleted already
+                pass
+            
+        
+        if view is None or isinstance(view, basestring):
+            self.state['linkedViews'][axis] = view
+        else:
+            self.state['linkedViews'][axis] = weakref.ref(view)
+            getattr(view, signal).connect(slot)
+            view.sigResized.connect(slot)
+            if view.autoRangeEnabled()[axis] is not False:
+                self.enableAutoRange(axis, False)
+                slot()
+            else:
+                if self.autoRangeEnabled()[axis] is False:
+                    slot()
+        
+            
+        self.sigStateChanged.emit(self)
+        
+    def blockLink(self, b):
+        self.linksBlocked = b  ## prevents recursive plot-change propagation
+
+    def linkedXChanged(self):
+        ## called when x range of linked view has changed
+        view = self.linkedView(0)
+        self.linkedViewChanged(view, ViewBox.XAxis)
+
+    def linkedYChanged(self):
+        ## called when y range of linked view has changed
+        view = self.linkedView(1)
+        self.linkedViewChanged(view, ViewBox.YAxis)
+        
+    def linkedView(self, ax):
+        ## Return the linked view for axis *ax*.
+        ## this method _always_ returns either a ViewBox or None.
+        v = self.state['linkedViews'][ax]
+        if v is None or isinstance(v, basestring):
+            return None
+        else:
+            return v()  ## dereference weakref pointer. If the reference is dead, this returns None
+
+    def linkedViewChanged(self, view, axis):
+        if self.linksBlocked or view is None:
+            return
+        
+        #print self.name, "ViewBox.linkedViewChanged", axis, view.viewRange()[axis]
+        vr = view.viewRect()
+        vg = view.screenGeometry()
+        sg = self.screenGeometry()
+        if vg is None or sg is None:
+            return
+        
+        view.blockLink(True)
+        try:
+            if axis == ViewBox.XAxis:
+                overlap = min(sg.right(), vg.right()) - max(sg.left(), vg.left())
+                if overlap < min(vg.width()/3, sg.width()/3):  ## if less than 1/3 of views overlap, 
+                                                               ## then just replicate the view
+                    x1 = vr.left()
+                    x2 = vr.right()
+                else:  ## views overlap; line them up
+                    upp = float(vr.width()) / vg.width()
+                    if self.xInverted():
+                        x1 = vr.left()   + (sg.right()-vg.right()) * upp
+                    else:
+                        x1 = vr.left()   + (sg.x()-vg.x()) * upp
+                    x2 = x1 + sg.width() * upp
+                self.enableAutoRange(ViewBox.XAxis, False)
+                self.setXRange(x1, x2, padding=0)
+            else:
+                overlap = min(sg.bottom(), vg.bottom()) - max(sg.top(), vg.top())
+                if overlap < min(vg.height()/3, sg.height()/3):  ## if less than 1/3 of views overlap, 
+                                                                 ## then just replicate the view
+                    y1 = vr.top()
+                    y2 = vr.bottom()
+                else:  ## views overlap; line them up
+                    upp = float(vr.height()) / vg.height()
+                    if self.yInverted():
+                        y2 = vr.bottom() + (sg.bottom()-vg.bottom()) * upp
+                    else:
+                        y2 = vr.bottom() + (sg.top()-vg.top()) * upp
+                    y1 = y2 - sg.height() * upp
+                self.enableAutoRange(ViewBox.YAxis, False)
+                self.setYRange(y1, y2, padding=0)
+        finally:
+            view.blockLink(False)
+        
+    def screenGeometry(self):
+        """return the screen geometry of the viewbox"""
+        v = self.getViewWidget()
+        if v is None:
+            return None
+        b = self.sceneBoundingRect()
+        wr = v.mapFromScene(b).boundingRect()
+        pos = v.mapToGlobal(v.pos())
+        wr.adjust(pos.x(), pos.y(), pos.x(), pos.y())
+        return wr
+
+    def itemsChanged(self):
+        ## called when items are added/removed from self.childGroup
+        self.updateAutoRange()
+        
+    def itemBoundsChanged(self, item):
+        self._itemBoundsCache.pop(item, None)
+        if (self.state['autoRange'][0] is not False) or (self.state['autoRange'][1] is not False):
+            self._autoRangeNeedsUpdate = True
+            self.update()
+        #self.updateAutoRange()
+
+    def _invertAxis(self, ax, inv):
+        key = 'xy'[ax] + 'Inverted'
+        if self.state[key] == inv:
+            return
+        
+        self.state[key] = inv
+        self._matrixNeedsUpdate = True # updateViewRange won't detect this for us
+        self.updateViewRange()
+        self.update()
+        self.sigStateChanged.emit(self)
+        self.sigYRangeChanged.emit(self, tuple(self.state['viewRange'][ax]))
+
+    def invertY(self, b=True):
+        """
+        By default, the positive y-axis points upward on the screen. Use invertY(True) to reverse the y-axis.
+        """
+        self._invertAxis(1, b)
+
+    def yInverted(self):
+        return self.state['yInverted']
+        
+    def invertX(self, b=True):
+        """
+        By default, the positive x-axis points rightward on the screen. Use invertX(True) to reverse the x-axis.
+        """
+        self._invertAxis(0, b)
+
+    def xInverted(self):
+        return self.state['xInverted']
+        
+    def setAspectLocked(self, lock=True, ratio=1):
+        """
+        If the aspect ratio is locked, view scaling must always preserve the aspect ratio.
+        By default, the ratio is set to 1; x and y both have the same scaling.
+        This ratio can be overridden (xScale/yScale), or use None to lock in the current ratio.
+        """
+        
+        if not lock:
+            if self.state['aspectLocked'] == False:
+                return
+            self.state['aspectLocked'] = False
+        else:
+            rect = self.rect()
+            vr = self.viewRect()
+            if rect.height() == 0 or vr.width() == 0 or vr.height() == 0:
+                currentRatio = 1.0
+            else:
+                currentRatio = (rect.width()/float(rect.height())) / (vr.width()/vr.height())
+            if ratio is None:
+                ratio = currentRatio
+            if self.state['aspectLocked'] == ratio: # nothing to change
+                return
+            self.state['aspectLocked'] = ratio
+            if ratio != currentRatio:  ## If this would change the current range, do that now
+                #self.setRange(0, self.state['viewRange'][0][0], self.state['viewRange'][0][1])
+                self.updateViewRange()
+        
+        self.updateAutoRange()
+        self.updateViewRange()
+        self.sigStateChanged.emit(self)
+        
+    def childTransform(self):
+        """
+        Return the transform that maps from child(item in the childGroup) coordinates to local coordinates.
+        (This maps from inside the viewbox to outside)
+        """ 
+        if self._matrixNeedsUpdate:
+            self.updateMatrix()
+        m = self.childGroup.transform()
+        #m1 = QtGui.QTransform()
+        #m1.translate(self.childGroup.pos().x(), self.childGroup.pos().y())
+        return m #*m1
+
+    def mapToView(self, obj):
+        """Maps from the local coordinates of the ViewBox to the coordinate system displayed inside the ViewBox"""
+        m = fn.invertQTransform(self.childTransform())
+        return m.map(obj)
+
+    def mapFromView(self, obj):
+        """Maps from the coordinate system displayed inside the ViewBox to the local coordinates of the ViewBox"""
+        m = self.childTransform()
+        return m.map(obj)
+
+    def mapSceneToView(self, obj):
+        """Maps from scene coordinates to the coordinate system displayed inside the ViewBox"""
+        return self.mapToView(self.mapFromScene(obj))
+
+    def mapViewToScene(self, obj):
+        """Maps from the coordinate system displayed inside the ViewBox to scene coordinates"""
+        return self.mapToScene(self.mapFromView(obj))
+    
+    def mapFromItemToView(self, item, obj):
+        """Maps *obj* from the local coordinate system of *item* to the view coordinates"""
+        return self.childGroup.mapFromItem(item, obj)
+        #return self.mapSceneToView(item.mapToScene(obj))
+
+    def mapFromViewToItem(self, item, obj):
+        """Maps *obj* from view coordinates to the local coordinate system of *item*."""
+        return self.childGroup.mapToItem(item, obj)
+        #return item.mapFromScene(self.mapViewToScene(obj))
+
+    def mapViewToDevice(self, obj):
+        return self.mapToDevice(self.mapFromView(obj))
+        
+    def mapDeviceToView(self, obj):
+        return self.mapToView(self.mapFromDevice(obj))
+        
+    def viewPixelSize(self):
+        """Return the (width, height) of a screen pixel in view coordinates."""
+        o = self.mapToView(Point(0,0))
+        px, py = [Point(self.mapToView(v) - o) for v in self.pixelVectors()]
+        return (px.length(), py.length())
+        
+        
+    def itemBoundingRect(self, item):
+        """Return the bounding rect of the item in view coordinates"""
+        return self.mapSceneToView(item.sceneBoundingRect()).boundingRect()
+    
+    #def viewScale(self):
+        #vr = self.viewRect()
+        ##print "viewScale:", self.range
+        #xd = vr.width()
+        #yd = vr.height()
+        #if xd == 0 or yd == 0:
+            #print "Warning: 0 range in view:", xd, yd
+            #return np.array([1,1])
+        
+        ##cs = self.canvas().size()
+        #cs = self.boundingRect()
+        #scale = np.array([cs.width() / xd, cs.height() / yd])
+        ##print "view scale:", scale
+        #return scale
+
+    def wheelEvent(self, ev, axis=None):
+        mask = np.array(self.state['mouseEnabled'], dtype=np.float)
+        if axis is not None and axis >= 0 and axis < len(mask):
+            mv = mask[axis]
+            mask[:] = 0
+            mask[axis] = mv
+        s = ((mask * 0.02) + 1) ** (ev.delta() * self.state['wheelScaleFactor']) # actual scaling factor
+        
+        center = Point(fn.invertQTransform(self.childGroup.transform()).map(ev.pos()))
+        #center = ev.pos()
+        
+        self._resetTarget()
+        self.scaleBy(s, center)
+        self.sigRangeChangedManually.emit(self.state['mouseEnabled'])
+        ev.accept()
+
+        
+    def mouseClickEvent(self, ev):
+        if ev.button() == QtCore.Qt.RightButton and self.menuEnabled():
+            ev.accept()
+            self.raiseContextMenu(ev)
+
+    def raiseContextMenu(self, ev):
+        menu = self.getMenu(ev)
+        self.scene().addParentContextMenus(self, menu, ev)
+        menu.popup(ev.screenPos().toPoint())
+
+    def getMenu(self, ev):
+        return self.menu
+
+    def getContextMenus(self, event):
+        return self.menu.actions() if self.menuEnabled() else []
+
+    def mouseDragEvent(self, ev, axis=None):
+        ## if axis is specified, event will only affect that axis.
+        ev.accept()  ## we accept all buttons
+        
+        pos = ev.pos()
+        lastPos = ev.lastPos()
+        dif = pos - lastPos
+        dif = dif * -1
+
+        ## Ignore axes if mouse is disabled
+        mouseEnabled = np.array(self.state['mouseEnabled'], dtype=np.float)
+        mask = mouseEnabled.copy()
+        if axis is not None:
+            mask[1-axis] = 0.0
+
+        ## Scale or translate based on mouse button
+        if ev.button() & (QtCore.Qt.LeftButton | QtCore.Qt.MidButton):
+            if self.state['mouseMode'] == ViewBox.RectMode:
+                if ev.isFinish():  ## This is the final move in the drag; change the view scale now
+                    #print "finish"
+                    self.rbScaleBox.hide()
+                    #ax = QtCore.QRectF(Point(self.pressPos), Point(self.mousePos))
+                    ax = QtCore.QRectF(Point(ev.buttonDownPos(ev.button())), Point(pos))
+                    ax = self.childGroup.mapRectFromParent(ax)
+                    self.showAxRect(ax)
+                    self.axHistoryPointer += 1
+                    self.axHistory = self.axHistory[:self.axHistoryPointer] + [ax]
+                else:
+                    ## update shape of scale box
+                    self.updateScaleBox(ev.buttonDownPos(), ev.pos())
+            else:
+                tr = dif*mask
+                tr = self.mapToView(tr) - self.mapToView(Point(0,0))
+                x = tr.x() if mask[0] == 1 else None
+                y = tr.y() if mask[1] == 1 else None
+                
+                self._resetTarget()
+                if x is not None or y is not None:
+                    self.translateBy(x=x, y=y)
+                self.sigRangeChangedManually.emit(self.state['mouseEnabled'])
+        elif ev.button() & QtCore.Qt.RightButton:
+            #print "vb.rightDrag"
+            if self.state['aspectLocked'] is not False:
+                mask[0] = 0
+            
+            dif = ev.screenPos() - ev.lastScreenPos()
+            dif = np.array([dif.x(), dif.y()])
+            dif[0] *= -1
+            s = ((mask * 0.02) + 1) ** dif
+            
+            tr = self.childGroup.transform()
+            tr = fn.invertQTransform(tr)
+            
+            x = s[0] if mouseEnabled[0] == 1 else None
+            y = s[1] if mouseEnabled[1] == 1 else None
+            
+            center = Point(tr.map(ev.buttonDownPos(QtCore.Qt.RightButton)))
+            self._resetTarget()
+            self.scaleBy(x=x, y=y, center=center)
+            self.sigRangeChangedManually.emit(self.state['mouseEnabled'])
+
+    def keyPressEvent(self, ev):
+        """
+        This routine should capture key presses in the current view box.
+        Key presses are used only when mouse mode is RectMode
+        The following events are implemented:
+        ctrl-A : zooms out to the default "full" view of the plot
+        ctrl-+ : moves forward in the zooming stack (if it exists)
+        ctrl-- : moves backward in the zooming stack (if it exists)
+         
+        """
+        #print ev.key()
+        #print 'I intercepted a key press, but did not accept it'
+        
+        ## not implemented yet ?
+        #self.keypress.sigkeyPressEvent.emit()
+        
+        ev.accept()
+        if ev.text() == '-':
+            self.scaleHistory(-1)
+        elif ev.text() in ['+', '=']:
+            self.scaleHistory(1)
+        elif ev.key() == QtCore.Qt.Key_Backspace:
+            self.scaleHistory(len(self.axHistory))
+        else:
+            ev.ignore()
+
+    def scaleHistory(self, d):
+        if len(self.axHistory) == 0:
+            return
+        ptr = max(0, min(len(self.axHistory)-1, self.axHistoryPointer+d))
+        if ptr != self.axHistoryPointer:
+            self.axHistoryPointer = ptr
+            self.showAxRect(self.axHistory[ptr])
+            
+
+    def updateScaleBox(self, p1, p2):
+        r = QtCore.QRectF(p1, p2)
+        r = self.childGroup.mapRectFromParent(r)
+        self.rbScaleBox.setPos(r.topLeft())
+        self.rbScaleBox.resetTransform()
+        self.rbScaleBox.scale(r.width(), r.height())
+        self.rbScaleBox.show()
+
+    def showAxRect(self, ax):
+        self.setRange(ax.normalized()) # be sure w, h are correct coordinates
+        self.sigRangeChangedManually.emit(self.state['mouseEnabled'])
+
+    #def mouseRect(self):
+        #vs = self.viewScale()
+        #vr = self.state['viewRange']
+        ## Convert positions from screen (view) pixel coordinates to axis coordinates 
+        #ax = QtCore.QRectF(self.pressPos[0]/vs[0]+vr[0][0], -(self.pressPos[1]/vs[1]-vr[1][1]),
+            #(self.mousePos[0]-self.pressPos[0])/vs[0], -(self.mousePos[1]-self.pressPos[1])/vs[1])
+        #return(ax)
+
+    def allChildren(self, item=None):
+        """Return a list of all children and grandchildren of this ViewBox"""
+        if item is None:
+            item = self.childGroup
+        
+        children = [item]
+        for ch in item.childItems():
+            children.extend(self.allChildren(ch))
+        return children
+        
+        
+    
+    def childrenBounds(self, frac=None, orthoRange=(None,None), items=None):
+        """Return the bounding range of all children.
+        [[xmin, xmax], [ymin, ymax]]
+        Values may be None if there are no specific bounds for an axis.
+        """
+        profiler = debug.Profiler()
+        if items is None:
+            items = self.addedItems
+        
+        ## measure pixel dimensions in view box
+        px, py = [v.length() if v is not None else 0 for v in self.childGroup.pixelVectors()]
+        
+        ## First collect all boundary information
+        itemBounds = []
+        for item in items:
+            if not item.isVisible():
+                continue
+        
+            useX = True
+            useY = True
+            
+            if hasattr(item, 'dataBounds'):
+                #bounds = self._itemBoundsCache.get(item, None)
+                #if bounds is None:
+                if frac is None:
+                    frac = (1.0, 1.0)
+                xr = item.dataBounds(0, frac=frac[0], orthoRange=orthoRange[0])
+                yr = item.dataBounds(1, frac=frac[1], orthoRange=orthoRange[1])
+                pxPad = 0 if not hasattr(item, 'pixelPadding') else item.pixelPadding()
+                if xr is None or (xr[0] is None and xr[1] is None) or np.isnan(xr).any() or np.isinf(xr).any():
+                    useX = False
+                    xr = (0,0)
+                if yr is None or (yr[0] is None and yr[1] is None) or np.isnan(yr).any() or np.isinf(yr).any():
+                    useY = False
+                    yr = (0,0)
+
+                bounds = QtCore.QRectF(xr[0], yr[0], xr[1]-xr[0], yr[1]-yr[0])
+                bounds = self.mapFromItemToView(item, bounds).boundingRect()
+                
+                if not any([useX, useY]):
+                    continue
+                
+                ## If we are ignoring only one axis, we need to check for rotations
+                if useX != useY:  ##   !=  means  xor
+                    ang = round(item.transformAngle())
+                    if ang == 0 or ang == 180:
+                        pass
+                    elif ang == 90 or ang == 270:
+                        useX, useY = useY, useX 
+                    else:
+                        ## Item is rotated at non-orthogonal angle, ignore bounds entirely.
+                        ## Not really sure what is the expected behavior in this case.
+                        continue  ## need to check for item rotations and decide how best to apply this boundary. 
+                
+                
+                itemBounds.append((bounds, useX, useY, pxPad))
+                    #self._itemBoundsCache[item] = (bounds, useX, useY)
+                #else:
+                    #bounds, useX, useY = bounds
+            else:
+                if int(item.flags() & item.ItemHasNoContents) > 0:
+                    continue
+                else:
+                    bounds = item.boundingRect()
+                bounds = self.mapFromItemToView(item, bounds).boundingRect()
+                itemBounds.append((bounds, True, True, 0))
+        
+        #print itemBounds
+        
+        ## determine tentative new range
+        range = [None, None]
+        for bounds, useX, useY, px in itemBounds:
+            if useY:
+                if range[1] is not None:
+                    range[1] = [min(bounds.top(), range[1][0]), max(bounds.bottom(), range[1][1])]
+                else:
+                    range[1] = [bounds.top(), bounds.bottom()]
+            if useX:
+                if range[0] is not None:
+                    range[0] = [min(bounds.left(), range[0][0]), max(bounds.right(), range[0][1])]
+                else:
+                    range[0] = [bounds.left(), bounds.right()]
+            profiler()
+        
+        #print "range", range
+        
+        ## Now expand any bounds that have a pixel margin
+        ## This must be done _after_ we have a good estimate of the new range
+        ## to ensure that the pixel size is roughly accurate.
+        w = self.width()
+        h = self.height()
+        #print "w:", w, "h:", h
+        if w > 0 and range[0] is not None:
+            pxSize = (range[0][1] - range[0][0]) / w
+            for bounds, useX, useY, px in itemBounds:
+                if px == 0 or not useX:
+                    continue
+                range[0][0] = min(range[0][0], bounds.left() - px*pxSize)
+                range[0][1] = max(range[0][1], bounds.right() + px*pxSize)
+        if h > 0 and range[1] is not None:
+            pxSize = (range[1][1] - range[1][0]) / h
+            for bounds, useX, useY, px in itemBounds:
+                if px == 0 or not useY:
+                    continue
+                range[1][0] = min(range[1][0], bounds.top() - px*pxSize)
+                range[1][1] = max(range[1][1], bounds.bottom() + px*pxSize)
+
+        return range
+        
+    def childrenBoundingRect(self, *args, **kwds):
+        range = self.childrenBounds(*args, **kwds)
+        tr = self.targetRange()
+        if range[0] is None:
+            range[0] = tr[0]
+        if range[1] is None:
+            range[1] = tr[1]
+            
+        bounds = QtCore.QRectF(range[0][0], range[1][0], range[0][1]-range[0][0], range[1][1]-range[1][0])
+        return bounds
+            
+    def updateViewRange(self, forceX=False, forceY=False):
+        ## Update viewRange to match targetRange as closely as possible, given 
+        ## aspect ratio constraints. The *force* arguments are used to indicate 
+        ## which axis (if any) should be unchanged when applying constraints.
+        viewRange = [self.state['targetRange'][0][:], self.state['targetRange'][1][:]]
+        changed = [False, False]
+        
+        #-------- Make correction for aspect ratio constraint ----------
+        
+        # aspect is (widget w/h) / (view range w/h)
+        aspect = self.state['aspectLocked']  # size ratio / view ratio
+        tr = self.targetRect()
+        bounds = self.rect()
+        if aspect is not False and 0 not in [aspect, tr.height(), bounds.height(), bounds.width()]:
+            
+            ## This is the view range aspect ratio we have requested
+            targetRatio = tr.width() / tr.height() if tr.height() != 0 else 1
+            ## This is the view range aspect ratio we need to obey aspect constraint
+            viewRatio = (bounds.width() / bounds.height() if bounds.height() != 0 else 1) / aspect
+            viewRatio = 1 if viewRatio == 0 else viewRatio
+            
+            # Decide which range to keep unchanged
+            #print self.name, "aspect:", aspect, "changed:", changed, "auto:", self.state['autoRange']
+            if forceX:
+                ax = 0
+            elif forceY:
+                ax = 1
+            else:
+                # if we are not required to keep a particular axis unchanged, 
+                # then make the entire target range visible
+                ax = 0 if targetRatio > viewRatio else 1
+            
+            if ax == 0:  
+                ## view range needs to be taller than target
+                dy = 0.5 * (tr.width() / viewRatio - tr.height())
+                if dy != 0:
+                    changed[1] = True
+                viewRange[1] = [self.state['targetRange'][1][0] - dy, self.state['targetRange'][1][1] + dy]
+            else:
+                ## view range needs to be wider than target
+                dx = 0.5 * (tr.height() * viewRatio - tr.width())
+                if dx != 0:
+                    changed[0] = True
+                viewRange[0] = [self.state['targetRange'][0][0] - dx, self.state['targetRange'][0][1] + dx]
+
+            
+        # ----------- Make corrections for view limits -----------
+        
+        limits = (self.state['limits']['xLimits'], self.state['limits']['yLimits'])
+        minRng = [self.state['limits']['xRange'][0], self.state['limits']['yRange'][0]]
+        maxRng = [self.state['limits']['xRange'][1], self.state['limits']['yRange'][1]]
+        
+        for axis in [0, 1]:
+            if limits[axis][0] is None and limits[axis][1] is None and minRng[axis] is None and maxRng[axis] is None:
+                continue
+            
+            # max range cannot be larger than bounds, if they are given
+            if limits[axis][0] is not None and limits[axis][1] is not None:
+                if maxRng[axis] is not None:
+                    maxRng[axis] = min(maxRng[axis], limits[axis][1]-limits[axis][0])
+                else:
+                    maxRng[axis] = limits[axis][1]-limits[axis][0]
+            
+            #print "\nLimits for axis %d: range=%s min=%s max=%s" % (axis, limits[axis], minRng[axis], maxRng[axis])
+            #print "Starting range:", viewRange[axis]
+            
+            # Apply xRange, yRange
+            diff = viewRange[axis][1] - viewRange[axis][0]
+            if maxRng[axis] is not None and diff > maxRng[axis]:
+                delta = maxRng[axis] - diff
+                changed[axis] = True
+            elif minRng[axis] is not None and diff < minRng[axis]:
+                delta = minRng[axis] - diff
+                changed[axis] = True
+            else:
+                delta = 0
+            
+            viewRange[axis][0] -= delta/2.
+            viewRange[axis][1] += delta/2.
+            
+            #print "after applying min/max:", viewRange[axis]
+               
+            # Apply xLimits, yLimits
+            mn, mx = limits[axis]
+            if mn is not None and viewRange[axis][0] < mn:
+                delta = mn - viewRange[axis][0]
+                viewRange[axis][0] += delta
+                viewRange[axis][1] += delta
+                changed[axis] = True
+            elif mx is not None and viewRange[axis][1] > mx:
+                delta = mx - viewRange[axis][1]
+                viewRange[axis][0] += delta
+                viewRange[axis][1] += delta
+                changed[axis] = True
+            
+            #print "after applying edge limits:", viewRange[axis]
+
+        changed = [(viewRange[i][0] != self.state['viewRange'][i][0]) or (viewRange[i][1] != self.state['viewRange'][i][1]) for i in (0,1)]
+        self.state['viewRange'] = viewRange
+        
+        # emit range change signals
+        if changed[0]:
+            self.sigXRangeChanged.emit(self, tuple(self.state['viewRange'][0]))
+        if changed[1]:
+            self.sigYRangeChanged.emit(self, tuple(self.state['viewRange'][1]))
+        
+        if any(changed):
+            self.sigRangeChanged.emit(self, self.state['viewRange'])
+            self.update()
+            self._matrixNeedsUpdate = True
+        
+            # Inform linked views that the range has changed
+            for ax in [0, 1]:
+                if not changed[ax]:
+                    continue
+                link = self.linkedView(ax)
+                if link is not None:
+                    link.linkedViewChanged(self, ax)
+        
+    def updateMatrix(self, changed=None):
+        ## Make the childGroup's transform match the requested viewRange.
+        bounds = self.rect()
+        
+        vr = self.viewRect()
+        if vr.height() == 0 or vr.width() == 0:
+            return
+        scale = Point(bounds.width()/vr.width(), bounds.height()/vr.height())
+        if not self.state['yInverted']:
+            scale = scale * Point(1, -1)
+        if self.state['xInverted']:
+            scale = scale * Point(-1, 1)
+        m = QtGui.QTransform()
+        
+        ## First center the viewport at 0
+        center = bounds.center()
+        m.translate(center.x(), center.y())
+            
+        ## Now scale and translate properly
+        m.scale(scale[0], scale[1])
+        st = Point(vr.center())
+        m.translate(-st[0], -st[1])
+        
+        self.childGroup.setTransform(m)
+        
+        self.sigTransformChanged.emit(self)  ## segfaults here: 1
+        self._matrixNeedsUpdate = False
+
+    def paint(self, p, opt, widget):
+        self.checkSceneChange()
+        
+        if self.border is not None:
+            bounds = self.shape()
+            p.setPen(self.border)
+            #p.fillRect(bounds, QtGui.QColor(0, 0, 0))
+            p.drawPath(bounds)
+            
+        #p.setPen(fn.mkPen('r'))
+        #path = QtGui.QPainterPath()
+        #path.addRect(self.targetRect())
+        #tr = self.mapFromView(path)
+        #p.drawPath(tr)
+
+    def updateBackground(self):
+        bg = self.state['background']
+        if bg is None:
+            self.background.hide()
+        else:
+            self.background.show()
+            self.background.setBrush(fn.mkBrush(bg))
+            
+            
+    def updateViewLists(self):
+        try:
+            self.window()
+        except RuntimeError:  ## this view has already been deleted; it will probably be collected shortly.
+            return
+            
+        def cmpViews(a, b):
+            wins = 100 * cmp(a.window() is self.window(), b.window() is self.window())
+            alpha = cmp(a.name, b.name)
+            return wins + alpha
+            
+        ## make a sorted list of all named views
+        nv = list(ViewBox.NamedViews.values())
+        #print "new view list:", nv
+        sortList(nv, cmpViews) ## see pyqtgraph.python2_3.sortList
+        
+        if self in nv:
+            nv.remove(self)
+            
+        self.menu.setViewList(nv)
+        
+        for ax in [0,1]:
+            link = self.state['linkedViews'][ax]
+            if isinstance(link, basestring):     ## axis has not been linked yet; see if it's possible now
+                for v in nv:
+                    if link == v.name:
+                        self.linkView(ax, v)
+        #print "New view list:", nv
+        #print "linked views:", self.state['linkedViews']
+
+    @staticmethod
+    def updateAllViewLists():
+        #print "Update:", ViewBox.AllViews.keys()
+        #print "Update:", ViewBox.NamedViews.keys()
+        for v in ViewBox.AllViews:
+            v.updateViewLists()
+            
+
+    @staticmethod
+    def forgetView(vid, name):
+        if ViewBox is None:     ## can happen as python is shutting down
+            return
+        if QtGui.QApplication.instance() is None:
+            return
+        ## Called with ID and name of view (the view itself is no longer available)
+        for v in list(ViewBox.AllViews.keys()):
+            if id(v) == vid:
+                ViewBox.AllViews.pop(v)
+                break
+        ViewBox.NamedViews.pop(name, None)
+        ViewBox.updateAllViewLists()
+
+    @staticmethod
+    def quit():
+        ## called when the application is about to exit.
+        ## this disables all callbacks, which might otherwise generate errors if invoked during exit.
+        for k in ViewBox.AllViews:
+            if isQObjectAlive(k) and getConfigOption('crashWarning'):
+                sys.stderr.write('Warning: ViewBox should be closed before application exit.\n')
+                
+            try:
+                k.destroyed.disconnect()
+            except RuntimeError:  ## signal is already disconnected.
+                pass
+            except TypeError:  ## view has already been deleted (?)
+                pass
+            except AttributeError:  # PySide has deleted signal
+                pass
+            
+    def locate(self, item, timeout=3.0, children=False):
+        """
+        Temporarily display the bounding rect of an item and lines connecting to the center of the view.
+        This is useful for determining the location of items that may be out of the range of the ViewBox.
+        if allChildren is True, then the bounding rect of all item's children will be shown instead.
+        """
+        self.clearLocate()
+        
+        if item.scene() is not self.scene():
+            raise Exception("Item does not share a scene with this ViewBox.")
+        
+        c = self.viewRect().center()
+        if children:
+            br = self.mapFromItemToView(item, item.childrenBoundingRect()).boundingRect()
+        else:
+            br = self.mapFromItemToView(item, item.boundingRect()).boundingRect()
+        
+        g = ItemGroup()
+        g.setParentItem(self.childGroup)
+        self.locateGroup = g
+        g.box = QtGui.QGraphicsRectItem(br)
+        g.box.setParentItem(g)
+        g.lines = []
+        for p in (br.topLeft(), br.bottomLeft(), br.bottomRight(), br.topRight()):
+            line = QtGui.QGraphicsLineItem(c.x(), c.y(), p.x(), p.y())
+            line.setParentItem(g)
+            g.lines.append(line)
+            
+        for item in g.childItems():
+            item.setPen(fn.mkPen(color='y', width=3))
+        g.setZValue(1000000)
+        
+        if children:
+            g.path = QtGui.QGraphicsPathItem(g.childrenShape())
+        else:
+            g.path = QtGui.QGraphicsPathItem(g.shape())
+        g.path.setParentItem(g)
+        g.path.setPen(fn.mkPen('g'))
+        g.path.setZValue(100)
+        
+        QtCore.QTimer.singleShot(timeout*1000, self.clearLocate)
+    
+    def clearLocate(self):
+        if self.locateGroup is None:
+            return
+        self.scene().removeItem(self.locateGroup)
+        self.locateGroup = None
+
+from .ViewBoxMenu import ViewBoxMenu
diff --git a/libs/pyqtgraph/graphicsItems/ViewBox/ViewBoxMenu.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ViewBox/ViewBoxMenu.py
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/ViewBox/ViewBoxMenu.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ViewBox/ViewBoxMenu.py
diff --git a/libs/pyqtgraph/graphicsItems/ViewBox/__init__.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ViewBox/__init__.py
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/ViewBox/__init__.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ViewBox/__init__.py
diff --git a/libs/pyqtgraph/graphicsItems/ViewBox/axisCtrlTemplate.ui b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ViewBox/axisCtrlTemplate.ui
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/ViewBox/axisCtrlTemplate.ui
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ViewBox/axisCtrlTemplate.ui
diff --git a/libs/pyqtgraph/graphicsItems/ViewBox/axisCtrlTemplate_pyqt.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ViewBox/axisCtrlTemplate_pyqt.py
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/ViewBox/axisCtrlTemplate_pyqt.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ViewBox/axisCtrlTemplate_pyqt.py
diff --git a/libs/pyqtgraph/graphicsItems/ViewBox/axisCtrlTemplate_pyqt5.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ViewBox/axisCtrlTemplate_pyqt5.py
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/ViewBox/axisCtrlTemplate_pyqt5.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ViewBox/axisCtrlTemplate_pyqt5.py
diff --git a/libs/pyqtgraph/graphicsItems/ViewBox/axisCtrlTemplate_pyside.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ViewBox/axisCtrlTemplate_pyside.py
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/ViewBox/axisCtrlTemplate_pyside.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ViewBox/axisCtrlTemplate_pyside.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ViewBox/tests/test_ViewBox.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ViewBox/tests/test_ViewBox.py
new file mode 100644
index 00000000..68f4f497
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/ViewBox/tests/test_ViewBox.py
@@ -0,0 +1,93 @@
+#import PySide
+import pyqtgraph as pg
+import pytest
+
+app = pg.mkQApp()
+qtest = pg.Qt.QtTest.QTest
+QRectF = pg.QtCore.QRectF
+
+def assertMapping(vb, r1, r2):
+    assert vb.mapFromView(r1.topLeft()) == r2.topLeft()
+    assert vb.mapFromView(r1.bottomLeft()) == r2.bottomLeft()
+    assert vb.mapFromView(r1.topRight()) == r2.topRight()
+    assert vb.mapFromView(r1.bottomRight()) == r2.bottomRight()
+
+def init_viewbox():
+    """Helper function to init the ViewBox
+    """
+    global win, vb
+    
+    win = pg.GraphicsWindow()
+    win.ci.layout.setContentsMargins(0,0,0,0)
+    win.resize(200, 200)
+    win.show()
+    vb = win.addViewBox()
+    
+    # set range before viewbox is shown
+    vb.setRange(xRange=[0, 10], yRange=[0, 10], padding=0)
+    
+    # required to make mapFromView work properly.
+    qtest.qWaitForWindowShown(win)
+    
+    g = pg.GridItem()
+    vb.addItem(g)
+    
+    app.processEvents()
+    
+def test_ViewBox():
+    init_viewbox()
+    
+    w = vb.geometry().width()
+    h = vb.geometry().height()
+    view1 = QRectF(0, 0, 10, 10)
+    size1 = QRectF(0, h, w, -h)
+    assertMapping(vb, view1, size1)
+    
+    # test resize
+    win.resize(400, 400)
+    app.processEvents()
+    w = vb.geometry().width()
+    h = vb.geometry().height()
+    size1 = QRectF(0, h, w, -h)
+    assertMapping(vb, view1, size1)
+    
+    # now lock aspect
+    vb.setAspectLocked()
+    
+    # test wide resize
+    win.resize(800, 400)
+    app.processEvents()
+    w = vb.geometry().width()
+    h = vb.geometry().height()
+    view1 = QRectF(-5, 0, 20, 10)
+    size1 = QRectF(0, h, w, -h)
+    assertMapping(vb, view1, size1)
+    
+    # test tall resize
+    win.resize(400, 800)
+    app.processEvents()
+    w = vb.geometry().width()
+    h = vb.geometry().height()
+    view1 = QRectF(0, -5, 10, 20)
+    size1 = QRectF(0, h, w, -h)
+    assertMapping(vb, view1, size1)
+
+
+skipreason = "Skipping this test until someone has time to fix it."
+@pytest.mark.skipif(True, reason=skipreason)
+def test_limits_and_resize():
+    init_viewbox()
+
+    # now lock aspect
+    vb.setAspectLocked()
+    # test limits + resize  (aspect ratio constraint has priority over limits
+    win.resize(400, 400)
+    app.processEvents()
+    vb.setLimits(xMin=0, xMax=10, yMin=0, yMax=10)
+    win.resize(800, 400)
+    app.processEvents()
+    w = vb.geometry().width()
+    h = vb.geometry().height()
+    view1 = QRectF(-5, 0, 20, 10)
+    size1 = QRectF(0, h, w, -h)
+    assertMapping(vb, view1, size1)
diff --git a/libs/pyqtgraph/graphicsItems/__init__.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/__init__.py
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/__init__.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/__init__.py
diff --git a/libs/pyqtgraph/graphicsItems/tests/test_GraphicsItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/tests/test_GraphicsItem.py
similarity index 100%
rename from libs/pyqtgraph/graphicsItems/tests/test_GraphicsItem.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/tests/test_GraphicsItem.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/tests/test_ImageItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/tests/test_ImageItem.py
new file mode 100644
index 00000000..4f310bc3
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/tests/test_ImageItem.py
@@ -0,0 +1,147 @@
+import time
+import pytest
+from pyqtgraph.Qt import QtCore, QtGui, QtTest
+import numpy as np
+import pyqtgraph as pg
+from pyqtgraph.tests import assertImageApproved, TransposedImageItem
+
+app = pg.mkQApp()
+
+
+def test_ImageItem(transpose=False):
+    
+    w = pg.GraphicsWindow()    
+    view = pg.ViewBox()
+    w.setCentralWidget(view)
+    w.resize(200, 200)
+    w.show()
+    img = TransposedImageItem(border=0.5, transpose=transpose)
+
+    view.addItem(img)
+    
+    # test mono float
+    np.random.seed(0)
+    data = np.random.normal(size=(20, 20))
+    dmax = data.max()
+    data[:10, 1] = dmax + 10
+    data[1, :10] = dmax + 12
+    data[3, :10] = dmax + 13
+    img.setImage(data)
+    
+    QtTest.QTest.qWaitForWindowShown(w)
+    time.sleep(0.1)
+    app.processEvents()
+    assertImageApproved(w, 'imageitem/init', 'Init image item. View is auto-scaled, image axis 0 marked by 1 line, axis 1 is marked by 2 lines. Origin in bottom-left.')
+    
+    # ..with colormap
+    cmap = pg.ColorMap([0, 0.25, 0.75, 1], [[0, 0, 0, 255], [255, 0, 0, 255], [255, 255, 0, 255], [255, 255, 255, 255]])
+    img.setLookupTable(cmap.getLookupTable())
+    assertImageApproved(w, 'imageitem/lut', 'Set image LUT.')
+    
+    # ..and different levels
+    img.setLevels([dmax+9, dmax+13])
+    assertImageApproved(w, 'imageitem/levels1', 'Levels show only axis lines.')
+
+    img.setLookupTable(None)
+
+    # test mono int
+    data = np.fromfunction(lambda x,y: x+y*10, (129, 128)).astype(np.int16)
+    img.setImage(data)
+    assertImageApproved(w, 'imageitem/gradient_mono_int', 'Mono int gradient.')
+    
+    img.setLevels([640, 641])
+    assertImageApproved(w, 'imageitem/gradient_mono_int_levels', 'Mono int gradient w/ levels to isolate diagonal.')
+
+    # test mono byte
+    data = np.fromfunction(lambda x,y: x+y, (129, 128)).astype(np.ubyte)
+    img.setImage(data)
+    assertImageApproved(w, 'imageitem/gradient_mono_byte', 'Mono byte gradient.')
+    
+    img.setLevels([127, 128])
+    assertImageApproved(w, 'imageitem/gradient_mono_byte_levels', 'Mono byte gradient w/ levels to isolate diagonal.')
+
+    # test monochrome image
+    data = np.zeros((10, 10), dtype='uint8')
+    data[:5,:5] = 1
+    data[5:,5:] = 1
+    img.setImage(data)
+    assertImageApproved(w, 'imageitem/monochrome', 'Ubyte image with only 0,1 values.')
+    
+    # test bool
+    data = data.astype(bool)
+    img.setImage(data)
+    assertImageApproved(w, 'imageitem/bool', 'Boolean mask.')
+
+    # test RGBA byte
+    data = np.zeros((100, 100, 4), dtype='ubyte')
+    data[..., 0] = np.linspace(0, 255, 100).reshape(100, 1)
+    data[..., 1] = np.linspace(0, 255, 100).reshape(1, 100)
+    data[..., 3] = 255
+    img.setImage(data)
+    assertImageApproved(w, 'imageitem/gradient_rgba_byte', 'RGBA byte gradient.')
+    
+    img.setLevels([[128, 129], [128, 255], [0, 1], [0, 255]])
+    assertImageApproved(w, 'imageitem/gradient_rgba_byte_levels', 'RGBA byte gradient. Levels set to show x=128 and y>128.')
+    
+    # test RGBA float
+    data = data.astype(float)
+    img.setImage(data / 1e9)
+    assertImageApproved(w, 'imageitem/gradient_rgba_float', 'RGBA float gradient.')
+
+    # checkerboard to test alpha
+    img2 = TransposedImageItem(transpose=transpose)
+    img2.setImage(np.fromfunction(lambda x,y: (x+y)%2, (10, 10)), levels=[-1,2])
+    view.addItem(img2)
+    img2.scale(10, 10)
+    img2.setZValue(-10)
+    
+    data[..., 0] *= 1e-9
+    data[..., 1] *= 1e9
+    data[..., 3] = np.fromfunction(lambda x,y: np.sin(0.1 * (x+y)), (100, 100))
+    img.setImage(data, levels=[[0, 128e-9],[0, 128e9],[0, 1],[-1, 1]])
+    assertImageApproved(w, 'imageitem/gradient_rgba_float_alpha', 'RGBA float gradient with alpha.')    
+
+    # test composition mode
+    img.setCompositionMode(QtGui.QPainter.CompositionMode_Plus)
+    assertImageApproved(w, 'imageitem/gradient_rgba_float_additive', 'RGBA float gradient with alpha and additive composition mode.')    
+    
+    img2.hide()
+    img.setCompositionMode(QtGui.QPainter.CompositionMode_SourceOver)
+    
+    # test downsampling
+    data = np.fromfunction(lambda x,y: np.cos(0.002 * x**2), (800, 100))
+    img.setImage(data, levels=[-1, 1])
+    assertImageApproved(w, 'imageitem/resolution_without_downsampling', 'Resolution test without downsampling.')
+    
+    img.setAutoDownsample(True)
+    assertImageApproved(w, 'imageitem/resolution_with_downsampling_x', 'Resolution test with downsampling axross x axis.')
+    assert img._lastDownsample == (4, 1)
+    
+    img.setImage(data.T, levels=[-1, 1])
+    assertImageApproved(w, 'imageitem/resolution_with_downsampling_y', 'Resolution test with downsampling across y axis.')
+    assert img._lastDownsample == (1, 4)
+    
+    view.hide()
+
+def test_ImageItem_axisorder():
+    # All image tests pass again using the opposite axis order
+    origMode = pg.getConfigOption('imageAxisOrder')
+    altMode = 'row-major' if origMode == 'col-major' else 'col-major'
+    pg.setConfigOptions(imageAxisOrder=altMode)
+    try:
+        test_ImageItem(transpose=True)
+    finally:
+        pg.setConfigOptions(imageAxisOrder=origMode)
+
+
+@pytest.mark.skipif(pg.Qt.USE_PYSIDE, reason="pyside does not have qWait")
+def test_dividebyzero():
+    import pyqtgraph as pg
+    im = pg.image(pg.np.random.normal(size=(100,100)))
+    im.imageItem.setAutoDownsample(True)
+    im.view.setRange(xRange=[-5+25, 5e+25],yRange=[-5e+25, 5e+25])
+    app.processEvents()
+    QtTest.QTest.qWait(1000)
+    # must manually call im.imageItem.render here or the exception
+    # will only exist on the Qt event loop
+    im.imageItem.render()
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/tests/test_InfiniteLine.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/tests/test_InfiniteLine.py
new file mode 100644
index 00000000..24438864
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/tests/test_InfiniteLine.py
@@ -0,0 +1,96 @@
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtGui, QtCore, QtTest
+from pyqtgraph.tests import mouseDrag, mouseMove
+pg.mkQApp()
+
+
+def test_InfiniteLine():
+    # Test basic InfiniteLine API
+    plt = pg.plot()
+    plt.setXRange(-10, 10)
+    plt.setYRange(-10, 10)
+    plt.resize(600, 600)
+    
+    # seemingly arbitrary requirements; might need longer wait time for some platforms..
+    QtTest.QTest.qWaitForWindowShown(plt)
+    QtTest.QTest.qWait(100)
+    
+    vline = plt.addLine(x=1)
+    assert vline.angle == 90
+    br = vline.mapToView(QtGui.QPolygonF(vline.boundingRect()))
+    assert br.containsPoint(pg.Point(1, 5), QtCore.Qt.OddEvenFill)
+    assert not br.containsPoint(pg.Point(5, 0), QtCore.Qt.OddEvenFill)
+    hline = plt.addLine(y=0)
+    assert hline.angle == 0
+    assert hline.boundingRect().contains(pg.Point(5, 0))
+    assert not hline.boundingRect().contains(pg.Point(0, 5))
+
+    vline.setValue(2)
+    assert vline.value() == 2
+    vline.setPos(pg.Point(4, -5))
+    assert vline.value() == 4
+    
+    oline = pg.InfiniteLine(angle=30)
+    plt.addItem(oline)
+    oline.setPos(pg.Point(1, -1))
+    assert oline.angle == 30
+    assert oline.pos() == pg.Point(1, -1)
+    assert oline.value() == [1, -1]
+    
+    # test bounding rect for oblique line
+    br = oline.mapToScene(oline.boundingRect())
+    pos = oline.mapToScene(pg.Point(2, 0))
+    assert br.containsPoint(pos, QtCore.Qt.OddEvenFill)
+    px = pg.Point(-0.5, -1.0 / 3**0.5)
+    assert br.containsPoint(pos + 5 * px, QtCore.Qt.OddEvenFill)
+    assert not br.containsPoint(pos + 7 * px, QtCore.Qt.OddEvenFill)
+    
+
+def test_mouseInteraction():
+    plt = pg.plot()
+    plt.scene().minDragTime = 0  # let us simulate mouse drags very quickly.
+    vline = plt.addLine(x=0, movable=True)
+    plt.addItem(vline)
+    hline = plt.addLine(y=0, movable=True)
+    hline2 = plt.addLine(y=-1, movable=False)
+    plt.setXRange(-10, 10)
+    plt.setYRange(-10, 10)
+    
+    # test horizontal drag
+    pos = plt.plotItem.vb.mapViewToScene(pg.Point(0,5)).toPoint()
+    pos2 = pos - QtCore.QPoint(200, 200)
+    mouseMove(plt, pos)
+    assert vline.mouseHovering is True and hline.mouseHovering is False
+    mouseDrag(plt, pos, pos2, QtCore.Qt.LeftButton)
+    px = vline.pixelLength(pg.Point(1, 0), ortho=True)
+    assert abs(vline.value() - plt.plotItem.vb.mapSceneToView(pos2).x()) <= px
+
+    # test missed drag
+    pos = plt.plotItem.vb.mapViewToScene(pg.Point(5,0)).toPoint()
+    pos = pos + QtCore.QPoint(0, 6)
+    pos2 = pos + QtCore.QPoint(-20, -20)
+    mouseMove(plt, pos)
+    assert vline.mouseHovering is False and hline.mouseHovering is False
+    mouseDrag(plt, pos, pos2, QtCore.Qt.LeftButton)
+    assert hline.value() == 0
+
+    # test vertical drag
+    pos = plt.plotItem.vb.mapViewToScene(pg.Point(5,0)).toPoint()
+    pos2 = pos - QtCore.QPoint(50, 50)
+    mouseMove(plt, pos)
+    assert vline.mouseHovering is False and hline.mouseHovering is True
+    mouseDrag(plt, pos, pos2, QtCore.Qt.LeftButton)
+    px = hline.pixelLength(pg.Point(1, 0), ortho=True)
+    assert abs(hline.value() - plt.plotItem.vb.mapSceneToView(pos2).y()) <= px
+
+    # test non-interactive line
+    pos = plt.plotItem.vb.mapViewToScene(pg.Point(5,-1)).toPoint()
+    pos2 = pos - QtCore.QPoint(50, 50)
+    mouseMove(plt, pos)
+    assert hline2.mouseHovering == False
+    mouseDrag(plt, pos, pos2, QtCore.Qt.LeftButton)
+    assert hline2.value() == -1
+
+
+if __name__ == '__main__':
+    test_mouseInteraction()
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/tests/test_PlotCurveItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/tests/test_PlotCurveItem.py
new file mode 100644
index 00000000..a3c34b11
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/tests/test_PlotCurveItem.py
@@ -0,0 +1,34 @@
+import numpy as np
+import pyqtgraph as pg
+from pyqtgraph.tests import assertImageApproved
+
+
+def test_PlotCurveItem():
+    p = pg.GraphicsWindow()
+    p.ci.layout.setContentsMargins(4, 4, 4, 4)  # default margins vary by platform
+    v = p.addViewBox()
+    p.resize(200, 150)
+    data = np.array([1,4,2,3,np.inf,5,7,6,-np.inf,8,10,9,np.nan,-1,-2,0])
+    c = pg.PlotCurveItem(data)
+    v.addItem(c)
+    v.autoRange()
+    
+    # Check auto-range works. Some platform differences may be expected..
+    checkRange = np.array([[-1.1457564053237301, 16.145756405323731], [-3.076811473165955, 11.076811473165955]])
+    assert np.allclose(v.viewRange(), checkRange)
+    
+    assertImageApproved(p, 'plotcurveitem/connectall', "Plot curve with all points connected.")
+    
+    c.setData(data, connect='pairs')
+    assertImageApproved(p, 'plotcurveitem/connectpairs', "Plot curve with pairs connected.")
+    
+    c.setData(data, connect='finite')
+    assertImageApproved(p, 'plotcurveitem/connectfinite', "Plot curve with finite points connected.")
+    
+    c.setData(data, connect=np.array([1,1,1,0,1,1,0,0,1,0,0,0,1,1,0,0]))
+    assertImageApproved(p, 'plotcurveitem/connectarray', "Plot curve with connection array.")
+    
+
+
+if __name__ == '__main__':
+    test_PlotCurveItem()
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/tests/test_ROI.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/tests/test_ROI.py
new file mode 100644
index 00000000..9e67fb8d
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/tests/test_ROI.py
@@ -0,0 +1,226 @@
+import numpy as np
+import pytest
+import pyqtgraph as pg
+from pyqtgraph.Qt import QtCore, QtTest
+from pyqtgraph.tests import assertImageApproved, mouseMove, mouseDrag, mouseClick, TransposedImageItem
+
+
+app = pg.mkQApp()
+
+
+def test_getArrayRegion(transpose=False):
+    pr = pg.PolyLineROI([[0, 0], [27, 0], [0, 28]], closed=True)
+    pr.setPos(1, 1)
+    rois = [
+        (pg.ROI([1, 1], [27, 28], pen='y'), 'baseroi'),
+        (pg.RectROI([1, 1], [27, 28], pen='y'), 'rectroi'),
+        (pg.EllipseROI([1, 1], [27, 28], pen='y'), 'ellipseroi'),
+        (pr, 'polylineroi'),
+    ]
+    for roi, name in rois:
+        # For some ROIs, resize should not be used.
+        testResize = not isinstance(roi, pg.PolyLineROI)
+        
+        origMode = pg.getConfigOption('imageAxisOrder')
+        try:
+            if transpose:
+                pg.setConfigOptions(imageAxisOrder='row-major')
+                check_getArrayRegion(roi, 'roi/'+name, testResize, transpose=True)
+            else:
+                pg.setConfigOptions(imageAxisOrder='col-major')
+                check_getArrayRegion(roi, 'roi/'+name, testResize)
+        finally:
+            pg.setConfigOptions(imageAxisOrder=origMode)
+    
+
+def test_getArrayRegion_axisorder():
+    test_getArrayRegion(transpose=True)
+
+    
+def check_getArrayRegion(roi, name, testResize=True, transpose=False):
+    initState = roi.getState()
+    
+    #win = pg.GraphicsLayoutWidget()
+    win = pg.GraphicsView()
+    win.show()
+    win.resize(200, 400)
+    
+    # Don't use Qt's layouts for testing--these generate unpredictable results.
+    #vb1 = win.addViewBox()
+    #win.nextRow()
+    #vb2 = win.addViewBox()
+    
+    # Instead, place the viewboxes manually 
+    vb1 = pg.ViewBox()
+    win.scene().addItem(vb1)
+    vb1.setPos(6, 6)
+    vb1.resize(188, 191)
+
+    vb2 = pg.ViewBox()
+    win.scene().addItem(vb2)
+    vb2.setPos(6, 203)
+    vb2.resize(188, 191)
+    
+    img1 = pg.ImageItem(border='w')
+    img2 = pg.ImageItem(border='w')
+
+    vb1.addItem(img1)
+    vb2.addItem(img2)
+    
+    np.random.seed(0)
+    data = np.random.normal(size=(7, 30, 31, 5))
+    data[0, :, :, :] += 10
+    data[:, 1, :, :] += 10
+    data[:, :, 2, :] += 10
+    data[:, :, :, 3] += 10
+    
+    if transpose:
+        data = data.transpose(0, 2, 1, 3)
+    
+    img1.setImage(data[0, ..., 0])
+    vb1.setAspectLocked()
+    vb1.enableAutoRange(True, True)
+    
+    roi.setZValue(10)
+    vb1.addItem(roi)
+
+    if isinstance(roi, pg.RectROI):
+        if transpose:
+            assert roi.getAffineSliceParams(data, img1, axes=(1, 2)) == ([28.0, 27.0], ((1.0, 0.0), (0.0, 1.0)), (1.0, 1.0))
+        else:
+            assert roi.getAffineSliceParams(data, img1, axes=(1, 2)) == ([27.0, 28.0], ((1.0, 0.0), (0.0, 1.0)), (1.0, 1.0))
+
+    rgn = roi.getArrayRegion(data, img1, axes=(1, 2))
+    #assert np.all((rgn == data[:, 1:-2, 1:-2, :]) | (rgn == 0))
+    img2.setImage(rgn[0, ..., 0])
+    vb2.setAspectLocked()
+    vb2.enableAutoRange(True, True)
+    
+    app.processEvents()
+    
+    assertImageApproved(win, name+'/roi_getarrayregion', 'Simple ROI region selection.')
+
+    with pytest.raises(TypeError):
+        roi.setPos(0, False)
+
+    roi.setPos([0.5, 1.5])
+    rgn = roi.getArrayRegion(data, img1, axes=(1, 2))
+    img2.setImage(rgn[0, ..., 0])
+    app.processEvents()
+    assertImageApproved(win, name+'/roi_getarrayregion_halfpx', 'Simple ROI region selection, 0.5 pixel shift.')
+
+    roi.setAngle(45)
+    roi.setPos([3, 0])
+    rgn = roi.getArrayRegion(data, img1, axes=(1, 2))
+    img2.setImage(rgn[0, ..., 0])
+    app.processEvents()
+    assertImageApproved(win, name+'/roi_getarrayregion_rotate', 'Simple ROI region selection, rotation.')
+
+    if testResize:
+        roi.setSize([60, 60])
+        rgn = roi.getArrayRegion(data, img1, axes=(1, 2))
+        img2.setImage(rgn[0, ..., 0])
+        app.processEvents()
+        assertImageApproved(win, name+'/roi_getarrayregion_resize', 'Simple ROI region selection, resized.')
+
+    img1.scale(1, -1)
+    img1.setPos(0, img1.height())
+    img1.rotate(20)
+    rgn = roi.getArrayRegion(data, img1, axes=(1, 2))
+    img2.setImage(rgn[0, ..., 0])
+    app.processEvents()
+    assertImageApproved(win, name+'/roi_getarrayregion_img_trans', 'Simple ROI region selection, image transformed.')
+
+    vb1.invertY()
+    rgn = roi.getArrayRegion(data, img1, axes=(1, 2))
+    img2.setImage(rgn[0, ..., 0])
+    app.processEvents()
+    assertImageApproved(win, name+'/roi_getarrayregion_inverty', 'Simple ROI region selection, view inverted.')
+
+    roi.setState(initState)
+    img1.resetTransform()
+    img1.setPos(0, 0)
+    img1.scale(1, 0.5)
+    rgn = roi.getArrayRegion(data, img1, axes=(1, 2))
+    img2.setImage(rgn[0, ..., 0])
+    app.processEvents()
+    assertImageApproved(win, name+'/roi_getarrayregion_anisotropic', 'Simple ROI region selection, image scaled anisotropically.')
+    
+    # allow the roi to be re-used
+    roi.scene().removeItem(roi)
+
+
+def test_PolyLineROI():
+    rois = [
+        (pg.PolyLineROI([[0, 0], [10, 0], [0, 15]], closed=True, pen=0.3), 'closed'),
+        (pg.PolyLineROI([[0, 0], [10, 0], [0, 15]], closed=False, pen=0.3), 'open')
+    ]
+    
+    #plt = pg.plot()
+    plt = pg.GraphicsView()
+    plt.show()
+    plt.resize(200, 200)
+    vb = pg.ViewBox()
+    plt.scene().addItem(vb)
+    vb.resize(200, 200)
+    #plt.plotItem = pg.PlotItem()
+    #plt.scene().addItem(plt.plotItem)
+    #plt.plotItem.resize(200, 200)
+    
+
+    plt.scene().minDragTime = 0  # let us simulate mouse drags very quickly.
+
+    # seemingly arbitrary requirements; might need longer wait time for some platforms..
+    QtTest.QTest.qWaitForWindowShown(plt)
+    QtTest.QTest.qWait(100)
+    
+    for r, name in rois:
+        vb.clear()
+        vb.addItem(r)
+        vb.autoRange()
+        app.processEvents()
+        
+        assertImageApproved(plt, 'roi/polylineroi/'+name+'_init', 'Init %s polyline.' % name)
+        initState = r.getState()
+        assert len(r.getState()['points']) == 3
+        
+        # hover over center
+        center = r.mapToScene(pg.Point(3, 3))
+        mouseMove(plt, center)
+        assertImageApproved(plt, 'roi/polylineroi/'+name+'_hover_roi', 'Hover mouse over center of ROI.')
+        
+        # drag ROI
+        mouseDrag(plt, center, center + pg.Point(10, -10), QtCore.Qt.LeftButton)
+        assertImageApproved(plt, 'roi/polylineroi/'+name+'_drag_roi', 'Drag mouse over center of ROI.')
+        
+        # hover over handle
+        pt = r.mapToScene(pg.Point(r.getState()['points'][2]))
+        mouseMove(plt, pt)
+        assertImageApproved(plt, 'roi/polylineroi/'+name+'_hover_handle', 'Hover mouse over handle.')
+        
+        # drag handle
+        mouseDrag(plt, pt, pt + pg.Point(5, 20), QtCore.Qt.LeftButton)
+        assertImageApproved(plt, 'roi/polylineroi/'+name+'_drag_handle', 'Drag mouse over handle.')
+        
+        # hover over segment 
+        pt = r.mapToScene((pg.Point(r.getState()['points'][2]) + pg.Point(r.getState()['points'][1])) * 0.5)
+        mouseMove(plt, pt+pg.Point(0, 2))
+        assertImageApproved(plt, 'roi/polylineroi/'+name+'_hover_segment', 'Hover mouse over diagonal segment.')
+        
+        # click segment
+        mouseClick(plt, pt, QtCore.Qt.LeftButton)
+        assertImageApproved(plt, 'roi/polylineroi/'+name+'_click_segment', 'Click mouse over segment.')
+        
+        r.clearPoints()
+        assertImageApproved(plt, 'roi/polylineroi/'+name+'_clear', 'All points cleared.')
+        assert len(r.getState()['points']) == 0
+        
+        r.setPoints(initState['points'])
+        assertImageApproved(plt, 'roi/polylineroi/'+name+'_setpoints', 'Reset points to initial state.')
+        assert len(r.getState()['points']) == 3
+        
+        r.setState(initState)
+        assertImageApproved(plt, 'roi/polylineroi/'+name+'_setstate', 'Reset ROI to initial state.')
+        assert len(r.getState()['points']) == 3
+        
+    
\ No newline at end of file
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/tests/test_ScatterPlotItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/tests/test_ScatterPlotItem.py
new file mode 100644
index 00000000..acf6ad72
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsItems/tests/test_ScatterPlotItem.py
@@ -0,0 +1,90 @@
+import pyqtgraph as pg
+import numpy as np
+app = pg.mkQApp()
+app.processEvents()
+
+
+
+def test_scatterplotitem():
+    plot = pg.PlotWidget()
+    # set view range equal to its bounding rect. 
+    # This causes plots to look the same regardless of pxMode.
+    plot.setRange(rect=plot.boundingRect())
+    for i, pxMode in enumerate([True, False]):
+        for j, useCache in enumerate([True, False]):
+            s = pg.ScatterPlotItem()
+            s.opts['useCache'] = useCache
+            plot.addItem(s)
+            s.setData(x=np.array([10,40,20,30])+i*100, y=np.array([40,60,10,30])+j*100, pxMode=pxMode)
+            s.addPoints(x=np.array([60, 70])+i*100, y=np.array([60, 70])+j*100, size=[20, 30])
+            
+            # Test uniform spot updates
+            s.setSize(10)
+            s.setBrush('r')
+            s.setPen('g')
+            s.setSymbol('+')
+            app.processEvents()
+            
+            # Test list spot updates
+            s.setSize([10] * 6)
+            s.setBrush([pg.mkBrush('r')] * 6)
+            s.setPen([pg.mkPen('g')] * 6)
+            s.setSymbol(['+'] * 6)
+            s.setPointData([s] * 6)
+            app.processEvents()
+
+            # Test array spot updates
+            s.setSize(np.array([10] * 6))
+            s.setBrush(np.array([pg.mkBrush('r')] * 6))
+            s.setPen(np.array([pg.mkPen('g')] * 6))
+            s.setSymbol(np.array(['+'] * 6))
+            s.setPointData(np.array([s] * 6))
+            app.processEvents()
+
+            # Test per-spot updates
+            spot = s.points()[0]
+            spot.setSize(20)
+            spot.setBrush('b')
+            spot.setPen('g')
+            spot.setSymbol('o')
+            spot.setData(None)
+            app.processEvents()
+
+    plot.clear()
+
+
+def test_init_spots():
+    plot = pg.PlotWidget()
+    # set view range equal to its bounding rect. 
+    # This causes plots to look the same regardless of pxMode.
+    plot.setRange(rect=plot.boundingRect())
+    spots = [
+        {'x': 0, 'y': 1},
+        {'pos': (1, 2), 'pen': None, 'brush': None, 'data': 'zzz'},
+    ]
+    s = pg.ScatterPlotItem(spots=spots)
+    
+    # Check we can display without errors
+    plot.addItem(s)
+    app.processEvents()
+    plot.clear()
+    
+    # check data is correct
+    spots = s.points()
+    
+    defPen = pg.mkPen(pg.getConfigOption('foreground'))
+
+    assert spots[0].pos().x() == 0
+    assert spots[0].pos().y() == 1
+    assert spots[0].pen() == defPen
+    assert spots[0].data() is None
+    
+    assert spots[1].pos().x() == 1
+    assert spots[1].pos().y() == 2
+    assert spots[1].pen() == pg.mkPen(None)
+    assert spots[1].brush() == pg.mkBrush(None)
+    assert spots[1].data() == 'zzz'
+    
+
+if __name__ == '__main__':
+    test_scatterplotitem()
diff --git a/libs/pyqtgraph/graphicsWindows.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsWindows.py
similarity index 100%
rename from libs/pyqtgraph/graphicsWindows.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/graphicsWindows.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/imageview/ImageView.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/imageview/ImageView.py
new file mode 100644
index 00000000..5cc00f68
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/imageview/ImageView.py
@@ -0,0 +1,770 @@
+# -*- coding: utf-8 -*-
+"""
+ImageView.py -  Widget for basic image dispay and analysis
+Copyright 2010  Luke Campagnola
+Distributed under MIT/X11 license. See license.txt for more infomation.
+
+Widget used for displaying 2D or 3D data. Features:
+  - float or int (including 16-bit int) image display via ImageItem
+  - zoom/pan via GraphicsView
+  - black/white level controls
+  - time slider for 3D data sets
+  - ROI plotting
+  - Image normalization through a variety of methods
+"""
+import os
+import numpy as np
+
+from ..Qt import QtCore, QtGui, USE_PYSIDE
+if USE_PYSIDE:
+    from .ImageViewTemplate_pyside import *
+else:
+    from .ImageViewTemplate_pyqt import *
+    
+from ..graphicsItems.ImageItem import *
+from ..graphicsItems.ROI import *
+from ..graphicsItems.LinearRegionItem import *
+from ..graphicsItems.InfiniteLine import *
+from ..graphicsItems.ViewBox import *
+from ..graphicsItems.GradientEditorItem import addGradientListToDocstring
+from .. import ptime as ptime
+from .. import debug as debug
+from ..SignalProxy import SignalProxy
+from .. import getConfigOption
+
+try:
+    from bottleneck import nanmin, nanmax
+except ImportError:
+    from numpy import nanmin, nanmax
+
+
+class PlotROI(ROI):
+    def __init__(self, size):
+        ROI.__init__(self, pos=[0,0], size=size) #, scaleSnap=True, translateSnap=True)
+        self.addScaleHandle([1, 1], [0, 0])
+        self.addRotateHandle([0, 0], [0.5, 0.5])
+
+
+class ImageView(QtGui.QWidget):
+    """
+    Widget used for display and analysis of image data.
+    Implements many features:
+    
+    * Displays 2D and 3D image data. For 3D data, a z-axis
+      slider is displayed allowing the user to select which frame is displayed.
+    * Displays histogram of image data with movable region defining the dark/light levels
+    * Editable gradient provides a color lookup table 
+    * Frame slider may also be moved using left/right arrow keys as well as pgup, pgdn, home, and end.
+    * Basic analysis features including:
+    
+        * ROI and embedded plot for measuring image values across frames
+        * Image normalization / background subtraction 
+    
+    Basic Usage::
+    
+        imv = pg.ImageView()
+        imv.show()
+        imv.setImage(data)
+        
+    **Keyboard interaction**
+    
+    * left/right arrows step forward/backward 1 frame when pressed,
+      seek at 20fps when held.
+    * up/down arrows seek at 100fps
+    * pgup/pgdn seek at 1000fps
+    * home/end seek immediately to the first/last frame
+    * space begins playing frames. If time values (in seconds) are given 
+      for each frame, then playback is in realtime.
+    """
+    sigTimeChanged = QtCore.Signal(object, object)
+    sigProcessingChanged = QtCore.Signal(object)
+    
+    def __init__(self, parent=None, name="ImageView", view=None, imageItem=None, *args):
+        """
+        By default, this class creates an :class:`ImageItem <pyqtgraph.ImageItem>` to display image data
+        and a :class:`ViewBox <pyqtgraph.ViewBox>` to contain the ImageItem. 
+        
+        ============= =========================================================
+        **Arguments** 
+        parent        (QWidget) Specifies the parent widget to which
+                      this ImageView will belong. If None, then the ImageView
+                      is created with no parent.
+        name          (str) The name used to register both the internal ViewBox
+                      and the PlotItem used to display ROI data. See the *name*
+                      argument to :func:`ViewBox.__init__() 
+                      <pyqtgraph.ViewBox.__init__>`.
+        view          (ViewBox or PlotItem) If specified, this will be used
+                      as the display area that contains the displayed image. 
+                      Any :class:`ViewBox <pyqtgraph.ViewBox>`, 
+                      :class:`PlotItem <pyqtgraph.PlotItem>`, or other 
+                      compatible object is acceptable.
+        imageItem     (ImageItem) If specified, this object will be used to
+                      display the image. Must be an instance of ImageItem
+                      or other compatible object.
+        ============= =========================================================
+        
+        Note: to display axis ticks inside the ImageView, instantiate it 
+        with a PlotItem instance as its view::
+                
+            pg.ImageView(view=pg.PlotItem())
+        """
+        QtGui.QWidget.__init__(self, parent, *args)
+        self.levelMax = 4096
+        self.levelMin = 0
+        self.name = name
+        self.image = None
+        self.axes = {}
+        self.imageDisp = None
+        self.ui = Ui_Form()
+        self.ui.setupUi(self)
+        self.scene = self.ui.graphicsView.scene()
+        
+        self.ignoreTimeLine = False
+        
+        if view is None:
+            self.view = ViewBox()
+        else:
+            self.view = view
+        self.ui.graphicsView.setCentralItem(self.view)
+        self.view.setAspectLocked(True)
+        self.view.invertY()
+        
+        if imageItem is None:
+            self.imageItem = ImageItem()
+        else:
+            self.imageItem = imageItem
+        self.view.addItem(self.imageItem)
+        self.currentIndex = 0
+        
+        self.ui.histogram.setImageItem(self.imageItem)
+        
+        self.menu = None
+        
+        self.ui.normGroup.hide()
+
+        self.roi = PlotROI(10)
+        self.roi.setZValue(20)
+        self.view.addItem(self.roi)
+        self.roi.hide()
+        self.normRoi = PlotROI(10)
+        self.normRoi.setPen('y')
+        self.normRoi.setZValue(20)
+        self.view.addItem(self.normRoi)
+        self.normRoi.hide()
+        self.roiCurve = self.ui.roiPlot.plot()
+        self.timeLine = InfiniteLine(0, movable=True)
+        self.timeLine.setPen((255, 255, 0, 200))
+        self.timeLine.setZValue(1)
+        self.ui.roiPlot.addItem(self.timeLine)
+        self.ui.splitter.setSizes([self.height()-35, 35])
+        self.ui.roiPlot.hideAxis('left')
+        
+        self.keysPressed = {}
+        self.playTimer = QtCore.QTimer()
+        self.playRate = 0
+        self.lastPlayTime = 0
+        
+        self.normRgn = LinearRegionItem()
+        self.normRgn.setZValue(0)
+        self.ui.roiPlot.addItem(self.normRgn)
+        self.normRgn.hide()
+            
+        ## wrap functions from view box
+        for fn in ['addItem', 'removeItem']:
+            setattr(self, fn, getattr(self.view, fn))
+
+        ## wrap functions from histogram
+        for fn in ['setHistogramRange', 'autoHistogramRange', 'getLookupTable', 'getLevels']:
+            setattr(self, fn, getattr(self.ui.histogram, fn))
+
+        self.timeLine.sigPositionChanged.connect(self.timeLineChanged)
+        self.ui.roiBtn.clicked.connect(self.roiClicked)
+        self.roi.sigRegionChanged.connect(self.roiChanged)
+        #self.ui.normBtn.toggled.connect(self.normToggled)
+        self.ui.menuBtn.clicked.connect(self.menuClicked)
+        self.ui.normDivideRadio.clicked.connect(self.normRadioChanged)
+        self.ui.normSubtractRadio.clicked.connect(self.normRadioChanged)
+        self.ui.normOffRadio.clicked.connect(self.normRadioChanged)
+        self.ui.normROICheck.clicked.connect(self.updateNorm)
+        self.ui.normFrameCheck.clicked.connect(self.updateNorm)
+        self.ui.normTimeRangeCheck.clicked.connect(self.updateNorm)
+        self.playTimer.timeout.connect(self.timeout)
+        
+        self.normProxy = SignalProxy(self.normRgn.sigRegionChanged, slot=self.updateNorm)
+        self.normRoi.sigRegionChangeFinished.connect(self.updateNorm)
+        
+        self.ui.roiPlot.registerPlot(self.name + '_ROI')
+        self.view.register(self.name)
+        
+        self.noRepeatKeys = [QtCore.Qt.Key_Right, QtCore.Qt.Key_Left, QtCore.Qt.Key_Up, QtCore.Qt.Key_Down, QtCore.Qt.Key_PageUp, QtCore.Qt.Key_PageDown]
+        
+        self.roiClicked() ## initialize roi plot to correct shape / visibility
+
+    def setImage(self, img, autoRange=True, autoLevels=True, levels=None, axes=None, xvals=None, pos=None, scale=None, transform=None, autoHistogramRange=True):
+        """
+        Set the image to be displayed in the widget.
+        
+        ================== ===========================================================================
+        **Arguments:**
+        img                (numpy array) the image to be displayed. See :func:`ImageItem.setImage` and
+                           *notes* below.
+        xvals              (numpy array) 1D array of z-axis values corresponding to the third axis
+                           in a 3D image. For video, this array should contain the time of each frame.
+        autoRange          (bool) whether to scale/pan the view to fit the image.
+        autoLevels         (bool) whether to update the white/black levels to fit the image.
+        levels             (min, max); the white and black level values to use.
+        axes               Dictionary indicating the interpretation for each axis.
+                           This is only needed to override the default guess. Format is::
+                       
+                               {'t':0, 'x':1, 'y':2, 'c':3};
+        
+        pos                Change the position of the displayed image
+        scale              Change the scale of the displayed image
+        transform          Set the transform of the displayed image. This option overrides *pos*
+                           and *scale*.
+        autoHistogramRange If True, the histogram y-range is automatically scaled to fit the
+                           image data.
+        ================== ===========================================================================
+
+        **Notes:**        
+        
+        For backward compatibility, image data is assumed to be in column-major order (column, row).
+        However, most image data is stored in row-major order (row, column) and will need to be
+        transposed before calling setImage()::
+        
+            imageview.setImage(imagedata.T)
+            
+        This requirement can be changed by the ``imageAxisOrder``
+        :ref:`global configuration option <apiref_config>`.
+        
+        """
+        profiler = debug.Profiler()
+        
+        if hasattr(img, 'implements') and img.implements('MetaArray'):
+            img = img.asarray()
+        
+        if not isinstance(img, np.ndarray):
+            required = ['dtype', 'max', 'min', 'ndim', 'shape', 'size']
+            if not all([hasattr(img, attr) for attr in required]):
+                raise TypeError("Image must be NumPy array or any object "
+                                "that provides compatible attributes/methods:\n"
+                                "  %s" % str(required))
+        
+        self.image = img
+        self.imageDisp = None
+        
+        profiler()
+        
+        if axes is None:
+            x,y = (0, 1) if self.imageItem.axisOrder == 'col-major' else (1, 0)
+            
+            if img.ndim == 2:
+                self.axes = {'t': None, 'x': x, 'y': y, 'c': None}
+            elif img.ndim == 3:
+                # Ambiguous case; make a guess
+                if img.shape[2] <= 4:
+                    self.axes = {'t': None, 'x': x, 'y': y, 'c': 2}
+                else:
+                    self.axes = {'t': 0, 'x': x+1, 'y': y+1, 'c': None}
+            elif img.ndim == 4:
+                # Even more ambiguous; just assume the default
+                self.axes = {'t': 0, 'x': x+1, 'y': y+1, 'c': 3}
+            else:
+                raise Exception("Can not interpret image with dimensions %s" % (str(img.shape)))
+        elif isinstance(axes, dict):
+            self.axes = axes.copy()
+        elif isinstance(axes, list) or isinstance(axes, tuple):
+            self.axes = {}
+            for i in range(len(axes)):
+                self.axes[axes[i]] = i
+        else:
+            raise Exception("Can not interpret axis specification %s. Must be like {'t': 2, 'x': 0, 'y': 1} or ('t', 'x', 'y', 'c')" % (str(axes)))
+            
+        for x in ['t', 'x', 'y', 'c']:
+            self.axes[x] = self.axes.get(x, None)
+        axes = self.axes
+
+        if xvals is not None:
+            self.tVals = xvals
+        elif axes['t'] is not None:
+            if hasattr(img, 'xvals'):
+                try:
+                    self.tVals = img.xvals(axes['t'])
+                except:
+                    self.tVals = np.arange(img.shape[axes['t']])
+            else:
+                self.tVals = np.arange(img.shape[axes['t']])
+
+        profiler()
+
+        self.currentIndex = 0
+        self.updateImage(autoHistogramRange=autoHistogramRange)
+        if levels is None and autoLevels:
+            self.autoLevels()
+        if levels is not None:  ## this does nothing since getProcessedImage sets these values again.
+            self.setLevels(*levels)
+            
+        if self.ui.roiBtn.isChecked():
+            self.roiChanged()
+
+        profiler()
+
+        if self.axes['t'] is not None:
+            #self.ui.roiPlot.show()
+            self.ui.roiPlot.setXRange(self.tVals.min(), self.tVals.max())
+            self.timeLine.setValue(0)
+            #self.ui.roiPlot.setMouseEnabled(False, False)
+            if len(self.tVals) > 1:
+                start = self.tVals.min()
+                stop = self.tVals.max() + abs(self.tVals[-1] - self.tVals[0]) * 0.02
+            elif len(self.tVals) == 1:
+                start = self.tVals[0] - 0.5
+                stop = self.tVals[0] + 0.5
+            else:
+                start = 0
+                stop = 1
+            for s in [self.timeLine, self.normRgn]:
+                s.setBounds([start, stop])
+        #else:
+            #self.ui.roiPlot.hide()
+        profiler()
+
+        self.imageItem.resetTransform()
+        if scale is not None:
+            self.imageItem.scale(*scale)
+        if pos is not None:
+            self.imageItem.setPos(*pos)
+        if transform is not None:
+            self.imageItem.setTransform(transform)
+
+        profiler()
+
+        if autoRange:
+            self.autoRange()
+        self.roiClicked()
+
+        profiler()
+
+    def clear(self):
+        self.image = None
+        self.imageItem.clear()
+        
+    def play(self, rate):
+        """Begin automatically stepping frames forward at the given rate (in fps).
+        This can also be accessed by pressing the spacebar."""
+        #print "play:", rate
+        self.playRate = rate
+        if rate == 0:
+            self.playTimer.stop()
+            return
+            
+        self.lastPlayTime = ptime.time()
+        if not self.playTimer.isActive():
+            self.playTimer.start(16)
+            
+    def autoLevels(self):
+        """Set the min/max intensity levels automatically to match the image data."""
+        self.setLevels(self.levelMin, self.levelMax)
+
+    def setLevels(self, min, max):
+        """Set the min/max (bright and dark) levels."""
+        self.ui.histogram.setLevels(min, max)
+
+    def autoRange(self):
+        """Auto scale and pan the view around the image such that the image fills the view."""
+        image = self.getProcessedImage()
+        self.view.autoRange()
+        
+    def getProcessedImage(self):
+        """Returns the image data after it has been processed by any normalization options in use.
+        This method also sets the attributes self.levelMin and self.levelMax 
+        to indicate the range of data in the image."""
+        if self.imageDisp is None:
+            image = self.normalize(self.image)
+            self.imageDisp = image
+            self.levelMin, self.levelMax = list(map(float, self.quickMinMax(self.imageDisp)))
+            
+        return self.imageDisp
+        
+    def close(self):
+        """Closes the widget nicely, making sure to clear the graphics scene and release memory."""
+        self.ui.roiPlot.close()
+        self.ui.graphicsView.close()
+        self.scene.clear()
+        del self.image
+        del self.imageDisp
+        super(ImageView, self).close()
+        self.setParent(None)
+        
+    def keyPressEvent(self, ev):
+        #print ev.key()
+        if ev.key() == QtCore.Qt.Key_Space:
+            if self.playRate == 0:
+                fps = (self.getProcessedImage().shape[0]-1) / (self.tVals[-1] - self.tVals[0])
+                self.play(fps)
+                #print fps
+            else:
+                self.play(0)
+            ev.accept()
+        elif ev.key() == QtCore.Qt.Key_Home:
+            self.setCurrentIndex(0)
+            self.play(0)
+            ev.accept()
+        elif ev.key() == QtCore.Qt.Key_End:
+            self.setCurrentIndex(self.getProcessedImage().shape[0]-1)
+            self.play(0)
+            ev.accept()
+        elif ev.key() in self.noRepeatKeys:
+            ev.accept()
+            if ev.isAutoRepeat():
+                return
+            self.keysPressed[ev.key()] = 1
+            self.evalKeyState()
+        else:
+            QtGui.QWidget.keyPressEvent(self, ev)
+
+    def keyReleaseEvent(self, ev):
+        if ev.key() in [QtCore.Qt.Key_Space, QtCore.Qt.Key_Home, QtCore.Qt.Key_End]:
+            ev.accept()
+        elif ev.key() in self.noRepeatKeys:
+            ev.accept()
+            if ev.isAutoRepeat():
+                return
+            try:
+                del self.keysPressed[ev.key()]
+            except:
+                self.keysPressed = {}
+            self.evalKeyState()
+        else:
+            QtGui.QWidget.keyReleaseEvent(self, ev)
+        
+    def evalKeyState(self):
+        if len(self.keysPressed) == 1:
+            key = list(self.keysPressed.keys())[0]
+            if key == QtCore.Qt.Key_Right:
+                self.play(20)
+                self.jumpFrames(1)
+                self.lastPlayTime = ptime.time() + 0.2  ## 2ms wait before start
+                                                        ## This happens *after* jumpFrames, since it might take longer than 2ms
+            elif key == QtCore.Qt.Key_Left:
+                self.play(-20)
+                self.jumpFrames(-1)
+                self.lastPlayTime = ptime.time() + 0.2
+            elif key == QtCore.Qt.Key_Up:
+                self.play(-100)
+            elif key == QtCore.Qt.Key_Down:
+                self.play(100)
+            elif key == QtCore.Qt.Key_PageUp:
+                self.play(-1000)
+            elif key == QtCore.Qt.Key_PageDown:
+                self.play(1000)
+        else:
+            self.play(0)
+        
+    def timeout(self):
+        now = ptime.time()
+        dt = now - self.lastPlayTime
+        if dt < 0:
+            return
+        n = int(self.playRate * dt)
+        if n != 0:
+            self.lastPlayTime += (float(n)/self.playRate)
+            if self.currentIndex+n > self.image.shape[0]:
+                self.play(0)
+            self.jumpFrames(n)
+        
+    def setCurrentIndex(self, ind):
+        """Set the currently displayed frame index."""
+        self.currentIndex = np.clip(ind, 0, self.getProcessedImage().shape[self.axes['t']]-1)
+        self.updateImage()
+        self.ignoreTimeLine = True
+        self.timeLine.setValue(self.tVals[self.currentIndex])
+        self.ignoreTimeLine = False
+
+    def jumpFrames(self, n):
+        """Move video frame ahead n frames (may be negative)"""
+        if self.axes['t'] is not None:
+            self.setCurrentIndex(self.currentIndex + n)
+
+    def normRadioChanged(self):
+        self.imageDisp = None
+        self.updateImage()
+        self.autoLevels()
+        self.roiChanged()
+        self.sigProcessingChanged.emit(self)
+    
+    def updateNorm(self):
+        if self.ui.normTimeRangeCheck.isChecked():
+            self.normRgn.show()
+        else:
+            self.normRgn.hide()
+        
+        if self.ui.normROICheck.isChecked():
+            self.normRoi.show()
+        else:
+            self.normRoi.hide()
+        
+        if not self.ui.normOffRadio.isChecked():
+            self.imageDisp = None
+            self.updateImage()
+            self.autoLevels()
+            self.roiChanged()
+            self.sigProcessingChanged.emit(self)
+
+    def normToggled(self, b):
+        self.ui.normGroup.setVisible(b)
+        self.normRoi.setVisible(b and self.ui.normROICheck.isChecked())
+        self.normRgn.setVisible(b and self.ui.normTimeRangeCheck.isChecked())
+
+    def hasTimeAxis(self):
+        return 't' in self.axes and self.axes['t'] is not None
+
+    def roiClicked(self):
+        showRoiPlot = False
+        if self.ui.roiBtn.isChecked():
+            showRoiPlot = True
+            self.roi.show()
+            #self.ui.roiPlot.show()
+            self.ui.roiPlot.setMouseEnabled(True, True)
+            self.ui.splitter.setSizes([self.height()*0.6, self.height()*0.4])
+            self.roiCurve.show()
+            self.roiChanged()
+            self.ui.roiPlot.showAxis('left')
+        else:
+            self.roi.hide()
+            self.ui.roiPlot.setMouseEnabled(False, False)
+            self.roiCurve.hide()
+            self.ui.roiPlot.hideAxis('left')
+            
+        if self.hasTimeAxis():
+            showRoiPlot = True
+            mn = self.tVals.min()
+            mx = self.tVals.max()
+            self.ui.roiPlot.setXRange(mn, mx, padding=0.01)
+            self.timeLine.show()
+            self.timeLine.setBounds([mn, mx])
+            self.ui.roiPlot.show()
+            if not self.ui.roiBtn.isChecked():
+                self.ui.splitter.setSizes([self.height()-35, 35])
+        else:
+            self.timeLine.hide()
+            #self.ui.roiPlot.hide()
+            
+        self.ui.roiPlot.setVisible(showRoiPlot)
+
+    def roiChanged(self):
+        if self.image is None:
+            return
+            
+        image = self.getProcessedImage()
+        if image.ndim == 2:
+            axes = (0, 1)
+        elif image.ndim == 3:
+            axes = (1, 2)
+        else:
+            return
+        
+        data, coords = self.roi.getArrayRegion(image.view(np.ndarray), self.imageItem, axes, returnMappedCoords=True)
+        if data is not None:
+            while data.ndim > 1:
+                data = data.mean(axis=1)
+            if image.ndim == 3:
+                self.roiCurve.setData(y=data, x=self.tVals)
+            else:
+                while coords.ndim > 2:
+                    coords = coords[:,:,0]
+                coords = coords - coords[:,0,np.newaxis]
+                xvals = (coords**2).sum(axis=0) ** 0.5
+                self.roiCurve.setData(y=data, x=xvals)
+
+    def quickMinMax(self, data):
+        """
+        Estimate the min/max values of *data* by subsampling.
+        """
+        while data.size > 1e6:
+            ax = np.argmax(data.shape)
+            sl = [slice(None)] * data.ndim
+            sl[ax] = slice(None, None, 2)
+            data = data[sl]
+        return nanmin(data), nanmax(data)
+
+    def normalize(self, image):
+        """
+        Process *image* using the normalization options configured in the
+        control panel.
+        
+        This can be repurposed to process any data through the same filter.
+        """
+        if self.ui.normOffRadio.isChecked():
+            return image
+            
+        div = self.ui.normDivideRadio.isChecked()
+        norm = image.view(np.ndarray).copy()
+        #if div:
+            #norm = ones(image.shape)
+        #else:
+            #norm = zeros(image.shape)
+        if div:
+            norm = norm.astype(np.float32)
+            
+        if self.ui.normTimeRangeCheck.isChecked() and image.ndim == 3:
+            (sind, start) = self.timeIndex(self.normRgn.lines[0])
+            (eind, end) = self.timeIndex(self.normRgn.lines[1])
+            #print start, end, sind, eind
+            n = image[sind:eind+1].mean(axis=0)
+            n.shape = (1,) + n.shape
+            if div:
+                norm /= n
+            else:
+                norm -= n
+                
+        if self.ui.normFrameCheck.isChecked() and image.ndim == 3:
+            n = image.mean(axis=1).mean(axis=1)
+            n.shape = n.shape + (1, 1)
+            if div:
+                norm /= n
+            else:
+                norm -= n
+            
+        if self.ui.normROICheck.isChecked() and image.ndim == 3:
+            n = self.normRoi.getArrayRegion(norm, self.imageItem, (1, 2)).mean(axis=1).mean(axis=1)
+            n = n[:,np.newaxis,np.newaxis]
+            #print start, end, sind, eind
+            if div:
+                norm /= n
+            else:
+                norm -= n
+                
+        return norm
+        
+    def timeLineChanged(self):
+        #(ind, time) = self.timeIndex(self.ui.timeSlider)
+        if self.ignoreTimeLine:
+            return
+        self.play(0)
+        (ind, time) = self.timeIndex(self.timeLine)
+        if ind != self.currentIndex:
+            self.currentIndex = ind
+            self.updateImage()
+        #self.timeLine.setPos(time)
+        #self.emit(QtCore.SIGNAL('timeChanged'), ind, time)
+        self.sigTimeChanged.emit(ind, time)
+
+    def updateImage(self, autoHistogramRange=True):
+        ## Redraw image on screen
+        if self.image is None:
+            return
+            
+        image = self.getProcessedImage()
+        
+        if autoHistogramRange:
+            self.ui.histogram.setHistogramRange(self.levelMin, self.levelMax)
+        
+        # Transpose image into order expected by ImageItem
+        if self.imageItem.axisOrder == 'col-major':
+            axorder = ['t', 'x', 'y', 'c']
+        else:
+            axorder = ['t', 'y', 'x', 'c']
+        axorder = [self.axes[ax] for ax in axorder if self.axes[ax] is not None]
+        image = image.transpose(axorder)
+            
+        # Select time index
+        if self.axes['t'] is not None:
+            self.ui.roiPlot.show()
+            image = image[self.currentIndex]
+            
+        self.imageItem.updateImage(image)
+            
+            
+    def timeIndex(self, slider):
+        ## Return the time and frame index indicated by a slider
+        if self.image is None:
+            return (0,0)
+        
+        t = slider.value()
+        
+        xv = self.tVals
+        if xv is None:
+            ind = int(t)
+        else:
+            if len(xv) < 2:
+                return (0,0)
+            totTime = xv[-1] + (xv[-1]-xv[-2])
+            inds = np.argwhere(xv < t)
+            if len(inds) < 1:
+                return (0,t)
+            ind = inds[-1,0]
+        return ind, t
+
+    def getView(self):
+        """Return the ViewBox (or other compatible object) which displays the ImageItem"""
+        return self.view
+        
+    def getImageItem(self):
+        """Return the ImageItem for this ImageView."""
+        return self.imageItem
+        
+    def getRoiPlot(self):
+        """Return the ROI PlotWidget for this ImageView"""
+        return self.ui.roiPlot
+       
+    def getHistogramWidget(self):
+        """Return the HistogramLUTWidget for this ImageView"""
+        return self.ui.histogram
+
+    def export(self, fileName):
+        """
+        Export data from the ImageView to a file, or to a stack of files if
+        the data is 3D. Saving an image stack will result in index numbers
+        being added to the file name. Images are saved as they would appear
+        onscreen, with levels and lookup table applied.
+        """
+        img = self.getProcessedImage()
+        if self.hasTimeAxis():
+            base, ext = os.path.splitext(fileName)
+            fmt = "%%s%%0%dd%%s" % int(np.log10(img.shape[0])+1)
+            for i in range(img.shape[0]):
+                self.imageItem.setImage(img[i], autoLevels=False)
+                self.imageItem.save(fmt % (base, i, ext))
+            self.updateImage()
+        else:
+            self.imageItem.save(fileName)
+            
+    def exportClicked(self):
+        fileName = QtGui.QFileDialog.getSaveFileName()
+        if fileName == '':
+            return
+        self.export(fileName)
+        
+    def buildMenu(self):
+        self.menu = QtGui.QMenu()
+        self.normAction = QtGui.QAction("Normalization", self.menu)
+        self.normAction.setCheckable(True)
+        self.normAction.toggled.connect(self.normToggled)
+        self.menu.addAction(self.normAction)
+        self.exportAction = QtGui.QAction("Export", self.menu)
+        self.exportAction.triggered.connect(self.exportClicked)
+        self.menu.addAction(self.exportAction)
+        
+    def menuClicked(self):
+        if self.menu is None:
+            self.buildMenu()
+        self.menu.popup(QtGui.QCursor.pos())
+
+    def setColorMap(self, colormap):
+        """Set the color map. 
+
+        ============= =========================================================
+        **Arguments**
+        colormap      (A ColorMap() instance) The ColorMap to use for coloring 
+                      images.
+        ============= =========================================================
+        """
+        self.ui.histogram.gradient.setColorMap(colormap)
+
+    @addGradientListToDocstring()
+    def setPredefinedGradient(self, name):
+        """Set one of the gradients defined in :class:`GradientEditorItem <pyqtgraph.graphicsItems.GradientEditorItem>`.
+        Currently available gradients are:   
+        """
+        self.ui.histogram.gradient.loadPreset(name)
diff --git a/libs/pyqtgraph/imageview/ImageViewTemplate.ui b/site-packages/pyqtgraph-0.10.0/pyqtgraph/imageview/ImageViewTemplate.ui
similarity index 100%
rename from libs/pyqtgraph/imageview/ImageViewTemplate.ui
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/imageview/ImageViewTemplate.ui
diff --git a/libs/pyqtgraph/imageview/ImageViewTemplate_pyqt.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/imageview/ImageViewTemplate_pyqt.py
similarity index 100%
rename from libs/pyqtgraph/imageview/ImageViewTemplate_pyqt.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/imageview/ImageViewTemplate_pyqt.py
diff --git a/libs/pyqtgraph/imageview/ImageViewTemplate_pyqt5.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/imageview/ImageViewTemplate_pyqt5.py
similarity index 100%
rename from libs/pyqtgraph/imageview/ImageViewTemplate_pyqt5.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/imageview/ImageViewTemplate_pyqt5.py
diff --git a/libs/pyqtgraph/imageview/ImageViewTemplate_pyside.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/imageview/ImageViewTemplate_pyside.py
similarity index 100%
rename from libs/pyqtgraph/imageview/ImageViewTemplate_pyside.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/imageview/ImageViewTemplate_pyside.py
diff --git a/libs/pyqtgraph/imageview/__init__.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/imageview/__init__.py
similarity index 100%
rename from libs/pyqtgraph/imageview/__init__.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/imageview/__init__.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/imageview/tests/test_imageview.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/imageview/tests/test_imageview.py
new file mode 100644
index 00000000..3057a8a5
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/imageview/tests/test_imageview.py
@@ -0,0 +1,12 @@
+import pyqtgraph as pg
+import numpy as np
+
+app = pg.mkQApp()
+
+def test_nan_image():
+    img = np.ones((10,10))
+    img[0,0] = np.nan
+    v = pg.image(img)
+    v.imageItem.getHistogram()
+    app.processEvents()
+    v.window().close()
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/metaarray/MetaArray.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/metaarray/MetaArray.py
new file mode 100644
index 00000000..66ecc460
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/metaarray/MetaArray.py
@@ -0,0 +1,1509 @@
+# -*- coding: utf-8 -*-
+"""
+MetaArray.py -  Class encapsulating ndarray with meta data
+Copyright 2010  Luke Campagnola
+Distributed under MIT/X11 license. See license.txt for more infomation.
+
+MetaArray is an array class based on numpy.ndarray that allows storage of per-axis meta data
+such as axis values, names, units, column names, etc. It also enables several
+new methods for slicing and indexing the array based on this meta data. 
+More info at http://www.scipy.org/Cookbook/MetaArray
+"""
+
+import types, copy, threading, os, re
+import pickle
+from functools import reduce
+import numpy as np
+from ..python2_3 import basestring
+#import traceback
+
+## By default, the library will use HDF5 when writing files.
+## This can be overridden by setting USE_HDF5 = False
+USE_HDF5 = True
+try:
+    import h5py
+    HAVE_HDF5 = True
+except:
+    USE_HDF5 = False
+    HAVE_HDF5 = False
+
+
+def axis(name=None, cols=None, values=None, units=None):
+    """Convenience function for generating axis descriptions when defining MetaArrays"""
+    ax = {}
+    cNameOrder = ['name', 'units', 'title']
+    if name is not None:
+        ax['name'] = name
+    if values is not None:
+        ax['values'] = values
+    if units is not None:
+        ax['units'] = units
+    if cols is not None:
+        ax['cols'] = []
+        for c in cols:
+            if type(c) != list and type(c) != tuple:
+                c = [c]
+            col = {}
+            for i in range(0,len(c)):
+                col[cNameOrder[i]] = c[i]
+            ax['cols'].append(col)
+    return ax
+
+class sliceGenerator(object):
+    """Just a compact way to generate tuples of slice objects."""
+    def __getitem__(self, arg):
+        return arg
+    def __getslice__(self, arg):
+        return arg
+SLICER = sliceGenerator()
+    
+
+class MetaArray(object):
+    """N-dimensional array with meta data such as axis titles, units, and column names.
+  
+    May be initialized with a file name, a tuple representing the dimensions of the array,
+    or any arguments that could be passed on to numpy.array()
+  
+    The info argument sets the metadata for the entire array. It is composed of a list
+    of axis descriptions where each axis may have a name, title, units, and a list of column 
+    descriptions. An additional dict at the end of the axis list may specify parameters
+    that apply to values in the entire array.
+  
+    For example:
+        A 2D array of altitude values for a topographical map might look like
+            info=[
+        {'name': 'lat', 'title': 'Lattitude'}, 
+        {'name': 'lon', 'title': 'Longitude'}, 
+        {'title': 'Altitude', 'units': 'm'}
+      ]
+        In this case, every value in the array represents the altitude in feet at the lat, lon
+        position represented by the array index. All of the following return the 
+        value at lat=10, lon=5:
+            array[10, 5]
+            array['lon':5, 'lat':10]
+            array['lat':10][5]
+        Now suppose we want to combine this data with another array of equal dimensions that
+        represents the average rainfall for each location. We could easily store these as two 
+        separate arrays or combine them into a 3D array with this description:
+            info=[
+        {'name': 'vals', 'cols': [
+          {'name': 'altitude', 'units': 'm'}, 
+          {'name': 'rainfall', 'units': 'cm/year'}
+        ]},
+        {'name': 'lat', 'title': 'Lattitude'}, 
+        {'name': 'lon', 'title': 'Longitude'}
+      ]
+        We can now access the altitude values with array[0] or array['altitude'], and the
+        rainfall values with array[1] or array['rainfall']. All of the following return
+        the rainfall value at lat=10, lon=5:
+            array[1, 10, 5]
+            array['lon':5, 'lat':10, 'val': 'rainfall']
+            array['rainfall', 'lon':5, 'lat':10]
+        Notice that in the second example, there is no need for an extra (4th) axis description
+        since the actual values are described (name and units) in the column info for the first axis.
+    """
+  
+    version = '2'
+
+    # Default hdf5 compression to use when writing
+    #   'gzip' is widely available and somewhat slow
+    #   'lzf' is faster, but generally not available outside h5py
+    #   'szip' is also faster, but lacks write support on windows
+    # (so by default, we use no compression)
+    # May also be a tuple (filter, opts), such as ('gzip', 3)
+    defaultCompression = None
+    
+    ## Types allowed as axis or column names
+    nameTypes = [basestring, tuple]
+    @staticmethod
+    def isNameType(var):
+        return any([isinstance(var, t) for t in MetaArray.nameTypes])
+        
+        
+    ## methods to wrap from embedded ndarray / HDF5 
+    wrapMethods = set(['__eq__', '__ne__', '__le__', '__lt__', '__ge__', '__gt__'])
+  
+    def __init__(self, data=None, info=None, dtype=None, file=None, copy=False, **kwargs):
+        object.__init__(self)
+        #self._infoOwned = False
+        self._isHDF = False
+        
+        if file is not None:
+            self._data = None
+            self.readFile(file, **kwargs)
+            if kwargs.get("readAllData", True) and self._data is None:
+                raise Exception("File read failed: %s" % file)
+        else:
+            self._info = info
+            if (hasattr(data, 'implements') and data.implements('MetaArray')):
+                self._info = data._info
+                self._data = data.asarray()
+            elif isinstance(data, tuple):  ## create empty array with specified shape
+                self._data = np.empty(data, dtype=dtype)
+            else:
+                self._data = np.array(data, dtype=dtype, copy=copy)
+
+        ## run sanity checks on info structure
+        self.checkInfo()
+    
+    def checkInfo(self):
+        info = self._info
+        if info is None:
+            if self._data is None:
+                return
+            else:
+                self._info = [{} for i in range(self.ndim + 1)]
+                return
+        else:
+            try:
+                info = list(info)
+            except:
+                raise Exception("Info must be a list of axis specifications")
+            if len(info) < self.ndim+1:
+                info.extend([{}]*(self.ndim+1-len(info)))
+            elif len(info) > self.ndim+1:
+                raise Exception("Info parameter must be list of length ndim+1 or less.")
+            for i in range(len(info)):
+                if not isinstance(info[i], dict):
+                    if info[i] is None:
+                        info[i] = {}
+                    else:
+                        raise Exception("Axis specification must be Dict or None")
+                if i < self.ndim and 'values' in info[i]:
+                    if type(info[i]['values']) is list:
+                        info[i]['values'] = np.array(info[i]['values'])
+                    elif type(info[i]['values']) is not np.ndarray:
+                        raise Exception("Axis values must be specified as list or ndarray")
+                    if info[i]['values'].ndim != 1 or info[i]['values'].shape[0] != self.shape[i]:
+                        raise Exception("Values array for axis %d has incorrect shape. (given %s, but should be %s)" %
+                                        (i, str(info[i]['values'].shape), str((self.shape[i],))))
+                if i < self.ndim and 'cols' in info[i]:
+                    if not isinstance(info[i]['cols'], list):
+                        info[i]['cols'] = list(info[i]['cols'])
+                    if len(info[i]['cols']) != self.shape[i]:
+                        raise Exception('Length of column list for axis %d does not match data. (given %d, but should be %d)' %
+                                        (i, len(info[i]['cols']), self.shape[i]))
+            self._info = info
+
+    def implements(self, name=None):
+        ## Rather than isinstance(obj, MetaArray) use object.implements('MetaArray')
+        if name is None:
+            return ['MetaArray']
+        else:
+            return name == 'MetaArray'
+    
+    #def __array_finalize__(self,obj):
+        ### array_finalize is called every time a MetaArray is created 
+        ### (whereas __new__ is not necessarily called every time)
+        
+        ### obj is the object from which this array was generated (for example, when slicing or view()ing)
+        
+        ## We use the getattr method to set a default if 'obj' doesn't have the 'info' attribute
+        ##print "Create new MA from object", str(type(obj))
+        ##import traceback
+        ##traceback.print_stack()
+        ##print "finalize", type(self), type(obj)
+        #if not hasattr(self, '_info'):
+            ##if isinstance(obj, MetaArray):
+                ##print "  copy info:", obj._info
+            #self._info = getattr(obj, '_info', [{}]*(obj.ndim+1))
+            #self._infoOwned = False  ## Do not make changes to _info until it is copied at least once
+        ##print "  self info:", self._info
+      
+        ## We could have checked first whether self._info was already defined:
+        ##if not hasattr(self, 'info'):
+        ##    self._info = getattr(obj, 'info', {})
+    
+  
+    def __getitem__(self, ind):
+        #print "getitem:", ind
+        
+        ## should catch scalar requests as early as possible to speed things up (?)
+        
+        nInd = self._interpretIndexes(ind)
+        
+        #a = np.ndarray.__getitem__(self, nInd)
+        a = self._data[nInd]
+        if len(nInd) == self.ndim:
+            if np.all([not isinstance(ind, slice) for ind in nInd]):  ## no slices; we have requested a single value from the array
+                return a
+        #if type(a) != type(self._data) and not isinstance(a, np.ndarray):  ## indexing returned single value
+            #return a
+        
+        ## indexing returned a sub-array; generate new info array to go with it
+        #print "   new MA:", type(a), a.shape
+        info = []
+        extraInfo = self._info[-1].copy()
+        for i in range(0, len(nInd)):   ## iterate over all axes
+            #print "   axis", i
+            if type(nInd[i]) in [slice, list] or isinstance(nInd[i], np.ndarray):  ## If the axis is sliced, keep the info but chop if necessary
+                #print "      slice axis", i, nInd[i]
+                #a._info[i] = self._axisSlice(i, nInd[i])
+                #print "         info:", a._info[i]
+                info.append(self._axisSlice(i, nInd[i]))
+            else: ## If the axis is indexed, then move the information from that single index to the last info dictionary
+                #print "indexed:", i, nInd[i], type(nInd[i])
+                newInfo = self._axisSlice(i, nInd[i])
+                name = None
+                colName = None
+                for k in newInfo:
+                    if k == 'cols':
+                        if 'cols' not in extraInfo:
+                            extraInfo['cols'] = []
+                        extraInfo['cols'].append(newInfo[k])
+                        if 'units' in newInfo[k]:
+                            extraInfo['units'] = newInfo[k]['units']
+                        if 'name' in newInfo[k]:
+                            colName = newInfo[k]['name']
+                    elif k == 'name':
+                        name = newInfo[k]
+                    else:
+                        if k not in extraInfo:
+                            extraInfo[k] = newInfo[k]
+                        extraInfo[k] = newInfo[k]
+                if 'name' not in extraInfo:
+                    if name is None:
+                        if colName is not None:
+                            extraInfo['name'] = colName
+                    else:
+                        if colName is not None:
+                            extraInfo['name'] = str(name) + ': ' + str(colName)
+                        else:
+                            extraInfo['name'] = name
+                        
+                        
+                #print "Lost info:", newInfo
+                #a._info[i] = None
+                #if 'name' in newInfo:
+                    #a._info[-1][newInfo['name']] = newInfo
+        info.append(extraInfo)
+        
+        #self._infoOwned = False
+        #while None in a._info:
+            #a._info.remove(None)
+        return MetaArray(a, info=info)
+  
+    @property
+    def ndim(self):
+        return len(self.shape)  ## hdf5 objects do not have ndim property.
+            
+    @property
+    def shape(self):
+        return self._data.shape
+        
+    @property
+    def dtype(self):
+        return self._data.dtype
+        
+    def __len__(self):
+        return len(self._data)
+        
+    def __getslice__(self, *args):
+        return self.__getitem__(slice(*args))
+  
+    def __setitem__(self, ind, val):
+        nInd = self._interpretIndexes(ind)
+        try:
+            self._data[nInd] = val
+        except:
+            print(self, nInd, val)
+            raise
+        
+    def __getattr__(self, attr):
+        if attr in self.wrapMethods:
+            return getattr(self._data, attr)
+        else:
+            raise AttributeError(attr)
+            #return lambda *args, **kwargs: MetaArray(getattr(a.view(ndarray), attr)(*args, **kwargs)
+        
+    def __eq__(self, b):
+        return self._binop('__eq__', b)
+        
+    def __ne__(self, b):
+        return self._binop('__ne__', b)
+        #if isinstance(b, MetaArray):
+            #b = b.asarray()
+        #return self.asarray() != b
+        
+    def __sub__(self, b):
+        return self._binop('__sub__', b)
+        #if isinstance(b, MetaArray):
+            #b = b.asarray()
+        #return MetaArray(self.asarray() - b, info=self.infoCopy())
+
+    def __add__(self, b):
+        return self._binop('__add__', b)
+
+    def __mul__(self, b):
+        return self._binop('__mul__', b)
+        
+    def __div__(self, b):
+        return self._binop('__div__', b)
+        
+    def __truediv__(self, b):
+        return self._binop('__truediv__', b)
+        
+    def _binop(self, op, b):
+        if isinstance(b, MetaArray):
+            b = b.asarray()
+        a = self.asarray()
+        c = getattr(a, op)(b)
+        if c.shape != a.shape:
+            raise Exception("Binary operators with MetaArray must return an array of the same shape (this shape is %s, result shape was %s)" % (a.shape, c.shape))
+        return MetaArray(c, info=self.infoCopy())
+        
+    def asarray(self):
+        if isinstance(self._data, np.ndarray):
+            return self._data
+        else:
+            return np.array(self._data)
+            
+    def __array__(self):
+        ## supports np.array(metaarray_instance) 
+        return self.asarray()
+            
+    def view(self, typ):
+        ## deprecated; kept for backward compatibility
+        if typ is np.ndarray:
+            return self.asarray()
+        else:
+            raise Exception('invalid view type: %s' % str(typ))
+  
+    def axisValues(self, axis):
+        """Return the list of values for an axis"""
+        ax = self._interpretAxis(axis)
+        if 'values' in self._info[ax]:
+            return self._info[ax]['values']
+        else:
+            raise Exception('Array axis %s (%d) has no associated values.' % (str(axis), ax))
+  
+    def xvals(self, axis):
+        """Synonym for axisValues()"""
+        return self.axisValues(axis)
+        
+    def axisHasValues(self, axis):
+        ax = self._interpretAxis(axis)
+        return 'values' in self._info[ax]
+        
+    def axisHasColumns(self, axis):
+        ax = self._interpretAxis(axis)
+        return 'cols' in self._info[ax]
+  
+    def axisUnits(self, axis):
+        """Return the units for axis"""
+        ax = self._info[self._interpretAxis(axis)]
+        if 'units' in ax:
+            return ax['units']
+        
+    def hasColumn(self, axis, col):
+        ax = self._info[self._interpretAxis(axis)]
+        if 'cols' in ax:
+            for c in ax['cols']:
+                if c['name'] == col:
+                    return True
+        return False
+        
+    def listColumns(self, axis=None):
+        """Return a list of column names for axis. If axis is not specified, then return a dict of {axisName: (column names), ...}."""
+        if axis is None:
+            ret = {}
+            for i in range(self.ndim):
+                if 'cols' in self._info[i]:
+                    cols = [c['name'] for c in self._info[i]['cols']]
+                else:
+                    cols = []
+                ret[self.axisName(i)] = cols
+            return ret
+        else:
+            axis = self._interpretAxis(axis)
+            return [c['name'] for c in self._info[axis]['cols']]
+        
+    def columnName(self, axis, col):
+        ax = self._info[self._interpretAxis(axis)]
+        return ax['cols'][col]['name']
+        
+    def axisName(self, n):
+        return self._info[n].get('name', n)
+        
+    def columnUnits(self, axis, column):
+        """Return the units for column in axis"""
+        ax = self._info[self._interpretAxis(axis)]
+        if 'cols' in ax:
+            for c in ax['cols']:
+                if c['name'] == column:
+                    return c['units']
+            raise Exception("Axis %s has no column named %s" % (str(axis), str(column)))
+        else:
+            raise Exception("Axis %s has no column definitions" % str(axis))
+  
+    def rowsort(self, axis, key=0):
+        """Return this object with all records sorted along axis using key as the index to the values to compare. Does not yet modify meta info."""
+        ## make sure _info is copied locally before modifying it!
+    
+        keyList = self[key]
+        order = keyList.argsort()
+        if type(axis) == int:
+            ind = [slice(None)]*axis
+            ind.append(order)
+        elif isinstance(axis, basestring):
+            ind = (slice(axis, order),)
+        return self[tuple(ind)]
+  
+    def append(self, val, axis):
+        """Return this object with val appended along axis. Does not yet combine meta info."""
+        ## make sure _info is copied locally before modifying it!
+    
+        s = list(self.shape)
+        axis = self._interpretAxis(axis)
+        s[axis] += 1
+        n = MetaArray(tuple(s), info=self._info, dtype=self.dtype)
+        ind = [slice(None)]*self.ndim
+        ind[axis] = slice(None,-1)
+        n[tuple(ind)] = self
+        ind[axis] = -1
+        n[tuple(ind)] = val
+        return n
+  
+    def extend(self, val, axis):
+        """Return the concatenation along axis of this object and val. Does not yet combine meta info."""
+        ## make sure _info is copied locally before modifying it!
+    
+        axis = self._interpretAxis(axis)
+        return MetaArray(np.concatenate(self, val, axis), info=self._info)
+  
+    def infoCopy(self, axis=None):
+        """Return a deep copy of the axis meta info for this object"""
+        if axis is None:
+            return copy.deepcopy(self._info)
+        else:
+            return copy.deepcopy(self._info[self._interpretAxis(axis)])
+  
+    def copy(self):
+        return MetaArray(self._data.copy(), info=self.infoCopy())
+  
+  
+    def _interpretIndexes(self, ind):
+        #print "interpret", ind
+        if not isinstance(ind, tuple):
+            ## a list of slices should be interpreted as a tuple of slices.
+            if isinstance(ind, list) and len(ind) > 0 and isinstance(ind[0], slice):
+                ind = tuple(ind)
+            ## everything else can just be converted to a length-1 tuple
+            else:
+                ind = (ind,)
+                
+        nInd = [slice(None)]*self.ndim
+        numOk = True  ## Named indices not started yet; numbered sill ok
+        for i in range(0,len(ind)):
+            (axis, index, isNamed) = self._interpretIndex(ind[i], i, numOk)
+            #try:
+            nInd[axis] = index
+            #except:
+                #print "ndim:", self.ndim
+                #print "axis:", axis
+                #print "index spec:", ind[i]
+                #print "index num:", index
+                #raise
+            if isNamed:
+                numOk = False
+        return tuple(nInd)
+      
+    def _interpretAxis(self, axis):
+        if isinstance(axis, basestring) or isinstance(axis, tuple):
+            return self._getAxis(axis)
+        else:
+            return axis
+  
+    def _interpretIndex(self, ind, pos, numOk):
+        #print "Interpreting index", ind, pos, numOk
+        
+        ## should probably check for int first to speed things up..
+        if type(ind) is int:
+            if not numOk:
+                raise Exception("string and integer indexes may not follow named indexes")
+            #print "  normal numerical index"
+            return (pos, ind, False)
+        if MetaArray.isNameType(ind):
+            if not numOk:
+                raise Exception("string and integer indexes may not follow named indexes")
+            #print "  String index, column is ", self._getIndex(pos, ind)
+            return (pos, self._getIndex(pos, ind), False)
+        elif type(ind) is slice:
+            #print "  Slice index"
+            if MetaArray.isNameType(ind.start) or MetaArray.isNameType(ind.stop):  ## Not an actual slice!
+                #print "    ..not a real slice"
+                axis = self._interpretAxis(ind.start)
+                #print "    axis is", axis
+                
+                ## x[Axis:Column]
+                if MetaArray.isNameType(ind.stop):
+                    #print "    column name, column is ", self._getIndex(axis, ind.stop)
+                    index = self._getIndex(axis, ind.stop)
+                    
+                ## x[Axis:min:max]
+                elif (isinstance(ind.stop, float) or isinstance(ind.step, float)) and ('values' in self._info[axis]):
+                    #print "    axis value range"
+                    if ind.stop is None:
+                        mask = self.xvals(axis) < ind.step
+                    elif ind.step is None:
+                        mask = self.xvals(axis) >= ind.stop
+                    else:
+                        mask = (self.xvals(axis) >= ind.stop) * (self.xvals(axis) < ind.step)
+                    ##print "mask:", mask
+                    index = mask
+                    
+                ## x[Axis:columnIndex]
+                elif isinstance(ind.stop, int) or isinstance(ind.step, int):
+                    #print "    normal slice after named axis"
+                    if ind.step is None:
+                        index = ind.stop
+                    else:
+                        index = slice(ind.stop, ind.step)
+                    
+                ## x[Axis: [list]]
+                elif type(ind.stop) is list:
+                    #print "    list of indexes from named axis"
+                    index = []
+                    for i in ind.stop:
+                        if type(i) is int:
+                            index.append(i)
+                        elif MetaArray.isNameType(i):
+                            index.append(self._getIndex(axis, i))
+                        else:
+                            ## unrecognized type, try just passing on to array
+                            index = ind.stop
+                            break
+                
+                else:
+                    #print "    other type.. forward on to array for handling", type(ind.stop)
+                    index = ind.stop
+                #print "Axis %s (%s) : %s" % (ind.start, str(axis), str(type(index)))
+                #if type(index) is np.ndarray:
+                    #print "    ", index.shape
+                return (axis, index, True)
+            else:
+                #print "  Looks like a real slice, passing on to array"
+                return (pos, ind, False)
+        elif type(ind) is list:
+            #print "  List index., interpreting each element individually"
+            indList = [self._interpretIndex(i, pos, numOk)[1] for i in ind]
+            return (pos, indList, False)
+        else:
+            if not numOk:
+                raise Exception("string and integer indexes may not follow named indexes")
+            #print "  normal numerical index"
+            return (pos, ind, False)
+  
+    def _getAxis(self, name):
+        for i in range(0, len(self._info)):
+            axis = self._info[i]
+            if 'name' in axis and axis['name'] == name:
+                return i
+        raise Exception("No axis named %s.\n  info=%s" % (name, self._info))
+  
+    def _getIndex(self, axis, name):
+        ax = self._info[axis]
+        if ax is not None and 'cols' in ax:
+            for i in range(0, len(ax['cols'])):
+                if 'name' in ax['cols'][i] and ax['cols'][i]['name'] == name:
+                    return i
+        raise Exception("Axis %d has no column named %s.\n  info=%s" % (axis, name, self._info))
+  
+    def _axisCopy(self, i):
+        return copy.deepcopy(self._info[i])
+  
+    def _axisSlice(self, i, cols):
+        #print "axisSlice", i, cols
+        if 'cols' in self._info[i] or 'values' in self._info[i]:
+            ax = self._axisCopy(i)
+            if 'cols' in ax:
+                #print "  slicing columns..", array(ax['cols']), cols
+                sl = np.array(ax['cols'])[cols]
+                if isinstance(sl, np.ndarray):
+                    sl = list(sl)
+                ax['cols'] = sl
+                #print "  result:", ax['cols']
+            if 'values' in ax:
+                ax['values'] = np.array(ax['values'])[cols]
+        else:
+            ax = self._info[i]
+        #print "     ", ax
+        return ax
+  
+    def prettyInfo(self):
+        s = ''
+        titles = []
+        maxl = 0
+        for i in range(len(self._info)-1):
+            ax = self._info[i]
+            axs = ''
+            if 'name' in ax:
+                axs += '"%s"' % str(ax['name'])
+            else:
+                axs += "%d" % i
+            if 'units' in ax:
+                axs += " (%s)" % str(ax['units'])
+            titles.append(axs)
+            if len(axs) > maxl:
+                maxl = len(axs)
+        
+        for i in range(min(self.ndim, len(self._info) - 1)):
+            ax = self._info[i]
+            axs = titles[i]
+            axs += '%s[%d] :' % (' ' * (maxl - len(axs) + 5 - len(str(self.shape[i]))), self.shape[i])
+            if 'values' in ax:
+                if self.shape[i] > 0:
+                    v0 = ax['values'][0]
+                    axs += "  values: [%g" % (v0)
+                    if self.shape[i] > 1:
+                        v1 = ax['values'][-1]
+                        axs += " ... %g] (step %g)" % (v1, (v1 - v0) / (self.shape[i] - 1))
+                    else:
+                        axs += "]"
+                else:
+                    axs += "  values: []"
+            if 'cols' in ax:
+                axs += " columns: "
+                colstrs = []
+                for c in range(len(ax['cols'])):
+                    col = ax['cols'][c]
+                    cs = str(col.get('name', c))
+                    if 'units' in col:
+                        cs += " (%s)" % col['units']
+                    colstrs.append(cs)
+                axs += '[' + ', '.join(colstrs) + ']'
+            s += axs + "\n"
+        s += str(self._info[-1])
+        return s
+  
+    def __repr__(self):
+        return "%s\n-----------------------------------------------\n%s" % (self.view(np.ndarray).__repr__(), self.prettyInfo())
+
+    def __str__(self):
+        return self.__repr__()
+
+
+    def axisCollapsingFn(self, fn, axis=None, *args, **kargs):
+        #arr = self.view(np.ndarray)
+        fn = getattr(self._data, fn)
+        if axis is None:
+            return fn(axis, *args, **kargs)
+        else:
+            info = self.infoCopy()
+            axis = self._interpretAxis(axis)
+            info.pop(axis)
+            return MetaArray(fn(axis, *args, **kargs), info=info)
+
+    def mean(self, axis=None, *args, **kargs):
+        return self.axisCollapsingFn('mean', axis, *args, **kargs)
+            
+
+    def min(self, axis=None, *args, **kargs):
+        return self.axisCollapsingFn('min', axis, *args, **kargs)
+
+    def max(self, axis=None, *args, **kargs):
+        return self.axisCollapsingFn('max', axis, *args, **kargs)
+
+    def transpose(self, *args):
+        if len(args) == 1 and hasattr(args[0], '__iter__'):
+            order = args[0]
+        else:
+            order = args
+        
+        order = [self._interpretAxis(ax) for ax in order]
+        infoOrder = order  + list(range(len(order), len(self._info)))
+        info = [self._info[i] for i in infoOrder]
+        order = order + list(range(len(order), self.ndim))
+        
+        try:
+            if self._isHDF:
+                return MetaArray(np.array(self._data).transpose(order), info=info)
+            else:
+                return MetaArray(self._data.transpose(order), info=info)
+        except:
+            print(order)
+            raise
+
+    #### File I/O Routines
+    def readFile(self, filename, **kwargs):
+        """Load the data and meta info stored in *filename*
+        Different arguments are allowed depending on the type of file.
+        For HDF5 files:
+        
+            *writable* (bool) if True, then any modifications to data in the array will be stored to disk.
+            *readAllData* (bool) if True, then all data in the array is immediately read from disk
+                          and the file is closed (this is the default for files < 500MB). Otherwise, the file will
+                          be left open and data will be read only as requested (this is 
+                          the default for files >= 500MB).
+        
+        
+        """
+        ## decide which read function to use
+        with open(filename, 'rb') as fd:
+            magic = fd.read(8)
+            if magic == '\x89HDF\r\n\x1a\n':
+                fd.close()
+                self._readHDF5(filename, **kwargs)
+                self._isHDF = True
+            else:
+                fd.seek(0)
+                meta = MetaArray._readMeta(fd)
+
+                if not kwargs.get("readAllData", True):
+                    self._data = np.empty(meta['shape'], dtype=meta['type'])
+                if 'version' in meta:
+                    ver = meta['version']
+                else:
+                    ver = 1
+                rFuncName = '_readData%s' % str(ver)
+                if not hasattr(MetaArray, rFuncName):
+                    raise Exception("This MetaArray library does not support array version '%s'" % ver)
+                rFunc = getattr(self, rFuncName)
+                rFunc(fd, meta, **kwargs)
+                self._isHDF = False
+
+    @staticmethod
+    def _readMeta(fd):
+        """Read meta array from the top of a file. Read lines until a blank line is reached.
+        This function should ideally work for ALL versions of MetaArray.
+        """
+        meta = ''
+        ## Read meta information until the first blank line
+        while True:
+            line = fd.readline().strip()
+            if line == '':
+                break
+            meta += line
+        ret = eval(meta)
+        #print ret
+        return ret
+
+    def _readData1(self, fd, meta, mmap=False, **kwds):
+        ## Read array data from the file descriptor for MetaArray v1 files
+        ## read in axis values for any axis that specifies a length
+        frameSize = 1
+        for ax in meta['info']:
+            if 'values_len' in ax:
+                ax['values'] = np.fromstring(fd.read(ax['values_len']), dtype=ax['values_type'])
+                frameSize *= ax['values_len']
+                del ax['values_len']
+                del ax['values_type']
+        self._info = meta['info']
+        if not kwds.get("readAllData", True):
+            return
+        ## the remaining data is the actual array
+        if mmap:
+            subarr = np.memmap(fd, dtype=meta['type'], mode='r', shape=meta['shape'])
+        else:
+            subarr = np.fromstring(fd.read(), dtype=meta['type'])
+            subarr.shape = meta['shape']
+        self._data = subarr
+            
+    def _readData2(self, fd, meta, mmap=False, subset=None, **kwds):
+        ## read in axis values
+        dynAxis = None
+        frameSize = 1
+        ## read in axis values for any axis that specifies a length
+        for i in range(len(meta['info'])):
+            ax = meta['info'][i]
+            if 'values_len' in ax:
+                if ax['values_len'] == 'dynamic':
+                    if dynAxis is not None:
+                        raise Exception("MetaArray has more than one dynamic axis! (this is not allowed)")
+                    dynAxis = i
+                else:
+                    ax['values'] = np.fromstring(fd.read(ax['values_len']), dtype=ax['values_type'])
+                    frameSize *= ax['values_len']
+                    del ax['values_len']
+                    del ax['values_type']
+        self._info = meta['info']
+        if not kwds.get("readAllData", True):
+            return
+
+        ## No axes are dynamic, just read the entire array in at once
+        if dynAxis is None:
+            #if rewriteDynamic is not None:
+                #raise Exception("")
+            if meta['type'] == 'object':
+                if mmap:
+                    raise Exception('memmap not supported for arrays with dtype=object')
+                subarr = pickle.loads(fd.read())
+            else:
+                if mmap:
+                    subarr = np.memmap(fd, dtype=meta['type'], mode='r', shape=meta['shape'])
+                else:
+                    subarr = np.fromstring(fd.read(), dtype=meta['type'])
+            #subarr = subarr.view(subtype)
+            subarr.shape = meta['shape']
+            #subarr._info = meta['info']
+        ## One axis is dynamic, read in a frame at a time
+        else:
+            if mmap:
+                raise Exception('memmap not supported for non-contiguous arrays. Use rewriteContiguous() to convert.')
+            ax = meta['info'][dynAxis]
+            xVals = []
+            frames = []
+            frameShape = list(meta['shape'])
+            frameShape[dynAxis] = 1
+            frameSize = reduce(lambda a,b: a*b, frameShape)
+            n = 0
+            while True:
+                ## Extract one non-blank line
+                while True:
+                    line = fd.readline()
+                    if line != '\n':
+                        break
+                if line == '':
+                    break
+                    
+                ## evaluate line
+                inf = eval(line)
+                
+                ## read data block
+                #print "read %d bytes as %s" % (inf['len'], meta['type'])
+                if meta['type'] == 'object':
+                    data = pickle.loads(fd.read(inf['len']))
+                else:
+                    data = np.fromstring(fd.read(inf['len']), dtype=meta['type'])
+                
+                if data.size != frameSize * inf['numFrames']:
+                    #print data.size, frameSize, inf['numFrames']
+                    raise Exception("Wrong frame size in MetaArray file! (frame %d)" % n)
+                    
+                ## read in data block
+                shape = list(frameShape)
+                shape[dynAxis] = inf['numFrames']
+                data.shape = shape
+                if subset is not None:
+                    dSlice = subset[dynAxis]
+                    if dSlice.start is None:
+                        dStart = 0
+                    else:
+                        dStart = max(0, dSlice.start - n)
+                    if dSlice.stop is None:
+                        dStop = data.shape[dynAxis]
+                    else:
+                        dStop = min(data.shape[dynAxis], dSlice.stop - n)
+                    newSubset = list(subset[:])
+                    newSubset[dynAxis] = slice(dStart, dStop)
+                    if dStop > dStart:
+                        #print n, data.shape, " => ", newSubset, data[tuple(newSubset)].shape
+                        frames.append(data[tuple(newSubset)].copy())
+                else:
+                    #data = data[subset].copy()  ## what's this for??
+                    frames.append(data)
+                
+                n += inf['numFrames']
+                if 'xVals' in inf:
+                    xVals.extend(inf['xVals'])
+            subarr = np.concatenate(frames, axis=dynAxis)
+            if len(xVals)> 0:
+                ax['values'] = np.array(xVals, dtype=ax['values_type'])
+            del ax['values_len']
+            del ax['values_type']
+        #subarr = subarr.view(subtype)
+        #subarr._info = meta['info']
+        self._info = meta['info']
+        self._data = subarr
+        #raise Exception()  ## stress-testing
+        #return subarr
+
+    def _readHDF5(self, fileName, readAllData=None, writable=False, **kargs):
+        if 'close' in kargs and readAllData is None: ## for backward compatibility
+            readAllData = kargs['close']
+       
+        if readAllData is True and writable is True:
+            raise Exception("Incompatible arguments: readAllData=True and writable=True")
+        
+        if not HAVE_HDF5:
+            try:
+                assert writable==False
+                assert readAllData != False
+                self._readHDF5Remote(fileName)
+                return
+            except:
+                raise Exception("The file '%s' is HDF5-formatted, but the HDF5 library (h5py) was not found." % fileName)
+        
+        ## by default, readAllData=True for files < 500MB
+        if readAllData is None:
+            size = os.stat(fileName).st_size
+            readAllData = (size < 500e6)
+        
+        if writable is True:
+            mode = 'r+'
+        else:
+            mode = 'r'
+        f = h5py.File(fileName, mode)
+        
+        ver = f.attrs['MetaArray']
+        if ver > MetaArray.version:
+            print("Warning: This file was written with MetaArray version %s, but you are using version %s. (Will attempt to read anyway)" % (str(ver), str(MetaArray.version)))
+        meta = MetaArray.readHDF5Meta(f['info'])
+        self._info = meta
+        
+        if writable or not readAllData:  ## read all data, convert to ndarray, close file
+            self._data = f['data']
+            self._openFile = f
+        else:
+            self._data = f['data'][:]
+            f.close()
+            
+    def _readHDF5Remote(self, fileName):
+        ## Used to read HDF5 files via remote process.
+        ## This is needed in the case that HDF5 is not importable due to the use of python-dbg.
+        proc = getattr(MetaArray, '_hdf5Process', None)
+        
+        if proc == False:
+            raise Exception('remote read failed')
+        if proc == None:
+            from .. import multiprocess as mp
+            #print "new process"
+            proc = mp.Process(executable='/usr/bin/python')
+            proc.setProxyOptions(deferGetattr=True)
+            MetaArray._hdf5Process = proc
+            MetaArray._h5py_metaarray = proc._import('pyqtgraph.metaarray')
+        ma = MetaArray._h5py_metaarray.MetaArray(file=fileName)
+        self._data = ma.asarray()._getValue()
+        self._info = ma._info._getValue()
+        #print MetaArray._hdf5Process
+        #import inspect
+        #print MetaArray, id(MetaArray), inspect.getmodule(MetaArray)
+        
+        
+
+    @staticmethod
+    def mapHDF5Array(data, writable=False):
+        off = data.id.get_offset()
+        if writable:
+            mode = 'r+'
+        else:
+            mode = 'r'
+        if off is None:
+            raise Exception("This dataset uses chunked storage; it can not be memory-mapped. (store using mappable=True)")
+        return np.memmap(filename=data.file.filename, offset=off, dtype=data.dtype, shape=data.shape, mode=mode)
+        
+
+
+
+    @staticmethod
+    def readHDF5Meta(root, mmap=False):
+        data = {}
+        
+        ## Pull list of values from attributes and child objects
+        for k in root.attrs:
+            val = root.attrs[k]
+            if isinstance(val, basestring):  ## strings need to be re-evaluated to their original types
+                try:
+                    val = eval(val)
+                except:
+                    raise Exception('Can not evaluate string: "%s"' % val)
+            data[k] = val
+        for k in root:
+            obj = root[k]
+            if isinstance(obj, h5py.highlevel.Group):
+                val = MetaArray.readHDF5Meta(obj)
+            elif isinstance(obj, h5py.highlevel.Dataset):
+                if mmap:
+                    val = MetaArray.mapHDF5Array(obj)
+                else:
+                    val = obj[:]
+            else:
+                raise Exception("Don't know what to do with type '%s'" % str(type(obj)))
+            data[k] = val
+        
+        typ = root.attrs['_metaType_']
+        del data['_metaType_']
+        
+        if typ == 'dict':
+            return data
+        elif typ == 'list' or typ == 'tuple':
+            d2 = [None]*len(data)
+            for k in data:
+                d2[int(k)] = data[k]
+            if typ == 'tuple':
+                d2 = tuple(d2)
+            return d2
+        else:
+            raise Exception("Don't understand metaType '%s'" % typ)
+        
+
+    def write(self, fileName, **opts):
+        """Write this object to a file. The object can be restored by calling MetaArray(file=fileName)
+        opts:
+            appendAxis: the name (or index) of the appendable axis. Allows the array to grow.
+            compression: None, 'gzip' (good compression), 'lzf' (fast compression), etc.
+            chunks: bool or tuple specifying chunk shape
+        """
+        
+        if USE_HDF5 and HAVE_HDF5:
+            return self.writeHDF5(fileName, **opts)
+        else:
+            return self.writeMa(fileName, **opts)
+
+    def writeMeta(self, fileName):
+        """Used to re-write meta info to the given file.
+        This feature is only available for HDF5 files."""
+        f = h5py.File(fileName, 'r+')
+        if f.attrs['MetaArray'] != MetaArray.version:
+            raise Exception("The file %s was created with a different version of MetaArray. Will not modify." % fileName)
+        del f['info']
+        
+        self.writeHDF5Meta(f, 'info', self._info)
+        f.close()
+
+
+    def writeHDF5(self, fileName, **opts):
+        ## default options for writing datasets
+        comp = self.defaultCompression
+        if isinstance(comp, tuple):
+            comp, copts = comp
+        else:
+            copts = None
+
+        dsOpts = {  
+            'compression': comp,
+            'chunks': True,
+        }
+        if copts is not None:
+            dsOpts['compression_opts'] = copts
+        
+        ## if there is an appendable axis, then we can guess the desired chunk shape (optimized for appending)
+        appAxis = opts.get('appendAxis', None)
+        if appAxis is not None:
+            appAxis = self._interpretAxis(appAxis)
+            cs = [min(100000, x) for x in self.shape]
+            cs[appAxis] = 1
+            dsOpts['chunks'] = tuple(cs)
+            
+        ## if there are columns, then we can guess a different chunk shape
+        ## (read one column at a time)
+        else:
+            cs = [min(100000, x) for x in self.shape]
+            for i in range(self.ndim):
+                if 'cols' in self._info[i]:
+                    cs[i] = 1
+            dsOpts['chunks'] = tuple(cs)
+        
+        ## update options if they were passed in
+        for k in dsOpts:
+            if k in opts:
+                dsOpts[k] = opts[k]
+        
+        
+        ## If mappable is in options, it disables chunking/compression
+        if opts.get('mappable', False):
+            dsOpts = {
+                'chunks': None,
+                'compression': None
+            }
+        
+            
+        ## set maximum shape to allow expansion along appendAxis
+        append = False
+        if appAxis is not None:
+            maxShape = list(self.shape)
+            ax = self._interpretAxis(appAxis)
+            maxShape[ax] = None
+            if os.path.exists(fileName):
+                append = True
+            dsOpts['maxshape'] = tuple(maxShape)
+        else:
+            dsOpts['maxshape'] = None
+            
+        if append:
+            f = h5py.File(fileName, 'r+')
+            if f.attrs['MetaArray'] != MetaArray.version:
+                raise Exception("The file %s was created with a different version of MetaArray. Will not modify." % fileName)
+            
+            ## resize data and write in new values
+            data = f['data']
+            shape = list(data.shape)
+            shape[ax] += self.shape[ax]
+            data.resize(tuple(shape))
+            sl = [slice(None)] * len(data.shape)
+            sl[ax] = slice(-self.shape[ax], None)
+            data[tuple(sl)] = self.view(np.ndarray)
+            
+            ## add axis values if they are present.
+            axInfo = f['info'][str(ax)]
+            if 'values' in axInfo:
+                v = axInfo['values']
+                v2 = self._info[ax]['values']
+                shape = list(v.shape)
+                shape[0] += v2.shape[0]
+                v.resize(shape)
+                v[-v2.shape[0]:] = v2
+            f.close()
+        else:
+            f = h5py.File(fileName, 'w')
+            f.attrs['MetaArray'] = MetaArray.version
+            #print dsOpts
+            f.create_dataset('data', data=self.view(np.ndarray), **dsOpts)
+            
+            ## dsOpts is used when storing meta data whenever an array is encountered
+            ## however, 'chunks' will no longer be valid for these arrays if it specifies a chunk shape.
+            ## 'maxshape' is right-out.
+            if isinstance(dsOpts['chunks'], tuple):
+                dsOpts['chunks'] = True
+                if 'maxshape' in dsOpts:
+                    del dsOpts['maxshape']
+            self.writeHDF5Meta(f, 'info', self._info, **dsOpts)
+            f.close()
+
+    def writeHDF5Meta(self, root, name, data, **dsOpts):
+        if isinstance(data, np.ndarray):
+            dsOpts['maxshape'] = (None,) + data.shape[1:]
+            root.create_dataset(name, data=data, **dsOpts)
+        elif isinstance(data, list) or isinstance(data, tuple):
+            gr = root.create_group(name)
+            if isinstance(data, list):
+                gr.attrs['_metaType_'] = 'list'
+            else:
+                gr.attrs['_metaType_'] = 'tuple'
+            #n = int(np.log10(len(data))) + 1
+            for i in range(len(data)):
+                self.writeHDF5Meta(gr, str(i), data[i], **dsOpts)
+        elif isinstance(data, dict):
+            gr = root.create_group(name)
+            gr.attrs['_metaType_'] = 'dict'
+            for k, v in data.items():
+                self.writeHDF5Meta(gr, k, v, **dsOpts)
+        elif isinstance(data, int) or isinstance(data, float) or isinstance(data, np.integer) or isinstance(data, np.floating):
+            root.attrs[name] = data
+        else:
+            try:   ## strings, bools, None are stored as repr() strings
+                root.attrs[name] = repr(data)
+            except:
+                print("Can not store meta data of type '%s' in HDF5. (key is '%s')" % (str(type(data)), str(name)))
+                raise 
+
+        
+    def writeMa(self, fileName, appendAxis=None, newFile=False):
+        """Write an old-style .ma file"""
+        meta = {'shape':self.shape, 'type':str(self.dtype), 'info':self.infoCopy(), 'version':MetaArray.version}
+        axstrs = []
+        
+        ## copy out axis values for dynamic axis if requested
+        if appendAxis is not None:
+            if MetaArray.isNameType(appendAxis):
+                appendAxis = self._interpretAxis(appendAxis)
+            
+            
+            ax = meta['info'][appendAxis]
+            ax['values_len'] = 'dynamic'
+            if 'values' in ax:
+                ax['values_type'] = str(ax['values'].dtype)
+                dynXVals = ax['values']
+                del ax['values']
+            else:
+                dynXVals = None
+                
+        ## Generate axis data string, modify axis info so we know how to read it back in later
+        for ax in meta['info']:
+            if 'values' in ax:
+                axstrs.append(ax['values'].tostring())
+                ax['values_len'] = len(axstrs[-1])
+                ax['values_type'] = str(ax['values'].dtype)
+                del ax['values']
+                
+        ## Decide whether to output the meta block for a new file
+        if not newFile:
+            ## If the file does not exist or its size is 0, then we must write the header
+            newFile = (not os.path.exists(fileName))  or  (os.stat(fileName).st_size == 0)
+        
+        ## write data to file
+        if appendAxis is None or newFile:
+            fd = open(fileName, 'wb')
+            fd.write(str(meta) + '\n\n')
+            for ax in axstrs:
+                fd.write(ax)
+        else:
+            fd = open(fileName, 'ab')
+        
+        if self.dtype != object:
+            dataStr = self.view(np.ndarray).tostring()
+        else:
+            dataStr = pickle.dumps(self.view(np.ndarray))
+        #print self.size, len(dataStr), self.dtype
+        if appendAxis is not None:
+            frameInfo = {'len':len(dataStr), 'numFrames':self.shape[appendAxis]}
+            if dynXVals is not None:
+                frameInfo['xVals'] = list(dynXVals)
+            fd.write('\n'+str(frameInfo)+'\n')
+        fd.write(dataStr)
+        fd.close()
+        
+    def writeCsv(self, fileName=None):
+        """Write 2D array to CSV file or return the string if no filename is given"""
+        if self.ndim > 2:
+            raise Exception("CSV Export is only for 2D arrays")
+        if fileName is not None:
+            file = open(fileName, 'w')
+        ret = ''
+        if 'cols' in self._info[0]:
+            s = ','.join([x['name'] for x in self._info[0]['cols']]) + '\n'
+            if fileName is not None:
+                file.write(s)
+            else:
+                ret += s
+        for row in range(0, self.shape[1]):
+            s = ','.join(["%g" % x for x in self[:, row]]) + '\n'
+            if fileName is not None:
+                file.write(s)
+            else:
+                ret += s
+        if fileName is not None:
+            file.close()
+        else:
+            return ret
+        
+
+
+#class H5MetaList():
+    
+
+#def rewriteContiguous(fileName, newName):
+    #"""Rewrite a dynamic array file as contiguous"""
+    #def _readData2(fd, meta, subtype, mmap):
+        ### read in axis values
+        #dynAxis = None
+        #frameSize = 1
+        ### read in axis values for any axis that specifies a length
+        #for i in range(len(meta['info'])):
+            #ax = meta['info'][i]
+            #if ax.has_key('values_len'):
+                #if ax['values_len'] == 'dynamic':
+                    #if dynAxis is not None:
+                        #raise Exception("MetaArray has more than one dynamic axis! (this is not allowed)")
+                    #dynAxis = i
+                #else:
+                    #ax['values'] = fromstring(fd.read(ax['values_len']), dtype=ax['values_type'])
+                    #frameSize *= ax['values_len']
+                    #del ax['values_len']
+                    #del ax['values_type']
+                    
+        ### No axes are dynamic, just read the entire array in at once
+        #if dynAxis is None:
+            #raise Exception('Array has no dynamic axes.')
+        ### One axis is dynamic, read in a frame at a time
+        #else:
+            #if mmap:
+                #raise Exception('memmap not supported for non-contiguous arrays. Use rewriteContiguous() to convert.')
+            #ax = meta['info'][dynAxis]
+            #xVals = []
+            #frames = []
+            #frameShape = list(meta['shape'])
+            #frameShape[dynAxis] = 1
+            #frameSize = reduce(lambda a,b: a*b, frameShape)
+            #n = 0
+            #while True:
+                ### Extract one non-blank line
+                #while True:
+                    #line = fd.readline()
+                    #if line != '\n':
+                        #break
+                #if line == '':
+                    #break
+                    
+                ### evaluate line
+                #inf = eval(line)
+                
+                ### read data block
+                ##print "read %d bytes as %s" % (inf['len'], meta['type'])
+                #if meta['type'] == 'object':
+                    #data = pickle.loads(fd.read(inf['len']))
+                #else:
+                    #data = fromstring(fd.read(inf['len']), dtype=meta['type'])
+                
+                #if data.size != frameSize * inf['numFrames']:
+                    ##print data.size, frameSize, inf['numFrames']
+                    #raise Exception("Wrong frame size in MetaArray file! (frame %d)" % n)
+                    
+                ### read in data block
+                #shape = list(frameShape)
+                #shape[dynAxis] = inf['numFrames']
+                #data.shape = shape
+                #frames.append(data)
+                
+                #n += inf['numFrames']
+                #if 'xVals' in inf:
+                    #xVals.extend(inf['xVals'])
+            #subarr = np.concatenate(frames, axis=dynAxis)
+            #if len(xVals)> 0:
+                #ax['values'] = array(xVals, dtype=ax['values_type'])
+            #del ax['values_len']
+            #del ax['values_type']
+        #subarr = subarr.view(subtype)
+        #subarr._info = meta['info']
+        #return subarr
+    
+
+
+  
+  
+if __name__ == '__main__':
+    ## Create an array with every option possible
+    
+    arr = np.zeros((2, 5, 3, 5), dtype=int)
+    for i in range(arr.shape[0]):
+        for j in range(arr.shape[1]):
+            for k in range(arr.shape[2]):
+                for l in range(arr.shape[3]):
+                    arr[i,j,k,l] = (i+1)*1000 + (j+1)*100 + (k+1)*10 + (l+1)
+        
+    info = [
+        axis('Axis1'), 
+        axis('Axis2', values=[1,2,3,4,5]), 
+        axis('Axis3', cols=[
+            ('Ax3Col1'),
+            ('Ax3Col2', 'mV', 'Axis3 Column2'),
+            (('Ax3','Col3'), 'A', 'Axis3 Column3')]),
+        {'name': 'Axis4', 'values': np.array([1.1, 1.2, 1.3, 1.4, 1.5]), 'units': 's'},
+        {'extra': 'info'}
+    ]
+    
+    ma = MetaArray(arr, info=info)
+    
+    print("====  Original Array =======")
+    print(ma)
+    print("\n\n")
+    
+    #### Tests follow:
+    
+    
+    #### Index/slice tests: check that all values and meta info are correct after slice
+    print("\n -- normal integer indexing\n")
+    
+    print("\n  ma[1]")
+    print(ma[1])
+    
+    print("\n  ma[1, 2:4]")
+    print(ma[1, 2:4])
+    
+    print("\n  ma[1, 1:5:2]")
+    print(ma[1, 1:5:2])
+    
+    print("\n -- named axis indexing\n")
+    
+    print("\n  ma['Axis2':3]")
+    print(ma['Axis2':3])
+    
+    print("\n  ma['Axis2':3:5]")
+    print(ma['Axis2':3:5])
+    
+    print("\n  ma[1, 'Axis2':3]")
+    print(ma[1, 'Axis2':3])
+    
+    print("\n  ma[:, 'Axis2':3]")
+    print(ma[:, 'Axis2':3])
+    
+    print("\n  ma['Axis2':3, 'Axis4':0:2]")
+    print(ma['Axis2':3, 'Axis4':0:2])
+    
+    
+    print("\n -- column name indexing\n")
+    
+    print("\n  ma['Axis3':'Ax3Col1']")
+    print(ma['Axis3':'Ax3Col1'])
+    
+    print("\n  ma['Axis3':('Ax3','Col3')]")
+    print(ma['Axis3':('Ax3','Col3')])
+    
+    print("\n  ma[:, :, 'Ax3Col2']")
+    print(ma[:, :, 'Ax3Col2'])
+    
+    print("\n  ma[:, :, ('Ax3','Col3')]")
+    print(ma[:, :, ('Ax3','Col3')])
+    
+    
+    print("\n -- axis value range indexing\n")
+    
+    print("\n  ma['Axis2':1.5:4.5]")
+    print(ma['Axis2':1.5:4.5])
+    
+    print("\n  ma['Axis4':1.15:1.45]")
+    print(ma['Axis4':1.15:1.45])
+    
+    print("\n  ma['Axis4':1.15:1.25]")
+    print(ma['Axis4':1.15:1.25])
+    
+    
+    
+    print("\n -- list indexing\n")
+    
+    print("\n  ma[:, [0,2,4]]")
+    print(ma[:, [0,2,4]])
+    
+    print("\n  ma['Axis4':[0,2,4]]")
+    print(ma['Axis4':[0,2,4]])
+    
+    print("\n  ma['Axis3':[0, ('Ax3','Col3')]]")
+    print(ma['Axis3':[0, ('Ax3','Col3')]])
+    
+    
+    
+    print("\n -- boolean indexing\n")
+    
+    print("\n  ma[:, array([True, True, False, True, False])]")
+    print(ma[:, np.array([True, True, False, True, False])])
+    
+    print("\n  ma['Axis4':array([True, False, False, False])]")
+    print(ma['Axis4':np.array([True, False, False, False])])
+    
+    
+    
+    
+    
+    #### Array operations 
+    #  - Concatenate
+    #  - Append
+    #  - Extend
+    #  - Rowsort
+    
+    
+    
+    
+    #### File I/O tests
+    
+    print("\n================  File I/O Tests  ===================\n")
+    import tempfile
+    tf = tempfile.mktemp()
+    tf = 'test.ma'
+    # write whole array
+    
+    print("\n  -- write/read test")
+    ma.write(tf)
+    ma2 = MetaArray(file=tf)
+    
+    #print ma2
+    print("\nArrays are equivalent:", (ma == ma2).all())
+    #print "Meta info is equivalent:", ma.infoCopy() == ma2.infoCopy()
+    os.remove(tf)
+    
+    # CSV write
+    
+    # append mode
+    
+    
+    print("\n================append test (%s)===============" % tf)
+    ma['Axis2':0:2].write(tf, appendAxis='Axis2')
+    for i in range(2,ma.shape[1]):
+        ma['Axis2':[i]].write(tf, appendAxis='Axis2')
+    
+    ma2 = MetaArray(file=tf)
+    
+    #print ma2
+    print("\nArrays are equivalent:", (ma == ma2).all())
+    #print "Meta info is equivalent:", ma.infoCopy() == ma2.infoCopy()
+    
+    os.remove(tf)    
+    
+    
+    
+    ## memmap test
+    print("\n==========Memmap test============")
+    ma.write(tf, mappable=True)
+    ma2 = MetaArray(file=tf, mmap=True)
+    print("\nArrays are equivalent:", (ma == ma2).all())
+    os.remove(tf)    
+    
diff --git a/libs/pyqtgraph/metaarray/__init__.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/metaarray/__init__.py
similarity index 100%
rename from libs/pyqtgraph/metaarray/__init__.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/metaarray/__init__.py
diff --git a/libs/pyqtgraph/metaarray/license.txt b/site-packages/pyqtgraph-0.10.0/pyqtgraph/metaarray/license.txt
similarity index 100%
rename from libs/pyqtgraph/metaarray/license.txt
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/metaarray/license.txt
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/metaarray/readMeta.m b/site-packages/pyqtgraph-0.10.0/pyqtgraph/metaarray/readMeta.m
new file mode 100644
index 00000000..b18ad49d
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/metaarray/readMeta.m
@@ -0,0 +1,86 @@
+function f = readMeta(file)
+info = hdf5info(file);
+f = readMetaRecursive(info.GroupHierarchy.Groups(1));
+end
+
+
+function f = readMetaRecursive(root)
+typ = 0;
+for i = 1:length(root.Attributes)
+    if strcmp(root.Attributes(i).Shortname, '_metaType_')
+        typ = root.Attributes(i).Value.Data;
+        break
+    end
+end
+if typ == 0
+    printf('group has no _metaType_')
+    typ = 'dict';
+end
+
+list = 0;
+if strcmp(typ, 'list') || strcmp(typ, 'tuple')
+    data = {};
+    list = 1;
+elseif strcmp(typ, 'dict')
+    data = struct();
+else
+    printf('Unrecognized meta type %s', typ);
+    data = struct();
+end
+
+for i = 1:length(root.Attributes)
+    name = root.Attributes(i).Shortname;
+    if strcmp(name, '_metaType_')
+        continue
+    end
+    val = root.Attributes(i).Value;
+    if isa(val, 'hdf5.h5string')
+        val = val.Data;
+    end
+    if list
+        ind = str2num(name)+1;
+        data{ind} = val;
+    else
+        data.(name) = val;
+    end
+end
+
+for i = 1:length(root.Datasets)
+    fullName = root.Datasets(i).Name;
+    name = stripName(fullName);
+    file = root.Datasets(i).Filename;
+    data2 = hdf5read(file, fullName);
+    if list
+        ind = str2num(name)+1;
+        data{ind} = data2;
+    else
+        data.(name) = data2;
+    end
+end
+
+for i = 1:length(root.Groups)
+    name = stripName(root.Groups(i).Name);
+    data2 = readMetaRecursive(root.Groups(i));
+    if list
+        ind = str2num(name)+1;
+        data{ind} = data2;
+    else
+        data.(name) = data2;
+    end
+end
+f = data;
+return;
+end
+
+
+function f = stripName(str)
+inds = strfind(str, '/');
+if isempty(inds)
+    f = str;
+else
+    f = str(inds(length(inds))+1:length(str));
+end
+end
+
+
+
diff --git a/libs/pyqtgraph/multiprocess/__init__.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/multiprocess/__init__.py
similarity index 100%
rename from libs/pyqtgraph/multiprocess/__init__.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/multiprocess/__init__.py
diff --git a/libs/pyqtgraph/multiprocess/bootstrap.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/multiprocess/bootstrap.py
similarity index 100%
rename from libs/pyqtgraph/multiprocess/bootstrap.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/multiprocess/bootstrap.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/multiprocess/parallelizer.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/multiprocess/parallelizer.py
new file mode 100644
index 00000000..934bc6d0
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/multiprocess/parallelizer.py
@@ -0,0 +1,332 @@
+import os, sys, time, multiprocessing, re
+from .processes import ForkedProcess
+from .remoteproxy import ClosedError
+from ..python2_3 import basestring, xrange
+
+
+class CanceledError(Exception):
+    """Raised when the progress dialog is canceled during a processing operation."""
+    pass
+
+class Parallelize(object):
+    """
+    Class for ultra-simple inline parallelization on multi-core CPUs
+    
+    Example::
+    
+        ## Here is the serial (single-process) task:
+        
+        tasks = [1, 2, 4, 8]
+        results = []
+        for task in tasks:
+            result = processTask(task)
+            results.append(result)
+        print(results)
+        
+        
+        ## Here is the parallelized version:
+        
+        tasks = [1, 2, 4, 8]
+        results = []
+        with Parallelize(tasks, workers=4, results=results) as tasker:
+            for task in tasker:
+                result = processTask(task)
+                tasker.results.append(result)
+        print(results)
+        
+        
+    The only major caveat is that *result* in the example above must be picklable,
+    since it is automatically sent via pipe back to the parent process.
+    """
+
+    def __init__(self, tasks=None, workers=None, block=True, progressDialog=None, randomReseed=True, **kwds):
+        """
+        ===============  ===================================================================
+        **Arguments:**
+        tasks            list of objects to be processed (Parallelize will determine how to 
+                         distribute the tasks). If unspecified, then each worker will receive
+                         a single task with a unique id number.
+        workers          number of worker processes or None to use number of CPUs in the 
+                         system
+        progressDialog   optional dict of arguments for ProgressDialog
+                         to update while tasks are processed
+        randomReseed     If True, each forked process will reseed its random number generator
+                         to ensure independent results. Works with the built-in random
+                         and numpy.random.
+        kwds             objects to be shared by proxy with child processes (they will 
+                         appear as attributes of the tasker)
+        ===============  ===================================================================
+        """
+        
+        ## Generate progress dialog. 
+        ## Note that we want to avoid letting forked child processes play with progress dialogs..
+        self.showProgress = False
+        if progressDialog is not None:
+            self.showProgress = True
+            if isinstance(progressDialog, basestring):
+                progressDialog = {'labelText': progressDialog}
+            from ..widgets.ProgressDialog import ProgressDialog
+            self.progressDlg = ProgressDialog(**progressDialog)
+        
+        if workers is None:
+            workers = self.suggestedWorkerCount()
+        if not hasattr(os, 'fork'):
+            workers = 1
+        self.workers = workers
+        if tasks is None:
+            tasks = range(workers)
+        self.tasks = list(tasks)
+        self.reseed = randomReseed
+        self.kwds = kwds.copy()
+        self.kwds['_taskStarted'] = self._taskStarted
+        
+    def __enter__(self):
+        self.proc = None
+        if self.workers == 1: 
+            return self.runSerial()
+        else:
+            return self.runParallel()
+    
+    def __exit__(self, *exc_info):
+        
+        if self.proc is not None:  ## worker 
+            exceptOccurred = exc_info[0] is not None ## hit an exception during processing.
+                
+            try:
+                if exceptOccurred:
+                    sys.excepthook(*exc_info)
+            finally:
+                #print os.getpid(), 'exit'
+                os._exit(1 if exceptOccurred else 0)
+                
+        else:  ## parent
+            if self.showProgress:
+                self.progressDlg.__exit__(None, None, None)
+
+    def runSerial(self):
+        if self.showProgress:
+            self.progressDlg.__enter__()
+            self.progressDlg.setMaximum(len(self.tasks))
+        self.progress = {os.getpid(): []}
+        return Tasker(self, None, self.tasks, self.kwds)
+
+    
+    def runParallel(self):
+        self.childs = []
+        
+        ## break up tasks into one set per worker
+        workers = self.workers
+        chunks = [[] for i in xrange(workers)]
+        i = 0
+        for i in range(len(self.tasks)):
+            chunks[i%workers].append(self.tasks[i])
+        
+        ## fork and assign tasks to each worker
+        for i in range(workers):
+            proc = ForkedProcess(target=None, preProxy=self.kwds, randomReseed=self.reseed)
+            if not proc.isParent:
+                self.proc = proc
+                return Tasker(self, proc, chunks[i], proc.forkedProxies)
+            else:
+                self.childs.append(proc)
+        
+        ## Keep track of the progress of each worker independently.
+        self.progress = dict([(ch.childPid, []) for ch in self.childs])
+        ## for each child process, self.progress[pid] is a list
+        ## of task indexes. The last index is the task currently being
+        ## processed; all others are finished.
+            
+            
+        try:
+            if self.showProgress:
+                self.progressDlg.__enter__()
+                self.progressDlg.setMaximum(len(self.tasks))
+            ## process events from workers until all have exited.
+                
+            activeChilds = self.childs[:]
+            self.exitCodes = []
+            pollInterval = 0.01
+            while len(activeChilds) > 0:
+                waitingChildren = 0
+                rem = []
+                for ch in activeChilds:
+                    try:
+                        n = ch.processRequests()
+                        if n > 0:
+                            waitingChildren += 1
+                    except ClosedError:
+                        #print ch.childPid, 'process finished'
+                        rem.append(ch)
+                        if self.showProgress:
+                            self.progressDlg += 1
+                #print "remove:", [ch.childPid for ch in rem]
+                for ch in rem:
+                    activeChilds.remove(ch)
+                    while True:
+                        try:
+                            pid, exitcode = os.waitpid(ch.childPid, 0)
+                            self.exitCodes.append(exitcode)
+                            break
+                        except OSError as ex:
+                            if ex.errno == 4:  ## If we get this error, just try again
+                                continue
+                                #print "Ignored system call interruption"
+                            else:
+                                raise
+                    
+                    #print [ch.childPid for ch in activeChilds]
+                    
+                if self.showProgress and self.progressDlg.wasCanceled():
+                    for ch in activeChilds:
+                        ch.kill()
+                    raise CanceledError()
+                    
+                ## adjust polling interval--prefer to get exactly 1 event per poll cycle.
+                if waitingChildren > 1:
+                    pollInterval *= 0.7
+                elif waitingChildren == 0:
+                    pollInterval /= 0.7
+                pollInterval = max(min(pollInterval, 0.5), 0.0005) ## but keep it within reasonable limits
+                
+                time.sleep(pollInterval)
+        finally:
+            if self.showProgress:
+                self.progressDlg.__exit__(None, None, None)
+        if len(self.exitCodes) < len(self.childs):
+            raise Exception("Parallelizer started %d processes but only received exit codes from %d." % (len(self.childs), len(self.exitCodes)))
+        for code in self.exitCodes:
+            if code != 0:
+                raise Exception("Error occurred in parallel-executed subprocess (console output may have more information).")
+        return []  ## no tasks for parent process.
+    
+    
+    @staticmethod
+    def suggestedWorkerCount():
+        if 'linux' in sys.platform:
+            ## I think we can do a little better here..
+            ## cpu_count does not consider that there is little extra benefit to using hyperthreaded cores.
+            try:
+                cores = {}
+                pid = None
+                
+                for line in open('/proc/cpuinfo'):
+                    m = re.match(r'physical id\s+:\s+(\d+)', line)
+                    if m is not None:
+                        pid = m.groups()[0]
+                    m = re.match(r'cpu cores\s+:\s+(\d+)', line)
+                    if m is not None:
+                        cores[pid] = int(m.groups()[0])
+                return sum(cores.values())
+            except:
+                return multiprocessing.cpu_count()
+                
+        else:
+            return multiprocessing.cpu_count()
+        
+    def _taskStarted(self, pid, i, **kwds):
+        ## called remotely by tasker to indicate it has started working on task i
+        #print pid, 'reported starting task', i
+        if self.showProgress:
+            if len(self.progress[pid]) > 0:
+                self.progressDlg += 1
+            if pid == os.getpid():  ## single-worker process
+                if self.progressDlg.wasCanceled():
+                    raise CanceledError()
+        self.progress[pid].append(i)
+    
+    
+class Tasker(object):
+    def __init__(self, parallelizer, process, tasks, kwds):
+        self.proc = process
+        self.par = parallelizer
+        self.tasks = tasks
+        for k, v in kwds.iteritems():
+            setattr(self, k, v)
+        
+    def __iter__(self):
+        ## we could fix this up such that tasks are retrieved from the parent process one at a time..
+        for i, task in enumerate(self.tasks):
+            self.index = i
+            #print os.getpid(), 'starting task', i
+            self._taskStarted(os.getpid(), i, _callSync='off')
+            yield task
+        if self.proc is not None:
+            #print os.getpid(), 'no more tasks'
+            self.proc.close()
+    
+    def process(self):
+        """
+        Process requests from parent.
+        Usually it is not necessary to call this unless you would like to 
+        receive messages (such as exit requests) during an iteration.
+        """
+        if self.proc is not None:
+            self.proc.processRequests()
+    
+    def numWorkers(self):
+        """
+        Return the number of parallel workers
+        """
+        return self.par.workers
+    
+#class Parallelizer:
+    #"""
+    #Use::
+    
+        #p = Parallelizer()
+        #with p(4) as i:
+            #p.finish(do_work(i))
+        #print p.results()
+    
+    #"""
+    #def __init__(self):
+        #pass
+
+    #def __call__(self, n):
+        #self.replies = []
+        #self.conn = None  ## indicates this is the parent process
+        #return Session(self, n)
+            
+    #def finish(self, data):
+        #if self.conn is None:
+            #self.replies.append((self.i, data))
+        #else:
+            ##print "send", self.i, data
+            #self.conn.send((self.i, data))
+            #os._exit(0)
+            
+    #def result(self):
+        #print self.replies
+        
+#class Session:
+    #def __init__(self, par, n):
+        #self.par = par
+        #self.n = n
+        
+    #def __enter__(self):
+        #self.childs = []
+        #for i in range(1, self.n):
+            #c1, c2 = multiprocessing.Pipe()
+            #pid = os.fork()
+            #if pid == 0:  ## child
+                #self.par.i = i
+                #self.par.conn = c2
+                #self.childs = None
+                #c1.close()
+                #return i
+            #else:
+                #self.childs.append(c1)
+                #c2.close()
+        #self.par.i = 0
+        #return 0
+            
+        
+        
+    #def __exit__(self, *exc_info):
+        #if exc_info[0] is not None:
+            #sys.excepthook(*exc_info)
+        #if self.childs is not None:
+            #self.par.replies.extend([conn.recv() for conn in self.childs])
+        #else:
+            #self.par.finish(None)
+        
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/multiprocess/processes.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/multiprocess/processes.py
new file mode 100644
index 00000000..c7e4a80c
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/multiprocess/processes.py
@@ -0,0 +1,477 @@
+import subprocess, atexit, os, sys, time, random, socket, signal
+import multiprocessing.connection
+try:
+    import cPickle as pickle
+except ImportError:
+    import pickle
+
+from .remoteproxy import RemoteEventHandler, ClosedError, NoResultError, LocalObjectProxy, ObjectProxy
+from ..Qt import USE_PYSIDE
+from ..util import cprint  # color printing for debugging
+
+
+__all__ = ['Process', 'QtProcess', 'ForkedProcess', 'ClosedError', 'NoResultError']
+
+class Process(RemoteEventHandler):
+    """
+    Bases: RemoteEventHandler
+    
+    This class is used to spawn and control a new python interpreter.
+    It uses subprocess.Popen to start the new process and communicates with it
+    using multiprocessing.Connection objects over a network socket.
+    
+    By default, the remote process will immediately enter an event-processing
+    loop that carries out requests send from the parent process.
+    
+    Remote control works mainly through proxy objects::
+    
+        proc = Process()              ## starts process, returns handle
+        rsys = proc._import('sys')    ## asks remote process to import 'sys', returns
+                                      ## a proxy which references the imported module
+        rsys.stdout.write('hello\n')  ## This message will be printed from the remote 
+                                      ## process. Proxy objects can usually be used
+                                      ## exactly as regular objects are.
+        proc.close()                  ## Request the remote process shut down
+    
+    Requests made via proxy objects may be synchronous or asynchronous and may
+    return objects either by proxy or by value (if they are picklable). See
+    ProxyObject for more information.
+    """
+    _process_count = 1  # just used for assigning colors to each process for debugging
+
+    def __init__(self, name=None, target=None, executable=None, copySysPath=True, debug=False, timeout=20, wrapStdout=None):
+        """
+        ==============  =============================================================
+        **Arguments:**
+        name            Optional name for this process used when printing messages
+                        from the remote process.
+        target          Optional function to call after starting remote process.
+                        By default, this is startEventLoop(), which causes the remote
+                        process to process requests from the parent process until it
+                        is asked to quit. If you wish to specify a different target,
+                        it must be picklable (bound methods are not).
+        copySysPath     If True, copy the contents of sys.path to the remote process
+        debug           If True, print detailed information about communication
+                        with the child process.
+        wrapStdout      If True (default on windows) then stdout and stderr from the
+                        child process will be caught by the parent process and
+                        forwarded to its stdout/stderr. This provides a workaround
+                        for a python bug: http://bugs.python.org/issue3905
+                        but has the side effect that child output is significantly
+                        delayed relative to the parent output.
+        ==============  =============================================================
+        """
+        if target is None:
+            target = startEventLoop
+        if name is None:
+            name = str(self)
+        if executable is None:
+            executable = sys.executable
+        self.debug = 7 if debug is True else False  # 7 causes printing in white
+        
+        ## random authentication key
+        authkey = os.urandom(20)
+
+        ## Windows seems to have a hard time with hmac 
+        if sys.platform.startswith('win'):
+            authkey = None
+
+        #print "key:", ' '.join([str(ord(x)) for x in authkey])
+        ## Listen for connection from remote process (and find free port number)
+        l = multiprocessing.connection.Listener(('localhost', 0), authkey=authkey)
+        port = l.address[1]
+
+        ## start remote process, instruct it to run target function
+        sysPath = sys.path if copySysPath else None
+        bootstrap = os.path.abspath(os.path.join(os.path.dirname(__file__), 'bootstrap.py'))
+        self.debugMsg('Starting child process (%s %s)' % (executable, bootstrap))
+
+        # Decide on printing color for this process
+        if debug:
+            procDebug = (Process._process_count%6) + 1  # pick a color for this process to print in
+            Process._process_count += 1
+        else:
+            procDebug = False
+        
+        if wrapStdout is None:
+            wrapStdout = sys.platform.startswith('win')
+
+        if wrapStdout:
+            ## note: we need all three streams to have their own PIPE due to this bug:
+            ## http://bugs.python.org/issue3905
+            stdout = subprocess.PIPE
+            stderr = subprocess.PIPE
+            self.proc = subprocess.Popen((executable, bootstrap), stdin=subprocess.PIPE, stdout=stdout, stderr=stderr)
+            ## to circumvent the bug and still make the output visible, we use 
+            ## background threads to pass data from pipes to stdout/stderr
+            self._stdoutForwarder = FileForwarder(self.proc.stdout, "stdout", procDebug)
+            self._stderrForwarder = FileForwarder(self.proc.stderr, "stderr", procDebug)
+        else:
+            self.proc = subprocess.Popen((executable, bootstrap), stdin=subprocess.PIPE)
+
+        targetStr = pickle.dumps(target)  ## double-pickle target so that child has a chance to 
+                                          ## set its sys.path properly before unpickling the target
+        pid = os.getpid() # we must send pid to child because windows does not have getppid
+        
+        ## Send everything the remote process needs to start correctly
+        data = dict(
+            name=name+'_child', 
+            port=port, 
+            authkey=authkey, 
+            ppid=pid, 
+            targetStr=targetStr, 
+            path=sysPath, 
+            pyside=USE_PYSIDE,
+            debug=procDebug
+            )
+        pickle.dump(data, self.proc.stdin)
+        self.proc.stdin.close()
+        
+        ## open connection for remote process
+        self.debugMsg('Listening for child process on port %d, authkey=%s..' % (port, repr(authkey)))
+        while True:
+            try:
+                conn = l.accept()
+                break
+            except IOError as err:
+                if err.errno == 4:  # interrupted; try again
+                    continue
+                else:
+                    raise
+
+        RemoteEventHandler.__init__(self, conn, name+'_parent', pid=self.proc.pid, debug=self.debug)
+        self.debugMsg('Connected to child process.')
+        
+        atexit.register(self.join)
+
+        
+    def join(self, timeout=10):
+        self.debugMsg('Joining child process..')
+        if self.proc.poll() is None:
+            self.close()
+            start = time.time()
+            while self.proc.poll() is None:
+                if timeout is not None and time.time() - start > timeout:
+                    raise Exception('Timed out waiting for remote process to end.')
+                time.sleep(0.05)
+        self.debugMsg('Child process exited. (%d)' % self.proc.returncode)
+
+    def debugMsg(self, msg, *args):
+        if hasattr(self, '_stdoutForwarder'):
+            ## Lock output from subprocess to make sure we do not get line collisions
+            with self._stdoutForwarder.lock:
+                with self._stderrForwarder.lock:
+                    RemoteEventHandler.debugMsg(self, msg, *args)
+        else:
+            RemoteEventHandler.debugMsg(self, msg, *args)
+
+        
+def startEventLoop(name, port, authkey, ppid, debug=False):
+    if debug:
+        import os
+        cprint.cout(debug, '[%d] connecting to server at port localhost:%d, authkey=%s..\n' 
+                    % (os.getpid(), port, repr(authkey)), -1)
+    conn = multiprocessing.connection.Client(('localhost', int(port)), authkey=authkey)
+    if debug:
+        cprint.cout(debug, '[%d] connected; starting remote proxy.\n' % os.getpid(), -1)
+    global HANDLER
+    #ppid = 0 if not hasattr(os, 'getppid') else os.getppid()
+    HANDLER = RemoteEventHandler(conn, name, ppid, debug=debug)
+    while True:
+        try:
+            HANDLER.processRequests()  # exception raised when the loop should exit
+            time.sleep(0.01)
+        except ClosedError:
+            break
+
+
+class ForkedProcess(RemoteEventHandler):
+    """
+    ForkedProcess is a substitute for Process that uses os.fork() to generate a new process.
+    This is much faster than starting a completely new interpreter and child processes
+    automatically have a copy of the entire program state from before the fork. This
+    makes it an appealing approach when parallelizing expensive computations. (see
+    also Parallelizer)
+    
+    However, fork() comes with some caveats and limitations:
+
+    - fork() is not available on Windows.
+    - It is not possible to have a QApplication in both parent and child process
+      (unless both QApplications are created _after_ the call to fork())
+      Attempts by the forked process to access Qt GUI elements created by the parent
+      will most likely cause the child to crash.
+    - Likewise, database connections are unlikely to function correctly in a forked child.
+    - Threads are not copied by fork(); the new process 
+      will have only one thread that starts wherever fork() was called in the parent process.
+    - Forked processes are unceremoniously terminated when join() is called; they are not 
+      given any opportunity to clean up. (This prevents them calling any cleanup code that
+      was only intended to be used by the parent process)
+    - Normally when fork()ing, open file handles are shared with the parent process, 
+      which is potentially dangerous. ForkedProcess is careful to close all file handles 
+      that are not explicitly needed--stdout, stderr, and a single pipe to the parent 
+      process.
+      
+    """
+    
+    def __init__(self, name=None, target=0, preProxy=None, randomReseed=True):
+        """
+        When initializing, an optional target may be given. 
+        If no target is specified, self.eventLoop will be used.
+        If None is given, no target will be called (and it will be up 
+        to the caller to properly shut down the forked process)
+        
+        preProxy may be a dict of values that will appear as ObjectProxy
+        in the remote process (but do not need to be sent explicitly since 
+        they are available immediately before the call to fork().
+        Proxies will be availabe as self.proxies[name].
+        
+        If randomReseed is True, the built-in random and numpy.random generators
+        will be reseeded in the child process.
+        """
+        self.hasJoined = False
+        if target == 0:
+            target = self.eventLoop
+        if name is None:
+            name = str(self)
+        
+        conn, remoteConn = multiprocessing.Pipe()
+        
+        proxyIDs = {}
+        if preProxy is not None:
+            for k, v in preProxy.iteritems():
+                proxyId = LocalObjectProxy.registerObject(v)
+                proxyIDs[k] = proxyId
+        
+        ppid = os.getpid()  # write this down now; windows doesn't have getppid
+        pid = os.fork()
+        if pid == 0:
+            self.isParent = False
+            ## We are now in the forked process; need to be extra careful what we touch while here.
+            ##   - no reading/writing file handles/sockets owned by parent process (stdout is ok)
+            ##   - don't touch QtGui or QApplication at all; these are landmines.
+            ##   - don't let the process call exit handlers
+            
+            os.setpgrp()  ## prevents signals (notably keyboard interrupt) being forwarded from parent to this process
+            
+            ## close all file handles we do not want shared with parent
+            conn.close()
+            sys.stdin.close()  ## otherwise we screw with interactive prompts.
+            fid = remoteConn.fileno()
+            os.closerange(3, fid)
+            os.closerange(fid+1, 4096) ## just guessing on the maximum descriptor count..
+            
+            ## Override any custom exception hooks
+            def excepthook(*args):
+                import traceback
+                traceback.print_exception(*args)
+            sys.excepthook = excepthook 
+            
+            ## Make it harder to access QApplication instance
+            for qtlib in ('PyQt4', 'PySide', 'PyQt5'):
+                if qtlib in sys.modules:
+                    sys.modules[qtlib+'.QtGui'].QApplication = None
+                    sys.modules.pop(qtlib+'.QtGui', None)
+                    sys.modules.pop(qtlib+'.QtCore', None)
+            
+            ## sabotage atexit callbacks
+            atexit._exithandlers = []
+            atexit.register(lambda: os._exit(0))
+            
+            if randomReseed:
+                if 'numpy.random' in sys.modules:
+                    sys.modules['numpy.random'].seed(os.getpid() ^ int(time.time()*10000%10000))
+                if 'random' in sys.modules:
+                    sys.modules['random'].seed(os.getpid() ^ int(time.time()*10000%10000))
+            
+            #ppid = 0 if not hasattr(os, 'getppid') else os.getppid()
+            RemoteEventHandler.__init__(self, remoteConn, name+'_child', pid=ppid)
+            
+            self.forkedProxies = {}
+            for name, proxyId in proxyIDs.iteritems():
+                self.forkedProxies[name] = ObjectProxy(ppid, proxyId=proxyId, typeStr=repr(preProxy[name]))
+            
+            if target is not None:
+                target()
+                
+        else:
+            self.isParent = True
+            self.childPid = pid
+            remoteConn.close()
+            RemoteEventHandler.handlers = {}  ## don't want to inherit any of this from the parent.
+            
+            RemoteEventHandler.__init__(self, conn, name+'_parent', pid=pid)
+            atexit.register(self.join)
+        
+        
+    def eventLoop(self):
+        while True:
+            try:
+                self.processRequests()  # exception raised when the loop should exit
+                time.sleep(0.01)
+            except ClosedError:
+                break
+            except:
+                print("Error occurred in forked event loop:")
+                sys.excepthook(*sys.exc_info())
+        sys.exit(0)
+        
+    def join(self, timeout=10):
+        if self.hasJoined:
+            return
+        #os.kill(pid, 9)  
+        try:
+            self.close(callSync='sync', timeout=timeout, noCleanup=True)  ## ask the child process to exit and require that it return a confirmation.
+            os.waitpid(self.childPid, 0)
+        except IOError:  ## probably remote process has already quit
+            pass  
+        self.hasJoined = True
+
+    def kill(self):
+        """Immediately kill the forked remote process. 
+        This is generally safe because forked processes are already
+        expected to _avoid_ any cleanup at exit."""
+        os.kill(self.childPid, signal.SIGKILL)
+        self.hasJoined = True
+        
+        
+
+##Special set of subclasses that implement a Qt event loop instead.
+        
+class RemoteQtEventHandler(RemoteEventHandler):
+    def __init__(self, *args, **kwds):
+        RemoteEventHandler.__init__(self, *args, **kwds)
+        
+    def startEventTimer(self):
+        from ..Qt import QtGui, QtCore
+        self.timer = QtCore.QTimer()
+        self.timer.timeout.connect(self.processRequests)
+        self.timer.start(10)
+    
+    def processRequests(self):
+        try:
+            RemoteEventHandler.processRequests(self)
+        except ClosedError:
+            from ..Qt import QtGui, QtCore
+            QtGui.QApplication.instance().quit()
+            self.timer.stop()
+            #raise SystemExit
+
+class QtProcess(Process):
+    """
+    QtProcess is essentially the same as Process, with two major differences:
+    
+    - The remote process starts by running startQtEventLoop() which creates a 
+      QApplication in the remote process and uses a QTimer to trigger
+      remote event processing. This allows the remote process to have its own 
+      GUI.
+    - A QTimer is also started on the parent process which polls for requests
+      from the child process. This allows Qt signals emitted within the child 
+      process to invoke slots on the parent process and vice-versa. This can 
+      be disabled using processRequests=False in the constructor.
+      
+    Example::
+    
+        proc = QtProcess()            
+        rQtGui = proc._import('PyQt4.QtGui')
+        btn = rQtGui.QPushButton('button on child process')
+        btn.show()
+        
+        def slot():
+            print('slot invoked on parent process')
+        btn.clicked.connect(proxy(slot))   # be sure to send a proxy of the slot
+    """
+    
+    def __init__(self, **kwds):
+        if 'target' not in kwds:
+            kwds['target'] = startQtEventLoop
+        from ..Qt import QtGui  ## avoid module-level import to keep bootstrap snappy.
+        self._processRequests = kwds.pop('processRequests', True)
+        if self._processRequests and QtGui.QApplication.instance() is None:
+            raise Exception("Must create QApplication before starting QtProcess, or use QtProcess(processRequests=False)")
+        Process.__init__(self, **kwds)
+        self.startEventTimer()
+        
+    def startEventTimer(self):
+        from ..Qt import QtCore  ## avoid module-level import to keep bootstrap snappy.
+        self.timer = QtCore.QTimer()
+        if self._processRequests:
+            self.startRequestProcessing()
+    
+    def startRequestProcessing(self, interval=0.01):
+        """Start listening for requests coming from the child process.
+        This allows signals to be connected from the child process to the parent.
+        """
+        self.timer.timeout.connect(self.processRequests)
+        self.timer.start(interval*1000)
+        
+    def stopRequestProcessing(self):
+        self.timer.stop()
+    
+    def processRequests(self):
+        try:
+            Process.processRequests(self)
+        except ClosedError:
+            self.timer.stop()
+    
+def startQtEventLoop(name, port, authkey, ppid, debug=False):
+    if debug:
+        import os
+        cprint.cout(debug, '[%d] connecting to server at port localhost:%d, authkey=%s..\n' % (os.getpid(), port, repr(authkey)), -1)
+    conn = multiprocessing.connection.Client(('localhost', int(port)), authkey=authkey)
+    if debug:
+        cprint.cout(debug, '[%d] connected; starting remote proxy.\n' % os.getpid(), -1)
+    from ..Qt import QtGui, QtCore
+    app = QtGui.QApplication.instance()
+    #print app
+    if app is None:
+        app = QtGui.QApplication([])
+        app.setQuitOnLastWindowClosed(False)  ## generally we want the event loop to stay open 
+                                              ## until it is explicitly closed by the parent process.
+    
+    global HANDLER
+    HANDLER = RemoteQtEventHandler(conn, name, ppid, debug=debug)
+    HANDLER.startEventTimer()
+    app.exec_()
+
+import threading
+class FileForwarder(threading.Thread):
+    """
+    Background thread that forwards data from one pipe to another. 
+    This is used to catch data from stdout/stderr of the child process
+    and print it back out to stdout/stderr. We need this because this
+    bug: http://bugs.python.org/issue3905  _requires_ us to catch
+    stdout/stderr.
+
+    *output* may be a file or 'stdout' or 'stderr'. In the latter cases,
+    sys.stdout/stderr are retrieved once for every line that is output,
+    which ensures that the correct behavior is achieved even if 
+    sys.stdout/stderr are replaced at runtime.
+    """
+    def __init__(self, input, output, color):
+        threading.Thread.__init__(self)
+        self.input = input
+        self.output = output
+        self.lock = threading.Lock()
+        self.daemon = True
+        self.color = color
+        self.start()
+
+    def run(self):
+        if self.output == 'stdout':
+            while True:
+                line = self.input.readline()
+                with self.lock:
+                    cprint.cout(self.color, line, -1)
+        elif self.output == 'stderr':
+            while True:
+                line = self.input.readline()
+                with self.lock:
+                    cprint.cerr(self.color, line, -1)
+        else:
+            while True:
+                line = self.input.readline()
+                with self.lock:
+                    self.output.write(line)
+
+
+
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/multiprocess/remoteproxy.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/multiprocess/remoteproxy.py
new file mode 100644
index 00000000..208e17f4
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/multiprocess/remoteproxy.py
@@ -0,0 +1,1126 @@
+import os, time, sys, traceback, weakref
+import numpy as np
+import threading
+try:
+    import __builtin__ as builtins
+    import cPickle as pickle
+except ImportError:
+    import builtins
+    import pickle
+
+# color printing for debugging
+from ..util import cprint
+
+class ClosedError(Exception):
+    """Raised when an event handler receives a request to close the connection
+    or discovers that the connection has been closed."""
+    pass
+
+class NoResultError(Exception):
+    """Raised when a request for the return value of a remote call fails
+    because the call has not yet returned."""
+    pass
+
+    
+class RemoteEventHandler(object):
+    """
+    This class handles communication between two processes. One instance is present on 
+    each process and listens for communication from the other process. This enables
+    (amongst other things) ObjectProxy instances to look up their attributes and call 
+    their methods.
+    
+    This class is responsible for carrying out actions on behalf of the remote process.
+    Each instance holds one end of a Connection which allows python
+    objects to be passed between processes.
+    
+    For the most common operations, see _import(), close(), and transfer()
+    
+    To handle and respond to incoming requests, RemoteEventHandler requires that its
+    processRequests method is called repeatedly (this is usually handled by the Process
+    classes defined in multiprocess.processes).
+    
+    
+    
+    
+    """
+    handlers = {}   ## maps {process ID : handler}. This allows unpickler to determine which process
+                    ## an object proxy belongs to
+                         
+    def __init__(self, connection, name, pid, debug=False):
+        self.debug = debug
+        self.conn = connection
+        self.name = name
+        self.results = {} ## reqId: (status, result); cache of request results received from the remote process
+                          ## status is either 'result' or 'error'
+                          ##   if 'error', then result will be (exception, formatted exceprion)
+                          ##   where exception may be None if it could not be passed through the Connection.
+        self.resultLock = threading.RLock()
+                          
+        self.proxies = {} ## maps {weakref(proxy): proxyId}; used to inform the remote process when a proxy has been deleted.
+        self.proxyLock = threading.RLock()
+        
+        ## attributes that affect the behavior of the proxy. 
+        ## See ObjectProxy._setProxyOptions for description
+        self.proxyOptions = {
+            'callSync': 'sync',      ## 'sync', 'async', 'off'
+            'timeout': 10,           ## float
+            'returnType': 'auto',    ## 'proxy', 'value', 'auto'
+            'autoProxy': False,      ## bool
+            'deferGetattr': False,   ## True, False
+            'noProxyTypes': [ type(None), str, int, float, tuple, list, dict, LocalObjectProxy, ObjectProxy ],
+        }
+        if int(sys.version[0]) < 3:
+            self.proxyOptions['noProxyTypes'].append(unicode)
+        else:
+            self.proxyOptions['noProxyTypes'].append(bytes)
+        
+        self.optsLock = threading.RLock()
+        
+        self.nextRequestId = 0
+        self.exited = False
+        
+        # Mutexes to help prevent issues when multiple threads access the same RemoteEventHandler
+        self.processLock = threading.RLock()
+        self.sendLock = threading.RLock()
+        
+        RemoteEventHandler.handlers[pid] = self  ## register this handler as the one communicating with pid
+    
+    @classmethod
+    def getHandler(cls, pid):
+        try:
+            return cls.handlers[pid]
+        except:
+            print(pid, cls.handlers)
+            raise
+    
+    def debugMsg(self, msg, *args):
+        if not self.debug:
+            return
+        cprint.cout(self.debug, "[%d] %s\n" % (os.getpid(), str(msg)%args), -1) 
+    
+    def getProxyOption(self, opt):
+        with self.optsLock:
+            return self.proxyOptions[opt]
+        
+    def setProxyOptions(self, **kwds):
+        """
+        Set the default behavior options for object proxies.
+        See ObjectProxy._setProxyOptions for more info.
+        """
+        with self.optsLock:
+            self.proxyOptions.update(kwds)
+    
+    def processRequests(self):
+        """Process all pending requests from the pipe, return
+        after no more events are immediately available. (non-blocking)
+        Returns the number of events processed.
+        """
+        with self.processLock:
+            
+            if self.exited:
+                self.debugMsg('  processRequests: exited already; raise ClosedError.')
+                raise ClosedError()
+            
+            numProcessed = 0
+            
+            while self.conn.poll():
+                #try:
+                    #poll = self.conn.poll()
+                    #if not poll:
+                        #break
+                #except IOError:  # this can happen if the remote process dies.
+                                ## might it also happen in other circumstances?
+                    #raise ClosedError()
+                        
+                try:
+                    self.handleRequest()
+                    numProcessed += 1
+                except ClosedError:
+                    self.debugMsg('processRequests: got ClosedError from handleRequest; setting exited=True.')
+                    self.exited = True
+                    raise
+                #except IOError as err:  ## let handleRequest take care of this.
+                    #self.debugMsg('  got IOError from handleRequest; try again.')
+                    #if err.errno == 4:  ## interrupted system call; try again
+                        #continue
+                    #else:
+                        #raise
+                except:
+                    print("Error in process %s" % self.name)
+                    sys.excepthook(*sys.exc_info())
+                    
+            if numProcessed > 0:
+                self.debugMsg('processRequests: finished %d requests', numProcessed)
+            return numProcessed
+    
+    def handleRequest(self):
+        """Handle a single request from the remote process. 
+        Blocks until a request is available."""
+        result = None
+        while True:
+            try:
+                ## args, kwds are double-pickled to ensure this recv() call never fails                
+                cmd, reqId, nByteMsgs, optStr = self.conn.recv() 
+                break
+            except EOFError:
+                self.debugMsg('  handleRequest: got EOFError from recv; raise ClosedError.')
+                ## remote process has shut down; end event loop
+                raise ClosedError()
+            except IOError as err:
+                if err.errno == 4:  ## interrupted system call; try again
+                    self.debugMsg('  handleRequest: got IOError 4 from recv; try again.')
+                    continue
+                else:
+                    self.debugMsg('  handleRequest: got IOError %d from recv (%s); raise ClosedError.', err.errno, err.strerror)
+                    raise ClosedError()
+        
+        self.debugMsg("  handleRequest: received %s %s", cmd, reqId)
+            
+        ## read byte messages following the main request
+        byteData = []
+        if nByteMsgs > 0:
+            self.debugMsg("    handleRequest: reading %d byte messages", nByteMsgs)
+        for i in range(nByteMsgs):
+            while True:
+                try:
+                    byteData.append(self.conn.recv_bytes())
+                    break
+                except EOFError:
+                    self.debugMsg("    handleRequest: got EOF while reading byte messages; raise ClosedError.")
+                    raise ClosedError()
+                except IOError as err:
+                    if err.errno == 4:
+                        self.debugMsg("    handleRequest: got IOError 4 while reading byte messages; try again.")
+                        continue
+                    else:
+                        self.debugMsg("    handleRequest: got IOError while reading byte messages; raise ClosedError.")
+                        raise ClosedError()
+            
+        
+        try:
+            if cmd == 'result' or cmd == 'error':
+                resultId = reqId
+                reqId = None  ## prevents attempt to return information from this request
+                              ## (this is already a return from a previous request)
+            
+            opts = pickle.loads(optStr)
+            self.debugMsg("    handleRequest: id=%s opts=%s", reqId, opts)
+            #print os.getpid(), "received request:", cmd, reqId, opts
+            returnType = opts.get('returnType', 'auto')
+            
+            if cmd == 'result':
+                with self.resultLock:
+                    self.results[resultId] = ('result', opts['result'])
+            elif cmd == 'error':
+                with self.resultLock:
+                    self.results[resultId] = ('error', (opts['exception'], opts['excString']))
+            elif cmd == 'getObjAttr':
+                result = getattr(opts['obj'], opts['attr'])
+            elif cmd == 'callObj':
+                obj = opts['obj']
+                fnargs = opts['args']
+                fnkwds = opts['kwds']
+                
+                ## If arrays were sent as byte messages, they must be re-inserted into the 
+                ## arguments
+                if len(byteData) > 0:
+                    for i,arg in enumerate(fnargs):
+                        if isinstance(arg, tuple) and len(arg) > 0 and arg[0] == '__byte_message__':
+                            ind = arg[1]
+                            dtype, shape = arg[2]
+                            fnargs[i] = np.fromstring(byteData[ind], dtype=dtype).reshape(shape)
+                    for k,arg in fnkwds.items():
+                        if isinstance(arg, tuple) and len(arg) > 0 and arg[0] == '__byte_message__':
+                            ind = arg[1]
+                            dtype, shape = arg[2]
+                            fnkwds[k] = np.fromstring(byteData[ind], dtype=dtype).reshape(shape)
+                
+                if len(fnkwds) == 0:  ## need to do this because some functions do not allow keyword arguments.
+                    try:
+                        result = obj(*fnargs)
+                    except:
+                        print("Failed to call object %s: %d, %s" % (obj, len(fnargs), fnargs[1:]))
+                        raise
+                else:
+                    result = obj(*fnargs, **fnkwds)
+                    
+            elif cmd == 'getObjValue':
+                result = opts['obj']  ## has already been unpickled into its local value
+                returnType = 'value'
+            elif cmd == 'transfer':
+                result = opts['obj']
+                returnType = 'proxy'
+            elif cmd == 'transferArray':
+                ## read array data from next message:
+                result = np.fromstring(byteData[0], dtype=opts['dtype']).reshape(opts['shape'])
+                returnType = 'proxy'
+            elif cmd == 'import':
+                name = opts['module']
+                fromlist = opts.get('fromlist', [])
+                mod = builtins.__import__(name, fromlist=fromlist)
+                
+                if len(fromlist) == 0:
+                    parts = name.lstrip('.').split('.')
+                    result = mod
+                    for part in parts[1:]:
+                        result = getattr(result, part)
+                else:
+                    result = map(mod.__getattr__, fromlist)
+                
+            elif cmd == 'del':
+                LocalObjectProxy.releaseProxyId(opts['proxyId'])
+                #del self.proxiedObjects[opts['objId']]
+                
+            elif cmd == 'close':
+                if reqId is not None:
+                    result = True
+                    returnType = 'value'
+                    
+            exc = None
+        except:
+            exc = sys.exc_info()
+
+            
+            
+        if reqId is not None:
+            if exc is None:
+                self.debugMsg("    handleRequest: sending return value for %d: %s", reqId, result) 
+                #print "returnValue:", returnValue, result
+                if returnType == 'auto':
+                    with self.optsLock:
+                        noProxyTypes = self.proxyOptions['noProxyTypes']
+                    result = self.autoProxy(result, noProxyTypes)
+                elif returnType == 'proxy':
+                    result = LocalObjectProxy(result)
+                
+                try:
+                    self.replyResult(reqId, result)
+                except:
+                    sys.excepthook(*sys.exc_info())
+                    self.replyError(reqId, *sys.exc_info())
+            else:
+                self.debugMsg("    handleRequest: returning exception for %d", reqId) 
+                self.replyError(reqId, *exc)
+                    
+        elif exc is not None:
+            sys.excepthook(*exc)
+    
+        if cmd == 'close':
+            if opts.get('noCleanup', False) is True:
+                os._exit(0)  ## exit immediately, do not pass GO, do not collect $200.
+                             ## (more importantly, do not call any code that would
+                             ## normally be invoked at exit)
+            else:
+                raise ClosedError()
+        
+    
+    
+    def replyResult(self, reqId, result):
+        self.send(request='result', reqId=reqId, callSync='off', opts=dict(result=result))
+    
+    def replyError(self, reqId, *exc):
+        print("error: %s %s %s" % (self.name, str(reqId), str(exc[1])))
+        excStr = traceback.format_exception(*exc)
+        try:
+            self.send(request='error', reqId=reqId, callSync='off', opts=dict(exception=exc[1], excString=excStr))
+        except:
+            self.send(request='error', reqId=reqId, callSync='off', opts=dict(exception=None, excString=excStr))
+    
+    def send(self, request, opts=None, reqId=None, callSync='sync', timeout=10, returnType=None, byteData=None, **kwds):
+        """Send a request or return packet to the remote process.
+        Generally it is not necessary to call this method directly; it is for internal use.
+        (The docstring has information that is nevertheless useful to the programmer
+        as it describes the internal protocol used to communicate between processes)
+        
+        ==============  ====================================================================
+        **Arguments:**
+        request         String describing the type of request being sent (see below)
+        reqId           Integer uniquely linking a result back to the request that generated
+                        it. (most requests leave this blank)
+        callSync        'sync':  return the actual result of the request
+                        'async': return a Request object which can be used to look up the
+                                result later
+                        'off':   return no result
+        timeout         Time in seconds to wait for a response when callSync=='sync'
+        opts            Extra arguments sent to the remote process that determine the way
+                        the request will be handled (see below)
+        returnType      'proxy', 'value', or 'auto'
+        byteData        If specified, this is a list of objects to be sent as byte messages
+                        to the remote process.
+                        This is used to send large arrays without the cost of pickling.
+        ==============  ====================================================================
+        
+        Description of request strings and options allowed for each:
+        
+        =============  =============  ========================================================
+        request        option         description
+        -------------  -------------  --------------------------------------------------------
+        getObjAttr                    Request the remote process return (proxy to) an
+                                      attribute of an object.
+                       obj            reference to object whose attribute should be 
+                                      returned
+                       attr           string name of attribute to return
+                       returnValue    bool or 'auto' indicating whether to return a proxy or
+                                      the actual value. 
+                       
+        callObj                       Request the remote process call a function or 
+                                      method. If a request ID is given, then the call's
+                                      return value will be sent back (or information
+                                      about the error that occurred while running the
+                                      function)
+                       obj            the (reference to) object to call
+                       args           tuple of arguments to pass to callable
+                       kwds           dict of keyword arguments to pass to callable
+                       returnValue    bool or 'auto' indicating whether to return a proxy or
+                                      the actual value. 
+                       
+        getObjValue                   Request the remote process return the value of
+                                      a proxied object (must be picklable)
+                       obj            reference to object whose value should be returned
+                       
+        transfer                      Copy an object to the remote process and request
+                                      it return a proxy for the new object.
+                       obj            The object to transfer.
+                       
+        import                        Request the remote process import new symbols
+                                      and return proxy(ies) to the imported objects
+                       module         the string name of the module to import
+                       fromlist       optional list of string names to import from module
+                       
+        del                           Inform the remote process that a proxy has been 
+                                      released (thus the remote process may be able to 
+                                      release the original object)
+                       proxyId        id of proxy which is no longer referenced by 
+                                      remote host
+                                      
+        close                         Instruct the remote process to stop its event loop
+                                      and exit. Optionally, this request may return a 
+                                      confirmation.
+            
+        result                        Inform the remote process that its request has 
+                                      been processed                        
+                       result         return value of a request
+                       
+        error                         Inform the remote process that its request failed
+                       exception      the Exception that was raised (or None if the 
+                                      exception could not be pickled)
+                       excString      string-formatted version of the exception and 
+                                      traceback
+        =============  =====================================================================
+        """
+        if self.exited:
+            self.debugMsg('  send: exited already; raise ClosedError.')
+            raise ClosedError()
+        
+        with self.sendLock:
+            #if len(kwds) > 0:
+                #print "Warning: send() ignored args:", kwds
+                
+            if opts is None:
+                opts = {}
+            
+            assert callSync in ['off', 'sync', 'async'], 'callSync must be one of "off", "sync", or "async"'
+            if reqId is None:
+                if callSync != 'off': ## requested return value; use the next available request ID
+                    reqId = self.nextRequestId
+                    self.nextRequestId += 1
+            else:
+                ## If requestId is provided, this _must_ be a response to a previously received request.
+                assert request in ['result', 'error']
+            
+            if returnType is not None:
+                opts['returnType'] = returnType
+                
+            #print os.getpid(), "send request:", request, reqId, opts
+            
+            ## double-pickle args to ensure that at least status and request ID get through
+            try:
+                optStr = pickle.dumps(opts)
+            except:
+                print("====  Error pickling this object:  ====")
+                print(opts)
+                print("=======================================")
+                raise
+            
+            nByteMsgs = 0
+            if byteData is not None:
+                nByteMsgs = len(byteData)
+                
+            ## Send primary request
+            request = (request, reqId, nByteMsgs, optStr)
+            self.debugMsg('send request: cmd=%s nByteMsgs=%d id=%s opts=%s', request[0], nByteMsgs, reqId, opts)
+            self.conn.send(request)
+            
+            ## follow up by sending byte messages
+            if byteData is not None:
+                for obj in byteData:  ## Remote process _must_ be prepared to read the same number of byte messages!
+                    self.conn.send_bytes(obj)
+                self.debugMsg('  sent %d byte messages', len(byteData))
+            
+            self.debugMsg('  call sync: %s', callSync)
+            if callSync == 'off':
+                return
+            
+        req = Request(self, reqId, description=str(request), timeout=timeout)
+        if callSync == 'async':
+            return req
+            
+        if callSync == 'sync':
+            try:
+                return req.result()
+            except NoResultError:
+                return req
+        
+    def close(self, callSync='off', noCleanup=False, **kwds):
+        try:
+            self.send(request='close', opts=dict(noCleanup=noCleanup), callSync=callSync, **kwds)
+            self.exited = True
+        except ClosedError:
+            pass
+    
+    def getResult(self, reqId):
+        ## raises NoResultError if the result is not available yet
+        #print self.results.keys(), os.getpid()
+        with self.resultLock:
+            haveResult = reqId in self.results
+        
+        if not haveResult:
+            try:
+                self.processRequests()
+            except ClosedError:  ## even if remote connection has closed, we may have 
+                                 ## received new data during this call to processRequests()
+                pass
+        
+        with self.resultLock:
+            if reqId not in self.results:
+                raise NoResultError()
+            status, result = self.results.pop(reqId)
+        
+        if status == 'result': 
+            return result
+        elif status == 'error':
+            #print ''.join(result)
+            exc, excStr = result
+            if exc is not None:
+                print("===== Remote process raised exception on request: =====")
+                print(''.join(excStr))
+                print("===== Local Traceback to request follows: =====")
+                raise exc
+            else:
+                print(''.join(excStr))
+                raise Exception("Error getting result. See above for exception from remote process.")
+                
+        else:
+            raise Exception("Internal error.")
+    
+    def _import(self, mod, **kwds):
+        """
+        Request the remote process import a module (or symbols from a module)
+        and return the proxied results. Uses built-in __import__() function, but 
+        adds a bit more processing:
+        
+            _import('module')  =>  returns module
+            _import('module.submodule')  =>  returns submodule 
+                                             (note this differs from behavior of __import__)
+            _import('module', fromlist=[name1, name2, ...])  =>  returns [module.name1, module.name2, ...]
+                                             (this also differs from behavior of __import__)
+            
+        """
+        return self.send(request='import', callSync='sync', opts=dict(module=mod), **kwds)
+        
+    def getObjAttr(self, obj, attr, **kwds):
+        return self.send(request='getObjAttr', opts=dict(obj=obj, attr=attr), **kwds)
+        
+    def getObjValue(self, obj, **kwds):
+        return self.send(request='getObjValue', opts=dict(obj=obj), **kwds)
+        
+    def callObj(self, obj, args, kwds, **opts):
+        opts = opts.copy()
+        args = list(args)
+        
+        ## Decide whether to send arguments by value or by proxy
+        with self.optsLock:
+            noProxyTypes = opts.pop('noProxyTypes', None)
+            if noProxyTypes is None:
+                noProxyTypes = self.proxyOptions['noProxyTypes']
+                
+            autoProxy = opts.pop('autoProxy', self.proxyOptions['autoProxy'])
+        
+        if autoProxy is True:
+            args = [self.autoProxy(v, noProxyTypes) for v in args]
+            for k, v in kwds.iteritems():
+                opts[k] = self.autoProxy(v, noProxyTypes)
+        
+        byteMsgs = []
+        
+        ## If there are arrays in the arguments, send those as byte messages.
+        ## We do this because pickling arrays is too expensive.
+        for i,arg in enumerate(args):
+            if arg.__class__ == np.ndarray:
+                args[i] = ("__byte_message__", len(byteMsgs), (arg.dtype, arg.shape))
+                byteMsgs.append(arg)
+        for k,v in kwds.items():
+            if v.__class__ == np.ndarray:
+                kwds[k] = ("__byte_message__", len(byteMsgs), (v.dtype, v.shape))
+                byteMsgs.append(v)
+        
+        return self.send(request='callObj', opts=dict(obj=obj, args=args, kwds=kwds), byteData=byteMsgs, **opts)
+
+    def registerProxy(self, proxy):
+        with self.proxyLock:
+            ref = weakref.ref(proxy, self.deleteProxy)
+            self.proxies[ref] = proxy._proxyId
+    
+    def deleteProxy(self, ref):
+        with self.proxyLock:
+            proxyId = self.proxies.pop(ref)
+            
+        try:
+            self.send(request='del', opts=dict(proxyId=proxyId), callSync='off')
+        except ClosedError:  ## if remote process has closed down, there is no need to send delete requests anymore
+            pass
+
+    def transfer(self, obj, **kwds):
+        """
+        Transfer an object by value to the remote host (the object must be picklable) 
+        and return a proxy for the new remote object.
+        """
+        if obj.__class__ is np.ndarray:
+            opts = {'dtype': obj.dtype, 'shape': obj.shape}
+            return self.send(request='transferArray', opts=opts, byteData=[obj], **kwds)            
+        else:
+            return self.send(request='transfer', opts=dict(obj=obj), **kwds)
+        
+    def autoProxy(self, obj, noProxyTypes):
+        ## Return object wrapped in LocalObjectProxy _unless_ its type is in noProxyTypes.
+        for typ in noProxyTypes:
+            if isinstance(obj, typ):
+                return obj
+        return LocalObjectProxy(obj)
+        
+        
+class Request(object):
+    """
+    Request objects are returned when calling an ObjectProxy in asynchronous mode
+    or if a synchronous call has timed out. Use hasResult() to ask whether
+    the result of the call has been returned yet. Use result() to get
+    the returned value.
+    """
+    def __init__(self, process, reqId, description=None, timeout=10):
+        self.proc = process
+        self.description = description
+        self.reqId = reqId
+        self.gotResult = False
+        self._result = None
+        self.timeout = timeout
+        
+    def result(self, block=True, timeout=None):
+        """
+        Return the result for this request. 
+        
+        If block is True, wait until the result has arrived or *timeout* seconds passes.
+        If the timeout is reached, raise NoResultError. (use timeout=None to disable)
+        If block is False, raise NoResultError immediately if the result has not arrived yet.
+        
+        If the process's connection has closed before the result arrives, raise ClosedError.
+        """
+        
+        if self.gotResult:
+            return self._result
+            
+        if timeout is None:
+            timeout = self.timeout 
+        
+        if block:
+            start = time.time()
+            while not self.hasResult():
+                if self.proc.exited:
+                    raise ClosedError()
+                time.sleep(0.005)
+                if timeout >= 0 and time.time() - start > timeout:
+                    print("Request timed out: %s" % self.description)
+                    import traceback
+                    traceback.print_stack()
+                    raise NoResultError()
+            return self._result
+        else:
+            self._result = self.proc.getResult(self.reqId)  ## raises NoResultError if result is not available yet
+            self.gotResult = True
+            return self._result
+        
+    def hasResult(self):
+        """Returns True if the result for this request has arrived."""
+        try:
+            self.result(block=False)
+        except NoResultError:
+            pass
+        
+        return self.gotResult
+
+class LocalObjectProxy(object):
+    """
+    Used for wrapping local objects to ensure that they are send by proxy to a remote host.
+    Note that 'proxy' is just a shorter alias for LocalObjectProxy.
+    
+    For example::
+    
+        data = [1,2,3,4,5]
+        remotePlot.plot(data)         ## by default, lists are pickled and sent by value
+        remotePlot.plot(proxy(data))  ## force the object to be sent by proxy
+    
+    """
+    nextProxyId = 0
+    proxiedObjects = {}  ## maps {proxyId: object}
+    
+    
+    @classmethod
+    def registerObject(cls, obj):
+        ## assign it a unique ID so we can keep a reference to the local object
+        
+        pid = cls.nextProxyId
+        cls.nextProxyId += 1
+        cls.proxiedObjects[pid] = obj
+        #print "register:", cls.proxiedObjects
+        return pid
+    
+    @classmethod
+    def lookupProxyId(cls, pid):
+        return cls.proxiedObjects[pid]
+    
+    @classmethod
+    def releaseProxyId(cls, pid):
+        del cls.proxiedObjects[pid]
+        #print "release:", cls.proxiedObjects 
+    
+    def __init__(self, obj, **opts):
+        """
+        Create a 'local' proxy object that, when sent to a remote host,
+        will appear as a normal ObjectProxy to *obj*. 
+        Any extra keyword arguments are passed to proxy._setProxyOptions()
+        on the remote side.
+        """
+        self.processId = os.getpid()
+        #self.objectId = id(obj)
+        self.typeStr = repr(obj)
+        #self.handler = handler
+        self.obj = obj
+        self.opts = opts
+        
+    def __reduce__(self):
+        ## a proxy is being pickled and sent to a remote process.
+        ## every time this happens, a new proxy will be generated in the remote process,
+        ## so we keep a new ID so we can track when each is released.
+        pid = LocalObjectProxy.registerObject(self.obj)
+        return (unpickleObjectProxy, (self.processId, pid, self.typeStr, None, self.opts))
+        
+## alias
+proxy = LocalObjectProxy
+
+def unpickleObjectProxy(processId, proxyId, typeStr, attributes=None, opts=None):
+    if processId == os.getpid():
+        obj = LocalObjectProxy.lookupProxyId(proxyId)
+        if attributes is not None:
+            for attr in attributes:
+                obj = getattr(obj, attr)
+        return obj
+    else:
+        proxy = ObjectProxy(processId, proxyId=proxyId, typeStr=typeStr)
+        if opts is not None:
+            proxy._setProxyOptions(**opts)
+        return proxy
+    
+class ObjectProxy(object):
+    """
+    Proxy to an object stored by the remote process. Proxies are created
+    by calling Process._import(), Process.transfer(), or by requesting/calling
+    attributes on existing proxy objects.
+    
+    For the most part, this object can be used exactly as if it
+    were a local object::
+    
+        rsys = proc._import('sys')   # returns proxy to sys module on remote process
+        rsys.stdout                  # proxy to remote sys.stdout
+        rsys.stdout.write            # proxy to remote sys.stdout.write
+        rsys.stdout.write('hello')   # calls sys.stdout.write('hello') on remote machine
+                                     # and returns the result (None)
+    
+    When calling a proxy to a remote function, the call can be made synchronous
+    (result of call is returned immediately), asynchronous (result is returned later),
+    or return can be disabled entirely::
+    
+        ros = proc._import('os')
+        
+        ## synchronous call; result is returned immediately
+        pid = ros.getpid()
+        
+        ## asynchronous call
+        request = ros.getpid(_callSync='async')
+        while not request.hasResult():
+            time.sleep(0.01)
+        pid = request.result()
+        
+        ## disable return when we know it isn't needed
+        rsys.stdout.write('hello', _callSync='off')
+    
+    Additionally, values returned from a remote function call are automatically
+    returned either by value (must be picklable) or by proxy. 
+    This behavior can be forced::
+    
+        rnp = proc._import('numpy')
+        arrProxy = rnp.array([1,2,3,4], _returnType='proxy')
+        arrValue = rnp.array([1,2,3,4], _returnType='value')
+    
+    The default callSync and returnType behaviors (as well as others) can be set 
+    for each proxy individually using ObjectProxy._setProxyOptions() or globally using 
+    proc.setProxyOptions(). 
+    
+    """
+    def __init__(self, processId, proxyId, typeStr='', parent=None):
+        object.__init__(self)
+        ## can't set attributes directly because setattr is overridden.
+        self.__dict__['_processId'] = processId
+        self.__dict__['_typeStr'] = typeStr
+        self.__dict__['_proxyId'] = proxyId
+        self.__dict__['_attributes'] = ()
+        ## attributes that affect the behavior of the proxy. 
+        ## in all cases, a value of None causes the proxy to ask
+        ## its parent event handler to make the decision
+        self.__dict__['_proxyOptions'] = {
+            'callSync': None,      ## 'sync', 'async', None 
+            'timeout': None,       ## float, None
+            'returnType': None,    ## 'proxy', 'value', 'auto', None
+            'deferGetattr': None,  ## True, False, None
+            'noProxyTypes': None,  ## list of types to send by value instead of by proxy
+            'autoProxy': None,
+        }
+        
+        self.__dict__['_handler'] = RemoteEventHandler.getHandler(processId)
+        self.__dict__['_handler'].registerProxy(self)  ## handler will watch proxy; inform remote process when the proxy is deleted.
+    
+    def _setProxyOptions(self, **kwds):
+        """
+        Change the behavior of this proxy. For all options, a value of None
+        will cause the proxy to instead use the default behavior defined
+        by its parent Process.
+        
+        Options are:
+        
+        =============  =============================================================
+        callSync       'sync', 'async', 'off', or None. 
+                       If 'async', then calling methods will return a Request object
+                       which can be used to inquire later about the result of the 
+                       method call.
+                       If 'sync', then calling a method
+                       will block until the remote process has returned its result
+                       or the timeout has elapsed (in this case, a Request object
+                       is returned instead).
+                       If 'off', then the remote process is instructed _not_ to 
+                       reply and the method call will return None immediately.
+        returnType     'auto', 'proxy', 'value', or None. 
+                       If 'proxy', then the value returned when calling a method
+                       will be a proxy to the object on the remote process.
+                       If 'value', then attempt to pickle the returned object and
+                       send it back.
+                       If 'auto', then the decision is made by consulting the
+                       'noProxyTypes' option.
+        autoProxy      bool or None. If True, arguments to __call__ are 
+                       automatically converted to proxy unless their type is 
+                       listed in noProxyTypes (see below). If False, arguments
+                       are left untouched. Use proxy(obj) to manually convert
+                       arguments before sending. 
+        timeout        float or None. Length of time to wait during synchronous 
+                       requests before returning a Request object instead.
+        deferGetattr   True, False, or None. 
+                       If False, all attribute requests will be sent to the remote 
+                       process immediately and will block until a response is
+                       received (or timeout has elapsed).
+                       If True, requesting an attribute from the proxy returns a
+                       new proxy immediately. The remote process is _not_ contacted
+                       to make this request. This is faster, but it is possible to 
+                       request an attribute that does not exist on the proxied
+                       object. In this case, AttributeError will not be raised
+                       until an attempt is made to look up the attribute on the
+                       remote process.
+        noProxyTypes   List of object types that should _not_ be proxied when
+                       sent to the remote process.
+        =============  =============================================================
+        """
+        for k in kwds:
+            if k not in self._proxyOptions:
+                raise KeyError("Unrecognized proxy option '%s'" % k)
+        self._proxyOptions.update(kwds)
+    
+    def _getValue(self):
+        """
+        Return the value of the proxied object
+        (the remote object must be picklable)
+        """
+        return self._handler.getObjValue(self)
+        
+    def _getProxyOption(self, opt):
+        val = self._proxyOptions[opt]
+        if val is None:
+            return self._handler.getProxyOption(opt)
+        return val
+    
+    def _getProxyOptions(self):
+        return dict([(k, self._getProxyOption(k)) for k in self._proxyOptions])
+    
+    def __reduce__(self):
+        return (unpickleObjectProxy, (self._processId, self._proxyId, self._typeStr, self._attributes))
+    
+    def __repr__(self):
+        #objRepr = self.__getattr__('__repr__')(callSync='value')
+        return "<ObjectProxy for process %d, object 0x%x: %s >" % (self._processId, self._proxyId, self._typeStr)
+        
+        
+    def __getattr__(self, attr, **kwds):
+        """
+        Calls __getattr__ on the remote object and returns the attribute
+        by value or by proxy depending on the options set (see
+        ObjectProxy._setProxyOptions and RemoteEventHandler.setProxyOptions)
+        
+        If the option 'deferGetattr' is True for this proxy, then a new proxy object
+        is returned _without_ asking the remote object whether the named attribute exists.
+        This can save time when making multiple chained attribute requests,
+        but may also defer a possible AttributeError until later, making
+        them more difficult to debug.
+        """
+        opts = self._getProxyOptions()
+        for k in opts:
+            if '_'+k in kwds:
+                opts[k] = kwds.pop('_'+k)
+        if opts['deferGetattr'] is True:
+            return self._deferredAttr(attr)
+        else:
+            #opts = self._getProxyOptions()
+            return self._handler.getObjAttr(self, attr, **opts)
+    
+    def _deferredAttr(self, attr):
+        return DeferredObjectProxy(self, attr)
+    
+    def __call__(self, *args, **kwds):
+        """
+        Attempts to call the proxied object from the remote process.
+        Accepts extra keyword arguments:
+        
+            _callSync    'off', 'sync', or 'async'
+            _returnType   'value', 'proxy', or 'auto'
+        
+        If the remote call raises an exception on the remote process,
+        it will be re-raised on the local process.
+        
+        """
+        opts = self._getProxyOptions()
+        for k in opts:
+            if '_'+k in kwds:
+                opts[k] = kwds.pop('_'+k)
+        return self._handler.callObj(obj=self, args=args, kwds=kwds, **opts)
+    
+    
+    ## Explicitly proxy special methods. Is there a better way to do this??
+    
+    def _getSpecialAttr(self, attr):
+        ## this just gives us an easy way to change the behavior of the special methods
+        return self._deferredAttr(attr)
+    
+    def __getitem__(self, *args):
+        return self._getSpecialAttr('__getitem__')(*args)
+    
+    def __setitem__(self, *args):
+        return self._getSpecialAttr('__setitem__')(*args, _callSync='off')
+        
+    def __setattr__(self, *args):
+        return self._getSpecialAttr('__setattr__')(*args, _callSync='off')
+        
+    def __str__(self, *args):
+        return self._getSpecialAttr('__str__')(*args, _returnType='value')
+        
+    def __len__(self, *args):
+        return self._getSpecialAttr('__len__')(*args)
+    
+    def __add__(self, *args):
+        return self._getSpecialAttr('__add__')(*args)
+    
+    def __sub__(self, *args):
+        return self._getSpecialAttr('__sub__')(*args)
+        
+    def __div__(self, *args):
+        return self._getSpecialAttr('__div__')(*args)
+        
+    def __truediv__(self, *args):
+        return self._getSpecialAttr('__truediv__')(*args)
+        
+    def __floordiv__(self, *args):
+        return self._getSpecialAttr('__floordiv__')(*args)
+        
+    def __mul__(self, *args):
+        return self._getSpecialAttr('__mul__')(*args)
+        
+    def __pow__(self, *args):
+        return self._getSpecialAttr('__pow__')(*args)
+        
+    def __iadd__(self, *args):
+        return self._getSpecialAttr('__iadd__')(*args, _callSync='off')
+    
+    def __isub__(self, *args):
+        return self._getSpecialAttr('__isub__')(*args, _callSync='off')
+        
+    def __idiv__(self, *args):
+        return self._getSpecialAttr('__idiv__')(*args, _callSync='off')
+        
+    def __itruediv__(self, *args):
+        return self._getSpecialAttr('__itruediv__')(*args, _callSync='off')
+        
+    def __ifloordiv__(self, *args):
+        return self._getSpecialAttr('__ifloordiv__')(*args, _callSync='off')
+        
+    def __imul__(self, *args):
+        return self._getSpecialAttr('__imul__')(*args, _callSync='off')
+        
+    def __ipow__(self, *args):
+        return self._getSpecialAttr('__ipow__')(*args, _callSync='off')
+        
+    def __rshift__(self, *args):
+        return self._getSpecialAttr('__rshift__')(*args)
+        
+    def __lshift__(self, *args):
+        return self._getSpecialAttr('__lshift__')(*args)
+        
+    def __irshift__(self, *args):
+        return self._getSpecialAttr('__irshift__')(*args, _callSync='off')
+        
+    def __ilshift__(self, *args):
+        return self._getSpecialAttr('__ilshift__')(*args, _callSync='off')
+        
+    def __eq__(self, *args):
+        return self._getSpecialAttr('__eq__')(*args)
+    
+    def __ne__(self, *args):
+        return self._getSpecialAttr('__ne__')(*args)
+        
+    def __lt__(self, *args):
+        return self._getSpecialAttr('__lt__')(*args)
+    
+    def __gt__(self, *args):
+        return self._getSpecialAttr('__gt__')(*args)
+        
+    def __le__(self, *args):
+        return self._getSpecialAttr('__le__')(*args)
+    
+    def __ge__(self, *args):
+        return self._getSpecialAttr('__ge__')(*args)
+        
+    def __and__(self, *args):
+        return self._getSpecialAttr('__and__')(*args)
+        
+    def __or__(self, *args):
+        return self._getSpecialAttr('__or__')(*args)
+        
+    def __xor__(self, *args):
+        return self._getSpecialAttr('__xor__')(*args)
+        
+    def __iand__(self, *args):
+        return self._getSpecialAttr('__iand__')(*args, _callSync='off')
+        
+    def __ior__(self, *args):
+        return self._getSpecialAttr('__ior__')(*args, _callSync='off')
+        
+    def __ixor__(self, *args):
+        return self._getSpecialAttr('__ixor__')(*args, _callSync='off')
+        
+    def __mod__(self, *args):
+        return self._getSpecialAttr('__mod__')(*args)
+        
+    def __radd__(self, *args):
+        return self._getSpecialAttr('__radd__')(*args)
+    
+    def __rsub__(self, *args):
+        return self._getSpecialAttr('__rsub__')(*args)
+        
+    def __rdiv__(self, *args):
+        return self._getSpecialAttr('__rdiv__')(*args)
+        
+    def __rfloordiv__(self, *args):
+        return self._getSpecialAttr('__rfloordiv__')(*args)
+        
+    def __rtruediv__(self, *args):
+        return self._getSpecialAttr('__rtruediv__')(*args)
+        
+    def __rmul__(self, *args):
+        return self._getSpecialAttr('__rmul__')(*args)
+        
+    def __rpow__(self, *args):
+        return self._getSpecialAttr('__rpow__')(*args)
+        
+    def __rrshift__(self, *args):
+        return self._getSpecialAttr('__rrshift__')(*args)
+        
+    def __rlshift__(self, *args):
+        return self._getSpecialAttr('__rlshift__')(*args)
+        
+    def __rand__(self, *args):
+        return self._getSpecialAttr('__rand__')(*args)
+        
+    def __ror__(self, *args):
+        return self._getSpecialAttr('__ror__')(*args)
+        
+    def __rxor__(self, *args):
+        return self._getSpecialAttr('__ror__')(*args)
+        
+    def __rmod__(self, *args):
+        return self._getSpecialAttr('__rmod__')(*args)
+        
+    def __hash__(self):
+        ## Required for python3 since __eq__ is defined.
+        return id(self)
+        
+class DeferredObjectProxy(ObjectProxy):
+    """
+    This class represents an attribute (or sub-attribute) of a proxied object.
+    It is used to speed up attribute requests. Take the following scenario::
+    
+        rsys = proc._import('sys')
+        rsys.stdout.write('hello')
+        
+    For this simple example, a total of 4 synchronous requests are made to 
+    the remote process: 
+    
+    1) import sys
+    2) getattr(sys, 'stdout')
+    3) getattr(stdout, 'write')
+    4) write('hello')
+    
+    This takes a lot longer than running the equivalent code locally. To
+    speed things up, we can 'defer' the two attribute lookups so they are
+    only carried out when neccessary::
+    
+        rsys = proc._import('sys')
+        rsys._setProxyOptions(deferGetattr=True)
+        rsys.stdout.write('hello')
+        
+    This example only makes two requests to the remote process; the two 
+    attribute lookups immediately return DeferredObjectProxy instances 
+    immediately without contacting the remote process. When the call 
+    to write() is made, all attribute requests are processed at the same time.
+    
+    Note that if the attributes requested do not exist on the remote object, 
+    making the call to write() will raise an AttributeError.
+    """
+    def __init__(self, parentProxy, attribute):
+        ## can't set attributes directly because setattr is overridden.
+        for k in ['_processId', '_typeStr', '_proxyId', '_handler']:
+            self.__dict__[k] = getattr(parentProxy, k)
+        self.__dict__['_parent'] = parentProxy  ## make sure parent stays alive
+        self.__dict__['_attributes'] = parentProxy._attributes + (attribute,)
+        self.__dict__['_proxyOptions'] = parentProxy._proxyOptions.copy()
+    
+    def __repr__(self):
+        return ObjectProxy.__repr__(self) + '.' + '.'.join(self._attributes)
+    
+    def _undefer(self):
+        """
+        Return a non-deferred ObjectProxy referencing the same object
+        """
+        return self._parent.__getattr__(self._attributes[-1], _deferGetattr=False)
+
diff --git a/libs/pyqtgraph/numpy_fix.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/numpy_fix.py
similarity index 100%
rename from libs/pyqtgraph/numpy_fix.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/numpy_fix.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/GLGraphicsItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/GLGraphicsItem.py
new file mode 100644
index 00000000..a2c2708a
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/GLGraphicsItem.py
@@ -0,0 +1,300 @@
+from OpenGL.GL import *
+from OpenGL import GL
+from ..Qt import QtGui, QtCore
+from .. import Transform3D
+from ..python2_3 import basestring
+
+
+GLOptions = {
+    'opaque': {
+        GL_DEPTH_TEST: True,
+        GL_BLEND: False,
+        GL_ALPHA_TEST: False,
+        GL_CULL_FACE: False,
+    },
+    'translucent': {
+        GL_DEPTH_TEST: True,
+        GL_BLEND: True,
+        GL_ALPHA_TEST: False,
+        GL_CULL_FACE: False,
+        'glBlendFunc': (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA),
+    },
+    'additive': {
+        GL_DEPTH_TEST: False,
+        GL_BLEND: True,
+        GL_ALPHA_TEST: False,
+        GL_CULL_FACE: False,
+        'glBlendFunc': (GL_SRC_ALPHA, GL_ONE),
+    },
+}    
+
+
+class GLGraphicsItem(QtCore.QObject):
+    _nextId = 0
+    
+    def __init__(self, parentItem=None):
+        QtCore.QObject.__init__(self)
+        self._id = GLGraphicsItem._nextId
+        GLGraphicsItem._nextId += 1
+        
+        self.__parent = None
+        self.__view = None
+        self.__children = set()
+        self.__transform = Transform3D()
+        self.__visible = True
+        self.setParentItem(parentItem)
+        self.setDepthValue(0)
+        self.__glOpts = {}
+        
+    def setParentItem(self, item):
+        """Set this item's parent in the scenegraph hierarchy."""
+        if self.__parent is not None:
+            self.__parent.__children.remove(self)
+        if item is not None:
+            item.__children.add(self)
+        self.__parent = item
+        
+        if self.__parent is not None and self.view() is not self.__parent.view():
+            if self.view() is not None:
+                self.view().removeItem(self)
+            self.__parent.view().addItem(self)
+    
+    def setGLOptions(self, opts):
+        """
+        Set the OpenGL state options to use immediately before drawing this item.
+        (Note that subclasses must call setupGLState before painting for this to work)
+        
+        The simplest way to invoke this method is to pass in the name of
+        a predefined set of options (see the GLOptions variable):
+        
+        ============= ======================================================
+        opaque        Enables depth testing and disables blending
+        translucent   Enables depth testing and blending
+                      Elements must be drawn sorted back-to-front for
+                      translucency to work correctly.
+        additive      Disables depth testing, enables blending.
+                      Colors are added together, so sorting is not required.
+        ============= ======================================================
+        
+        It is also possible to specify any arbitrary settings as a dictionary. 
+        This may consist of {'functionName': (args...)} pairs where functionName must 
+        be a callable attribute of OpenGL.GL, or {GL_STATE_VAR: bool} pairs 
+        which will be interpreted as calls to glEnable or glDisable(GL_STATE_VAR).
+        
+        For example::
+            
+            {
+                GL_ALPHA_TEST: True,
+                GL_CULL_FACE: False,
+                'glBlendFunc': (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA),
+            }
+            
+        
+        """
+        if isinstance(opts, basestring):
+            opts = GLOptions[opts]
+        self.__glOpts = opts.copy()
+        self.update()
+        
+    def updateGLOptions(self, opts):
+        """
+        Modify the OpenGL state options to use immediately before drawing this item.
+        *opts* must be a dictionary as specified by setGLOptions.
+        Values may also be None, in which case the key will be ignored.
+        """
+        self.__glOpts.update(opts)
+        
+    
+    def parentItem(self):
+        """Return a this item's parent in the scenegraph hierarchy."""
+        return self.__parent
+        
+    def childItems(self):
+        """Return a list of this item's children in the scenegraph hierarchy."""
+        return list(self.__children)
+        
+    def _setView(self, v):
+        self.__view = v
+        
+    def view(self):
+        return self.__view
+        
+    def setDepthValue(self, value):
+        """
+        Sets the depth value of this item. Default is 0.
+        This controls the order in which items are drawn--those with a greater depth value will be drawn later.
+        Items with negative depth values are drawn before their parent.
+        (This is analogous to QGraphicsItem.zValue)
+        The depthValue does NOT affect the position of the item or the values it imparts to the GL depth buffer.
+        """
+        self.__depthValue = value
+        
+    def depthValue(self):
+        """Return the depth value of this item. See setDepthValue for more information."""
+        return self.__depthValue
+        
+    def setTransform(self, tr):
+        """Set the local transform for this object.
+        Must be a :class:`Transform3D <pyqtgraph.Transform3D>` instance. This transform
+        determines how the local coordinate system of the item is mapped to the coordinate
+        system of its parent."""
+        self.__transform = Transform3D(tr)
+        self.update()
+        
+    def resetTransform(self):
+        """Reset this item's transform to an identity transformation."""
+        self.__transform.setToIdentity()
+        self.update()
+        
+    def applyTransform(self, tr, local):
+        """
+        Multiply this object's transform by *tr*. 
+        If local is True, then *tr* is multiplied on the right of the current transform::
+        
+            newTransform = transform * tr
+            
+        If local is False, then *tr* is instead multiplied on the left::
+        
+            newTransform = tr * transform
+        """
+        if local:
+            self.setTransform(self.transform() * tr)
+        else:
+            self.setTransform(tr * self.transform())
+        
+    def transform(self):
+        """Return this item's transform object."""
+        return self.__transform
+        
+    def viewTransform(self):
+        """Return the transform mapping this item's local coordinate system to the 
+        view coordinate system."""
+        tr = self.__transform
+        p = self
+        while True:
+            p = p.parentItem()
+            if p is None:
+                break
+            tr = p.transform() * tr
+        return Transform3D(tr)
+        
+    def translate(self, dx, dy, dz, local=False):
+        """
+        Translate the object by (*dx*, *dy*, *dz*) in its parent's coordinate system.
+        If *local* is True, then translation takes place in local coordinates.
+        """
+        tr = Transform3D()
+        tr.translate(dx, dy, dz)
+        self.applyTransform(tr, local=local)
+        
+    def rotate(self, angle, x, y, z, local=False):
+        """
+        Rotate the object around the axis specified by (x,y,z).
+        *angle* is in degrees.
+        
+        """
+        tr = Transform3D()
+        tr.rotate(angle, x, y, z)
+        self.applyTransform(tr, local=local)
+    
+    def scale(self, x, y, z, local=True):
+        """
+        Scale the object by (*dx*, *dy*, *dz*) in its local coordinate system.
+        If *local* is False, then scale takes place in the parent's coordinates.
+        """
+        tr = Transform3D()
+        tr.scale(x, y, z)
+        self.applyTransform(tr, local=local)
+    
+    
+    def hide(self):
+        """Hide this item. 
+        This is equivalent to setVisible(False)."""
+        self.setVisible(False)
+        
+    def show(self):
+        """Make this item visible if it was previously hidden.
+        This is equivalent to setVisible(True)."""
+        self.setVisible(True)
+    
+    def setVisible(self, vis):
+        """Set the visibility of this item."""
+        self.__visible = vis
+        self.update()
+        
+    def visible(self):
+        """Return True if the item is currently set to be visible.
+        Note that this does not guarantee that the item actually appears in the
+        view, as it may be obscured or outside of the current view area."""
+        return self.__visible
+    
+    
+    def initializeGL(self):
+        """
+        Called after an item is added to a GLViewWidget. 
+        The widget's GL context is made current before this method is called.
+        (So this would be an appropriate time to generate lists, upload textures, etc.)
+        """
+        pass
+    
+    def setupGLState(self):
+        """
+        This method is responsible for preparing the GL state options needed to render 
+        this item (blending, depth testing, etc). The method is called immediately before painting the item.
+        """
+        for k,v in self.__glOpts.items():
+            if v is None:
+                continue
+            if isinstance(k, basestring):
+                func = getattr(GL, k)
+                func(*v)
+            else:
+                if v is True:
+                    glEnable(k)
+                else:
+                    glDisable(k)
+    
+    def paint(self):
+        """
+        Called by the GLViewWidget to draw this item.
+        It is the responsibility of the item to set up its own modelview matrix,
+        but the caller will take care of pushing/popping.
+        """
+        self.setupGLState()
+        
+    def update(self):
+        """
+        Indicates that this item needs to be redrawn, and schedules an update 
+        with the view it is displayed in.
+        """
+        v = self.view()
+        if v is None:
+            return
+        v.update()
+        
+    def mapToParent(self, point):
+        tr = self.transform()
+        if tr is None:
+            return point
+        return tr.map(point)
+        
+    def mapFromParent(self, point):
+        tr = self.transform()
+        if tr is None:
+            return point
+        return tr.inverted()[0].map(point)
+        
+    def mapToView(self, point):
+        tr = self.viewTransform()
+        if tr is None:
+            return point
+        return tr.map(point)
+        
+    def mapFromView(self, point):
+        tr = self.viewTransform()
+        if tr is None:
+            return point
+        return tr.inverted()[0].map(point)
+        
+        
+        
\ No newline at end of file
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/GLViewWidget.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/GLViewWidget.py
new file mode 100644
index 00000000..e0fee046
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/GLViewWidget.py
@@ -0,0 +1,471 @@
+from ..Qt import QtCore, QtGui, QtOpenGL, USE_PYQT5
+from OpenGL.GL import *
+import OpenGL.GL.framebufferobjects as glfbo
+import numpy as np
+from .. import Vector
+from .. import functions as fn
+
+##Vector = QtGui.QVector3D
+
+ShareWidget = None
+
+class GLViewWidget(QtOpenGL.QGLWidget):
+    """
+    Basic widget for displaying 3D data
+        - Rotation/scale controls
+        - Axis/grid display
+        - Export options
+
+    """
+    
+    def __init__(self, parent=None):
+        global ShareWidget
+
+        if ShareWidget is None:
+            ## create a dummy widget to allow sharing objects (textures, shaders, etc) between views
+            ShareWidget = QtOpenGL.QGLWidget()
+            
+        QtOpenGL.QGLWidget.__init__(self, parent, ShareWidget)
+        
+        self.setFocusPolicy(QtCore.Qt.ClickFocus)
+        
+        self.opts = {
+            'center': Vector(0,0,0),  ## will always appear at the center of the widget
+            'distance': 10.0,         ## distance of camera from center
+            'fov':  60,               ## horizontal field of view in degrees
+            'elevation':  30,         ## camera's angle of elevation in degrees
+            'azimuth': 45,            ## camera's azimuthal angle in degrees 
+                                      ## (rotation around z-axis 0 points along x-axis)
+            'viewport': None,         ## glViewport params; None == whole widget
+        }
+        self.setBackgroundColor('k')
+        self.items = []
+        self.noRepeatKeys = [QtCore.Qt.Key_Right, QtCore.Qt.Key_Left, QtCore.Qt.Key_Up, QtCore.Qt.Key_Down, QtCore.Qt.Key_PageUp, QtCore.Qt.Key_PageDown]
+        self.keysPressed = {}
+        self.keyTimer = QtCore.QTimer()
+        self.keyTimer.timeout.connect(self.evalKeyState)
+        
+        self.makeCurrent()
+
+    def addItem(self, item):
+        self.items.append(item)
+        if hasattr(item, 'initializeGL'):
+            self.makeCurrent()
+            try:
+                item.initializeGL()
+            except:
+                self.checkOpenGLVersion('Error while adding item %s to GLViewWidget.' % str(item))
+                
+        item._setView(self)
+        #print "set view", item, self, item.view()
+        self.update()
+        
+    def removeItem(self, item):
+        self.items.remove(item)
+        item._setView(None)
+        self.update()
+        
+        
+    def initializeGL(self):
+        self.resizeGL(self.width(), self.height())
+        
+    def setBackgroundColor(self, *args, **kwds):
+        """
+        Set the background color of the widget. Accepts the same arguments as
+        pg.mkColor() and pg.glColor().
+        """
+        self.opts['bgcolor'] = fn.glColor(*args, **kwds)
+        self.update()
+        
+    def getViewport(self):
+        vp = self.opts['viewport']
+        if vp is None:
+            return (0, 0, self.width(), self.height())
+        else:
+            return vp
+        
+    def resizeGL(self, w, h):
+        pass
+        #glViewport(*self.getViewport())
+        #self.update()
+
+    def setProjection(self, region=None):
+        m = self.projectionMatrix(region)
+        glMatrixMode(GL_PROJECTION)
+        glLoadIdentity()
+        a = np.array(m.copyDataTo()).reshape((4,4))
+        glMultMatrixf(a.transpose())
+
+    def projectionMatrix(self, region=None):
+        # Xw = (Xnd + 1) * width/2 + X
+        if region is None:
+            region = (0, 0, self.width(), self.height())
+        
+        x0, y0, w, h = self.getViewport()
+        dist = self.opts['distance']
+        fov = self.opts['fov']
+        nearClip = dist * 0.001
+        farClip = dist * 1000.
+
+        r = nearClip * np.tan(fov * 0.5 * np.pi / 180.)
+        t = r * h / w
+
+        # convert screen coordinates (region) to normalized device coordinates
+        # Xnd = (Xw - X0) * 2/width - 1
+        ## Note that X0 and width in these equations must be the values used in viewport
+        left  = r * ((region[0]-x0) * (2.0/w) - 1)
+        right = r * ((region[0]+region[2]-x0) * (2.0/w) - 1)
+        bottom = t * ((region[1]-y0) * (2.0/h) - 1)
+        top    = t * ((region[1]+region[3]-y0) * (2.0/h) - 1)
+
+        tr = QtGui.QMatrix4x4()
+        tr.frustum(left, right, bottom, top, nearClip, farClip)
+        return tr
+        
+    def setModelview(self):
+        glMatrixMode(GL_MODELVIEW)
+        glLoadIdentity()
+        m = self.viewMatrix()
+        a = np.array(m.copyDataTo()).reshape((4,4))
+        glMultMatrixf(a.transpose())
+        
+    def viewMatrix(self):
+        tr = QtGui.QMatrix4x4()
+        tr.translate( 0.0, 0.0, -self.opts['distance'])
+        tr.rotate(self.opts['elevation']-90, 1, 0, 0)
+        tr.rotate(self.opts['azimuth']+90, 0, 0, -1)
+        center = self.opts['center']
+        tr.translate(-center.x(), -center.y(), -center.z())
+        return tr
+
+    def itemsAt(self, region=None):
+        """
+        Return a list of the items displayed in the region (x, y, w, h)
+        relative to the widget.        
+        """
+        region = (region[0], self.height()-(region[1]+region[3]), region[2], region[3])
+        
+        #buf = np.zeros(100000, dtype=np.uint)
+        buf = glSelectBuffer(100000)
+        try:
+            glRenderMode(GL_SELECT)
+            glInitNames()
+            glPushName(0)
+            self._itemNames = {}
+            self.paintGL(region=region, useItemNames=True)
+            
+        finally:
+            hits = glRenderMode(GL_RENDER)
+            
+        items = [(h.near, h.names[0]) for h in hits]
+        items.sort(key=lambda i: i[0])
+        return [self._itemNames[i[1]] for i in items]
+    
+    def paintGL(self, region=None, viewport=None, useItemNames=False):
+        """
+        viewport specifies the arguments to glViewport. If None, then we use self.opts['viewport']
+        region specifies the sub-region of self.opts['viewport'] that should be rendered.
+        Note that we may use viewport != self.opts['viewport'] when exporting.
+        """
+        if viewport is None:
+            glViewport(*self.getViewport())
+        else:
+            glViewport(*viewport)
+        self.setProjection(region=region)
+        self.setModelview()
+        bgcolor = self.opts['bgcolor']
+        glClearColor(*bgcolor)
+        glClear( GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT )
+        self.drawItemTree(useItemNames=useItemNames)
+        
+    def drawItemTree(self, item=None, useItemNames=False):
+        if item is None:
+            items = [x for x in self.items if x.parentItem() is None]
+        else:
+            items = item.childItems()
+            items.append(item)
+        items.sort(key=lambda a: a.depthValue())
+        for i in items:
+            if not i.visible():
+                continue
+            if i is item:
+                try:
+                    glPushAttrib(GL_ALL_ATTRIB_BITS)
+                    if useItemNames:
+                        glLoadName(i._id)
+                        self._itemNames[i._id] = i
+                    i.paint()
+                except:
+                    from .. import debug
+                    debug.printExc()
+                    msg = "Error while drawing item %s." % str(item)
+                    ver = glGetString(GL_VERSION)
+                    if ver is not None:
+                        ver = ver.split()[0]
+                        if int(ver.split(b'.')[0]) < 2:
+                            print(msg + " The original exception is printed above; however, pyqtgraph requires OpenGL version 2.0 or greater for many of its 3D features and your OpenGL version is %s. Installing updated display drivers may resolve this issue." % ver)
+                        else:
+                            print(msg)
+                    
+                finally:
+                    glPopAttrib()
+            else:
+                glMatrixMode(GL_MODELVIEW)
+                glPushMatrix()
+                try:
+                    tr = i.transform()
+                    a = np.array(tr.copyDataTo()).reshape((4,4))
+                    glMultMatrixf(a.transpose())
+                    self.drawItemTree(i, useItemNames=useItemNames)
+                finally:
+                    glMatrixMode(GL_MODELVIEW)
+                    glPopMatrix()
+            
+    def setCameraPosition(self, pos=None, distance=None, elevation=None, azimuth=None):
+        if distance is not None:
+            self.opts['distance'] = distance
+        if elevation is not None:
+            self.opts['elevation'] = elevation
+        if azimuth is not None:
+            self.opts['azimuth'] = azimuth
+        self.update()
+        
+        
+        
+    def cameraPosition(self):
+        """Return current position of camera based on center, dist, elevation, and azimuth"""
+        center = self.opts['center']
+        dist = self.opts['distance']
+        elev = self.opts['elevation'] * np.pi/180.
+        azim = self.opts['azimuth'] * np.pi/180.
+        
+        pos = Vector(
+            center.x() + dist * np.cos(elev) * np.cos(azim),
+            center.y() + dist * np.cos(elev) * np.sin(azim),
+            center.z() + dist * np.sin(elev)
+        )
+        
+        return pos
+
+    def orbit(self, azim, elev):
+        """Orbits the camera around the center position. *azim* and *elev* are given in degrees."""
+        self.opts['azimuth'] += azim
+        #self.opts['elevation'] += elev
+        self.opts['elevation'] = np.clip(self.opts['elevation'] + elev, -90, 90)
+        self.update()
+        
+    def pan(self, dx, dy, dz, relative=False):
+        """
+        Moves the center (look-at) position while holding the camera in place. 
+        
+        If relative=True, then the coordinates are interpreted such that x
+        if in the global xy plane and points to the right side of the view, y is
+        in the global xy plane and orthogonal to x, and z points in the global z
+        direction. Distances are scaled roughly such that a value of 1.0 moves
+        by one pixel on screen.
+        
+        """
+        if not relative:
+            self.opts['center'] += QtGui.QVector3D(dx, dy, dz)
+        else:
+            cPos = self.cameraPosition()
+            cVec = self.opts['center'] - cPos
+            dist = cVec.length()  ## distance from camera to center
+            xDist = dist * 2. * np.tan(0.5 * self.opts['fov'] * np.pi / 180.)  ## approx. width of view at distance of center point
+            xScale = xDist / self.width()
+            zVec = QtGui.QVector3D(0,0,1)
+            xVec = QtGui.QVector3D.crossProduct(zVec, cVec).normalized()
+            yVec = QtGui.QVector3D.crossProduct(xVec, zVec).normalized()
+            self.opts['center'] = self.opts['center'] + xVec * xScale * dx + yVec * xScale * dy + zVec * xScale * dz
+        self.update()
+        
+    def pixelSize(self, pos):
+        """
+        Return the approximate size of a screen pixel at the location pos
+        Pos may be a Vector or an (N,3) array of locations
+        """
+        cam = self.cameraPosition()
+        if isinstance(pos, np.ndarray):
+            cam = np.array(cam).reshape((1,)*(pos.ndim-1)+(3,))
+            dist = ((pos-cam)**2).sum(axis=-1)**0.5
+        else:
+            dist = (pos-cam).length()
+        xDist = dist * 2. * np.tan(0.5 * self.opts['fov'] * np.pi / 180.)
+        return xDist / self.width()
+        
+    def mousePressEvent(self, ev):
+        self.mousePos = ev.pos()
+        
+    def mouseMoveEvent(self, ev):
+        diff = ev.pos() - self.mousePos
+        self.mousePos = ev.pos()
+        
+        if ev.buttons() == QtCore.Qt.LeftButton:
+            self.orbit(-diff.x(), diff.y())
+            #print self.opts['azimuth'], self.opts['elevation']
+        elif ev.buttons() == QtCore.Qt.MidButton:
+            if (ev.modifiers() & QtCore.Qt.ControlModifier):
+                self.pan(diff.x(), 0, diff.y(), relative=True)
+            else:
+                self.pan(diff.x(), diff.y(), 0, relative=True)
+        
+    def mouseReleaseEvent(self, ev):
+        pass
+        # Example item selection code:
+        #region = (ev.pos().x()-5, ev.pos().y()-5, 10, 10)
+        #print(self.itemsAt(region))
+        
+        ## debugging code: draw the picking region
+        #glViewport(*self.getViewport())
+        #glClear( GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT )
+        #region = (region[0], self.height()-(region[1]+region[3]), region[2], region[3])
+        #self.paintGL(region=region)
+        #self.swapBuffers()
+        
+        
+    def wheelEvent(self, ev):
+        delta = 0
+        if not USE_PYQT5:
+            delta = ev.delta()
+        else:
+            delta = ev.angleDelta().x()
+            if delta == 0:
+                delta = ev.angleDelta().y()
+        if (ev.modifiers() & QtCore.Qt.ControlModifier):
+            self.opts['fov'] *= 0.999**delta
+        else:
+            self.opts['distance'] *= 0.999**delta
+        self.update()
+
+    def keyPressEvent(self, ev):
+        if ev.key() in self.noRepeatKeys:
+            ev.accept()
+            if ev.isAutoRepeat():
+                return
+            self.keysPressed[ev.key()] = 1
+            self.evalKeyState()
+      
+    def keyReleaseEvent(self, ev):
+        if ev.key() in self.noRepeatKeys:
+            ev.accept()
+            if ev.isAutoRepeat():
+                return
+            try:
+                del self.keysPressed[ev.key()]
+            except:
+                self.keysPressed = {}
+            self.evalKeyState()
+        
+    def evalKeyState(self):
+        speed = 2.0
+        if len(self.keysPressed) > 0:
+            for key in self.keysPressed:
+                if key == QtCore.Qt.Key_Right:
+                    self.orbit(azim=-speed, elev=0)
+                elif key == QtCore.Qt.Key_Left:
+                    self.orbit(azim=speed, elev=0)
+                elif key == QtCore.Qt.Key_Up:
+                    self.orbit(azim=0, elev=-speed)
+                elif key == QtCore.Qt.Key_Down:
+                    self.orbit(azim=0, elev=speed)
+                elif key == QtCore.Qt.Key_PageUp:
+                    pass
+                elif key == QtCore.Qt.Key_PageDown:
+                    pass
+                self.keyTimer.start(16)
+        else:
+            self.keyTimer.stop()
+
+    def checkOpenGLVersion(self, msg):
+        ## Only to be called from within exception handler.
+        ver = glGetString(GL_VERSION).split()[0]
+        if int(ver.split('.')[0]) < 2:
+            from .. import debug
+            pyqtgraph.debug.printExc()
+            raise Exception(msg + " The original exception is printed above; however, pyqtgraph requires OpenGL version 2.0 or greater for many of its 3D features and your OpenGL version is %s. Installing updated display drivers may resolve this issue." % ver)
+        else:
+            raise
+            
+
+            
+    def readQImage(self):
+        """
+        Read the current buffer pixels out as a QImage.
+        """
+        w = self.width()
+        h = self.height()
+        self.repaint()
+        pixels = np.empty((h, w, 4), dtype=np.ubyte)
+        pixels[:] = 128
+        pixels[...,0] = 50
+        pixels[...,3] = 255
+        
+        glReadPixels(0, 0, w, h, GL_RGBA, GL_UNSIGNED_BYTE, pixels)
+        
+        # swap B,R channels for Qt
+        tmp = pixels[...,0].copy()
+        pixels[...,0] = pixels[...,2]
+        pixels[...,2] = tmp
+        pixels = pixels[::-1] # flip vertical
+        
+        img = fn.makeQImage(pixels, transpose=False)
+        return img
+        
+        
+    def renderToArray(self, size, format=GL_BGRA, type=GL_UNSIGNED_BYTE, textureSize=1024, padding=256):
+        w,h = map(int, size)
+        
+        self.makeCurrent()
+        tex = None
+        fb = None
+        try:
+            output = np.empty((w, h, 4), dtype=np.ubyte)
+            fb = glfbo.glGenFramebuffers(1)
+            glfbo.glBindFramebuffer(glfbo.GL_FRAMEBUFFER, fb )
+            
+            glEnable(GL_TEXTURE_2D)
+            tex = glGenTextures(1)
+            glBindTexture(GL_TEXTURE_2D, tex)
+            texwidth = textureSize
+            data = np.zeros((texwidth,texwidth,4), dtype=np.ubyte)
+            
+            ## Test texture dimensions first
+            glTexImage2D(GL_PROXY_TEXTURE_2D, 0, GL_RGBA, texwidth, texwidth, 0, GL_RGBA, GL_UNSIGNED_BYTE, None)
+            if glGetTexLevelParameteriv(GL_PROXY_TEXTURE_2D, 0, GL_TEXTURE_WIDTH) == 0:
+                raise Exception("OpenGL failed to create 2D texture (%dx%d); too large for this hardware." % shape[:2])
+            ## create teture
+            glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, texwidth, texwidth, 0, GL_RGBA, GL_UNSIGNED_BYTE, data.transpose((1,0,2)))
+            
+            self.opts['viewport'] = (0, 0, w, h)  # viewport is the complete image; this ensures that paintGL(region=...) 
+                                                  # is interpreted correctly.
+            p2 = 2 * padding
+            for x in range(-padding, w-padding, texwidth-p2):
+                for y in range(-padding, h-padding, texwidth-p2):
+                    x2 = min(x+texwidth, w+padding)
+                    y2 = min(y+texwidth, h+padding)
+                    w2 = x2-x
+                    h2 = y2-y
+                    
+                    ## render to texture
+                    glfbo.glFramebufferTexture2D(glfbo.GL_FRAMEBUFFER, glfbo.GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, tex, 0)
+                    
+                    self.paintGL(region=(x, h-y-h2, w2, h2), viewport=(0, 0, w2, h2))  # only render sub-region
+                    
+                    ## read texture back to array
+                    data = glGetTexImage(GL_TEXTURE_2D, 0, format, type)
+                    data = np.fromstring(data, dtype=np.ubyte).reshape(texwidth,texwidth,4).transpose(1,0,2)[:, ::-1]
+                    output[x+padding:x2-padding, y+padding:y2-padding] = data[padding:w2-padding, -(h2-padding):-padding]
+                    
+        finally:
+            self.opts['viewport'] = None
+            glfbo.glBindFramebuffer(glfbo.GL_FRAMEBUFFER, 0)
+            glBindTexture(GL_TEXTURE_2D, 0)
+            if tex is not None:
+                glDeleteTextures([tex])
+            if fb is not None:
+                glfbo.glDeleteFramebuffers([fb])
+            
+        return output
+        
+        
+        
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/MeshData.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/MeshData.py
new file mode 100644
index 00000000..f83fcdf6
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/MeshData.py
@@ -0,0 +1,506 @@
+import numpy as np
+from ..Qt import QtGui
+from .. import functions as fn
+from ..python2_3 import xrange
+
+
+class MeshData(object):
+    """
+    Class for storing and operating on 3D mesh data. May contain:
+    
+    - list of vertex locations
+    - list of edges
+    - list of triangles
+    - colors per vertex, edge, or tri
+    - normals per vertex or tri
+    
+    This class handles conversion between the standard [list of vertexes, list of faces]
+    format (suitable for use with glDrawElements) and 'indexed' [list of vertexes] format
+    (suitable for use with glDrawArrays). It will automatically compute face normal
+    vectors as well as averaged vertex normal vectors. 
+    
+    The class attempts to be as efficient as possible in caching conversion results and
+    avoiding unnecessary conversions.
+    """
+
+    def __init__(self, vertexes=None, faces=None, edges=None, vertexColors=None, faceColors=None):
+        """
+        ==============  =====================================================
+        **Arguments:**
+        vertexes        (Nv, 3) array of vertex coordinates.
+                        If faces is not specified, then this will instead be
+                        interpreted as (Nf, 3, 3) array of coordinates.
+        faces           (Nf, 3) array of indexes into the vertex array.
+        edges           [not available yet]
+        vertexColors    (Nv, 4) array of vertex colors.
+                        If faces is not specified, then this will instead be
+                        interpreted as (Nf, 3, 4) array of colors.
+        faceColors      (Nf, 4) array of face colors.
+        ==============  =====================================================
+        
+        All arguments are optional.
+        """
+        self._vertexes = None  # (Nv,3) array of vertex coordinates
+        self._vertexesIndexedByFaces = None   #  (Nf, 3, 3) array of vertex coordinates
+        self._vertexesIndexedByEdges = None   #  (Ne, 2, 3) array of vertex coordinates
+        
+        ## mappings between vertexes, faces, and edges
+        self._faces = None   # Nx3 array of indexes into self._vertexes specifying three vertexes for each face
+        self._edges = None   # Nx2 array of indexes into self._vertexes specifying two vertexes per edge
+        self._vertexFaces = None  ## maps vertex ID to a list of face IDs (inverse mapping of _faces)
+        self._vertexEdges = None  ## maps vertex ID to a list of edge IDs (inverse mapping of _edges)
+        
+        ## Per-vertex data
+        self._vertexNormals = None                # (Nv, 3) array of normals, one per vertex
+        self._vertexNormalsIndexedByFaces = None  # (Nf, 3, 3) array of normals
+        self._vertexColors = None                 # (Nv, 3) array of colors
+        self._vertexColorsIndexedByFaces = None   # (Nf, 3, 4) array of colors
+        self._vertexColorsIndexedByEdges = None   # (Nf, 2, 4) array of colors
+        
+        ## Per-face data
+        self._faceNormals = None                # (Nf, 3) array of face normals
+        self._faceNormalsIndexedByFaces = None  # (Nf, 3, 3) array of face normals
+        self._faceColors = None                 # (Nf, 4) array of face colors
+        self._faceColorsIndexedByFaces = None   # (Nf, 3, 4) array of face colors
+        self._faceColorsIndexedByEdges = None   # (Ne, 2, 4) array of face colors
+        
+        ## Per-edge data
+        self._edgeColors = None                # (Ne, 4) array of edge colors
+        self._edgeColorsIndexedByEdges = None  # (Ne, 2, 4) array of edge colors
+        #self._meshColor = (1, 1, 1, 0.1)  # default color to use if no face/edge/vertex colors are given
+        
+        
+        
+        if vertexes is not None:
+            if faces is None:
+                self.setVertexes(vertexes, indexed='faces')
+                if vertexColors is not None:
+                    self.setVertexColors(vertexColors, indexed='faces')
+                if faceColors is not None:
+                    self.setFaceColors(faceColors, indexed='faces')
+            else:
+                self.setVertexes(vertexes)
+                self.setFaces(faces)
+                if vertexColors is not None:
+                    self.setVertexColors(vertexColors)
+                if faceColors is not None:
+                    self.setFaceColors(faceColors)
+            
+    def faces(self):
+        """Return an array (Nf, 3) of vertex indexes, three per triangular face in the mesh.
+        
+        If faces have not been computed for this mesh, the function returns None.
+        """
+        return self._faces
+    
+    def edges(self):
+        """Return an array (Nf, 3) of vertex indexes, two per edge in the mesh."""
+        if self._edges is None:
+            self._computeEdges()
+        return self._edges
+        
+    def setFaces(self, faces):
+        """Set the (Nf, 3) array of faces. Each rown in the array contains
+        three indexes into the vertex array, specifying the three corners 
+        of a triangular face."""
+        self._faces = faces
+        self._edges = None
+        self._vertexFaces = None
+        self._vertexesIndexedByFaces = None
+        self.resetNormals()
+        self._vertexColorsIndexedByFaces = None
+        self._faceColorsIndexedByFaces = None
+    
+    def vertexes(self, indexed=None):
+        """Return an array (N,3) of the positions of vertexes in the mesh. 
+        By default, each unique vertex appears only once in the array.
+        If indexed is 'faces', then the array will instead contain three vertexes
+        per face in the mesh (and a single vertex may appear more than once in the array)."""
+        if indexed is None:
+            if self._vertexes is None and self._vertexesIndexedByFaces is not None:
+                self._computeUnindexedVertexes()
+            return self._vertexes
+        elif indexed == 'faces':
+            if self._vertexesIndexedByFaces is None and self._vertexes is not None:
+                self._vertexesIndexedByFaces = self._vertexes[self.faces()]
+            return self._vertexesIndexedByFaces
+        else:
+            raise Exception("Invalid indexing mode. Accepts: None, 'faces'")
+        
+    def setVertexes(self, verts=None, indexed=None, resetNormals=True):
+        """
+        Set the array (Nv, 3) of vertex coordinates.
+        If indexed=='faces', then the data must have shape (Nf, 3, 3) and is
+        assumed to be already indexed as a list of faces.
+        This will cause any pre-existing normal vectors to be cleared
+        unless resetNormals=False.
+        """
+        if indexed is None:
+            if verts is not None:
+                self._vertexes = verts
+            self._vertexesIndexedByFaces = None
+        elif indexed=='faces':
+            self._vertexes = None
+            if verts is not None:
+                self._vertexesIndexedByFaces = verts
+        else:
+            raise Exception("Invalid indexing mode. Accepts: None, 'faces'")
+        
+        if resetNormals:
+            self.resetNormals()
+    
+    def resetNormals(self):
+        self._vertexNormals = None
+        self._vertexNormalsIndexedByFaces = None
+        self._faceNormals = None
+        self._faceNormalsIndexedByFaces = None
+        
+    def hasFaceIndexedData(self):
+        """Return True if this object already has vertex positions indexed by face"""
+        return self._vertexesIndexedByFaces is not None
+    
+    def hasEdgeIndexedData(self):
+        return self._vertexesIndexedByEdges is not None
+    
+    def hasVertexColor(self):
+        """Return True if this data set has vertex color information"""
+        for v in (self._vertexColors, self._vertexColorsIndexedByFaces, self._vertexColorsIndexedByEdges):
+            if v is not None:
+                return True
+        return False
+        
+    def hasFaceColor(self):
+        """Return True if this data set has face color information"""
+        for v in (self._faceColors, self._faceColorsIndexedByFaces, self._faceColorsIndexedByEdges):
+            if v is not None:
+                return True
+        return False
+    
+    def faceNormals(self, indexed=None):
+        """
+        Return an array (Nf, 3) of normal vectors for each face.
+        If indexed='faces', then instead return an indexed array
+        (Nf, 3, 3)  (this is just the same array with each vector
+        copied three times).
+        """
+        if self._faceNormals is None:
+            v = self.vertexes(indexed='faces')
+            self._faceNormals = np.cross(v[:,1]-v[:,0], v[:,2]-v[:,0])
+        
+        if indexed is None:
+            return self._faceNormals
+        elif indexed == 'faces':
+            if self._faceNormalsIndexedByFaces is None:
+                norms = np.empty((self._faceNormals.shape[0], 3, 3))
+                norms[:] = self._faceNormals[:,np.newaxis,:]
+                self._faceNormalsIndexedByFaces = norms
+            return self._faceNormalsIndexedByFaces
+        else:
+            raise Exception("Invalid indexing mode. Accepts: None, 'faces'")
+        
+    def vertexNormals(self, indexed=None):
+        """
+        Return an array of normal vectors.
+        By default, the array will be (N, 3) with one entry per unique vertex in the mesh.
+        If indexed is 'faces', then the array will contain three normal vectors per face
+        (and some vertexes may be repeated).
+        """
+        if self._vertexNormals is None:
+            faceNorms = self.faceNormals()
+            vertFaces = self.vertexFaces()
+            self._vertexNormals = np.empty(self._vertexes.shape, dtype=float)
+            for vindex in xrange(self._vertexes.shape[0]):
+                faces = vertFaces[vindex]
+                if len(faces) == 0:
+                    self._vertexNormals[vindex] = (0,0,0)
+                    continue
+                norms = faceNorms[faces]  ## get all face normals
+                norm = norms.sum(axis=0)       ## sum normals
+                norm /= (norm**2).sum()**0.5  ## and re-normalize
+                self._vertexNormals[vindex] = norm
+                
+        if indexed is None:
+            return self._vertexNormals
+        elif indexed == 'faces':
+            return self._vertexNormals[self.faces()]
+        else:
+            raise Exception("Invalid indexing mode. Accepts: None, 'faces'")
+        
+    def vertexColors(self, indexed=None):
+        """
+        Return an array (Nv, 4) of vertex colors.
+        If indexed=='faces', then instead return an indexed array
+        (Nf, 3, 4). 
+        """
+        if indexed is None:
+            return self._vertexColors
+        elif indexed == 'faces':
+            if self._vertexColorsIndexedByFaces is None:
+                self._vertexColorsIndexedByFaces = self._vertexColors[self.faces()]
+            return self._vertexColorsIndexedByFaces
+        else:
+            raise Exception("Invalid indexing mode. Accepts: None, 'faces'")
+        
+    def setVertexColors(self, colors, indexed=None):
+        """
+        Set the vertex color array (Nv, 4).
+        If indexed=='faces', then the array will be interpreted
+        as indexed and should have shape (Nf, 3, 4)
+        """
+        if indexed is None:
+            self._vertexColors = colors
+            self._vertexColorsIndexedByFaces = None
+        elif indexed == 'faces':
+            self._vertexColors = None
+            self._vertexColorsIndexedByFaces = colors
+        else:
+            raise Exception("Invalid indexing mode. Accepts: None, 'faces'")
+        
+    def faceColors(self, indexed=None):
+        """
+        Return an array (Nf, 4) of face colors.
+        If indexed=='faces', then instead return an indexed array
+        (Nf, 3, 4)  (note this is just the same array with each color
+        repeated three times). 
+        """
+        if indexed is None:
+            return self._faceColors
+        elif indexed == 'faces':
+            if self._faceColorsIndexedByFaces is None and self._faceColors is not None:
+                Nf = self._faceColors.shape[0]
+                self._faceColorsIndexedByFaces = np.empty((Nf, 3, 4), dtype=self._faceColors.dtype)
+                self._faceColorsIndexedByFaces[:] = self._faceColors.reshape(Nf, 1, 4)
+            return self._faceColorsIndexedByFaces
+        else:
+            raise Exception("Invalid indexing mode. Accepts: None, 'faces'")
+        
+    def setFaceColors(self, colors, indexed=None):
+        """
+        Set the face color array (Nf, 4).
+        If indexed=='faces', then the array will be interpreted
+        as indexed and should have shape (Nf, 3, 4)
+        """
+        if indexed is None:
+            self._faceColors = colors
+            self._faceColorsIndexedByFaces = None
+        elif indexed == 'faces':
+            self._faceColors = None
+            self._faceColorsIndexedByFaces = colors
+        else:
+            raise Exception("Invalid indexing mode. Accepts: None, 'faces'")
+        
+    def faceCount(self):
+        """
+        Return the number of faces in the mesh.
+        """
+        if self._faces is not None:
+            return self._faces.shape[0]
+        elif self._vertexesIndexedByFaces is not None:
+            return self._vertexesIndexedByFaces.shape[0]
+        
+    def edgeColors(self):
+        return self._edgeColors
+        
+    #def _setIndexedFaces(self, faces, vertexColors=None, faceColors=None):
+        #self._vertexesIndexedByFaces = faces
+        #self._vertexColorsIndexedByFaces = vertexColors
+        #self._faceColorsIndexedByFaces = faceColors
+        
+    def _computeUnindexedVertexes(self):
+        ## Given (Nv, 3, 3) array of vertexes-indexed-by-face, convert backward to unindexed vertexes
+        ## This is done by collapsing into a list of 'unique' vertexes (difference < 1e-14) 
+        
+        ## I think generally this should be discouraged..
+        faces = self._vertexesIndexedByFaces
+        verts = {}  ## used to remember the index of each vertex position
+        self._faces = np.empty(faces.shape[:2], dtype=np.uint)
+        self._vertexes = []
+        self._vertexFaces = []
+        self._faceNormals = None
+        self._vertexNormals = None
+        for i in xrange(faces.shape[0]):
+            face = faces[i]
+            inds = []
+            for j in range(face.shape[0]):
+                pt = face[j]
+                pt2 = tuple([round(x*1e14) for x in pt])  ## quantize to be sure that nearly-identical points will be merged
+                index = verts.get(pt2, None)
+                if index is None:
+                    #self._vertexes.append(QtGui.QVector3D(*pt))
+                    self._vertexes.append(pt)
+                    self._vertexFaces.append([])
+                    index = len(self._vertexes)-1
+                    verts[pt2] = index
+                self._vertexFaces[index].append(i)  # keep track of which vertexes belong to which faces
+                self._faces[i,j] = index
+        self._vertexes = np.array(self._vertexes, dtype=float)
+    
+    #def _setUnindexedFaces(self, faces, vertexes, vertexColors=None, faceColors=None):
+        #self._vertexes = vertexes #[QtGui.QVector3D(*v) for v in vertexes]
+        #self._faces = faces.astype(np.uint)
+        #self._edges = None
+        #self._vertexFaces = None
+        #self._faceNormals = None
+        #self._vertexNormals = None
+        #self._vertexColors = vertexColors
+        #self._faceColors = faceColors
+
+    def vertexFaces(self):
+        """
+        Return list mapping each vertex index to a list of face indexes that use the vertex.
+        """
+        if self._vertexFaces is None:
+            self._vertexFaces = [[] for i in xrange(len(self.vertexes()))]
+            for i in xrange(self._faces.shape[0]):
+                face = self._faces[i]
+                for ind in face:
+                    self._vertexFaces[ind].append(i)
+        return self._vertexFaces
+        
+    #def reverseNormals(self):
+        #"""
+        #Reverses the direction of all normal vectors.
+        #"""
+        #pass
+        
+    #def generateEdgesFromFaces(self):
+        #"""
+        #Generate a set of edges by listing all the edges of faces and removing any duplicates.
+        #Useful for displaying wireframe meshes.
+        #"""
+        #pass
+        
+    def _computeEdges(self):
+        if not self.hasFaceIndexedData:
+            ## generate self._edges from self._faces
+            nf = len(self._faces)
+            edges = np.empty(nf*3, dtype=[('i', np.uint, 2)])
+            edges['i'][0:nf] = self._faces[:,:2]
+            edges['i'][nf:2*nf] = self._faces[:,1:3]
+            edges['i'][-nf:,0] = self._faces[:,2]
+            edges['i'][-nf:,1] = self._faces[:,0]
+            
+            # sort per-edge
+            mask = edges['i'][:,0] > edges['i'][:,1]
+            edges['i'][mask] = edges['i'][mask][:,::-1]
+            
+            # remove duplicate entries
+            self._edges = np.unique(edges)['i']
+            #print self._edges
+        elif self._vertexesIndexedByFaces is not None:
+            verts = self._vertexesIndexedByFaces
+            edges = np.empty((verts.shape[0], 3, 2), dtype=np.uint)
+            nf = verts.shape[0]
+            edges[:,0,0] = np.arange(nf) * 3
+            edges[:,0,1] = edges[:,0,0] + 1
+            edges[:,1,0] = edges[:,0,1]
+            edges[:,1,1] = edges[:,1,0] + 1
+            edges[:,2,0] = edges[:,1,1]
+            edges[:,2,1] = edges[:,0,0]
+            self._edges = edges
+        else:
+            raise Exception("MeshData cannot generate edges--no faces in this data.")
+        
+        
+    def save(self):
+        """Serialize this mesh to a string appropriate for disk storage"""
+        import pickle
+        if self._faces is not None:
+            names = ['_vertexes', '_faces']
+        else:
+            names = ['_vertexesIndexedByFaces']
+            
+        if self._vertexColors is not None:
+            names.append('_vertexColors')
+        elif self._vertexColorsIndexedByFaces is not None:
+            names.append('_vertexColorsIndexedByFaces')
+            
+        if self._faceColors is not None:
+            names.append('_faceColors')
+        elif self._faceColorsIndexedByFaces is not None:
+            names.append('_faceColorsIndexedByFaces')
+            
+        state = dict([(n,getattr(self, n)) for n in names])
+        return pickle.dumps(state)
+        
+    def restore(self, state):
+        """Restore the state of a mesh previously saved using save()"""
+        import pickle
+        state = pickle.loads(state)
+        for k in state:
+            if isinstance(state[k], list):
+                if isinstance(state[k][0], QtGui.QVector3D):
+                    state[k] = [[v.x(), v.y(), v.z()] for v in state[k]]
+                state[k] = np.array(state[k])
+            setattr(self, k, state[k])
+
+
+
+    @staticmethod
+    def sphere(rows, cols, radius=1.0, offset=True):
+        """
+        Return a MeshData instance with vertexes and faces computed
+        for a spherical surface.
+        """
+        verts = np.empty((rows+1, cols, 3), dtype=float)
+        
+        ## compute vertexes
+        phi = (np.arange(rows+1) * np.pi / rows).reshape(rows+1, 1)
+        s = radius * np.sin(phi)
+        verts[...,2] = radius * np.cos(phi)
+        th = ((np.arange(cols) * 2 * np.pi / cols).reshape(1, cols)) 
+        if offset:
+            th = th + ((np.pi / cols) * np.arange(rows+1).reshape(rows+1,1))  ## rotate each row by 1/2 column
+        verts[...,0] = s * np.cos(th)
+        verts[...,1] = s * np.sin(th)
+        verts = verts.reshape((rows+1)*cols, 3)[cols-1:-(cols-1)]  ## remove redundant vertexes from top and bottom
+        
+        ## compute faces
+        faces = np.empty((rows*cols*2, 3), dtype=np.uint)
+        rowtemplate1 = ((np.arange(cols).reshape(cols, 1) + np.array([[0, 1, 0]])) % cols) + np.array([[0, 0, cols]])
+        rowtemplate2 = ((np.arange(cols).reshape(cols, 1) + np.array([[0, 1, 1]])) % cols) + np.array([[cols, 0, cols]])
+        for row in range(rows):
+            start = row * cols * 2 
+            faces[start:start+cols] = rowtemplate1 + row * cols
+            faces[start+cols:start+(cols*2)] = rowtemplate2 + row * cols
+        faces = faces[cols:-cols]  ## cut off zero-area triangles at top and bottom
+        
+        ## adjust for redundant vertexes that were removed from top and bottom
+        vmin = cols-1
+        faces[faces<vmin] = vmin
+        faces -= vmin  
+        vmax = verts.shape[0]-1
+        faces[faces>vmax] = vmax
+        
+        return MeshData(vertexes=verts, faces=faces)
+        
+    @staticmethod
+    def cylinder(rows, cols, radius=[1.0, 1.0], length=1.0, offset=False):
+        """
+        Return a MeshData instance with vertexes and faces computed
+        for a cylindrical surface.
+        The cylinder may be tapered with different radii at each end (truncated cone)
+        """
+        verts = np.empty((rows+1, cols, 3), dtype=float)
+        if isinstance(radius, int):
+            radius = [radius, radius] # convert to list
+        ## compute vertexes
+        th = np.linspace(2 * np.pi, 0, cols).reshape(1, cols)
+        r = np.linspace(radius[0],radius[1],num=rows+1, endpoint=True).reshape(rows+1, 1) # radius as a function of z
+        verts[...,2] = np.linspace(0, length, num=rows+1, endpoint=True).reshape(rows+1, 1) # z
+        if offset:
+            th = th + ((np.pi / cols) * np.arange(rows+1).reshape(rows+1,1))  ## rotate each row by 1/2 column
+        verts[...,0] = r * np.cos(th) # x = r cos(th)
+        verts[...,1] = r * np.sin(th) # y = r sin(th)
+        verts = verts.reshape((rows+1)*cols, 3) # just reshape: no redundant vertices...
+        ## compute faces
+        faces = np.empty((rows*cols*2, 3), dtype=np.uint)
+        rowtemplate1 = ((np.arange(cols).reshape(cols, 1) + np.array([[0, 1, 0]])) % cols) + np.array([[0, 0, cols]])
+        rowtemplate2 = ((np.arange(cols).reshape(cols, 1) + np.array([[0, 1, 1]])) % cols) + np.array([[cols, 0, cols]])
+        for row in range(rows):
+            start = row * cols * 2 
+            faces[start:start+cols] = rowtemplate1 + row * cols
+            faces[start+cols:start+(cols*2)] = rowtemplate2 + row * cols
+        
+        return MeshData(vertexes=verts, faces=faces)
+        
diff --git a/libs/pyqtgraph/opengl/__init__.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/__init__.py
similarity index 100%
rename from libs/pyqtgraph/opengl/__init__.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/__init__.py
diff --git a/libs/pyqtgraph/opengl/glInfo.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/glInfo.py
similarity index 100%
rename from libs/pyqtgraph/opengl/glInfo.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/glInfo.py
diff --git a/libs/pyqtgraph/opengl/items/GLAxisItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/items/GLAxisItem.py
similarity index 100%
rename from libs/pyqtgraph/opengl/items/GLAxisItem.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/items/GLAxisItem.py
diff --git a/libs/pyqtgraph/opengl/items/GLBarGraphItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/items/GLBarGraphItem.py
similarity index 100%
rename from libs/pyqtgraph/opengl/items/GLBarGraphItem.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/items/GLBarGraphItem.py
diff --git a/libs/pyqtgraph/opengl/items/GLBoxItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/items/GLBoxItem.py
similarity index 100%
rename from libs/pyqtgraph/opengl/items/GLBoxItem.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/items/GLBoxItem.py
diff --git a/libs/pyqtgraph/opengl/items/GLGridItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/items/GLGridItem.py
similarity index 100%
rename from libs/pyqtgraph/opengl/items/GLGridItem.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/items/GLGridItem.py
diff --git a/libs/pyqtgraph/opengl/items/GLImageItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/items/GLImageItem.py
similarity index 100%
rename from libs/pyqtgraph/opengl/items/GLImageItem.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/items/GLImageItem.py
diff --git a/libs/pyqtgraph/opengl/items/GLLinePlotItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/items/GLLinePlotItem.py
similarity index 100%
rename from libs/pyqtgraph/opengl/items/GLLinePlotItem.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/items/GLLinePlotItem.py
diff --git a/libs/pyqtgraph/opengl/items/GLMeshItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/items/GLMeshItem.py
similarity index 100%
rename from libs/pyqtgraph/opengl/items/GLMeshItem.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/items/GLMeshItem.py
diff --git a/libs/pyqtgraph/opengl/items/GLScatterPlotItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/items/GLScatterPlotItem.py
similarity index 100%
rename from libs/pyqtgraph/opengl/items/GLScatterPlotItem.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/items/GLScatterPlotItem.py
diff --git a/libs/pyqtgraph/opengl/items/GLSurfacePlotItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/items/GLSurfacePlotItem.py
similarity index 100%
rename from libs/pyqtgraph/opengl/items/GLSurfacePlotItem.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/items/GLSurfacePlotItem.py
diff --git a/libs/pyqtgraph/opengl/items/GLVolumeItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/items/GLVolumeItem.py
similarity index 100%
rename from libs/pyqtgraph/opengl/items/GLVolumeItem.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/items/GLVolumeItem.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/items/__init__.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/items/__init__.py
new file mode 100644
index 00000000..e69de29b
diff --git a/libs/pyqtgraph/opengl/shaders.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/shaders.py
similarity index 100%
rename from libs/pyqtgraph/opengl/shaders.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/opengl/shaders.py
diff --git a/libs/pyqtgraph/ordereddict.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/ordereddict.py
similarity index 100%
rename from libs/pyqtgraph/ordereddict.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/ordereddict.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/parametertree/Parameter.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/parametertree/Parameter.py
new file mode 100644
index 00000000..de9a1624
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/parametertree/Parameter.py
@@ -0,0 +1,767 @@
+from ..Qt import QtGui, QtCore
+import os, weakref, re
+from ..pgcollections import OrderedDict
+from ..python2_3 import asUnicode, basestring
+from .ParameterItem import ParameterItem
+
+PARAM_TYPES = {}
+PARAM_NAMES = {}
+
+def registerParameterType(name, cls, override=False):
+    global PARAM_TYPES
+    if name in PARAM_TYPES and not override:
+        raise Exception("Parameter type '%s' already exists (use override=True to replace)" % name)
+    PARAM_TYPES[name] = cls
+    PARAM_NAMES[cls] = name
+
+def __reload__(old):
+    PARAM_TYPES.update(old.get('PARAM_TYPES', {}))
+    PARAM_NAMES.update(old.get('PARAM_NAMES', {}))
+
+class Parameter(QtCore.QObject):
+    """
+    A Parameter is the basic unit of data in a parameter tree. Each parameter has
+    a name, a type, a value, and several other properties that modify the behavior of the 
+    Parameter. Parameters may have parent / child / sibling relationships to construct
+    organized hierarchies. Parameters generally do not have any inherent GUI or visual
+    interpretation; instead they manage ParameterItem instances which take care of
+    display and user interaction.
+    
+    Note: It is fairly uncommon to use the Parameter class directly; mostly you 
+    will use subclasses which provide specialized type and data handling. The static
+    pethod Parameter.create(...) is an easy way to generate instances of these subclasses.
+       
+    For more Parameter types, see ParameterTree.parameterTypes module.
+    
+    ===================================  =========================================================
+    **Signals:**
+    sigStateChanged(self, change, info)  Emitted when anything changes about this parameter at 
+                                         all.
+                                         The second argument is a string indicating what changed 
+                                         ('value', 'childAdded', etc..)
+                                         The third argument can be any extra information about 
+                                         the change
+    sigTreeStateChanged(self, changes)   Emitted when any child in the tree changes state
+                                         (but only if monitorChildren() is called)
+                                         the format of *changes* is [(param, change, info), ...]
+    sigValueChanged(self, value)         Emitted when value is finished changing
+    sigValueChanging(self, value)        Emitted immediately for all value changes, 
+                                         including during editing.
+    sigChildAdded(self, child, index)    Emitted when a child is added
+    sigChildRemoved(self, child)         Emitted when a child is removed
+    sigRemoved(self)                     Emitted when this parameter is removed
+    sigParentChanged(self, parent)       Emitted when this parameter's parent has changed
+    sigLimitsChanged(self, limits)       Emitted when this parameter's limits have changed
+    sigDefaultChanged(self, default)     Emitted when this parameter's default value has changed
+    sigNameChanged(self, name)           Emitted when this parameter's name has changed
+    sigOptionsChanged(self, opts)        Emitted when any of this parameter's options have changed
+    ===================================  =========================================================
+    """
+    ## name, type, limits, etc.
+    ## can also carry UI hints (slider vs spinbox, etc.)
+    
+    sigValueChanged = QtCore.Signal(object, object)  ## self, value   emitted when value is finished being edited
+    sigValueChanging = QtCore.Signal(object, object)  ## self, value  emitted as value is being edited
+    
+    sigChildAdded = QtCore.Signal(object, object, object)  ## self, child, index
+    sigChildRemoved = QtCore.Signal(object, object)  ## self, child
+    sigRemoved = QtCore.Signal(object) ## self
+    sigParentChanged = QtCore.Signal(object, object)  ## self, parent
+    sigLimitsChanged = QtCore.Signal(object, object)  ## self, limits
+    sigDefaultChanged = QtCore.Signal(object, object)  ## self, default
+    sigNameChanged = QtCore.Signal(object, object)  ## self, name
+    sigOptionsChanged = QtCore.Signal(object, object)  ## self, {opt:val, ...}
+    
+    ## Emitted when anything changes about this parameter at all.
+    ## The second argument is a string indicating what changed ('value', 'childAdded', etc..)
+    ## The third argument can be any extra information about the change
+    sigStateChanged = QtCore.Signal(object, object, object) ## self, change, info
+    
+    ## emitted when any child in the tree changes state
+    ## (but only if monitorChildren() is called)
+    sigTreeStateChanged = QtCore.Signal(object, object)  # self, changes
+                                                         # changes = [(param, change, info), ...]
+    
+    # bad planning.
+    #def __new__(cls, *args, **opts):
+        #try:
+            #cls = PARAM_TYPES[opts['type']]
+        #except KeyError:
+            #pass
+        #return QtCore.QObject.__new__(cls, *args, **opts)
+    
+    @staticmethod
+    def create(**opts):
+        """
+        Static method that creates a new Parameter (or subclass) instance using 
+        opts['type'] to select the appropriate class.
+        
+        All options are passed directly to the new Parameter's __init__ method.
+        Use registerParameterType() to add new class types.
+        """
+        typ = opts.get('type', None)
+        if typ is None:
+            cls = Parameter
+        else:
+            cls = PARAM_TYPES[opts['type']]
+        return cls(**opts)
+    
+    def __init__(self, **opts):
+        """
+        Initialize a Parameter object. Although it is rare to directly create a
+        Parameter instance, the options available to this method are also allowed
+        by most Parameter subclasses.
+        
+        =======================      =========================================================
+        **Keyword Arguments:**
+        name                         The name to give this Parameter. This is the name that
+                                     will appear in the left-most column of a ParameterTree
+                                     for this Parameter.
+        value                        The value to initially assign to this Parameter.
+        default                      The default value for this Parameter (most Parameters
+                                     provide an option to 'reset to default').
+        children                     A list of children for this Parameter. Children
+                                     may be given either as a Parameter instance or as a
+                                     dictionary to pass to Parameter.create(). In this way,
+                                     it is possible to specify complex hierarchies of
+                                     Parameters from a single nested data structure.
+        readonly                     If True, the user will not be allowed to edit this
+                                     Parameter. (default=False)
+        enabled                      If False, any widget(s) for this parameter will appear
+                                     disabled. (default=True)
+        visible                      If False, the Parameter will not appear when displayed
+                                     in a ParameterTree. (default=True)
+        renamable                    If True, the user may rename this Parameter.
+                                     (default=False)
+        removable                    If True, the user may remove this Parameter.
+                                     (default=False)
+        expanded                     If True, the Parameter will appear expanded when
+                                     displayed in a ParameterTree (its children will be
+                                     visible). (default=True)
+        title                        (str or None) If specified, then the parameter will be 
+                                     displayed to the user using this string as its name. 
+                                     However, the parameter will still be referred to 
+                                     internally using the *name* specified above. Note that
+                                     this option is not compatible with renamable=True.
+                                     (default=None; added in version 0.9.9)
+        =======================      =========================================================
+        """
+        
+        
+        QtCore.QObject.__init__(self)
+        
+        self.opts = {
+            'type': None,
+            'readonly': False,
+            'visible': True,
+            'enabled': True,
+            'renamable': False,
+            'removable': False,
+            'strictNaming': False,  # forces name to be usable as a python variable
+            'expanded': True,
+            'title': None,
+            #'limits': None,  ## This is a bad plan--each parameter type may have a different data type for limits.
+        }
+        self.opts.update(opts)
+        
+        self.childs = []
+        self.names = {}   ## map name:child
+        self.items = weakref.WeakKeyDictionary()  ## keeps track of tree items representing this parameter
+        self._parent = None
+        self.treeStateChanges = []  ## cache of tree state changes to be delivered on next emit
+        self.blockTreeChangeEmit = 0
+        #self.monitoringChildren = False  ## prevent calling monitorChildren more than once
+        
+        if 'value' not in self.opts:
+            self.opts['value'] = None
+        
+        if 'name' not in self.opts or not isinstance(self.opts['name'], basestring):
+            raise Exception("Parameter must have a string name specified in opts.")
+        self.setName(opts['name'])
+        
+        self.addChildren(self.opts.get('children', []))
+            
+        if 'value' in self.opts and 'default' not in self.opts:
+            self.opts['default'] = self.opts['value']
+    
+        ## Connect all state changed signals to the general sigStateChanged
+        self.sigValueChanged.connect(lambda param, data: self.emitStateChanged('value', data))
+        self.sigChildAdded.connect(lambda param, *data: self.emitStateChanged('childAdded', data))
+        self.sigChildRemoved.connect(lambda param, data: self.emitStateChanged('childRemoved', data))
+        self.sigParentChanged.connect(lambda param, data: self.emitStateChanged('parent', data))
+        self.sigLimitsChanged.connect(lambda param, data: self.emitStateChanged('limits', data))
+        self.sigDefaultChanged.connect(lambda param, data: self.emitStateChanged('default', data))
+        self.sigNameChanged.connect(lambda param, data: self.emitStateChanged('name', data))
+        self.sigOptionsChanged.connect(lambda param, data: self.emitStateChanged('options', data))
+        
+        #self.watchParam(self)  ## emit treechange signals if our own state changes
+        
+    def name(self):
+        """Return the name of this Parameter."""
+        return self.opts['name']
+
+    def setName(self, name):
+        """Attempt to change the name of this parameter; return the actual name. 
+        (The parameter may reject the name change or automatically pick a different name)"""
+        if self.opts['strictNaming']:
+            if len(name) < 1 or re.search(r'\W', name) or re.match(r'\d', name[0]):
+                raise Exception("Parameter name '%s' is invalid. (Must contain only alphanumeric and underscore characters and may not start with a number)" % name)
+        parent = self.parent()
+        if parent is not None:
+            name = parent._renameChild(self, name)  ## first ask parent if it's ok to rename
+        if self.opts['name'] != name:
+            self.opts['name'] = name
+            self.sigNameChanged.emit(self, name)
+        return name
+
+    def type(self):
+        """Return the type string for this Parameter."""
+        return self.opts['type']
+        
+    def isType(self, typ):
+        """
+        Return True if this parameter type matches the name *typ*.
+        This can occur either of two ways:
+        
+        - If self.type() == *typ*
+        - If this parameter's class is registered with the name *typ*
+        """
+        if self.type() == typ:
+            return True
+        global PARAM_TYPES
+        cls = PARAM_TYPES.get(typ, None)
+        if cls is None:
+            raise Exception("Type name '%s' is not registered." % str(typ))
+        return self.__class__ is cls
+        
+    def childPath(self, child):
+        """
+        Return the path of parameter names from self to child.
+        If child is not a (grand)child of self, return None.
+        """
+        path = []
+        while child is not self:
+            path.insert(0, child.name())
+            child = child.parent()
+            if child is None:
+                return None
+        return path
+
+    def setValue(self, value, blockSignal=None):
+        """
+        Set the value of this Parameter; return the actual value that was set.
+        (this may be different from the value that was requested)
+        """
+        try:
+            if blockSignal is not None:
+                self.sigValueChanged.disconnect(blockSignal)
+            if self.opts['value'] == value:
+                return value
+            self.opts['value'] = value
+            self.sigValueChanged.emit(self, value)
+        finally:
+            if blockSignal is not None:
+                self.sigValueChanged.connect(blockSignal)
+            
+        return value
+
+    def value(self):
+        """
+        Return the value of this Parameter.
+        """
+        return self.opts['value']
+
+    def getValues(self):
+        """Return a tree of all values that are children of this parameter"""
+        vals = OrderedDict()
+        for ch in self:
+            vals[ch.name()] = (ch.value(), ch.getValues())
+        return vals
+    
+    def saveState(self, filter=None):
+        """
+        Return a structure representing the entire state of the parameter tree.
+        The tree state may be restored from this structure using restoreState().
+
+        If *filter* is set to 'user', then only user-settable data will be included in the
+        returned state.
+        """
+        if filter is None:
+            state = self.opts.copy()
+            if state['type'] is None:
+                global PARAM_NAMES
+                state['type'] = PARAM_NAMES.get(type(self), None)
+        elif filter == 'user':
+            state = {'value': self.value()}
+        else:
+            raise ValueError("Unrecognized filter argument: '%s'" % filter)
+
+        ch = OrderedDict([(ch.name(), ch.saveState(filter=filter)) for ch in self])
+        if len(ch) > 0:
+            state['children'] = ch
+        return state
+
+    def restoreState(self, state, recursive=True, addChildren=True, removeChildren=True, blockSignals=True):
+        """
+        Restore the state of this parameter and its children from a structure generated using saveState()
+        If recursive is True, then attempt to restore the state of child parameters as well.
+        If addChildren is True, then any children which are referenced in the state object will be
+        created if they do not already exist.
+        If removeChildren is True, then any children which are not referenced in the state object will 
+        be removed.
+        If blockSignals is True, no signals will be emitted until the tree has been completely restored. 
+        This prevents signal handlers from responding to a partially-rebuilt network.
+        """
+        state = state.copy()
+        childState = state.pop('children', [])
+        
+        ## list of children may be stored either as list or dict.
+        if isinstance(childState, dict):
+            cs = []
+            for k,v in childState.items():
+                cs.append(v.copy())
+                cs[-1].setdefault('name', k)
+            childState = cs
+        
+        if blockSignals:
+            self.blockTreeChangeSignal()
+            
+        try:
+            self.setOpts(**state)
+            
+            if not recursive:
+                return
+            
+            ptr = 0  ## pointer to first child that has not been restored yet
+            foundChilds = set()
+            #print "==============", self.name()
+            
+            for ch in childState:
+                name = ch['name']
+                #typ = ch.get('type', None)
+                #print('child: %s, %s' % (self.name()+'.'+name, typ))
+                
+                ## First, see if there is already a child with this name
+                gotChild = False
+                for i, ch2 in enumerate(self.childs[ptr:]):
+                    #print "  ", ch2.name(), ch2.type()
+                    if ch2.name() != name: # or not ch2.isType(typ):
+                        continue
+                    gotChild = True
+                    #print "    found it"
+                    if i != 0:  ## move parameter to next position
+                        #self.removeChild(ch2)
+                        self.insertChild(ptr, ch2)
+                        #print "  moved to position", ptr
+                    ch2.restoreState(ch, recursive=recursive, addChildren=addChildren, removeChildren=removeChildren)
+                    foundChilds.add(ch2)
+                    
+                    break
+                
+                if not gotChild:
+                    if not addChildren:
+                        #print "  ignored child"
+                        continue
+                    #print "    created new"
+                    ch2 = Parameter.create(**ch)
+                    self.insertChild(ptr, ch2)
+                    foundChilds.add(ch2)
+                    
+                ptr += 1
+                
+            if removeChildren:
+                for ch in self.childs[:]:
+                    if ch not in foundChilds:
+                        #print "  remove:", ch
+                        self.removeChild(ch)
+        finally:
+            if blockSignals:
+                self.unblockTreeChangeSignal()
+            
+            
+        
+    def defaultValue(self):
+        """Return the default value for this parameter."""
+        return self.opts['default']
+        
+    def setDefault(self, val):
+        """Set the default value for this parameter."""
+        if self.opts['default'] == val:
+            return
+        self.opts['default'] = val
+        self.sigDefaultChanged.emit(self, val)
+
+    def setToDefault(self):
+        """Set this parameter's value to the default."""
+        if self.hasDefault():
+            self.setValue(self.defaultValue())
+
+    def hasDefault(self):
+        """Returns True if this parameter has a default value."""
+        return 'default' in self.opts
+        
+    def valueIsDefault(self):
+        """Returns True if this parameter's value is equal to the default value."""
+        return self.value() == self.defaultValue()
+        
+    def setLimits(self, limits):
+        """Set limits on the acceptable values for this parameter. 
+        The format of limits depends on the type of the parameter and
+        some parameters do not make use of limits at all."""
+        if 'limits' in self.opts and self.opts['limits'] == limits:
+            return
+        self.opts['limits'] = limits
+        self.sigLimitsChanged.emit(self, limits)
+        return limits
+
+    def writable(self):
+        """
+        Returns True if this parameter's value can be changed by the user.
+        Note that the value of the parameter can *always* be changed by
+        calling setValue().
+        """
+        return not self.readonly()
+
+    def setWritable(self, writable=True):
+        """Set whether this Parameter should be editable by the user. (This is 
+        exactly the opposite of setReadonly)."""
+        self.setOpts(readonly=not writable)
+        
+    def readonly(self):
+        """
+        Return True if this parameter is read-only. (this is the opposite of writable())
+        """
+        return self.opts.get('readonly', False)
+        
+    def setReadonly(self, readonly=True):
+        """Set whether this Parameter's value may be edited by the user
+        (this is the opposite of setWritable())."""
+        self.setOpts(readonly=readonly)
+        
+    def setOpts(self, **opts):
+        """
+        Set any arbitrary options on this parameter.
+        The exact behavior of this function will depend on the parameter type, but
+        most parameters will accept a common set of options: value, name, limits,
+        default, readonly, removable, renamable, visible, enabled, and expanded.
+        
+        See :func:`Parameter.__init__ <pyqtgraph.parametertree.Parameter.__init__>`
+        for more information on default options.
+        """
+        changed = OrderedDict()
+        for k in opts:
+            if k == 'value':
+                self.setValue(opts[k])
+            elif k == 'name':
+                self.setName(opts[k])
+            elif k == 'limits':
+                self.setLimits(opts[k])
+            elif k == 'default':
+                self.setDefault(opts[k])
+            elif k not in self.opts or self.opts[k] != opts[k]:
+                self.opts[k] = opts[k]
+                changed[k] = opts[k]
+                
+        if len(changed) > 0:
+            self.sigOptionsChanged.emit(self, changed)
+        
+    def emitStateChanged(self, changeDesc, data):
+        ## Emits stateChanged signal and 
+        ## requests emission of new treeStateChanged signal
+        self.sigStateChanged.emit(self, changeDesc, data)
+        #self.treeStateChanged(self, changeDesc, data)
+        self.treeStateChanges.append((self, changeDesc, data))
+        self.emitTreeChanges()
+
+    def makeTreeItem(self, depth):
+        """
+        Return a TreeWidgetItem suitable for displaying/controlling the content of 
+        this parameter. This is called automatically when a ParameterTree attempts
+        to display this Parameter.
+        Most subclasses will want to override this function.
+        """
+        if hasattr(self, 'itemClass'):
+            #print "Param:", self, "Make item from itemClass:", self.itemClass
+            return self.itemClass(self, depth)
+        else:
+            return ParameterItem(self, depth=depth)
+
+
+    def addChild(self, child, autoIncrementName=None):
+        """
+        Add another parameter to the end of this parameter's child list.
+        
+        See insertChild() for a description of the *autoIncrementName* 
+        argument.
+        """
+        return self.insertChild(len(self.childs), child, autoIncrementName=autoIncrementName)
+
+    def addChildren(self, children):
+        """
+        Add a list or dict of children to this parameter. This method calls
+        addChild once for each value in *children*.
+        """
+        ## If children was specified as dict, then assume keys are the names.
+        if isinstance(children, dict):
+            ch2 = []
+            for name, opts in children.items():
+                if isinstance(opts, dict) and 'name' not in opts:
+                    opts = opts.copy()
+                    opts['name'] = name
+                ch2.append(opts)
+            children = ch2
+        
+        for chOpts in children:
+            #print self, "Add child:", type(chOpts), id(chOpts)
+            self.addChild(chOpts)
+        
+        
+    def insertChild(self, pos, child, autoIncrementName=None):
+        """
+        Insert a new child at pos.
+        If pos is a Parameter, then insert at the position of that Parameter.
+        If child is a dict, then a parameter is constructed using
+        :func:`Parameter.create <pyqtgraph.parametertree.Parameter.create>`.
+        
+        By default, the child's 'autoIncrementName' option determines whether
+        the name will be adjusted to avoid prior name collisions. This 
+        behavior may be overridden by specifying the *autoIncrementName* 
+        argument. This argument was added in version 0.9.9.
+        """
+        if isinstance(child, dict):
+            child = Parameter.create(**child)
+        
+        name = child.name()
+        if name in self.names and child is not self.names[name]:
+            if autoIncrementName is True or (autoIncrementName is None and child.opts.get('autoIncrementName', False)):
+                name = self.incrementName(name)
+                child.setName(name)
+            else:
+                raise Exception("Already have child named %s" % str(name))
+        if isinstance(pos, Parameter):
+            pos = self.childs.index(pos)
+            
+        with self.treeChangeBlocker():
+            if child.parent() is not None:
+                child.remove()
+                
+            self.names[name] = child
+            self.childs.insert(pos, child)
+            
+            child.parentChanged(self)
+            self.sigChildAdded.emit(self, child, pos)
+            child.sigTreeStateChanged.connect(self.treeStateChanged)
+        return child
+        
+    def removeChild(self, child):
+        """Remove a child parameter."""
+        name = child.name()
+        if name not in self.names or self.names[name] is not child:
+            raise Exception("Parameter %s is not my child; can't remove." % str(child))
+        del self.names[name]
+        self.childs.pop(self.childs.index(child))
+        child.parentChanged(None)
+        self.sigChildRemoved.emit(self, child)
+        try:
+            child.sigTreeStateChanged.disconnect(self.treeStateChanged)
+        except (TypeError, RuntimeError):  ## already disconnected
+            pass
+
+    def clearChildren(self):
+        """Remove all child parameters."""
+        for ch in self.childs[:]:
+            self.removeChild(ch)
+
+    def children(self):  
+        """Return a list of this parameter's children.
+        Warning: this overrides QObject.children
+        """
+        return self.childs[:]
+    
+    def hasChildren(self):
+        """Return True if this Parameter has children."""
+        return len(self.childs) > 0
+
+    def parentChanged(self, parent):
+        """This method is called when the parameter's parent has changed.
+        It may be useful to extend this method in subclasses."""
+        self._parent = parent
+        self.sigParentChanged.emit(self, parent)
+        
+    def parent(self):
+        """Return the parent of this parameter."""
+        return self._parent
+        
+    def remove(self):
+        """Remove this parameter from its parent's child list"""
+        parent = self.parent()
+        if parent is None:
+            raise Exception("Cannot remove; no parent.")
+        parent.removeChild(self)
+        self.sigRemoved.emit(self)
+
+    def incrementName(self, name):
+        ## return an unused name by adding a number to the name given
+        base, num = re.match('(.*)(\d*)', name).groups()
+        numLen = len(num)
+        if numLen == 0:
+            num = 2
+            numLen = 1
+        else:
+            num = int(num)
+        while True:
+            newName = base + ("%%0%dd"%numLen) % num
+            if newName not in self.names:
+                return newName
+            num += 1
+
+    def __iter__(self):
+        for ch in self.childs:
+            yield ch
+
+    def __getitem__(self, names):
+        """Get the value of a child parameter. The name may also be a tuple giving
+        the path to a sub-parameter::
+        
+            value = param[('child', 'grandchild')]
+        """
+        if not isinstance(names, tuple):
+            names = (names,)
+        return self.param(*names).value()
+
+    def __setitem__(self, names, value):
+        """Set the value of a child parameter. The name may also be a tuple giving
+        the path to a sub-parameter::
+        
+            param[('child', 'grandchild')] = value
+        """
+        if isinstance(names, basestring):
+            names = (names,)
+        return self.param(*names).setValue(value)
+
+    def child(self, *names):
+        """Return a child parameter. 
+        Accepts the name of the child or a tuple (path, to, child)
+
+        Added in version 0.9.9. Ealier versions used the 'param' method, which is still
+        implemented for backward compatibility."""
+        try:
+            param = self.names[names[0]]
+        except KeyError:
+            raise Exception("Parameter %s has no child named %s" % (self.name(), names[0]))
+        
+        if len(names) > 1:
+            return param.param(*names[1:])
+        else:
+            return param
+        
+    def param(self, *names):
+        # for backward compatibility.
+        return self.child(*names)
+
+    def __repr__(self):
+        return asUnicode("<%s '%s' at 0x%x>") % (self.__class__.__name__, self.name(), id(self))
+       
+    def __getattr__(self, attr):
+        ## Leaving this undocumented because I might like to remove it in the future..
+        #print type(self), attr
+        
+        if 'names' not in self.__dict__:
+            raise AttributeError(attr)
+        if attr in self.names:
+            import traceback
+            traceback.print_stack()
+            print("Warning: Use of Parameter.subParam is deprecated. Use Parameter.param(name) instead.")
+            return self.param(attr)
+        else:
+            raise AttributeError(attr)
+       
+    def _renameChild(self, child, name):
+        ## Only to be called from Parameter.rename
+        if name in self.names:
+            return child.name()
+        self.names[name] = child
+        del self.names[child.name()]
+        return name
+
+    def registerItem(self, item):
+        self.items[item] = None
+        
+    def hide(self):
+        """Hide this parameter. It and its children will no longer be visible in any ParameterTree
+        widgets it is connected to."""
+        self.show(False)
+        
+    def show(self, s=True):
+        """Show this parameter. """
+        self.opts['visible'] = s
+        self.sigOptionsChanged.emit(self, {'visible': s})
+
+
+    def treeChangeBlocker(self):
+        """
+        Return an object that can be used to temporarily block and accumulate
+        sigTreeStateChanged signals. This is meant to be used when numerous changes are 
+        about to be made to the tree and only one change signal should be
+        emitted at the end.
+        
+        Example::
+
+            with param.treeChangeBlocker():
+                param.addChild(...)
+                param.removeChild(...)
+                param.setValue(...)
+        """
+        return SignalBlocker(self.blockTreeChangeSignal, self.unblockTreeChangeSignal)
+
+    def blockTreeChangeSignal(self):
+        """
+        Used to temporarily block and accumulate tree change signals.
+        *You must remember to unblock*, so it is advisable to use treeChangeBlocker() instead.
+        """
+        self.blockTreeChangeEmit += 1
+
+    def unblockTreeChangeSignal(self):
+        """Unblocks enission of sigTreeStateChanged and flushes the changes out through a single signal."""
+        self.blockTreeChangeEmit -= 1
+        self.emitTreeChanges()
+        
+        
+    def treeStateChanged(self, param, changes):
+        """
+        Called when the state of any sub-parameter has changed. 
+        
+        ==============  ================================================================
+        **Arguments:**
+        param           The immediate child whose tree state has changed.
+                        note that the change may have originated from a grandchild.
+        changes         List of tuples describing all changes that have been made
+                        in this event: (param, changeDescr, data)
+        ==============  ================================================================
+                     
+        This function can be extended to react to tree state changes.
+        """
+        self.treeStateChanges.extend(changes)
+        self.emitTreeChanges()
+    
+    def emitTreeChanges(self):
+        if self.blockTreeChangeEmit == 0:
+            changes = self.treeStateChanges
+            self.treeStateChanges = []
+            if len(changes) > 0:
+                self.sigTreeStateChanged.emit(self, changes)
+
+
+class SignalBlocker(object):
+    def __init__(self, enterFn, exitFn):
+        self.enterFn = enterFn
+        self.exitFn = exitFn
+        
+    def __enter__(self):
+        self.enterFn()
+        
+    def __exit__(self, exc_type, exc_value, tb):
+        self.exitFn()
+    
+    
+    
diff --git a/libs/pyqtgraph/parametertree/ParameterItem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/parametertree/ParameterItem.py
similarity index 100%
rename from libs/pyqtgraph/parametertree/ParameterItem.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/parametertree/ParameterItem.py
diff --git a/libs/pyqtgraph/parametertree/ParameterSystem.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/parametertree/ParameterSystem.py
similarity index 100%
rename from libs/pyqtgraph/parametertree/ParameterSystem.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/parametertree/ParameterSystem.py
diff --git a/libs/pyqtgraph/parametertree/ParameterTree.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/parametertree/ParameterTree.py
similarity index 100%
rename from libs/pyqtgraph/parametertree/ParameterTree.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/parametertree/ParameterTree.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/parametertree/SystemSolver.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/parametertree/SystemSolver.py
new file mode 100644
index 00000000..24e35e9a
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/parametertree/SystemSolver.py
@@ -0,0 +1,381 @@
+from ..pgcollections import OrderedDict
+import numpy as np
+
+class SystemSolver(object):
+    """
+    This abstract class is used to formalize and manage user interaction with a 
+    complex system of equations (related to "constraint satisfaction problems").
+    It is often the case that devices must be controlled
+    through a large number of free variables, and interactions between these 
+    variables make the system difficult to manage and conceptualize as a user
+    interface. This class does _not_ attempt to numerically solve the system
+    of equations. Rather, it provides a framework for subdividing the system
+    into manageable pieces and specifying closed-form solutions to these small 
+    pieces.
+    
+    For an example, see the simple Camera class below.
+    
+    Theory of operation: Conceptualize the system as 1) a set of variables
+    whose values may be either user-specified or automatically generated, and 
+    2) a set of functions that define *how* each variable should be generated. 
+    When a variable is accessed (as an instance attribute), the solver first
+    checks to see if it already has a value (either user-supplied, or cached
+    from a previous calculation). If it does not, then the solver calls a 
+    method on itself (the method must be named `_variableName`) that will
+    either return the calculated value (which usually involves acccessing
+    other variables in the system), or raise RuntimeError if it is unable to
+    calculate the value (usually because the user has not provided sufficient
+    input to fully constrain the system). 
+    
+    Each method that calculates a variable value may include multiple 
+    try/except blocks, so that if one method generates a RuntimeError, it may 
+    fall back on others. 
+    In this way, the system may be solved by recursively searching the tree of 
+    possible relationships between variables. This allows the user flexibility
+    in deciding which variables are the most important to specify, while 
+    avoiding the apparent combinatorial explosion of calculation pathways
+    that must be considered by the developer.
+    
+    Solved values are cached for efficiency, and automatically cleared when 
+    a state change invalidates the cache. The rules for this are simple: any
+    time a value is set, it invalidates the cache *unless* the previous value
+    was None (which indicates that no other variable has yet requested that 
+    value). More complex cache management may be defined in subclasses.
+    
+    
+    Subclasses must define:
+    
+    1) The *defaultState* class attribute: This is a dict containing a 
+       description of the variables in the system--their default values,
+       data types, and the ways they can be constrained. The format is::
+       
+           { name: [value, type, constraint, allowed_constraints], ...}
+       
+       * *value* is the default value. May be None if it has not been specified
+         yet.
+       * *type* may be float, int, bool, np.ndarray, ...
+       * *constraint* may be None, single value, or (min, max)
+            * None indicates that the value is not constrained--it may be 
+              automatically generated if the value is requested.
+       * *allowed_constraints* is a string composed of (n)one, (f)ixed, and (r)ange. 
+       
+       Note: do not put mutable objects inside defaultState!
+       
+    2) For each variable that may be automatically determined, a method must 
+       be defined with the name `_variableName`. This method may either return
+       the 
+    """
+
+    defaultState = OrderedDict()
+
+    def __init__(self):
+        self.__dict__['_vars'] = OrderedDict()
+        self.__dict__['_currentGets'] = set()
+        self.reset()
+        
+    def reset(self):
+        """
+        Reset all variables in the solver to their default state.
+        """
+        self._currentGets.clear()
+        for k in self.defaultState:
+            self._vars[k] = self.defaultState[k][:]
+
+    def __getattr__(self, name):
+        if name in self._vars:
+            return self.get(name)
+        raise AttributeError(name)
+    
+    def __setattr__(self, name, value):
+        """
+        Set the value of a state variable. 
+        If None is given for the value, then the constraint will also be set to None.
+        If a tuple is given for a scalar variable, then the tuple is used as a range constraint instead of a value.
+        Otherwise, the constraint is set to 'fixed'.
+        
+        """
+        # First check this is a valid attribute
+        if name in self._vars:
+            if value is None:
+                self.set(name, value, None)
+            elif isinstance(value, tuple) and self._vars[name][1] is not np.ndarray:
+                self.set(name, None, value)
+            else:
+                self.set(name, value, 'fixed')
+        else:
+            # also allow setting any other pre-existing attribute
+            if hasattr(self, name):
+                object.__setattr__(self, name, value)
+            else:
+                raise AttributeError(name)
+        
+    def get(self, name):
+        """
+        Return the value for parameter *name*. 
+        
+        If the value has not been specified, then attempt to compute it from
+        other interacting parameters.
+        
+        If no value can be determined, then raise RuntimeError.
+        """
+        if name in self._currentGets:
+                raise RuntimeError("Cyclic dependency while calculating '%s'." % name)
+        self._currentGets.add(name)
+        try:
+            v = self._vars[name][0]
+            if v is None:
+                cfunc = getattr(self, '_' + name, None)
+                if cfunc is None:
+                    v = None
+                else:
+                    v = cfunc()
+                if v is None:
+                    raise RuntimeError("Parameter '%s' is not specified." % name)
+                v = self.set(name, v)
+        finally:
+            self._currentGets.remove(name)
+        
+        return v
+    
+    def set(self, name, value=None, constraint=True):
+        """
+        Set a variable *name* to *value*. The actual set value is returned (in
+        some cases, the value may be cast into another type).
+        
+        If *value* is None, then the value is left to be determined in the 
+        future. At any time, the value may be re-assigned arbitrarily unless
+        a constraint is given.
+        
+        If *constraint* is True (the default), then supplying a value that 
+        violates a previously specified constraint will raise an exception.
+        
+        If *constraint* is 'fixed', then the value is set (if provided) and
+        the variable will not be updated automatically in the future.
+
+        If *constraint* is a tuple, then the value is constrained to be within the 
+        given (min, max). Either constraint may be None to disable 
+        it. In some cases, a constraint cannot be satisfied automatically,
+        and the user will be forced to resolve the constraint manually.
+        
+        If *constraint* is None, then any constraints are removed for the variable.
+        """
+        var = self._vars[name]
+        if constraint is None:
+            if 'n' not in var[3]:
+                raise TypeError("Empty constraints not allowed for '%s'" % name)
+            var[2] = constraint
+        elif constraint == 'fixed':
+            if 'f' not in var[3]:
+                raise TypeError("Fixed constraints not allowed for '%s'" % name)
+            var[2] = constraint
+        elif isinstance(constraint, tuple):
+            if 'r' not in var[3]:
+                raise TypeError("Range constraints not allowed for '%s'" % name)
+            assert len(constraint) == 2
+            var[2] = constraint
+        elif constraint is not True:
+            raise TypeError("constraint must be None, True, 'fixed', or tuple. (got %s)" % constraint)
+        
+        # type checking / massaging
+        if var[1] is np.ndarray:
+            value = np.array(value, dtype=float)
+        elif var[1] in (int, float, tuple) and value is not None:
+            value = var[1](value)
+            
+        # constraint checks
+        if constraint is True and not self.check_constraint(name, value):
+            raise ValueError("Setting %s = %s violates constraint %s" % (name, value, var[2]))
+        
+        # invalidate other dependent values
+        if var[0] is not None:
+            # todo: we can make this more clever..(and might need to) 
+            # we just know that a value of None cannot have dependencies
+            # (because if anyone else had asked for this value, it wouldn't be 
+            # None anymore)
+            self.resetUnfixed()
+            
+        var[0] = value
+        return value
+    
+    def check_constraint(self, name, value):
+        c = self._vars[name][2]
+        if c is None or value is None:
+            return True
+        if isinstance(c, tuple):
+            return ((c[0] is None or c[0] <= value) and
+                    (c[1] is None or c[1] >= value))
+        else:
+            return value == c
+    
+    def saveState(self):
+        """
+        Return a serializable description of the solver's current state.
+        """
+        state = OrderedDict()
+        for name, var in self._vars.items():
+            state[name] = (var[0], var[2])
+        return state
+    
+    def restoreState(self, state):
+        """
+        Restore the state of all values and constraints in the solver.
+        """
+        self.reset()
+        for name, var in state.items():
+            self.set(name, var[0], var[1])
+    
+    def resetUnfixed(self):
+        """
+        For any variable that does not have a fixed value, reset
+        its value to None.
+        """
+        for var in self._vars.values():
+            if var[2] != 'fixed':
+                var[0] = None
+                
+    def solve(self):
+        for k in self._vars:
+            getattr(self, k)
+                
+    def __repr__(self):
+        state = OrderedDict()
+        for name, var in self._vars.items():
+            if var[2] == 'fixed':
+                state[name] = var[0]
+        state = ', '.join(["%s=%s" % (n, v) for n,v in state.items()])
+        return "<%s %s>" % (self.__class__.__name__, state)
+
+
+
+
+
+if __name__ == '__main__':
+    
+    class Camera(SystemSolver):
+        """
+        Consider a simple SLR camera. The variables we will consider that 
+        affect the camera's behavior while acquiring a photo are aperture, shutter speed,
+        ISO, and flash (of course there are many more, but let's keep the example simple).
+
+        In rare cases, the user wants to manually specify each of these variables and
+        no more work needs to be done to take the photo. More often, the user wants to
+        specify more interesting constraints like depth of field, overall exposure, 
+        or maximum allowed ISO value.
+
+        If we add a simple light meter measurement into this system and an 'exposure'
+        variable that indicates the desired exposure (0 is "perfect", -1 is one stop 
+        darker, etc), then the system of equations governing the camera behavior would
+        have the following variables:
+
+            aperture, shutter, iso, flash, exposure, light meter
+
+        The first four variables are the "outputs" of the system (they directly drive 
+        the camera), the last is a constant (the camera itself cannot affect the 
+        reading on the light meter), and 'exposure' specifies a desired relationship 
+        between other variables in the system.
+
+        So the question is: how can I formalize a system like this as a user interface?
+        Typical cameras have a fairly limited approach: provide the user with a list
+        of modes, each of which defines a particular set of constraints. For example:
+
+            manual: user provides aperture, shutter, iso, and flash
+            aperture priority: user provides aperture and exposure, camera selects
+                            iso, shutter, and flash automatically
+            shutter priority: user provides shutter and exposure, camera selects
+                            iso, aperture, and flash
+            program: user specifies exposure, camera selects all other variables
+                    automatically
+            action: camera selects all variables while attempting to maximize 
+                    shutter speed
+            portrait: camera selects all variables while attempting to minimize 
+                    aperture
+
+        A more general approach might allow the user to provide more explicit 
+        constraints on each variable (for example: I want a shutter speed of 1/30 or 
+        slower, an ISO no greater than 400, an exposure between -1 and 1, and the 
+        smallest aperture possible given all other constraints) and have the camera 
+        solve the system of equations, with a warning if no solution is found. This
+        is exactly what we will implement in this example class.
+        """
+
+        defaultState = OrderedDict([
+            # Field stop aperture
+            ('aperture', [None, float, None, 'nf']),
+            # Duration that shutter is held open. 
+            ('shutter', [None, float, None, 'nf']),
+            # ISO (sensitivity) value. 100, 200, 400, 800, 1600.. 
+            ('iso', [None, int, None, 'nf']),
+            
+            # Flash is a value indicating the brightness of the flash. A table
+            # is used to decide on "balanced" settings for each flash level:
+            #   0: no flash
+            #   1: s=1/60,  a=2.0, iso=100
+            #   2: s=1/60,  a=4.0, iso=100   ..and so on..
+            ('flash', [None, float, None, 'nf']),
+            
+            # exposure is a value indicating how many stops brighter (+1) or
+            # darker (-1) the photographer would like the photo to appear from
+            # the 'balanced' settings indicated by the light meter (see below).
+            ('exposure', [None, float, None, 'f']),
+            
+            # Let's define this as an external light meter (not affected by 
+            # aperture) with logarithmic output. We arbitrarily choose the
+            # following settings as "well balanced" for each light meter value:
+            #   -1: s=1/60,  a=2.0, iso=100
+            #    0: s=1/60,  a=4.0, iso=100
+            #    1: s=1/120, a=4.0, iso=100    ..and so on..
+            # Note that the only allowed constraint mode is (f)ixed, since the
+            # camera never _computes_ the light meter value, it only reads it.
+            ('lightMeter', [None, float, None, 'f']),  
+            
+            # Indicates the camera's final decision on how it thinks the photo will 
+            # look, given the chosen settings. This value is _only_ determined
+            # automatically.
+            ('balance', [None, float, None, 'n']),
+            ])
+        
+        def _aperture(self):
+            """
+            Determine aperture automatically under a variety of conditions.
+            """
+            iso = self.iso
+            exp = self.exposure
+            light = self.lightMeter
+            
+            try:
+                # shutter-priority mode
+                sh = self.shutter   # this raises RuntimeError if shutter has not
+                                   # been specified
+                ap = 4.0 * (sh / (1./60.)) * (iso / 100.) * (2 ** exp) * (2 ** light)
+                ap = np.clip(ap, 2.0, 16.0)
+            except RuntimeError:
+                # program mode; we can select a suitable shutter
+                # value at the same time.
+                sh = (1./60.)
+                raise
+            
+            
+            
+            return ap
+
+        def _balance(self):
+            iso = self.iso
+            light = self.lightMeter
+            sh = self.shutter
+            ap = self.aperture
+            fl = self.flash
+            
+            bal = (4.0 / ap) * (sh / (1./60.)) * (iso / 100.) * (2 ** light)
+            return np.log2(bal)
+    
+    camera = Camera()
+    
+    camera.iso = 100
+    camera.exposure = 0
+    camera.lightMeter = 2
+    camera.shutter = 1./60.
+    camera.flash = 0
+    
+    camera.solve()
+    print(camera.saveState())
+    
\ No newline at end of file
diff --git a/libs/pyqtgraph/parametertree/__init__.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/parametertree/__init__.py
similarity index 100%
rename from libs/pyqtgraph/parametertree/__init__.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/parametertree/__init__.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/parametertree/parameterTypes.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/parametertree/parameterTypes.py
new file mode 100644
index 00000000..31717481
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/parametertree/parameterTypes.py
@@ -0,0 +1,651 @@
+from ..Qt import QtCore, QtGui
+from ..python2_3 import asUnicode
+from .Parameter import Parameter, registerParameterType
+from .ParameterItem import ParameterItem
+from ..widgets.SpinBox import SpinBox
+from ..widgets.ColorButton import ColorButton
+#from ..widgets.GradientWidget import GradientWidget ## creates import loop
+from .. import pixmaps as pixmaps
+from .. import functions as fn
+import os
+from ..pgcollections import OrderedDict
+
+class WidgetParameterItem(ParameterItem):
+    """
+    ParameterTree item with:
+    
+    * label in second column for displaying value
+    * simple widget for editing value (displayed instead of label when item is selected)
+    * button that resets value to default
+    
+    ==========================  =============================================================
+    **Registered Types:**
+    int                         Displays a :class:`SpinBox <pyqtgraph.SpinBox>` in integer
+                                mode.
+    float                       Displays a :class:`SpinBox <pyqtgraph.SpinBox>`.
+    bool                        Displays a QCheckBox
+    str                         Displays a QLineEdit
+    color                       Displays a :class:`ColorButton <pyqtgraph.ColorButton>`
+    colormap                    Displays a :class:`GradientWidget <pyqtgraph.GradientWidget>`
+    ==========================  =============================================================
+    
+    This class can be subclassed by overriding makeWidget() to provide a custom widget.
+    """
+    def __init__(self, param, depth):
+        ParameterItem.__init__(self, param, depth)
+        
+        self.hideWidget = True  ## hide edit widget, replace with label when not selected
+                                ## set this to False to keep the editor widget always visible
+        
+        
+        ## build widget into column 1 with a display label and default button.
+        w = self.makeWidget()  
+        self.widget = w
+        self.eventProxy = EventProxy(w, self.widgetEventFilter)
+        
+        opts = self.param.opts
+        if 'tip' in opts:
+            w.setToolTip(opts['tip'])
+        
+        self.defaultBtn = QtGui.QPushButton()
+        self.defaultBtn.setFixedWidth(20)
+        self.defaultBtn.setFixedHeight(20)
+        modDir = os.path.dirname(__file__)
+        self.defaultBtn.setIcon(QtGui.QIcon(pixmaps.getPixmap('default')))
+        self.defaultBtn.clicked.connect(self.defaultClicked)
+        
+        self.displayLabel = QtGui.QLabel()
+        
+        layout = QtGui.QHBoxLayout()
+        layout.setContentsMargins(0, 0, 0, 0)
+        layout.setSpacing(2)
+        layout.addWidget(w)
+        layout.addWidget(self.displayLabel)
+        layout.addWidget(self.defaultBtn)
+        self.layoutWidget = QtGui.QWidget()
+        self.layoutWidget.setLayout(layout)
+        
+        if w.sigChanged is not None:
+            w.sigChanged.connect(self.widgetValueChanged)
+            
+        if hasattr(w, 'sigChanging'):
+            w.sigChanging.connect(self.widgetValueChanging)
+            
+        ## update value shown in widget. 
+        if opts.get('value', None) is not None:
+            self.valueChanged(self, opts['value'], force=True)
+        else:
+            ## no starting value was given; use whatever the widget has
+            self.widgetValueChanged()
+
+        self.updateDefaultBtn()
+
+    def makeWidget(self):
+        """
+        Return a single widget that should be placed in the second tree column.
+        The widget must be given three attributes:
+        
+        ==========  ============================================================
+        sigChanged  a signal that is emitted when the widget's value is changed
+        value       a function that returns the value
+        setValue    a function that sets the value
+        ==========  ============================================================
+            
+        This is a good function to override in subclasses.
+        """
+        opts = self.param.opts
+        t = opts['type']
+        if t in ('int', 'float'):
+            defs = {
+                'value': 0, 'min': None, 'max': None,
+                'step': 1.0, 'dec': False, 
+                'siPrefix': False, 'suffix': '', 'decimals': 3,
+            }
+            if t == 'int':
+                defs['int'] = True
+                defs['minStep'] = 1.0
+            for k in defs:
+                if k in opts:
+                    defs[k] = opts[k]
+            if 'limits' in opts:
+                defs['bounds'] = opts['limits']
+            w = SpinBox()
+            w.setOpts(**defs)
+            w.sigChanged = w.sigValueChanged
+            w.sigChanging = w.sigValueChanging
+        elif t == 'bool':
+            w = QtGui.QCheckBox()
+            w.sigChanged = w.toggled
+            w.value = w.isChecked
+            w.setValue = w.setChecked
+            w.setEnabled(not opts.get('readonly', False))
+            self.hideWidget = False
+        elif t == 'str':
+            w = QtGui.QLineEdit()
+            w.sigChanged = w.editingFinished
+            w.value = lambda: asUnicode(w.text())
+            w.setValue = lambda v: w.setText(asUnicode(v))
+            w.sigChanging = w.textChanged
+        elif t == 'color':
+            w = ColorButton()
+            w.sigChanged = w.sigColorChanged
+            w.sigChanging = w.sigColorChanging
+            w.value = w.color
+            w.setValue = w.setColor
+            self.hideWidget = False
+            w.setFlat(True)
+            w.setEnabled(not opts.get('readonly', False))            
+        elif t == 'colormap':
+            from ..widgets.GradientWidget import GradientWidget ## need this here to avoid import loop
+            w = GradientWidget(orientation='bottom')
+            w.sigChanged = w.sigGradientChangeFinished
+            w.sigChanging = w.sigGradientChanged
+            w.value = w.colorMap
+            w.setValue = w.setColorMap
+            self.hideWidget = False
+        else:
+            raise Exception("Unknown type '%s'" % asUnicode(t))
+        return w
+        
+    def widgetEventFilter(self, obj, ev):
+        ## filter widget's events
+        ## catch TAB to change focus
+        ## catch focusOut to hide editor
+        if ev.type() == ev.KeyPress:
+            if ev.key() == QtCore.Qt.Key_Tab:
+                self.focusNext(forward=True)
+                return True ## don't let anyone else see this event
+            elif ev.key() == QtCore.Qt.Key_Backtab:
+                self.focusNext(forward=False)
+                return True ## don't let anyone else see this event
+            
+        #elif ev.type() == ev.FocusOut:
+            #self.hideEditor()
+        return False
+        
+    def setFocus(self):
+        self.showEditor()
+        
+    def isFocusable(self):
+        return self.param.writable()        
+        
+    def valueChanged(self, param, val, force=False):
+        ## called when the parameter's value has changed
+        ParameterItem.valueChanged(self, param, val)
+        self.widget.sigChanged.disconnect(self.widgetValueChanged)
+        try:
+            if force or val != self.widget.value():
+                self.widget.setValue(val)
+            self.updateDisplayLabel(val)  ## always make sure label is updated, even if values match!
+        finally:
+            self.widget.sigChanged.connect(self.widgetValueChanged)
+        self.updateDefaultBtn()
+        
+    def updateDefaultBtn(self):
+        ## enable/disable default btn 
+        self.defaultBtn.setEnabled(not self.param.valueIsDefault() and self.param.writable())        
+        
+        # hide / show
+        self.defaultBtn.setVisible(not self.param.readonly())
+
+    def updateDisplayLabel(self, value=None):
+        """Update the display label to reflect the value of the parameter."""
+        if value is None:
+            value = self.param.value()
+        opts = self.param.opts
+        if isinstance(self.widget, QtGui.QAbstractSpinBox):
+            text = asUnicode(self.widget.lineEdit().text())
+        elif isinstance(self.widget, QtGui.QComboBox):
+            text = self.widget.currentText()
+        else:
+            text = asUnicode(value)
+        self.displayLabel.setText(text)
+
+    def widgetValueChanged(self):
+        ## called when the widget's value has been changed by the user
+        val = self.widget.value()
+        newVal = self.param.setValue(val)
+
+    def widgetValueChanging(self, *args):
+        """
+        Called when the widget's value is changing, but not finalized.
+        For example: editing text before pressing enter or changing focus.
+        """
+        # This is a bit sketchy: assume the last argument of each signal is
+        # the value..
+        self.param.sigValueChanging.emit(self.param, args[-1])
+        
+    def selected(self, sel):
+        """Called when this item has been selected (sel=True) OR deselected (sel=False)"""
+        ParameterItem.selected(self, sel)
+        
+        if self.widget is None:
+            return
+        if sel and self.param.writable():
+            self.showEditor()
+        elif self.hideWidget:
+            self.hideEditor()
+
+    def showEditor(self):
+        self.widget.show()
+        self.displayLabel.hide()
+        self.widget.setFocus(QtCore.Qt.OtherFocusReason)
+        if isinstance(self.widget, SpinBox):
+            self.widget.selectNumber()  # select the numerical portion of the text for quick editing
+
+    def hideEditor(self):
+        self.widget.hide()
+        self.displayLabel.show()
+
+    def limitsChanged(self, param, limits):
+        """Called when the parameter's limits have changed"""
+        ParameterItem.limitsChanged(self, param, limits)
+        
+        t = self.param.opts['type']
+        if t == 'int' or t == 'float':
+            self.widget.setOpts(bounds=limits)
+        else:
+            return  ## don't know what to do with any other types..
+
+    def defaultChanged(self, param, value):
+        self.updateDefaultBtn()
+
+    def treeWidgetChanged(self):
+        """Called when this item is added or removed from a tree."""
+        ParameterItem.treeWidgetChanged(self)
+        
+        ## add all widgets for this item into the tree
+        if self.widget is not None:
+            tree = self.treeWidget()
+            if tree is None:
+                return
+            tree.setItemWidget(self, 1, self.layoutWidget)
+            self.displayLabel.hide()
+            self.selected(False)            
+
+    def defaultClicked(self):
+        self.param.setToDefault()
+
+    def optsChanged(self, param, opts):
+        """Called when any options are changed that are not
+        name, value, default, or limits"""
+        #print "opts changed:", opts
+        ParameterItem.optsChanged(self, param, opts)
+        
+        if 'readonly' in opts:
+            self.updateDefaultBtn()
+            if isinstance(self.widget, (QtGui.QCheckBox,ColorButton)):
+                self.widget.setEnabled(not opts['readonly'])
+        
+        ## If widget is a SpinBox, pass options straight through
+        if isinstance(self.widget, SpinBox):
+            if 'units' in opts and 'suffix' not in opts:
+                opts['suffix'] = opts['units']
+            self.widget.setOpts(**opts)
+            self.updateDisplayLabel()
+        
+            
+class EventProxy(QtCore.QObject):
+    def __init__(self, qobj, callback):
+        QtCore.QObject.__init__(self)
+        self.callback = callback
+        qobj.installEventFilter(self)
+        
+    def eventFilter(self, obj, ev):
+        return self.callback(obj, ev)
+
+
+class SimpleParameter(Parameter):
+    itemClass = WidgetParameterItem
+    
+    def __init__(self, *args, **kargs):
+        Parameter.__init__(self, *args, **kargs)
+        
+        ## override a few methods for color parameters
+        if self.opts['type'] == 'color':
+            self.value = self.colorValue
+            self.saveState = self.saveColorState
+    
+    def colorValue(self):
+        return fn.mkColor(Parameter.value(self))
+    
+    def saveColorState(self, *args, **kwds):
+        state = Parameter.saveState(self, *args, **kwds)
+        state['value'] = fn.colorTuple(self.value())
+        return state
+        
+    
+registerParameterType('int', SimpleParameter, override=True)
+registerParameterType('float', SimpleParameter, override=True)
+registerParameterType('bool', SimpleParameter, override=True)
+registerParameterType('str', SimpleParameter, override=True)
+registerParameterType('color', SimpleParameter, override=True)
+registerParameterType('colormap', SimpleParameter, override=True)
+
+
+
+
+class GroupParameterItem(ParameterItem):
+    """
+    Group parameters are used mainly as a generic parent item that holds (and groups!) a set
+    of child parameters. It also provides a simple mechanism for displaying a button or combo
+    that can be used to add new parameters to the group.
+    """
+    def __init__(self, param, depth):
+        ParameterItem.__init__(self, param, depth)
+        self.updateDepth(depth) 
+                
+        self.addItem = None
+        if 'addText' in param.opts:
+            addText = param.opts['addText']
+            if 'addList' in param.opts:
+                self.addWidget = QtGui.QComboBox()
+                self.addWidget.setSizeAdjustPolicy(QtGui.QComboBox.AdjustToContents)
+                self.updateAddList()
+                self.addWidget.currentIndexChanged.connect(self.addChanged)
+            else:
+                self.addWidget = QtGui.QPushButton(addText)
+                self.addWidget.clicked.connect(self.addClicked)
+            w = QtGui.QWidget()
+            l = QtGui.QHBoxLayout()
+            l.setContentsMargins(0,0,0,0)
+            w.setLayout(l)
+            l.addWidget(self.addWidget)
+            l.addStretch()
+            #l.addItem(QtGui.QSpacerItem(200, 10, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum))
+            self.addWidgetBox = w
+            self.addItem = QtGui.QTreeWidgetItem([])
+            self.addItem.setFlags(QtCore.Qt.ItemIsEnabled)
+            ParameterItem.addChild(self, self.addItem)
+            
+    def updateDepth(self, depth):
+        ## Change item's appearance based on its depth in the tree
+        ## This allows highest-level groups to be displayed more prominently.
+        if depth == 0:
+            for c in [0,1]:
+                self.setBackground(c, QtGui.QBrush(QtGui.QColor(100,100,100)))
+                self.setForeground(c, QtGui.QBrush(QtGui.QColor(220,220,255)))
+                font = self.font(c)
+                font.setBold(True)
+                font.setPointSize(font.pointSize()+1)
+                self.setFont(c, font)
+                self.setSizeHint(0, QtCore.QSize(0, 25))
+        else:
+            for c in [0,1]:
+                self.setBackground(c, QtGui.QBrush(QtGui.QColor(220,220,220)))
+                font = self.font(c)
+                font.setBold(True)
+                #font.setPointSize(font.pointSize()+1)
+                self.setFont(c, font)
+                self.setSizeHint(0, QtCore.QSize(0, 20))
+    
+    def addClicked(self):
+        """Called when "add new" button is clicked
+        The parameter MUST have an 'addNew' method defined.
+        """
+        self.param.addNew()
+
+    def addChanged(self):
+        """Called when "add new" combo is changed
+        The parameter MUST have an 'addNew' method defined.
+        """
+        if self.addWidget.currentIndex() == 0:
+            return
+        typ = asUnicode(self.addWidget.currentText())
+        self.param.addNew(typ)
+        self.addWidget.setCurrentIndex(0)
+
+    def treeWidgetChanged(self):
+        ParameterItem.treeWidgetChanged(self)
+        self.treeWidget().setFirstItemColumnSpanned(self, True)
+        if self.addItem is not None:
+            self.treeWidget().setItemWidget(self.addItem, 0, self.addWidgetBox)
+            self.treeWidget().setFirstItemColumnSpanned(self.addItem, True)
+        
+    def addChild(self, child):  ## make sure added childs are actually inserted before add btn
+        if self.addItem is not None:
+            ParameterItem.insertChild(self, self.childCount()-1, child)
+        else:
+            ParameterItem.addChild(self, child)
+            
+    def optsChanged(self, param, changed):
+        if 'addList' in changed:
+            self.updateAddList()
+                
+    def updateAddList(self):
+        self.addWidget.blockSignals(True)
+        try:
+            self.addWidget.clear()
+            self.addWidget.addItem(self.param.opts['addText'])
+            for t in self.param.opts['addList']:
+                self.addWidget.addItem(t)
+        finally:
+            self.addWidget.blockSignals(False)
+            
+class GroupParameter(Parameter):
+    """
+    Group parameters are used mainly as a generic parent item that holds (and groups!) a set
+    of child parameters. 
+    
+    It also provides a simple mechanism for displaying a button or combo
+    that can be used to add new parameters to the group. To enable this, the group 
+    must be initialized with the 'addText' option (the text will be displayed on
+    a button which, when clicked, will cause addNew() to be called). If the 'addList'
+    option is specified as well, then a dropdown-list of addable items will be displayed
+    instead of a button.
+    """
+    itemClass = GroupParameterItem
+
+    def addNew(self, typ=None):
+        """
+        This method is called when the user has requested to add a new item to the group.
+        """
+        raise Exception("Must override this function in subclass.")
+    
+    def setAddList(self, vals):
+        """Change the list of options available for the user to add to the group."""
+        self.setOpts(addList=vals)
+
+    
+
+registerParameterType('group', GroupParameter, override=True)
+
+
+
+
+
+class ListParameterItem(WidgetParameterItem):
+    """
+    WidgetParameterItem subclass providing comboBox that lets the user select from a list of options.
+    
+    """
+    def __init__(self, param, depth):
+        self.targetValue = None
+        WidgetParameterItem.__init__(self, param, depth)
+        
+        
+    def makeWidget(self):
+        opts = self.param.opts
+        t = opts['type']
+        w = QtGui.QComboBox()
+        w.setMaximumHeight(20)  ## set to match height of spin box and line edit
+        w.sigChanged = w.currentIndexChanged
+        w.value = self.value
+        w.setValue = self.setValue
+        self.widget = w  ## needs to be set before limits are changed
+        self.limitsChanged(self.param, self.param.opts['limits'])
+        if len(self.forward) > 0:
+            self.setValue(self.param.value())
+        return w
+        
+    def value(self):
+        key = asUnicode(self.widget.currentText())
+        
+        return self.forward.get(key, None)
+            
+    def setValue(self, val):
+        self.targetValue = val
+        if val not in self.reverse[0]:
+            self.widget.setCurrentIndex(0)
+        else:
+            key = self.reverse[1][self.reverse[0].index(val)]
+            ind = self.widget.findText(key)
+            self.widget.setCurrentIndex(ind)
+
+    def limitsChanged(self, param, limits):
+        # set up forward / reverse mappings for name:value
+        
+        if len(limits) == 0:
+            limits = ['']  ## Can never have an empty list--there is always at least a singhe blank item.
+        
+        self.forward, self.reverse = ListParameter.mapping(limits)
+        try:
+            self.widget.blockSignals(True)
+            val = self.targetValue  #asUnicode(self.widget.currentText())
+            
+            self.widget.clear()
+            for k in self.forward:
+                self.widget.addItem(k)
+                if k == val:
+                    self.widget.setCurrentIndex(self.widget.count()-1)
+                    self.updateDisplayLabel()
+        finally:
+            self.widget.blockSignals(False)
+            
+
+
+class ListParameter(Parameter):
+    itemClass = ListParameterItem
+
+    def __init__(self, **opts):
+        self.forward = OrderedDict()  ## {name: value, ...}
+        self.reverse = ([], [])       ## ([value, ...], [name, ...])
+        
+        ## Parameter uses 'limits' option to define the set of allowed values
+        if 'values' in opts:
+            opts['limits'] = opts['values']
+        if opts.get('limits', None) is None:
+            opts['limits'] = []
+        Parameter.__init__(self, **opts)
+        self.setLimits(opts['limits'])
+        
+    def setLimits(self, limits):
+        self.forward, self.reverse = self.mapping(limits)
+        
+        Parameter.setLimits(self, limits)
+        if len(self.reverse[0]) > 0 and self.value() not in self.reverse[0]:
+            self.setValue(self.reverse[0][0])
+            
+    #def addItem(self, name, value=None):
+        #if name in self.forward:
+            #raise Exception("Name '%s' is already in use for this parameter" % name)
+        #limits = self.opts['limits']
+        #if isinstance(limits, dict):
+            #limits = limits.copy()
+            #limits[name] = value
+            #self.setLimits(limits)
+        #else:
+            #if value is not None:
+                #raise Exception  ## raise exception or convert to dict?
+            #limits = limits[:]
+            #limits.append(name)
+        ## what if limits == None?
+            
+    @staticmethod
+    def mapping(limits):
+        ## Return forward and reverse mapping objects given a limit specification
+        forward = OrderedDict()  ## {name: value, ...}
+        reverse = ([], [])       ## ([value, ...], [name, ...])
+        if isinstance(limits, dict):
+            for k, v in limits.items():
+                forward[k] = v
+                reverse[0].append(v)
+                reverse[1].append(k)
+        else:
+            for v in limits:
+                n = asUnicode(v)
+                forward[n] = v
+                reverse[0].append(v)
+                reverse[1].append(n)
+        return forward, reverse
+
+registerParameterType('list', ListParameter, override=True)
+
+
+
+class ActionParameterItem(ParameterItem):
+    def __init__(self, param, depth):
+        ParameterItem.__init__(self, param, depth)
+        self.layoutWidget = QtGui.QWidget()
+        self.layout = QtGui.QHBoxLayout()
+        self.layoutWidget.setLayout(self.layout)
+        self.button = QtGui.QPushButton(param.name())
+        #self.layout.addSpacing(100)
+        self.layout.addWidget(self.button)
+        self.layout.addStretch()
+        self.button.clicked.connect(self.buttonClicked)
+        param.sigNameChanged.connect(self.paramRenamed)
+        self.setText(0, '')
+        
+    def treeWidgetChanged(self):
+        ParameterItem.treeWidgetChanged(self)
+        tree = self.treeWidget()
+        if tree is None:
+            return
+        
+        tree.setFirstItemColumnSpanned(self, True)
+        tree.setItemWidget(self, 0, self.layoutWidget)
+        
+    def paramRenamed(self, param, name):
+        self.button.setText(name)
+        
+    def buttonClicked(self):
+        self.param.activate()
+        
+class ActionParameter(Parameter):
+    """Used for displaying a button within the tree."""
+    itemClass = ActionParameterItem
+    sigActivated = QtCore.Signal(object)
+    
+    def activate(self):
+        self.sigActivated.emit(self)
+        self.emitStateChanged('activated', None)
+        
+registerParameterType('action', ActionParameter, override=True)
+
+
+
+class TextParameterItem(WidgetParameterItem):
+    def __init__(self, param, depth):
+        WidgetParameterItem.__init__(self, param, depth)
+        self.hideWidget = False
+        self.subItem = QtGui.QTreeWidgetItem()
+        self.addChild(self.subItem)
+
+    def treeWidgetChanged(self):
+        ## TODO: fix so that superclass method can be called
+        ## (WidgetParameter should just natively support this style)
+        #WidgetParameterItem.treeWidgetChanged(self)
+        self.treeWidget().setFirstItemColumnSpanned(self.subItem, True)
+        self.treeWidget().setItemWidget(self.subItem, 0, self.textBox)
+        
+        # for now, these are copied from ParameterItem.treeWidgetChanged
+        self.setHidden(not self.param.opts.get('visible', True))
+        self.setExpanded(self.param.opts.get('expanded', True))
+        
+    def makeWidget(self):
+        self.textBox = QtGui.QTextEdit()
+        self.textBox.setMaximumHeight(100)
+        self.textBox.setReadOnly(self.param.opts.get('readonly', False))
+        self.textBox.value = lambda: str(self.textBox.toPlainText())
+        self.textBox.setValue = self.textBox.setPlainText
+        self.textBox.sigChanged = self.textBox.textChanged
+        return self.textBox
+        
+class TextParameter(Parameter):
+    """Editable string; displayed as large text box in the tree."""
+    itemClass = TextParameterItem
+
+    
+    
+registerParameterType('text', TextParameter, override=True)
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/parametertree/tests/test_parametertypes.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/parametertree/tests/test_parametertypes.py
new file mode 100644
index 00000000..dc581019
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/parametertree/tests/test_parametertypes.py
@@ -0,0 +1,18 @@
+import pyqtgraph.parametertree as pt
+import pyqtgraph as pg
+app = pg.mkQApp()
+
+def test_opts():
+    paramSpec = [
+        dict(name='bool', type='bool', readonly=True),
+        dict(name='color', type='color', readonly=True),
+    ]
+
+    param = pt.Parameter.create(name='params', type='group', children=paramSpec)
+    tree = pt.ParameterTree()
+    tree.setParameters(param)
+
+    assert list(param.param('bool').items.keys())[0].widget.isEnabled() is False
+    assert list(param.param('color').items.keys())[0].widget.isEnabled() is False
+
+
diff --git a/libs/pyqtgraph/pgcollections.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/pgcollections.py
similarity index 100%
rename from libs/pyqtgraph/pgcollections.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/pgcollections.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/pixmaps/__init__.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/pixmaps/__init__.py
new file mode 100644
index 00000000..7a3411cc
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/pixmaps/__init__.py
@@ -0,0 +1,27 @@
+"""
+Allows easy loading of pixmaps used in UI elements. 
+Provides support for frozen environments as well.
+"""
+
+import os, sys, pickle
+from ..functions import makeQImage
+from ..Qt import QtGui
+from ..python2_3 import basestring
+if sys.version_info[0] == 2:
+    from . import pixmapData_2 as pixmapData
+else:
+    from . import pixmapData_3 as pixmapData
+
+
+def getPixmap(name):
+    """
+    Return a QPixmap corresponding to the image file with the given name.
+    (eg. getPixmap('auto') loads pyqtgraph/pixmaps/auto.png)
+    """
+    key = name+'.png'
+    data = pixmapData.pixmapData[key]
+    if isinstance(data, basestring) or isinstance(data, bytes):
+        pixmapData.pixmapData[key] = pickle.loads(data)
+    arr = pixmapData.pixmapData[key]
+    return QtGui.QPixmap(makeQImage(arr, alpha=True))
+    
diff --git a/libs/pyqtgraph/pixmaps/auto.png b/site-packages/pyqtgraph-0.10.0/pyqtgraph/pixmaps/auto.png
similarity index 100%
rename from libs/pyqtgraph/pixmaps/auto.png
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/pixmaps/auto.png
diff --git a/libs/pyqtgraph/pixmaps/compile.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/pixmaps/compile.py
similarity index 100%
rename from libs/pyqtgraph/pixmaps/compile.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/pixmaps/compile.py
diff --git a/libs/pyqtgraph/pixmaps/ctrl.png b/site-packages/pyqtgraph-0.10.0/pyqtgraph/pixmaps/ctrl.png
similarity index 100%
rename from libs/pyqtgraph/pixmaps/ctrl.png
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/pixmaps/ctrl.png
diff --git a/libs/pyqtgraph/pixmaps/default.png b/site-packages/pyqtgraph-0.10.0/pyqtgraph/pixmaps/default.png
similarity index 100%
rename from libs/pyqtgraph/pixmaps/default.png
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/pixmaps/default.png
diff --git a/libs/pyqtgraph/pixmaps/icons.svg b/site-packages/pyqtgraph-0.10.0/pyqtgraph/pixmaps/icons.svg
similarity index 100%
rename from libs/pyqtgraph/pixmaps/icons.svg
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/pixmaps/icons.svg
diff --git a/libs/pyqtgraph/pixmaps/lock.png b/site-packages/pyqtgraph-0.10.0/pyqtgraph/pixmaps/lock.png
similarity index 100%
rename from libs/pyqtgraph/pixmaps/lock.png
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/pixmaps/lock.png
diff --git a/libs/pyqtgraph/pixmaps/pixmapData_2.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/pixmaps/pixmapData_2.py
similarity index 100%
rename from libs/pyqtgraph/pixmaps/pixmapData_2.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/pixmaps/pixmapData_2.py
diff --git a/libs/pyqtgraph/pixmaps/pixmapData_3.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/pixmaps/pixmapData_3.py
similarity index 100%
rename from libs/pyqtgraph/pixmaps/pixmapData_3.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/pixmaps/pixmapData_3.py
diff --git a/libs/pyqtgraph/ptime.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/ptime.py
similarity index 100%
rename from libs/pyqtgraph/ptime.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/ptime.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/python2_3.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/python2_3.py
new file mode 100644
index 00000000..ae4667eb
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/python2_3.py
@@ -0,0 +1,58 @@
+"""
+Helper functions that smooth out the differences between python 2 and 3.
+"""
+import sys
+
+def asUnicode(x):
+    if sys.version_info[0] == 2:
+        if isinstance(x, unicode):
+            return x
+        elif isinstance(x, str):
+            return x.decode('UTF-8')
+        else:
+            return unicode(x)
+    else:
+        return str(x)
+        
+def cmpToKey(mycmp):
+    'Convert a cmp= function into a key= function'
+    class K(object):
+        def __init__(self, obj, *args):
+            self.obj = obj
+        def __lt__(self, other):
+            return mycmp(self.obj, other.obj) < 0
+        def __gt__(self, other):
+            return mycmp(self.obj, other.obj) > 0
+        def __eq__(self, other):
+            return mycmp(self.obj, other.obj) == 0
+        def __le__(self, other):
+            return mycmp(self.obj, other.obj) <= 0
+        def __ge__(self, other):
+            return mycmp(self.obj, other.obj) >= 0
+        def __ne__(self, other):
+            return mycmp(self.obj, other.obj) != 0
+    return K
+
+def sortList(l, cmpFunc):
+    if sys.version_info[0] == 2:
+        l.sort(cmpFunc)
+    else:
+        l.sort(key=cmpToKey(cmpFunc))
+
+if sys.version_info[0] == 3:
+    basestring = str
+    def cmp(a,b):
+        if a>b:
+            return 1
+        elif b > a:
+            return -1
+        else:
+            return 0
+    xrange = range
+else:
+    import __builtin__
+    basestring = __builtin__.basestring
+    cmp = __builtin__.cmp
+    xrange = __builtin__.xrange
+    
+    
\ No newline at end of file
diff --git a/libs/pyqtgraph/reload.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/reload.py
similarity index 100%
rename from libs/pyqtgraph/reload.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/reload.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/__init__.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/__init__.py
new file mode 100644
index 00000000..a4fc235a
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/__init__.py
@@ -0,0 +1,2 @@
+from .image_testing import assertImageApproved, TransposedImageItem
+from .ui_testing import mousePress, mouseMove, mouseRelease, mouseDrag, mouseClick
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/image_testing.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/image_testing.py
new file mode 100644
index 00000000..c8a41dec
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/image_testing.py
@@ -0,0 +1,634 @@
+# Image-based testing borrowed from vispy
+
+"""
+Procedure for unit-testing with images:
+
+1. Run unit tests at least once; this initializes a git clone of
+   pyqtgraph/test-data in ~/.pyqtgraph.
+
+2. Run individual test scripts with the PYQTGRAPH_AUDIT environment variable set:
+
+       $ PYQTGRAPH_AUDIT=1 python pyqtgraph/graphicsItems/tests/test_PlotCurveItem.py
+
+   Any failing tests will
+   display the test results, standard image, and the differences between the
+   two. If the test result is bad, then press (f)ail. If the test result is
+   good, then press (p)ass and the new image will be saved to the test-data
+   directory.
+
+3. After adding or changing test images, create a new commit:
+
+        $ cd ~/.pyqtgraph/test-data
+        $ git add ...
+        $ git commit -a
+
+4. Look up the most recent tag name from the `testDataTag` global variable
+   below. Increment the tag name by 1 and create a new tag in the test-data
+   repository:
+
+        $ git tag test-data-NNN
+        $ git push --tags origin master
+
+    This tag is used to ensure that each pyqtgraph commit is linked to a specific
+    commit in the test-data repository. This makes it possible to push new
+    commits to the test-data repository without interfering with existing
+    tests, and also allows unit tests to continue working on older pyqtgraph
+    versions.
+
+"""
+
+
+# This is the name of a tag in the test-data repository that this version of
+# pyqtgraph should be tested against. When adding or changing test images,
+# create and push a new tag and update this variable. To test locally, begin
+# by creating the tag in your ~/.pyqtgraph/test-data repository.
+testDataTag = 'test-data-6'
+
+
+import time
+import os
+import sys
+import inspect
+import base64
+import subprocess as sp
+import numpy as np
+
+if sys.version[0] >= '3':
+    import http.client as httplib
+    import urllib.parse as urllib
+else:
+    import httplib
+    import urllib
+from ..Qt import QtGui, QtCore, QtTest, QT_LIB
+from .. import functions as fn
+from .. import GraphicsLayoutWidget
+from .. import ImageItem, TextItem
+
+
+tester = None
+
+# Convenient stamp used for ensuring image orientation is correct
+axisImg = [
+    "            1         1 1        ",
+    "          1 1         1 1 1 1    ",
+    "            1   1 1 1 1 1 1 1 1 1",
+    "            1         1 1 1 1    ",
+    "    1     1 1 1       1 1        ",
+    "  1   1                          ",
+    "  1   1                          ",
+    "    1                            ",
+    "                                 ",
+    "    1                            ",
+    "    1                            ",
+    "    1                            ",
+    "1 1 1 1 1                        ",
+    "1 1 1 1 1                        ",
+    "  1 1 1                          ",
+    "  1 1 1                          ",
+    "    1                            ",
+    "    1                            ",
+]
+axisImg = np.array([map(int, row[::2].replace(' ', '0')) for row in axisImg])
+
+
+
+def getTester():
+    global tester
+    if tester is None:
+        tester = ImageTester()
+    return tester
+
+
+def assertImageApproved(image, standardFile, message=None, **kwargs):
+    """Check that an image test result matches a pre-approved standard.
+
+    If the result does not match, then the user can optionally invoke a GUI
+    to compare the images and decide whether to fail the test or save the new
+    image as the standard.
+
+    This function will automatically clone the test-data repository into
+    ~/.pyqtgraph/test-data. However, it is up to the user to ensure this repository
+    is kept up to date and to commit/push new images after they are saved.
+
+    Run the test with the environment variable PYQTGRAPH_AUDIT=1 to bring up
+    the auditing GUI.
+
+    Parameters
+    ----------
+    image : (h, w, 4) ndarray
+    standardFile : str
+        The name of the approved test image to check against. This file name
+        is relative to the root of the pyqtgraph test-data repository and will
+        be automatically fetched.
+    message : str
+        A string description of the image. It is recommended to describe
+        specific features that an auditor should look for when deciding whether
+        to fail a test.
+
+    Extra keyword arguments are used to set the thresholds for automatic image
+    comparison (see ``assertImageMatch()``).
+    """
+    if isinstance(image, QtGui.QWidget):
+        w = image
+        
+            # just to be sure the widget size is correct (new window may be resized):
+        QtGui.QApplication.processEvents()
+
+        graphstate = scenegraphState(w, standardFile)
+        image = np.zeros((w.height(), w.width(), 4), dtype=np.ubyte)
+        qimg = fn.makeQImage(image, alpha=True, copy=False, transpose=False)
+        painter = QtGui.QPainter(qimg)
+        w.render(painter)
+        painter.end()
+        
+        # transpose BGRA to RGBA
+        image = image[..., [2, 1, 0, 3]]
+
+    if message is None:
+        code = inspect.currentframe().f_back.f_code
+        message = "%s::%s" % (code.co_filename, code.co_name)
+
+    # Make sure we have a test data repo available, possibly invoking git
+    dataPath = getTestDataRepo()
+
+    # Read the standard image if it exists
+    stdFileName = os.path.join(dataPath, standardFile + '.png')
+    if not os.path.isfile(stdFileName):
+        stdImage = None
+    else:
+        pxm = QtGui.QPixmap()
+        pxm.load(stdFileName)
+        stdImage = fn.imageToArray(pxm.toImage(), copy=True, transpose=False)
+
+    # If the test image does not match, then we go to audit if requested.
+    try:
+        if image.shape[2] != stdImage.shape[2]:
+            raise Exception("Test result has different channel count than standard image"
+                            "(%d vs %d)" % (image.shape[2], stdImage.shape[2]))
+        if image.shape != stdImage.shape:
+            # Allow im1 to be an integer multiple larger than im2 to account
+            # for high-resolution displays
+            ims1 = np.array(image.shape).astype(float)
+            ims2 = np.array(stdImage.shape).astype(float)
+            sr = ims1 / ims2 if ims1[0] > ims2[0] else ims2 / ims1
+            if (sr[0] != sr[1] or not np.allclose(sr, np.round(sr)) or
+               sr[0] < 1):
+                raise TypeError("Test result shape %s is not an integer factor"
+                                    " different than standard image shape %s." %
+                                (ims1, ims2))
+            sr = np.round(sr).astype(int)
+            image = fn.downsample(image, sr[0], axis=(0, 1)).astype(image.dtype)
+
+        assertImageMatch(image, stdImage, **kwargs)
+        
+        if bool(os.getenv('PYQTGRAPH_PRINT_TEST_STATE', False)):
+            print(graphstate)
+            
+        if os.getenv('PYQTGRAPH_AUDIT_ALL') == '1':
+            raise Exception("Image test passed, but auditing due to PYQTGRAPH_AUDIT_ALL evnironment variable.")
+    except Exception:
+        if stdFileName in gitStatus(dataPath):
+            print("\n\nWARNING: unit test failed against modified standard "
+                  "image %s.\nTo revert this file, run `cd %s; git checkout "
+                  "%s`\n" % (stdFileName, dataPath, standardFile))
+        if os.getenv('PYQTGRAPH_AUDIT') == '1' or os.getenv('PYQTGRAPH_AUDIT_ALL') == '1':
+            sys.excepthook(*sys.exc_info())
+            getTester().test(image, stdImage, message)
+            stdPath = os.path.dirname(stdFileName)
+            print('Saving new standard image to "%s"' % stdFileName)
+            if not os.path.isdir(stdPath):
+                os.makedirs(stdPath)
+            img = fn.makeQImage(image, alpha=True, transpose=False)
+            img.save(stdFileName)
+        else:
+            if stdImage is None:
+                raise Exception("Test standard %s does not exist. Set "
+                                "PYQTGRAPH_AUDIT=1 to add this image." % stdFileName)
+            else:
+                if os.getenv('TRAVIS') is not None:
+                    saveFailedTest(image, stdImage, standardFile)
+                print(graphstate)
+                raise
+
+
+def assertImageMatch(im1, im2, minCorr=None, pxThreshold=50.,
+                       pxCount=-1, maxPxDiff=None, avgPxDiff=None,
+                       imgDiff=None):
+    """Check that two images match.
+
+    Images that differ in shape or dtype will fail unconditionally.
+    Further tests for similarity depend on the arguments supplied.
+
+    By default, images may have no pixels that gave a value difference greater
+    than 50.
+
+    Parameters
+    ----------
+    im1 : (h, w, 4) ndarray
+        Test output image
+    im2 : (h, w, 4) ndarray
+        Test standard image
+    minCorr : float or None
+        Minimum allowed correlation coefficient between corresponding image
+        values (see numpy.corrcoef)
+    pxThreshold : float
+        Minimum value difference at which two pixels are considered different
+    pxCount : int or None
+        Maximum number of pixels that may differ. Default is 0 for Qt4 and 
+        1% of image size for Qt5.
+    maxPxDiff : float or None
+        Maximum allowed difference between pixels
+    avgPxDiff : float or None
+        Average allowed difference between pixels
+    imgDiff : float or None
+        Maximum allowed summed difference between images
+
+    """
+    assert im1.ndim == 3
+    assert im1.shape[2] == 4
+    assert im1.dtype == im2.dtype
+
+    if pxCount == -1:
+        if QT_LIB == 'PyQt5':
+            # Qt5 generates slightly different results; relax the tolerance
+            # until test images are updated.
+            pxCount = int(im1.shape[0] * im1.shape[1] * 0.01)
+        else:
+            pxCount = 0
+    
+    diff = im1.astype(float) - im2.astype(float)
+    if imgDiff is not None:
+        assert np.abs(diff).sum() <= imgDiff
+
+    pxdiff = diff.max(axis=2)  # largest value difference per pixel
+    mask = np.abs(pxdiff) >= pxThreshold
+    if pxCount is not None:
+        assert mask.sum() <= pxCount
+
+    maskedDiff = diff[mask]
+    if maxPxDiff is not None and maskedDiff.size > 0:
+        assert maskedDiff.max() <= maxPxDiff
+    if avgPxDiff is not None and maskedDiff.size > 0:
+        assert maskedDiff.mean() <= avgPxDiff
+
+    if minCorr is not None:
+        with np.errstate(invalid='ignore'):
+            corr = np.corrcoef(im1.ravel(), im2.ravel())[0, 1]
+        assert corr >= minCorr
+
+
+def saveFailedTest(data, expect, filename):
+    """Upload failed test images to web server to allow CI test debugging.
+    """
+    commit = runSubprocess(['git', 'rev-parse',  'HEAD'])
+    name = filename.split('/')
+    name.insert(-1, commit.strip())
+    filename = '/'.join(name)
+    host = 'data.pyqtgraph.org'
+
+    # concatenate data, expect, and diff into a single image
+    ds = data.shape
+    es = expect.shape
+
+    shape = (max(ds[0], es[0]) + 4, ds[1] + es[1] + 8 + max(ds[1], es[1]), 4)
+    img = np.empty(shape, dtype=np.ubyte)
+    img[..., :3] = 100
+    img[..., 3] = 255
+
+    img[2:2+ds[0], 2:2+ds[1], :ds[2]] = data
+    img[2:2+es[0], ds[1]+4:ds[1]+4+es[1], :es[2]] = expect
+
+    diff = makeDiffImage(data, expect)
+    img[2:2+diff.shape[0], -diff.shape[1]-2:-2] = diff
+
+    png = makePng(img)
+    
+    conn = httplib.HTTPConnection(host)
+    req = urllib.urlencode({'name': filename,
+                            'data': base64.b64encode(png)})
+    conn.request('POST', '/upload.py', req)
+    response = conn.getresponse().read()
+    conn.close()
+    print("\nImage comparison failed. Test result: %s %s   Expected result: "
+          "%s %s" % (data.shape, data.dtype, expect.shape, expect.dtype))
+    print("Uploaded to: \nhttp://%s/data/%s" % (host, filename))
+    if not response.startswith(b'OK'):
+        print("WARNING: Error uploading data to %s" % host)
+        print(response)
+
+
+def makePng(img):
+    """Given an array like (H, W, 4), return a PNG-encoded byte string.
+    """
+    io = QtCore.QBuffer()
+    qim = fn.makeQImage(img.transpose(1, 0, 2), alpha=False)
+    qim.save(io, 'PNG')
+    png = bytes(io.data().data())
+    return png
+
+
+def makeDiffImage(im1, im2):
+    """Return image array showing the differences between im1 and im2.
+
+    Handles images of different shape. Alpha channels are not compared.
+    """
+    ds = im1.shape
+    es = im2.shape
+
+    diff = np.empty((max(ds[0], es[0]), max(ds[1], es[1]), 4), dtype=int)
+    diff[..., :3] = 128
+    diff[..., 3] = 255
+    diff[:ds[0], :ds[1], :min(ds[2], 3)] += im1[..., :3]
+    diff[:es[0], :es[1], :min(es[2], 3)] -= im2[..., :3]
+    diff = np.clip(diff, 0, 255).astype(np.ubyte)
+    return diff
+
+
+class ImageTester(QtGui.QWidget):
+    """Graphical interface for auditing image comparison tests.
+    """
+    def __init__(self):
+        self.lastKey = None
+        
+        QtGui.QWidget.__init__(self)
+        self.resize(1200, 800)
+        #self.showFullScreen()
+        
+        self.layout = QtGui.QGridLayout()
+        self.setLayout(self.layout)
+        
+        self.view = GraphicsLayoutWidget()
+        self.layout.addWidget(self.view, 0, 0, 1, 2)
+
+        self.label = QtGui.QLabel()
+        self.layout.addWidget(self.label, 1, 0, 1, 2)
+        self.label.setWordWrap(True)
+        font = QtGui.QFont("monospace", 14, QtGui.QFont.Bold)
+        self.label.setFont(font)
+
+        self.passBtn = QtGui.QPushButton('Pass')
+        self.failBtn = QtGui.QPushButton('Fail')
+        self.layout.addWidget(self.passBtn, 2, 0)
+        self.layout.addWidget(self.failBtn, 2, 1)
+        self.passBtn.clicked.connect(self.passTest)
+        self.failBtn.clicked.connect(self.failTest)
+
+        self.views = (self.view.addViewBox(row=0, col=0),
+                      self.view.addViewBox(row=0, col=1),
+                      self.view.addViewBox(row=0, col=2))
+        labelText = ['test output', 'standard', 'diff']
+        for i, v in enumerate(self.views):
+            v.setAspectLocked(1)
+            v.invertY()
+            v.image = ImageItem(axisOrder='row-major')
+            v.image.setAutoDownsample(True)
+            v.addItem(v.image)
+            v.label = TextItem(labelText[i])
+            v.setBackgroundColor(0.5)
+
+        self.views[1].setXLink(self.views[0])
+        self.views[1].setYLink(self.views[0])
+        self.views[2].setXLink(self.views[0])
+        self.views[2].setYLink(self.views[0])
+
+    def test(self, im1, im2, message):
+        """Ask the user to decide whether an image test passes or fails.
+        
+        This method displays the test image, reference image, and the difference
+        between the two. It then blocks until the user selects the test output
+        by clicking a pass/fail button or typing p/f. If the user fails the test,
+        then an exception is raised.
+        """
+        self.show()
+        if im2 is None:
+            message += '\nImage1: %s %s   Image2: [no standard]' % (im1.shape, im1.dtype)
+            im2 = np.zeros((1, 1, 3), dtype=np.ubyte)
+        else:
+            message += '\nImage1: %s %s   Image2: %s %s' % (im1.shape, im1.dtype, im2.shape, im2.dtype)
+        self.label.setText(message)
+        
+        self.views[0].image.setImage(im1)
+        self.views[1].image.setImage(im2)
+        diff = makeDiffImage(im1, im2)
+
+        self.views[2].image.setImage(diff)
+        self.views[0].autoRange()
+
+        while True:
+            QtGui.QApplication.processEvents()
+            lastKey = self.lastKey
+            
+            self.lastKey = None
+            if lastKey in ('f', 'esc') or not self.isVisible():
+                raise Exception("User rejected test result.")
+            elif lastKey == 'p':
+                break
+            time.sleep(0.03)
+
+        for v in self.views:
+            v.image.setImage(np.zeros((1, 1, 3), dtype=np.ubyte))
+
+    def keyPressEvent(self, event):
+        if event.key() == QtCore.Qt.Key_Escape:
+            self.lastKey = 'esc'
+        else:
+            self.lastKey = str(event.text()).lower()
+
+    def passTest(self):
+        self.lastKey = 'p'
+
+    def failTest(self):
+        self.lastKey = 'f'
+
+
+def getTestDataRepo():
+    """Return the path to a git repository with the required commit checked
+    out.
+
+    If the repository does not exist, then it is cloned from
+    https://github.com/pyqtgraph/test-data. If the repository already exists
+    then the required commit is checked out.
+    """
+    global testDataTag
+
+    dataPath = os.path.join(os.path.expanduser('~'), '.pyqtgraph', 'test-data')
+    gitPath = 'https://github.com/pyqtgraph/test-data'
+    gitbase = gitCmdBase(dataPath)
+
+    if os.path.isdir(dataPath):
+        # Already have a test-data repository to work with.
+
+        # Get the commit ID of testDataTag. Do a fetch if necessary.
+        try:
+            tagCommit = gitCommitId(dataPath, testDataTag)
+        except NameError:
+            cmd = gitbase + ['fetch', '--tags', 'origin']
+            print(' '.join(cmd))
+            sp.check_call(cmd)
+            try:
+                tagCommit = gitCommitId(dataPath, testDataTag)
+            except NameError:
+                raise Exception("Could not find tag '%s' in test-data repo at"
+                                " %s" % (testDataTag, dataPath))
+        except Exception:
+            if not os.path.exists(os.path.join(dataPath, '.git')):
+                raise Exception("Directory '%s' does not appear to be a git "
+                                "repository. Please remove this directory." %
+                                dataPath)
+            else:
+                raise
+
+        # If HEAD is not the correct commit, then do a checkout
+        if gitCommitId(dataPath, 'HEAD') != tagCommit:
+            print("Checking out test-data tag '%s'" % testDataTag)
+            sp.check_call(gitbase + ['checkout', testDataTag])
+
+    else:
+        print("Attempting to create git clone of test data repo in %s.." %
+              dataPath)
+
+        parentPath = os.path.split(dataPath)[0]
+        if not os.path.isdir(parentPath):
+            os.makedirs(parentPath)
+
+        if os.getenv('TRAVIS') is not None:
+            # Create a shallow clone of the test-data repository (to avoid
+            # downloading more data than is necessary)
+            os.makedirs(dataPath)
+            cmds = [
+                gitbase + ['init'],
+                gitbase + ['remote', 'add', 'origin', gitPath],
+                gitbase + ['fetch', '--tags', 'origin', testDataTag,
+                           '--depth=1'],
+                gitbase + ['checkout', '-b', 'master', 'FETCH_HEAD'],
+            ]
+        else:
+            # Create a full clone
+            cmds = [['git', 'clone', gitPath, dataPath]]
+
+        for cmd in cmds:
+            print(' '.join(cmd))
+            rval = sp.check_call(cmd)
+            if rval == 0:
+                continue
+            raise RuntimeError("Test data path '%s' does not exist and could "
+                               "not be created with git. Please create a git "
+                               "clone of %s at this path." %
+                               (dataPath, gitPath))
+
+    return dataPath
+
+
+def gitCmdBase(path):
+    return ['git', '--git-dir=%s/.git' % path, '--work-tree=%s' % path]
+
+
+def gitStatus(path):
+    """Return a string listing all changes to the working tree in a git
+    repository.
+    """
+    cmd = gitCmdBase(path) + ['status', '--porcelain']
+    return runSubprocess(cmd, stderr=None, universal_newlines=True)
+
+
+def gitCommitId(path, ref):
+    """Return the commit id of *ref* in the git repository at *path*.
+    """
+    cmd = gitCmdBase(path) + ['show', ref]
+    try:
+        output = runSubprocess(cmd, stderr=None, universal_newlines=True)
+    except sp.CalledProcessError:
+        print(cmd)
+        raise NameError("Unknown git reference '%s'" % ref)
+    commit = output.split('\n')[0]
+    assert commit[:7] == 'commit '
+    return commit[7:]
+
+
+def runSubprocess(command, return_code=False, **kwargs):
+    """Run command using subprocess.Popen
+    
+    Similar to subprocess.check_output(), which is not available in 2.6.
+
+    Run command and wait for command to complete. If the return code was zero
+    then return, otherwise raise CalledProcessError.
+    By default, this will also add stdout= and stderr=subproces.PIPE
+    to the call to Popen to suppress printing to the terminal.
+
+    Parameters
+    ----------
+    command : list of str
+        Command to run as subprocess (see subprocess.Popen documentation).
+    **kwargs : dict
+        Additional kwargs to pass to ``subprocess.Popen``.
+
+    Returns
+    -------
+    stdout : str
+        Stdout returned by the process.
+    """
+    # code adapted with permission from mne-python
+    use_kwargs = dict(stderr=None, stdout=sp.PIPE)
+    use_kwargs.update(kwargs)
+
+    p = sp.Popen(command, **use_kwargs)
+    output = p.communicate()[0]
+
+    # communicate() may return bytes, str, or None depending on the kwargs
+    # passed to Popen(). Convert all to unicode str:
+    output = '' if output is None else output
+    output = output.decode('utf-8') if isinstance(output, bytes) else output
+
+    if p.returncode != 0:
+        print(output)
+        err_fun = sp.CalledProcessError.__init__
+        if 'output' in inspect.getargspec(err_fun).args:
+            raise sp.CalledProcessError(p.returncode, command, output)
+        else:
+            raise sp.CalledProcessError(p.returncode, command)
+    
+    return output
+
+
+def scenegraphState(view, name):
+    """Return information about the scenegraph for debugging test failures.
+    """
+    state = "====== Scenegraph state for %s ======\n" % name
+    state += "view size: %dx%d\n" % (view.width(), view.height())
+    state += "view transform:\n" + indent(transformStr(view.transform()), "  ")
+    for item in view.scene().items():
+        if item.parentItem() is None:
+            state += itemState(item) + '\n'
+    return state
+
+    
+def itemState(root):
+    state = str(root) + '\n'
+    from .. import ViewBox
+    state += 'bounding rect: ' + str(root.boundingRect()) + '\n'
+    if isinstance(root, ViewBox):
+        state += "view range: " + str(root.viewRange()) + '\n'
+    state += "transform:\n" + indent(transformStr(root.transform()).strip(), "  ") + '\n'
+    for item in root.childItems():
+        state += indent(itemState(item).strip(), "    ") + '\n'
+    return state
+
+    
+def transformStr(t):
+    return ("[%0.2f %0.2f %0.2f]\n"*3) % (t.m11(), t.m12(), t.m13(), t.m21(), t.m22(), t.m23(), t.m31(), t.m32(), t.m33())
+
+
+def indent(s, pfx):
+    return '\n'.join([pfx+line for line in s.split('\n')])
+
+
+class TransposedImageItem(ImageItem):
+    # used for testing image axis order; we can test row-major and col-major using
+    # the same test images
+    def __init__(self, *args, **kwds):
+        self.__transpose = kwds.pop('transpose', False)
+        ImageItem.__init__(self, *args, **kwds)
+    def setImage(self, image=None, **kwds):
+        if image is not None and self.__transpose is True:
+            image = np.swapaxes(image, 0, 1)
+        return ImageItem.setImage(self, image, **kwds)
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/test_exit_crash.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/test_exit_crash.py
new file mode 100644
index 00000000..de457d54
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/test_exit_crash.py
@@ -0,0 +1,42 @@
+import os, sys, subprocess, tempfile
+import pyqtgraph as pg
+import six
+import pytest
+
+code = """
+import sys
+sys.path.insert(0, '{path}')
+import pyqtgraph as pg
+app = pg.mkQApp()
+w = pg.{classname}({args})
+"""
+
+skipmessage = ('unclear why this test is failing. skipping until someone has'
+               ' time to fix it')
+
+@pytest.mark.skipif(True, reason=skipmessage)
+def test_exit_crash():
+    # For each Widget subclass, run a simple python script that creates an
+    # instance and then shuts down. The intent is to check for segmentation
+    # faults when each script exits.
+    tmp = tempfile.mktemp(".py")
+    path = os.path.dirname(pg.__file__)
+
+    initArgs = {
+        'CheckTable': "[]",
+        'ProgressDialog': '"msg"',
+        'VerticalLabel': '"msg"',
+    }
+
+    for name in dir(pg):
+        obj = getattr(pg, name)
+        if not isinstance(obj, type) or not issubclass(obj, pg.QtGui.QWidget):
+            continue
+
+        print(name)
+        argstr = initArgs.get(name, "")
+        open(tmp, 'w').write(code.format(path=path, classname=name, args=argstr))
+        proc = subprocess.Popen([sys.executable, tmp])
+        assert proc.wait() == 0
+
+    os.remove(tmp)
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/test_functions.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/test_functions.py
new file mode 100644
index 00000000..bfa7e0ea
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/test_functions.py
@@ -0,0 +1,301 @@
+import pyqtgraph as pg
+import numpy as np
+from numpy.testing import assert_array_almost_equal, assert_almost_equal
+import pytest
+
+np.random.seed(12345)
+
+def testSolve3D():
+    p1 = np.array([[0,0,0,1],
+                   [1,0,0,1],
+                   [0,1,0,1],
+                   [0,0,1,1]], dtype=float)
+    
+    # transform points through random matrix
+    tr = np.random.normal(size=(4, 4))
+    tr[3] = (0,0,0,1)
+    p2 = np.dot(tr, p1.T).T[:,:3]
+    
+    # solve to see if we can recover the transformation matrix.
+    tr2 = pg.solve3DTransform(p1, p2)
+    
+    assert_array_almost_equal(tr[:3], tr2[:3])
+
+
+def test_interpolateArray():
+    def interpolateArray(data, x):
+        result = pg.interpolateArray(data, x)
+        assert result.shape == x.shape[:-1] + data.shape[x.shape[-1]:]
+        return result
+    
+    data = np.array([[ 1.,   2.,   4.  ],
+                     [ 10.,  20.,  40. ],
+                     [ 100., 200., 400.]])
+    
+    # test various x shapes
+    interpolateArray(data, np.ones((1,)))
+    interpolateArray(data, np.ones((2,)))
+    interpolateArray(data, np.ones((1, 1)))
+    interpolateArray(data, np.ones((1, 2)))
+    interpolateArray(data, np.ones((5, 1)))
+    interpolateArray(data, np.ones((5, 2)))
+    interpolateArray(data, np.ones((5, 5, 1)))
+    interpolateArray(data, np.ones((5, 5, 2)))
+    with pytest.raises(TypeError):
+        interpolateArray(data, np.ones((3,)))
+    with pytest.raises(TypeError):
+        interpolateArray(data, np.ones((1, 3,)))
+    with pytest.raises(TypeError):
+        interpolateArray(data, np.ones((5, 5, 3,)))
+    
+    
+    x = np.array([[  0.3,   0.6],
+                  [  1. ,   1. ],
+                  [  0.5,   1. ],
+                  [  0.5,   2.5],
+                  [ 10. ,  10. ]])
+    
+    result = interpolateArray(data, x)
+    #import scipy.ndimage
+    #spresult = scipy.ndimage.map_coordinates(data, x.T, order=1)
+    spresult = np.array([  5.92,  20.  ,  11.  ,   0.  ,   0.  ])  # generated with the above line
+    
+    assert_array_almost_equal(result, spresult)
+    
+    # test mapping when x.shape[-1] < data.ndim
+    x = np.array([[  0.3,   0],
+                  [  0.3,   1],
+                  [  0.3,   2]])
+    r1 = interpolateArray(data, x)
+    x = np.array([0.3])  # should broadcast across axis 1
+    r2 = interpolateArray(data, x)
+    
+    assert_array_almost_equal(r1, r2)
+    
+    
+    # test mapping 2D array of locations
+    x = np.array([[[0.5, 0.5], [0.5, 1.0], [0.5, 1.5]],
+                  [[1.5, 0.5], [1.5, 1.0], [1.5, 1.5]]])
+    
+    r1 = interpolateArray(data, x)
+    #r2 = scipy.ndimage.map_coordinates(data, x.transpose(2,0,1), order=1)
+    r2 = np.array([[   8.25,   11.  ,   16.5 ],  # generated with the above line
+                   [  82.5 ,  110.  ,  165.  ]])
+
+    assert_array_almost_equal(r1, r2)
+    
+    
+    # test interpolate where data.ndim > x.shape[1]
+    
+    data = np.array([[[1, 2, 3], [4, 5, 6]], [[7, 8, 9], [10, 11, 12]]]) # 2x2x3
+    x = np.array([[1, 1], [0, 0.5], [5, 5]])
+    
+    r1 = interpolateArray(data, x)
+    assert np.all(r1[0] == data[1, 1])
+    assert np.all(r1[1] == 0.5 * (data[0, 0] + data[0, 1]))
+    assert np.all(r1[2] == 0)
+    
+    
+def test_subArray():
+    a = np.array([0, 0, 111, 112, 113, 0, 121, 122, 123, 0, 0, 0, 211, 212, 213, 0, 221, 222, 223, 0, 0, 0, 0])
+    b = pg.subArray(a, offset=2, shape=(2,2,3), stride=(10,4,1))
+    c = np.array([[[111,112,113], [121,122,123]], [[211,212,213], [221,222,223]]])
+    assert np.all(b == c)
+    
+    # operate over first axis; broadcast over the rest
+    aa = np.vstack([a, a/100.]).T
+    cc = np.empty(c.shape + (2,))
+    cc[..., 0] = c
+    cc[..., 1] = c / 100.
+    bb = pg.subArray(aa, offset=2, shape=(2,2,3), stride=(10,4,1))
+    assert np.all(bb == cc)
+    
+    
+def test_rescaleData():
+    dtypes = map(np.dtype, ('ubyte', 'uint16', 'byte', 'int16', 'int', 'float'))
+    for dtype1 in dtypes:
+        for dtype2 in dtypes:
+            data = (np.random.random(size=10) * 2**32 - 2**31).astype(dtype1)
+            for scale, offset in [(10, 0), (10., 0.), (1, -50), (0.2, 0.5), (0.001, 0)]:
+                if dtype2.kind in 'iu':
+                    lim = np.iinfo(dtype2)
+                    lim = lim.min, lim.max
+                else:
+                    lim = (-np.inf, np.inf)
+                s1 = np.clip(float(scale) * (data-float(offset)), *lim).astype(dtype2)
+                s2 = pg.rescaleData(data, scale, offset, dtype2)
+                assert s1.dtype == s2.dtype
+                if dtype2.kind in 'iu':
+                    assert np.all(s1 == s2)
+                else:
+                    assert np.allclose(s1, s2)
+
+
+def test_makeARGB():
+    # Many parameters to test here:
+    #  * data dtype (ubyte, uint16, float, others)
+    #  * data ndim (2 or 3)
+    #  * levels (None, 1D, or 2D)
+    #  * lut dtype
+    #  * lut size
+    #  * lut ndim (1 or 2)
+    #  * useRGBA argument
+    # Need to check that all input values map to the correct output values, especially
+    # at and beyond the edges of the level range.
+
+    def checkArrays(a, b):
+        # because py.test output is difficult to read for arrays
+        if not np.all(a == b):
+            comp = []
+            for i in range(a.shape[0]):
+                if a.shape[1] > 1:
+                    comp.append('[')
+                for j in range(a.shape[1]):
+                    m = a[i,j] == b[i,j]
+                    comp.append('%d,%d  %s %s  %s%s' % 
+                                (i, j, str(a[i,j]).ljust(15), str(b[i,j]).ljust(15),
+                                 m, ' ********' if not np.all(m) else ''))
+                if a.shape[1] > 1:
+                    comp.append(']')
+            raise Exception("arrays do not match:\n%s" % '\n'.join(comp))
+    
+    def checkImage(img, check, alpha, alphaCheck):
+        assert img.dtype == np.ubyte
+        assert alpha is alphaCheck
+        if alpha is False:
+            checkArrays(img[..., 3], 255)
+        
+        if np.isscalar(check) or check.ndim == 3:
+            checkArrays(img[..., :3], check)
+        elif check.ndim == 2:
+            checkArrays(img[..., :3], check[..., np.newaxis])
+        elif check.ndim == 1:
+            checkArrays(img[..., :3], check[..., np.newaxis, np.newaxis])
+        else:
+            raise Exception('invalid check array ndim')
+        
+    # uint8 data tests
+    
+    im1 = np.arange(256).astype('ubyte').reshape(256, 1)
+    im2, alpha = pg.makeARGB(im1, levels=(0, 255))
+    checkImage(im2, im1, alpha, False)
+    
+    im3, alpha = pg.makeARGB(im1, levels=(0.0, 255.0))
+    checkImage(im3, im1, alpha, False)
+
+    im4, alpha = pg.makeARGB(im1, levels=(255, 0))
+    checkImage(im4, 255-im1, alpha, False)
+    
+    im5, alpha = pg.makeARGB(np.concatenate([im1]*3, axis=1), levels=[(0, 255), (0.0, 255.0), (255, 0)])
+    checkImage(im5, np.concatenate([im1, im1, 255-im1], axis=1), alpha, False)
+    
+
+    im2, alpha = pg.makeARGB(im1, levels=(128,383))
+    checkImage(im2[:128], 0, alpha, False)
+    checkImage(im2[128:], im1[:128], alpha, False)
+    
+
+    # uint8 data + uint8 LUT
+    lut = np.arange(256)[::-1].astype(np.uint8)
+    im2, alpha = pg.makeARGB(im1, lut=lut)
+    checkImage(im2, lut, alpha, False)
+    
+    # lut larger than maxint
+    lut = np.arange(511).astype(np.uint8)
+    im2, alpha = pg.makeARGB(im1, lut=lut)
+    checkImage(im2, lut[::2], alpha, False)
+    
+    # lut smaller than maxint
+    lut = np.arange(128).astype(np.uint8)
+    im2, alpha = pg.makeARGB(im1, lut=lut)
+    checkImage(im2, np.linspace(0, 127, 256).astype('ubyte'), alpha, False)
+
+    # lut + levels
+    lut = np.arange(256)[::-1].astype(np.uint8)
+    im2, alpha = pg.makeARGB(im1, lut=lut, levels=[-128, 384])
+    checkImage(im2, np.linspace(192, 65.5, 256).astype('ubyte'), alpha, False)
+    
+    im2, alpha = pg.makeARGB(im1, lut=lut, levels=[64, 192])
+    checkImage(im2, np.clip(np.linspace(385.5, -126.5, 256), 0, 255).astype('ubyte'), alpha, False)
+
+    # uint8 data + uint16 LUT
+    lut = np.arange(4096)[::-1].astype(np.uint16) // 16
+    im2, alpha = pg.makeARGB(im1, lut=lut)
+    checkImage(im2, np.arange(256)[::-1].astype('ubyte'), alpha, False)
+
+    # uint8 data + float LUT
+    lut = np.linspace(10., 137., 256)
+    im2, alpha = pg.makeARGB(im1, lut=lut)
+    checkImage(im2, lut.astype('ubyte'), alpha, False)
+
+    # uint8 data + 2D LUT
+    lut = np.zeros((256, 3), dtype='ubyte')
+    lut[:,0] = np.arange(256)
+    lut[:,1] = np.arange(256)[::-1]
+    lut[:,2] = 7
+    im2, alpha = pg.makeARGB(im1, lut=lut)
+    checkImage(im2, lut[:,None,::-1], alpha, False)
+    
+    # check useRGBA
+    im2, alpha = pg.makeARGB(im1, lut=lut, useRGBA=True)
+    checkImage(im2, lut[:,None,:], alpha, False)
+
+    
+    # uint16 data tests
+    im1 = np.arange(0, 2**16, 256).astype('uint16')[:, None]
+    im2, alpha = pg.makeARGB(im1, levels=(512, 2**16))
+    checkImage(im2, np.clip(np.linspace(-2, 253, 256), 0, 255).astype('ubyte'), alpha, False)
+
+    lut = (np.arange(512, 2**16)[::-1] // 256).astype('ubyte')
+    im2, alpha = pg.makeARGB(im1, lut=lut, levels=(512, 2**16-256))
+    checkImage(im2, np.clip(np.linspace(257, 2, 256), 0, 255).astype('ubyte'), alpha, False)
+
+    lut = np.zeros(2**16, dtype='ubyte')
+    lut[1000:1256] = np.arange(256)
+    lut[1256:] = 255
+    im1 = np.arange(1000, 1256).astype('uint16')[:, None]
+    im2, alpha = pg.makeARGB(im1, lut=lut)
+    checkImage(im2, np.arange(256).astype('ubyte'), alpha, False)
+    
+    
+    
+    # float data tests
+    im1 = np.linspace(1.0, 17.0, 256)[:, None]
+    im2, alpha = pg.makeARGB(im1, levels=(5.0, 13.0))
+    checkImage(im2, np.clip(np.linspace(-128, 383, 256), 0, 255).astype('ubyte'), alpha, False)
+    
+    lut = (np.arange(1280)[::-1] // 10).astype('ubyte')
+    im2, alpha = pg.makeARGB(im1, lut=lut, levels=(1, 17))
+    checkImage(im2, np.linspace(127.5, 0, 256).astype('ubyte'), alpha, False)
+
+
+    # test sanity checks
+    class AssertExc(object):
+        def __init__(self, exc=Exception):
+            self.exc = exc
+        def __enter__(self):
+            return self
+        def __exit__(self, *args):
+            assert args[0] is self.exc, "Should have raised %s (got %s)" % (self.exc, args[0])
+            return True
+    
+    with AssertExc(TypeError):  # invalid image shape
+        pg.makeARGB(np.zeros((2,), dtype='float'))
+    with AssertExc(TypeError):  # invalid image shape
+        pg.makeARGB(np.zeros((2,2,7), dtype='float'))
+    with AssertExc():  # float images require levels arg
+        pg.makeARGB(np.zeros((2,2), dtype='float'))
+    with AssertExc():  # bad levels arg
+        pg.makeARGB(np.zeros((2,2), dtype='float'), levels=[1])
+    with AssertExc():  # bad levels arg
+        pg.makeARGB(np.zeros((2,2), dtype='float'), levels=[1,2,3])
+    with AssertExc():  # can't mix 3-channel levels and LUT
+        pg.makeARGB(np.zeros((2,2)), lut=np.zeros((10,3), dtype='ubyte'), levels=[(0,1)]*3)
+    with AssertExc():  # multichannel levels must have same number of channels as image
+        pg.makeARGB(np.zeros((2,2,3), dtype='float'), levels=[(1,2)]*4)
+    with AssertExc():  # 3d levels not allowed
+        pg.makeARGB(np.zeros((2,2,3), dtype='float'), levels=np.zeros([3, 2, 2]))
+
+    
+if __name__ == '__main__':
+    test_interpolateArray()
\ No newline at end of file
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/test_qt.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/test_qt.py
new file mode 100644
index 00000000..5c8800dd
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/test_qt.py
@@ -0,0 +1,25 @@
+import pyqtgraph as pg
+import gc, os
+import pytest
+
+
+app = pg.mkQApp()
+
+def test_isQObjectAlive():
+    o1 = pg.QtCore.QObject()
+    o2 = pg.QtCore.QObject()
+    o2.setParent(o1)
+    del o1
+    gc.collect()
+    assert not pg.Qt.isQObjectAlive(o2)
+
+@pytest.mark.skipif(pg.Qt.USE_PYSIDE, reason='pysideuic does not appear to be '
+                                             'packaged with conda')
+def test_loadUiType():
+    path = os.path.dirname(__file__)
+    formClass, baseClass = pg.Qt.loadUiType(os.path.join(path, 'uictest.ui'))
+    w = baseClass()
+    ui = formClass()
+    ui.setupUi(w)
+    w.show()
+    app.processEvents()
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/test_ref_cycles.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/test_ref_cycles.py
new file mode 100644
index 00000000..dec95ef7
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/test_ref_cycles.py
@@ -0,0 +1,88 @@
+"""
+Test for unwanted reference cycles
+
+"""
+import pyqtgraph as pg
+import numpy as np
+import gc, weakref
+import six
+import pytest
+app = pg.mkQApp()
+
+skipreason = ('unclear why test is failing on python 3. skipping until someone '
+              'has time to fix it. Or pyside is being used. This test is '
+              'failing on pyside for an unknown reason too.')
+                 
+def assert_alldead(refs):
+    for ref in refs:
+        assert ref() is None
+
+def qObjectTree(root):
+    """Return root and its entire tree of qobject children"""
+    childs = [root]
+    for ch in pg.QtCore.QObject.children(root):
+        childs += qObjectTree(ch)
+    return childs
+
+def mkrefs(*objs):
+    """Return a list of weakrefs to each object in *objs.
+    QObject instances are expanded to include all child objects.
+    """
+    allObjs = {}
+    for obj in objs:
+        if isinstance(obj, pg.QtCore.QObject):
+            obj = qObjectTree(obj)
+        else:
+            obj = [obj]
+        for o in obj:
+            allObjs[id(o)] = o
+            
+    return map(weakref.ref, allObjs.values())
+
+
+@pytest.mark.skipif(six.PY3 or pg.Qt.USE_PYSIDE, reason=skipreason)
+def test_PlotWidget():
+    def mkobjs(*args, **kwds):
+        w = pg.PlotWidget(*args, **kwds)
+        data = pg.np.array([1,5,2,4,3])
+        c = w.plot(data, name='stuff')
+        w.addLegend()
+        
+        # test that connections do not keep objects alive
+        w.plotItem.vb.sigRangeChanged.connect(mkrefs)
+        app.focusChanged.connect(w.plotItem.vb.invertY)
+        
+        # return weakrefs to a bunch of objects that should die when the scope exits.
+        return mkrefs(w, c, data, w.plotItem, w.plotItem.vb, w.plotItem.getMenu(), w.plotItem.getAxis('left'))
+    
+    for i in range(5):
+        assert_alldead(mkobjs())
+    
+@pytest.mark.skipif(six.PY3 or pg.Qt.USE_PYSIDE, reason=skipreason)
+def test_ImageView():
+    def mkobjs():
+        iv = pg.ImageView()
+        data = np.zeros((10,10,5))
+        iv.setImage(data)
+        
+        return mkrefs(iv, iv.imageItem, iv.view, iv.ui.histogram, data)
+    
+    for i in range(5):
+        assert_alldead(mkobjs())
+
+
+@pytest.mark.skipif(six.PY3 or pg.Qt.USE_PYSIDE, reason=skipreason)
+def test_GraphicsWindow():
+    def mkobjs():
+        w = pg.GraphicsWindow()
+        p1 = w.addPlot()
+        v1 = w.addViewBox()
+        return mkrefs(w, p1, v1)
+    
+    for i in range(5):
+        assert_alldead(mkobjs())
+
+    
+    
+if __name__ == '__main__':
+    ot = test_PlotItem()
diff --git a/libs/pyqtgraph/tests/test_srttransform3d.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/test_srttransform3d.py
similarity index 100%
rename from libs/pyqtgraph/tests/test_srttransform3d.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/test_srttransform3d.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/test_stability.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/test_stability.py
new file mode 100644
index 00000000..810b53bf
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/test_stability.py
@@ -0,0 +1,160 @@
+"""
+PyQt/PySide stress test:
+
+Create lots of random widgets and graphics items, connect them together randomly,
+the tear them down repeatedly. 
+
+The purpose of this is to attempt to generate segmentation faults.
+"""
+from pyqtgraph.Qt import QtTest
+import pyqtgraph as pg
+from random import seed, randint
+import sys, gc, weakref
+
+app = pg.mkQApp()
+
+seed(12345)
+
+widgetTypes = [
+    pg.PlotWidget, 
+    pg.ImageView, 
+    pg.GraphicsView, 
+    pg.QtGui.QWidget,
+    pg.QtGui.QTreeWidget, 
+    pg.QtGui.QPushButton,
+    ]
+
+itemTypes = [
+    pg.PlotCurveItem, 
+    pg.ImageItem, 
+    pg.PlotDataItem, 
+    pg.ViewBox,
+    pg.QtGui.QGraphicsRectItem
+    ]
+
+widgets = []
+items = []
+allWidgets = weakref.WeakKeyDictionary()
+
+
+def crashtest():
+    global allWidgets
+    try:
+        gc.disable()
+        actions = [
+                createWidget,
+                #setParent,
+                forgetWidget,
+                showWidget,
+                processEvents,
+                #raiseException,
+                #addReference,
+                ]
+
+        thread = WorkThread()
+        thread.start()
+
+        while True:
+            try:
+                action = randItem(actions)
+                action()
+                print('[%d widgets alive, %d zombie]' % (len(allWidgets), len(allWidgets) - len(widgets)))
+            except KeyboardInterrupt:
+                print("Caught interrupt; send another to exit.")
+                try:
+                    for i in range(100):
+                        QtTest.QTest.qWait(100)
+                except KeyboardInterrupt:
+                    thread.terminate()
+                    break
+            except:
+                sys.excepthook(*sys.exc_info())
+    finally:
+        gc.enable()
+
+
+
+class WorkThread(pg.QtCore.QThread):
+    '''Intended to give the gc an opportunity to run from a non-gui thread.'''
+    def run(self):
+        i = 0
+        while True:
+            i += 1
+            if (i % 1000000) == 0:
+                print('--worker--')
+            
+
+def randItem(items):
+    return items[randint(0, len(items)-1)]
+
+def p(msg):
+    print(msg)
+    sys.stdout.flush()
+
+def createWidget():
+    p('create widget')
+    global widgets, allWidgets
+    if len(widgets) > 50:
+        return
+    widget = randItem(widgetTypes)()
+    widget.setWindowTitle(widget.__class__.__name__)
+    widgets.append(widget)
+    allWidgets[widget] = 1
+    p("    %s" % widget)
+    return widget
+
+def setParent():
+    p('set parent')
+    global widgets
+    if len(widgets) < 2:
+        return
+    child = parent = None
+    while child is parent:
+        child = randItem(widgets)
+        parent = randItem(widgets)
+    p("    %s parent of %s" % (parent, child))
+    child.setParent(parent)
+
+def forgetWidget():
+    p('forget widget')
+    global widgets
+    if len(widgets) < 1:
+        return
+    widget = randItem(widgets)
+    p('    %s' % widget)
+    widgets.remove(widget)
+
+def showWidget():
+    p('show widget')
+    global widgets
+    if len(widgets) < 1:
+        return
+    widget = randItem(widgets)
+    p('    %s' % widget)
+    widget.show()
+
+def processEvents():
+    p('process events')
+    QtTest.QTest.qWait(25)
+
+class TstException(Exception):
+    pass
+
+def raiseException():
+    p('raise exception')
+    raise TstException("A test exception")
+
+def addReference():
+    p('add reference')
+    global widgets
+    if len(widgets) < 1:
+        return
+    obj1 = randItem(widgets)
+    obj2 = randItem(widgets)
+    p('    %s -> %s' % (obj1, obj2))    
+    obj1._testref = obj2
+    
+
+        
+if __name__ == '__main__':
+    test_stability()
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/ui_testing.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/ui_testing.py
new file mode 100644
index 00000000..383ba4f9
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/ui_testing.py
@@ -0,0 +1,55 @@
+
+# Functions for generating user input events. 
+# We would like to use QTest for this purpose, but it seems to be broken.
+# See: http://stackoverflow.com/questions/16299779/qt-qgraphicsview-unit-testing-how-to-keep-the-mouse-in-a-pressed-state
+
+from ..Qt import QtCore, QtGui, QT_LIB
+
+
+def mousePress(widget, pos, button, modifier=None):
+    if isinstance(widget, QtGui.QGraphicsView):
+        widget = widget.viewport()
+    if modifier is None:
+        modifier = QtCore.Qt.NoModifier
+    if QT_LIB != 'PyQt5' and isinstance(pos, QtCore.QPointF):
+        pos = pos.toPoint()
+    event = QtGui.QMouseEvent(QtCore.QEvent.MouseButtonPress, pos, button, QtCore.Qt.NoButton, modifier)
+    QtGui.QApplication.sendEvent(widget, event)
+
+
+def mouseRelease(widget, pos, button, modifier=None):
+    if isinstance(widget, QtGui.QGraphicsView):
+        widget = widget.viewport()
+    if modifier is None:
+        modifier = QtCore.Qt.NoModifier
+    if QT_LIB != 'PyQt5' and isinstance(pos, QtCore.QPointF):
+        pos = pos.toPoint()
+    event = QtGui.QMouseEvent(QtCore.QEvent.MouseButtonRelease, pos, button, QtCore.Qt.NoButton, modifier)
+    QtGui.QApplication.sendEvent(widget, event)
+
+
+def mouseMove(widget, pos, buttons=None, modifier=None):
+    if isinstance(widget, QtGui.QGraphicsView):
+        widget = widget.viewport()
+    if modifier is None:
+        modifier = QtCore.Qt.NoModifier
+    if buttons is None:
+        buttons = QtCore.Qt.NoButton
+    if QT_LIB != 'PyQt5' and isinstance(pos, QtCore.QPointF):
+        pos = pos.toPoint()
+    event = QtGui.QMouseEvent(QtCore.QEvent.MouseMove, pos, QtCore.Qt.NoButton, buttons, modifier)
+    QtGui.QApplication.sendEvent(widget, event)
+
+
+def mouseDrag(widget, pos1, pos2, button, modifier=None):
+    mouseMove(widget, pos1)
+    mousePress(widget, pos1, button, modifier)
+    mouseMove(widget, pos2, button, modifier)
+    mouseRelease(widget, pos2, button, modifier)
+
+    
+def mouseClick(widget, pos, button, modifier=None):
+    mouseMove(widget, pos)
+    mousePress(widget, pos, button, modifier)
+    mouseRelease(widget, pos, button, modifier)
+    
diff --git a/libs/pyqtgraph/tests/uictest.ui b/site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/uictest.ui
similarity index 100%
rename from libs/pyqtgraph/tests/uictest.ui
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/tests/uictest.ui
diff --git a/libs/pyqtgraph/units.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/units.py
similarity index 100%
rename from libs/pyqtgraph/units.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/units.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/util/__init__.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/util/__init__.py
new file mode 100644
index 00000000..e69de29b
diff --git a/libs/pyqtgraph/util/colorama/LICENSE.txt b/site-packages/pyqtgraph-0.10.0/pyqtgraph/util/colorama/LICENSE.txt
similarity index 100%
rename from libs/pyqtgraph/util/colorama/LICENSE.txt
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/util/colorama/LICENSE.txt
diff --git a/libs/pyqtgraph/util/colorama/README.txt b/site-packages/pyqtgraph-0.10.0/pyqtgraph/util/colorama/README.txt
similarity index 100%
rename from libs/pyqtgraph/util/colorama/README.txt
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/util/colorama/README.txt
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/util/colorama/__init__.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/util/colorama/__init__.py
new file mode 100644
index 00000000..e69de29b
diff --git a/libs/pyqtgraph/util/colorama/win32.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/util/colorama/win32.py
similarity index 100%
rename from libs/pyqtgraph/util/colorama/win32.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/util/colorama/win32.py
diff --git a/libs/pyqtgraph/util/colorama/winterm.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/util/colorama/winterm.py
similarity index 100%
rename from libs/pyqtgraph/util/colorama/winterm.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/util/colorama/winterm.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/util/cprint.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/util/cprint.py
new file mode 100644
index 00000000..8b4fa208
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/util/cprint.py
@@ -0,0 +1,102 @@
+"""
+Cross-platform color text printing
+
+Based on colorama (see pyqtgraph/util/colorama/README.txt)
+"""
+import sys, re
+
+from .colorama.winterm import WinTerm, WinColor, WinStyle
+from .colorama.win32 import windll
+from ..python2_3 import basestring
+
+_WIN = sys.platform.startswith('win')
+if windll is not None:
+    winterm = WinTerm()
+else:
+    _WIN = False
+
+def winset(reset=False, fore=None, back=None, style=None, stderr=False):
+    if reset:
+        winterm.reset_all()
+    if fore is not None:
+        winterm.fore(fore, stderr)
+    if back is not None:
+        winterm.back(back, stderr)
+    if style is not None:
+        winterm.style(style, stderr)
+
+ANSI = {}
+WIN = {}
+for i,color in enumerate(['BLACK', 'RED', 'GREEN', 'YELLOW', 'BLUE', 'MAGENTA', 'CYAN', 'WHITE']):
+    globals()[color] = i
+    globals()['BR_' + color] = i + 8
+    globals()['BACK_' + color] = i + 40
+    ANSI[i] = "\033[%dm" % (30+i)
+    ANSI[i+8] = "\033[2;%dm" % (30+i)
+    ANSI[i+40] = "\033[%dm" % (40+i)
+    color = 'GREY' if color == 'WHITE' else color
+    WIN[i] = {'fore': getattr(WinColor, color), 'style': WinStyle.NORMAL}
+    WIN[i+8] = {'fore': getattr(WinColor, color), 'style': WinStyle.BRIGHT}
+    WIN[i+40] = {'back': getattr(WinColor, color)}
+
+RESET = -1
+ANSI[RESET] = "\033[0m"
+WIN[RESET] =  {'reset': True}
+
+
+def cprint(stream, *args, **kwds):
+    """
+    Print with color. Examples::
+
+        # colors are BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE
+        cprint('stdout', RED, 'This is in red. ', RESET, 'and this is normal\n')
+
+        # Adding BR_ before the color manes it bright
+        cprint('stdout', BR_GREEN, 'This is bright green.\n', RESET)
+
+        # Adding BACK_ changes background color
+        cprint('stderr', BACK_BLUE, WHITE, 'This is white-on-blue.', -1)
+
+        # Integers 0-7 for normal, 8-15 for bright, and 40-47 for background.
+        # -1 to reset.
+        cprint('stderr', 1, 'This is in red.', -1)
+
+    """
+    if isinstance(stream, basestring):
+        stream = kwds.get('stream', 'stdout')
+        err = stream == 'stderr'
+        stream = getattr(sys, stream)
+    else:
+        err = kwds.get('stderr', False)
+
+    if hasattr(stream, 'isatty') and stream.isatty():
+        if _WIN:
+            # convert to win32 calls
+            for arg in args:
+                if isinstance(arg, basestring):
+                    stream.write(arg)
+                else:
+                    kwds = WIN[arg]
+                    winset(stderr=err, **kwds)
+        else:
+            # convert to ANSI
+            for arg in args:
+                if isinstance(arg, basestring):
+                    stream.write(arg)
+                else:
+                    stream.write(ANSI[arg])
+    else:
+        # ignore colors
+        for arg in args:
+            if isinstance(arg, basestring):
+                stream.write(arg)
+
+def cout(*args):
+    """Shorthand for cprint('stdout', ...)"""
+    cprint('stdout', *args)
+
+def cerr(*args):
+    """Shorthand for cprint('stderr', ...)"""
+    cprint('stderr', *args)
+
+
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/util/garbage_collector.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/util/garbage_collector.py
new file mode 100644
index 00000000..0ea42dcc
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/util/garbage_collector.py
@@ -0,0 +1,50 @@
+import gc
+
+from ..Qt import QtCore
+
+class GarbageCollector(object):
+    '''
+    Disable automatic garbage collection and instead collect manually
+    on a timer.
+
+    This is done to ensure that garbage collection only happens in the GUI
+    thread, as otherwise Qt can crash.
+
+    Credit:  Erik Janssens
+    Source:  http://pydev.blogspot.com/2014/03/should-python-garbage-collector-be.html
+    '''
+
+    def __init__(self, interval=1.0, debug=False):
+        self.debug = debug
+        if debug:
+            gc.set_debug(gc.DEBUG_LEAK)
+
+        self.timer = QtCore.QTimer()
+        self.timer.timeout.connect(self.check)
+
+        self.threshold = gc.get_threshold()
+        gc.disable()
+        self.timer.start(interval * 1000)
+
+    def check(self):
+        #return self.debug_cycles() # uncomment to just debug cycles
+        l0, l1, l2 = gc.get_count()
+        if self.debug:
+            print('gc_check called:', l0, l1, l2)
+        if l0 > self.threshold[0]:
+            num = gc.collect(0)
+            if self.debug:
+                print('collecting gen 0, found: %d unreachable' % num)
+            if l1 > self.threshold[1]:
+                num = gc.collect(1)
+                if self.debug:
+                    print('collecting gen 1, found: %d unreachable' % num)
+                if l2 > self.threshold[2]:
+                    num = gc.collect(2)
+                    if self.debug:
+                        print('collecting gen 2, found: %d unreachable' % num)
+
+    def debug_cycles(self):
+        gc.collect()
+        for obj in gc.garbage:
+            print(obj, repr(obj), type(obj))
diff --git a/libs/pyqtgraph/util/lru_cache.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/util/lru_cache.py
similarity index 100%
rename from libs/pyqtgraph/util/lru_cache.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/util/lru_cache.py
diff --git a/libs/pyqtgraph/util/mutex.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/util/mutex.py
similarity index 100%
rename from libs/pyqtgraph/util/mutex.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/util/mutex.py
diff --git a/libs/pyqtgraph/util/pil_fix.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/util/pil_fix.py
similarity index 100%
rename from libs/pyqtgraph/util/pil_fix.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/util/pil_fix.py
diff --git a/libs/pyqtgraph/util/tests/test_lru_cache.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/util/tests/test_lru_cache.py
similarity index 100%
rename from libs/pyqtgraph/util/tests/test_lru_cache.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/util/tests/test_lru_cache.py
diff --git a/libs/pyqtgraph/widgets/BusyCursor.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/BusyCursor.py
similarity index 100%
rename from libs/pyqtgraph/widgets/BusyCursor.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/BusyCursor.py
diff --git a/libs/pyqtgraph/widgets/CheckTable.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/CheckTable.py
similarity index 100%
rename from libs/pyqtgraph/widgets/CheckTable.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/CheckTable.py
diff --git a/libs/pyqtgraph/widgets/ColorButton.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/ColorButton.py
similarity index 100%
rename from libs/pyqtgraph/widgets/ColorButton.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/ColorButton.py
diff --git a/libs/pyqtgraph/widgets/ColorMapWidget.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/ColorMapWidget.py
similarity index 100%
rename from libs/pyqtgraph/widgets/ColorMapWidget.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/ColorMapWidget.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/ComboBox.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/ComboBox.py
new file mode 100644
index 00000000..a6828959
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/ComboBox.py
@@ -0,0 +1,218 @@
+import sys
+from ..Qt import QtGui, QtCore
+from ..SignalProxy import SignalProxy
+from ..pgcollections import OrderedDict
+from ..python2_3 import asUnicode, basestring
+
+
+class ComboBox(QtGui.QComboBox):
+    """Extends QComboBox to add extra functionality.
+
+    * Handles dict mappings -- user selects a text key, and the ComboBox indicates
+      the selected value.
+    * Requires item strings to be unique
+    * Remembers selected value if list is cleared and subsequently repopulated
+    * setItems() replaces the items in the ComboBox and blocks signals if the
+      value ultimately does not change.
+    """
+    
+    
+    def __init__(self, parent=None, items=None, default=None):
+        QtGui.QComboBox.__init__(self, parent)
+        self.currentIndexChanged.connect(self.indexChanged)
+        self._ignoreIndexChange = False
+        
+        #self.value = default
+        if 'darwin' in sys.platform: ## because MacOSX can show names that are wider than the comboBox
+            self.setSizeAdjustPolicy(QtGui.QComboBox.AdjustToMinimumContentsLength)
+            #self.setMinimumContentsLength(10)
+        self._chosenText = None
+        self._items = OrderedDict()
+        
+        if items is not None:
+            self.setItems(items)
+            if default is not None:
+                self.setValue(default)
+    
+    def setValue(self, value):
+        """Set the selected item to the first one having the given value."""
+        text = None
+        for k,v in self._items.items():
+            if v == value:
+                text = k
+                break
+        if text is None:
+            raise ValueError(value)
+            
+        self.setText(text)
+
+    def setText(self, text):
+        """Set the selected item to the first one having the given text."""
+        ind = self.findText(text)
+        if ind == -1:
+            raise ValueError(text)
+        #self.value = value
+        self.setCurrentIndex(ind)
+       
+    def value(self):
+        """
+        If items were given as a list of strings, then return the currently 
+        selected text. If items were given as a dict, then return the value
+        corresponding to the currently selected key. If the combo list is empty,
+        return None.
+        """
+        if self.count() == 0:
+            return None
+        text = asUnicode(self.currentText())
+        return self._items[text]
+    
+    def ignoreIndexChange(func):
+        # Decorator that prevents updates to self._chosenText
+        def fn(self, *args, **kwds):
+            prev = self._ignoreIndexChange
+            self._ignoreIndexChange = True
+            try:
+                ret = func(self, *args, **kwds)
+            finally:
+                self._ignoreIndexChange = prev
+            return ret
+        return fn
+    
+    def blockIfUnchanged(func):
+        # decorator that blocks signal emission during complex operations
+        # and emits currentIndexChanged only if the value has actually
+        # changed at the end.
+        def fn(self, *args, **kwds):
+            prevVal = self.value()
+            blocked = self.signalsBlocked()
+            self.blockSignals(True)
+            try:
+                ret = func(self, *args, **kwds)
+            finally:
+                self.blockSignals(blocked)
+                
+            # only emit if the value has changed
+            if self.value() != prevVal:
+                self.currentIndexChanged.emit(self.currentIndex())
+                
+            return ret
+        return fn
+    
+    @ignoreIndexChange
+    @blockIfUnchanged
+    def setItems(self, items):
+        """
+        *items* may be a list or a dict. 
+        If a dict is given, then the keys are used to populate the combo box
+        and the values will be used for both value() and setValue().
+        """
+        prevVal = self.value()
+        
+        self.blockSignals(True)
+        try:
+            self.clear()
+            self.addItems(items)
+        finally:
+            self.blockSignals(False)
+            
+        # only emit if we were not able to re-set the original value
+        if self.value() != prevVal:
+            self.currentIndexChanged.emit(self.currentIndex())
+        
+    def items(self):
+        return self.items.copy()
+        
+    def updateList(self, items):
+        # for backward compatibility
+        return self.setItems(items)
+
+    def indexChanged(self, index):
+        # current index has changed; need to remember new 'chosen text'
+        if self._ignoreIndexChange:
+            return
+        self._chosenText = asUnicode(self.currentText())
+        
+    def setCurrentIndex(self, index):
+        QtGui.QComboBox.setCurrentIndex(self, index)
+        
+    def itemsChanged(self):
+        # try to set the value to the last one selected, if it is available.
+        if self._chosenText is not None:
+            try:
+                self.setText(self._chosenText)
+            except ValueError:
+                pass
+
+    @ignoreIndexChange
+    def insertItem(self, *args):
+        raise NotImplementedError()
+        #QtGui.QComboBox.insertItem(self, *args)
+        #self.itemsChanged()
+        
+    @ignoreIndexChange
+    def insertItems(self, *args):
+        raise NotImplementedError()
+        #QtGui.QComboBox.insertItems(self, *args)
+        #self.itemsChanged()
+    
+    @ignoreIndexChange
+    def addItem(self, *args, **kwds):
+        # Need to handle two different function signatures for QComboBox.addItem
+        try:
+            if isinstance(args[0], basestring):
+                text = args[0]
+                if len(args) == 2:
+                    value = args[1]
+                else:
+                    value = kwds.get('value', text)
+            else:
+                text = args[1]
+                if len(args) == 3:
+                    value = args[2]
+                else:
+                    value = kwds.get('value', text)
+        
+        except IndexError:
+            raise TypeError("First or second argument of addItem must be a string.")
+            
+        if text in self._items:
+            raise Exception('ComboBox already has item named "%s".' % text)
+        
+        self._items[text] = value
+        QtGui.QComboBox.addItem(self, *args)
+        self.itemsChanged()
+        
+    def setItemValue(self, name, value):
+        if name not in self._items:
+            self.addItem(name, value)
+        else:
+            self._items[name] = value
+        
+    @ignoreIndexChange
+    @blockIfUnchanged
+    def addItems(self, items):
+        if isinstance(items, list):
+            texts = items
+            items = dict([(x, x) for x in items])
+        elif isinstance(items, dict):
+            texts = list(items.keys())
+        else:
+            raise TypeError("items argument must be list or dict (got %s)." % type(items))
+        
+        for t in texts:
+            if t in self._items:
+                raise Exception('ComboBox already has item named "%s".' % t)
+                
+        
+        for k,v in items.items():
+            self._items[k] = v
+        QtGui.QComboBox.addItems(self, list(texts))
+        
+        self.itemsChanged()
+        
+    @ignoreIndexChange
+    def clear(self):
+        self._items = OrderedDict()
+        QtGui.QComboBox.clear(self)
+        self.itemsChanged()
+        
diff --git a/libs/pyqtgraph/widgets/DataFilterWidget.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/DataFilterWidget.py
similarity index 100%
rename from libs/pyqtgraph/widgets/DataFilterWidget.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/DataFilterWidget.py
diff --git a/libs/pyqtgraph/widgets/DataTreeWidget.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/DataTreeWidget.py
similarity index 100%
rename from libs/pyqtgraph/widgets/DataTreeWidget.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/DataTreeWidget.py
diff --git a/libs/pyqtgraph/widgets/FeedbackButton.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/FeedbackButton.py
similarity index 100%
rename from libs/pyqtgraph/widgets/FeedbackButton.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/FeedbackButton.py
diff --git a/libs/pyqtgraph/widgets/FileDialog.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/FileDialog.py
similarity index 100%
rename from libs/pyqtgraph/widgets/FileDialog.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/FileDialog.py
diff --git a/libs/pyqtgraph/widgets/GradientWidget.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/GradientWidget.py
similarity index 100%
rename from libs/pyqtgraph/widgets/GradientWidget.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/GradientWidget.py
diff --git a/libs/pyqtgraph/widgets/GraphicsLayoutWidget.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/GraphicsLayoutWidget.py
similarity index 100%
rename from libs/pyqtgraph/widgets/GraphicsLayoutWidget.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/GraphicsLayoutWidget.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/GraphicsView.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/GraphicsView.py
new file mode 100644
index 00000000..f3f8cbb5
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/GraphicsView.py
@@ -0,0 +1,401 @@
+# -*- coding: utf-8 -*-
+"""
+GraphicsView.py -   Extension of QGraphicsView
+Copyright 2010  Luke Campagnola
+Distributed under MIT/X11 license. See license.txt for more infomation.
+"""
+
+from ..Qt import QtCore, QtGui, USE_PYSIDE
+
+try:
+    from ..Qt import QtOpenGL
+    HAVE_OPENGL = True
+except ImportError:
+    HAVE_OPENGL = False
+
+from ..Point import Point
+import sys, os
+from .FileDialog import FileDialog
+from ..GraphicsScene import GraphicsScene
+import numpy as np
+from .. import functions as fn
+from .. import debug as debug
+from .. import getConfigOption
+
+__all__ = ['GraphicsView']
+
+class GraphicsView(QtGui.QGraphicsView):
+    """Re-implementation of QGraphicsView that removes scrollbars and allows unambiguous control of the 
+    viewed coordinate range. Also automatically creates a GraphicsScene and a central QGraphicsWidget
+    that is automatically scaled to the full view geometry.
+    
+    This widget is the basis for :class:`PlotWidget <pyqtgraph.PlotWidget>`, 
+    :class:`GraphicsLayoutWidget <pyqtgraph.GraphicsLayoutWidget>`, and the view widget in
+    :class:`ImageView <pyqtgraph.ImageView>`.
+    
+    By default, the view coordinate system matches the widget's pixel coordinates and 
+    automatically updates when the view is resized. This can be overridden by setting 
+    autoPixelRange=False. The exact visible range can be set with setRange().
+    
+    The view can be panned using the middle mouse button and scaled using the right mouse button if
+    enabled via enableMouse()  (but ordinarily, we use ViewBox for this functionality)."""
+    
+    sigDeviceRangeChanged = QtCore.Signal(object, object)
+    sigDeviceTransformChanged = QtCore.Signal(object)
+    sigMouseReleased = QtCore.Signal(object)
+    sigSceneMouseMoved = QtCore.Signal(object)
+    #sigRegionChanged = QtCore.Signal(object)
+    sigScaleChanged = QtCore.Signal(object)
+    lastFileDir = None
+    
+    def __init__(self, parent=None, useOpenGL=None, background='default'):
+        """
+        ==============  ============================================================
+        **Arguments:**
+        parent          Optional parent widget
+        useOpenGL       If True, the GraphicsView will use OpenGL to do all of its
+                        rendering. This can improve performance on some systems,
+                        but may also introduce bugs (the combination of 
+                        QGraphicsView and QGLWidget is still an 'experimental' 
+                        feature of Qt)
+        background      Set the background color of the GraphicsView. Accepts any
+                        single argument accepted by 
+                        :func:`mkColor <pyqtgraph.mkColor>`. By 
+                        default, the background color is determined using the
+                        'backgroundColor' configuration option (see 
+                        :func:`setConfigOptions <pyqtgraph.setConfigOptions>`).
+        ==============  ============================================================
+        """
+        
+        self.closed = False
+        
+        QtGui.QGraphicsView.__init__(self, parent)
+        
+        # This connects a cleanup function to QApplication.aboutToQuit. It is
+        # called from here because we have no good way to react when the
+        # QApplication is created by the user.
+        # See pyqtgraph.__init__.py
+        from .. import _connectCleanup
+        _connectCleanup()
+        
+        if useOpenGL is None:
+            useOpenGL = getConfigOption('useOpenGL')
+        
+        self.useOpenGL(useOpenGL)
+        
+        self.setCacheMode(self.CacheBackground)
+        
+        ## This might help, but it's probably dangerous in the general case..
+        #self.setOptimizationFlag(self.DontSavePainterState, True)
+        
+        self.setBackgroundRole(QtGui.QPalette.NoRole)
+        self.setBackground(background)
+        
+        self.setFocusPolicy(QtCore.Qt.StrongFocus)
+        self.setFrameShape(QtGui.QFrame.NoFrame)
+        self.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
+        self.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
+        self.setTransformationAnchor(QtGui.QGraphicsView.NoAnchor)
+        self.setResizeAnchor(QtGui.QGraphicsView.AnchorViewCenter)
+        self.setViewportUpdateMode(QtGui.QGraphicsView.MinimalViewportUpdate)
+        
+        
+        self.lockedViewports = []
+        self.lastMousePos = None
+        self.setMouseTracking(True)
+        self.aspectLocked = False
+        self.range = QtCore.QRectF(0, 0, 1, 1)
+        self.autoPixelRange = True
+        self.currentItem = None
+        self.clearMouse()
+        self.updateMatrix()
+        # GraphicsScene must have parent or expect crashes!
+        self.sceneObj = GraphicsScene(parent=self)
+        self.setScene(self.sceneObj)
+        
+        ## Workaround for PySide crash
+        ## This ensures that the scene will outlive the view.
+        if USE_PYSIDE:
+            self.sceneObj._view_ref_workaround = self
+        
+        ## by default we set up a central widget with a grid layout.
+        ## this can be replaced if needed.
+        self.centralWidget = None
+        self.setCentralItem(QtGui.QGraphicsWidget())
+        self.centralLayout = QtGui.QGraphicsGridLayout()
+        self.centralWidget.setLayout(self.centralLayout)
+        
+        self.mouseEnabled = False
+        self.scaleCenter = False  ## should scaling center around view center (True) or mouse click (False)
+        self.clickAccepted = False
+        
+    def setAntialiasing(self, aa):
+        """Enable or disable default antialiasing.
+        Note that this will only affect items that do not specify their own antialiasing options."""
+        if aa:
+            self.setRenderHints(self.renderHints() | QtGui.QPainter.Antialiasing)
+        else:
+            self.setRenderHints(self.renderHints() & ~QtGui.QPainter.Antialiasing)
+        
+    def setBackground(self, background):
+        """
+        Set the background color of the GraphicsView.
+        To use the defaults specified py pyqtgraph.setConfigOption, use background='default'.
+        To make the background transparent, use background=None.
+        """
+        self._background = background
+        if background == 'default':
+            background = getConfigOption('background')
+        brush = fn.mkBrush(background)
+        self.setBackgroundBrush(brush)
+    
+    def paintEvent(self, ev):
+        self.scene().prepareForPaint()
+        return QtGui.QGraphicsView.paintEvent(self, ev)
+    
+    def render(self, *args, **kwds):
+        self.scene().prepareForPaint()
+        return QtGui.QGraphicsView.render(self, *args, **kwds)
+        
+    
+    def close(self):
+        self.centralWidget = None
+        self.scene().clear()
+        self.currentItem = None
+        self.sceneObj = None
+        self.closed = True
+        self.setViewport(None)
+        super(GraphicsView, self).close()
+
+    def useOpenGL(self, b=True):
+        if b:
+            if not HAVE_OPENGL:
+                raise Exception("Requested to use OpenGL with QGraphicsView, but QtOpenGL module is not available.")
+            v = QtOpenGL.QGLWidget()
+        else:
+            v = QtGui.QWidget()
+            
+        self.setViewport(v)
+            
+    def keyPressEvent(self, ev):
+        self.scene().keyPressEvent(ev)  ## bypass view, hand event directly to scene
+                                        ## (view likes to eat arrow key events)
+        
+        
+    def setCentralItem(self, item):
+        return self.setCentralWidget(item)
+        
+    def setCentralWidget(self, item):
+        """Sets a QGraphicsWidget to automatically fill the entire view (the item will be automatically
+        resize whenever the GraphicsView is resized)."""
+        if self.centralWidget is not None:
+            self.scene().removeItem(self.centralWidget)
+        self.centralWidget = item
+        if item is not None:
+            self.sceneObj.addItem(item)
+            self.resizeEvent(None)
+        
+    def addItem(self, *args):
+        return self.scene().addItem(*args)
+        
+    def removeItem(self, *args):
+        return self.scene().removeItem(*args)
+        
+    def enableMouse(self, b=True):
+        self.mouseEnabled = b
+        self.autoPixelRange = (not b)
+        
+    def clearMouse(self):
+        self.mouseTrail = []
+        self.lastButtonReleased = None
+    
+    def resizeEvent(self, ev):
+        if self.closed:
+            return
+        if self.autoPixelRange:
+            self.range = QtCore.QRectF(0, 0, self.size().width(), self.size().height())
+        GraphicsView.setRange(self, self.range, padding=0, disableAutoPixel=False)  ## we do this because some subclasses like to redefine setRange in an incompatible way.
+        self.updateMatrix()
+    
+    def updateMatrix(self, propagate=True):
+        self.setSceneRect(self.range)
+        if self.autoPixelRange:
+            self.resetTransform()
+        else:
+            if self.aspectLocked:
+                self.fitInView(self.range, QtCore.Qt.KeepAspectRatio)
+            else:
+                self.fitInView(self.range, QtCore.Qt.IgnoreAspectRatio)
+            
+        self.sigDeviceRangeChanged.emit(self, self.range)
+        self.sigDeviceTransformChanged.emit(self)
+        
+        if propagate:
+            for v in self.lockedViewports:
+                v.setXRange(self.range, padding=0)
+        
+    def viewRect(self):
+        """Return the boundaries of the view in scene coordinates"""
+        ## easier to just return self.range ?
+        r = QtCore.QRectF(self.rect())
+        return self.viewportTransform().inverted()[0].mapRect(r)
+
+    def visibleRange(self):
+        ## for backward compatibility
+        return self.viewRect()
+
+    def translate(self, dx, dy):
+        self.range.adjust(dx, dy, dx, dy)
+        self.updateMatrix()
+    
+    def scale(self, sx, sy, center=None):
+        scale = [sx, sy]
+        if self.aspectLocked:
+            scale[0] = scale[1]
+        
+        if self.scaleCenter:
+            center = None
+        if center is None:
+            center = self.range.center()
+            
+        w = self.range.width()  / scale[0]
+        h = self.range.height() / scale[1]
+        self.range = QtCore.QRectF(center.x() - (center.x()-self.range.left()) / scale[0], center.y() - (center.y()-self.range.top())  /scale[1], w, h)
+        
+        
+        self.updateMatrix()
+        self.sigScaleChanged.emit(self)
+
+    def setRange(self, newRect=None, padding=0.05, lockAspect=None, propagate=True, disableAutoPixel=True):
+        if disableAutoPixel:
+            self.autoPixelRange=False
+        if newRect is None:
+            newRect = self.visibleRange()
+            padding = 0
+        
+        padding = Point(padding)
+        newRect = QtCore.QRectF(newRect)
+        pw = newRect.width() * padding[0]
+        ph = newRect.height() * padding[1]
+        newRect = newRect.adjusted(-pw, -ph, pw, ph)
+        scaleChanged = False
+        if self.range.width() != newRect.width() or self.range.height() != newRect.height():
+            scaleChanged = True
+        self.range = newRect
+        #print "New Range:", self.range
+        if self.centralWidget is not None:
+            self.centralWidget.setGeometry(self.range)
+        self.updateMatrix(propagate)
+        if scaleChanged:
+            self.sigScaleChanged.emit(self)
+
+    def scaleToImage(self, image):
+        """Scales such that pixels in image are the same size as screen pixels. This may result in a significant performance increase."""
+        pxSize = image.pixelSize()
+        image.setPxMode(True)
+        try:
+            self.sigScaleChanged.disconnect(image.setScaledMode)
+        except (TypeError, RuntimeError):
+            pass
+        tl = image.sceneBoundingRect().topLeft()
+        w = self.size().width() * pxSize[0]
+        h = self.size().height() * pxSize[1]
+        range = QtCore.QRectF(tl.x(), tl.y(), w, h)
+        GraphicsView.setRange(self, range, padding=0)
+        self.sigScaleChanged.connect(image.setScaledMode)
+        
+        
+        
+    def lockXRange(self, v1):
+        if not v1 in self.lockedViewports:
+            self.lockedViewports.append(v1)
+        
+    def setXRange(self, r, padding=0.05):
+        r1 = QtCore.QRectF(self.range)
+        r1.setLeft(r.left())
+        r1.setRight(r.right())
+        GraphicsView.setRange(self, r1, padding=[padding, 0], propagate=False)
+        
+    def setYRange(self, r, padding=0.05):
+        r1 = QtCore.QRectF(self.range)
+        r1.setTop(r.top())
+        r1.setBottom(r.bottom())
+        GraphicsView.setRange(self, r1, padding=[0, padding], propagate=False)
+        
+    def wheelEvent(self, ev):
+        QtGui.QGraphicsView.wheelEvent(self, ev)
+        if not self.mouseEnabled:
+            ev.ignore()
+            return
+        sc = 1.001 ** ev.delta()
+        #self.scale *= sc
+        #self.updateMatrix()
+        self.scale(sc, sc)
+        
+    def setAspectLocked(self, s):
+        self.aspectLocked = s
+        
+    def leaveEvent(self, ev):
+        self.scene().leaveEvent(ev)  ## inform scene when mouse leaves
+        
+    def mousePressEvent(self, ev):
+        QtGui.QGraphicsView.mousePressEvent(self, ev)
+        
+
+        if not self.mouseEnabled:
+            return
+        self.lastMousePos = Point(ev.pos())
+        self.mousePressPos = ev.pos()
+        self.clickAccepted = ev.isAccepted()
+        if not self.clickAccepted:
+            self.scene().clearSelection()
+        return   ## Everything below disabled for now..
+        
+    def mouseReleaseEvent(self, ev):
+        QtGui.QGraphicsView.mouseReleaseEvent(self, ev)
+        if not self.mouseEnabled:
+            return 
+        self.sigMouseReleased.emit(ev)
+        self.lastButtonReleased = ev.button()
+        return   ## Everything below disabled for now..
+        
+    def mouseMoveEvent(self, ev):
+        if self.lastMousePos is None:
+            self.lastMousePos = Point(ev.pos())
+        delta = Point(ev.pos() - self.lastMousePos)
+        self.lastMousePos = Point(ev.pos())
+
+        QtGui.QGraphicsView.mouseMoveEvent(self, ev)
+        if not self.mouseEnabled:
+            return
+        self.sigSceneMouseMoved.emit(self.mapToScene(ev.pos()))
+            
+        if self.clickAccepted:  ## Ignore event if an item in the scene has already claimed it.
+            return
+        
+        if ev.buttons() == QtCore.Qt.RightButton:
+            delta = Point(np.clip(delta[0], -50, 50), np.clip(-delta[1], -50, 50))
+            scale = 1.01 ** delta
+            self.scale(scale[0], scale[1], center=self.mapToScene(self.mousePressPos))
+            self.sigDeviceRangeChanged.emit(self, self.range)
+
+        elif ev.buttons() in [QtCore.Qt.MidButton, QtCore.Qt.LeftButton]:  ## Allow panning by left or mid button.
+            px = self.pixelSize()
+            tr = -delta * px
+            
+            self.translate(tr[0], tr[1])
+            self.sigDeviceRangeChanged.emit(self, self.range)
+        
+    def pixelSize(self):
+        """Return vector with the length and width of one view pixel in scene coordinates"""
+        p0 = Point(0,0)
+        p1 = Point(1,1)
+        tr = self.transform().inverted()[0]
+        p01 = tr.map(p0)
+        p11 = tr.map(p1)
+        return Point(p11 - p01)
+        
+    def dragEnterEvent(self, ev):
+        ev.ignore()  ## not sure why, but for some reason this class likes to consume drag events
+        
+
diff --git a/libs/pyqtgraph/widgets/HistogramLUTWidget.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/HistogramLUTWidget.py
similarity index 100%
rename from libs/pyqtgraph/widgets/HistogramLUTWidget.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/HistogramLUTWidget.py
diff --git a/libs/pyqtgraph/widgets/JoystickButton.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/JoystickButton.py
similarity index 100%
rename from libs/pyqtgraph/widgets/JoystickButton.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/JoystickButton.py
diff --git a/libs/pyqtgraph/widgets/LayoutWidget.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/LayoutWidget.py
similarity index 100%
rename from libs/pyqtgraph/widgets/LayoutWidget.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/LayoutWidget.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/MatplotlibWidget.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/MatplotlibWidget.py
new file mode 100644
index 00000000..30496839
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/MatplotlibWidget.py
@@ -0,0 +1,49 @@
+from ..Qt import QtGui, QtCore, USE_PYSIDE, USE_PYQT5
+import matplotlib
+
+if not USE_PYQT5:
+    if USE_PYSIDE:
+        matplotlib.rcParams['backend.qt4']='PySide'
+
+    from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
+    try:
+        from matplotlib.backends.backend_qt4agg import NavigationToolbar2QTAgg as NavigationToolbar
+    except ImportError:
+        from matplotlib.backends.backend_qt4agg import NavigationToolbar2QT as NavigationToolbar
+else:
+    from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
+    from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT as NavigationToolbar
+
+from matplotlib.figure import Figure
+
+class MatplotlibWidget(QtGui.QWidget):
+    """
+    Implements a Matplotlib figure inside a QWidget.
+    Use getFigure() and redraw() to interact with matplotlib.
+    
+    Example::
+    
+        mw = MatplotlibWidget()
+        subplot = mw.getFigure().add_subplot(111)
+        subplot.plot(x,y)
+        mw.draw()
+    """
+    
+    def __init__(self, size=(5.0, 4.0), dpi=100):
+        QtGui.QWidget.__init__(self)
+        self.fig = Figure(size, dpi=dpi)
+        self.canvas = FigureCanvas(self.fig)
+        self.canvas.setParent(self)
+        self.toolbar = NavigationToolbar(self.canvas, self)
+        
+        self.vbox = QtGui.QVBoxLayout()
+        self.vbox.addWidget(self.toolbar)
+        self.vbox.addWidget(self.canvas)
+        
+        self.setLayout(self.vbox)
+
+    def getFigure(self):
+        return self.fig
+        
+    def draw(self):
+        self.canvas.draw()
diff --git a/libs/pyqtgraph/widgets/MultiPlotWidget.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/MultiPlotWidget.py
similarity index 100%
rename from libs/pyqtgraph/widgets/MultiPlotWidget.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/MultiPlotWidget.py
diff --git a/libs/pyqtgraph/widgets/PathButton.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/PathButton.py
similarity index 100%
rename from libs/pyqtgraph/widgets/PathButton.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/PathButton.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/PlotWidget.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/PlotWidget.py
new file mode 100644
index 00000000..964307ae
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/PlotWidget.py
@@ -0,0 +1,99 @@
+# -*- coding: utf-8 -*-
+"""
+PlotWidget.py -  Convenience class--GraphicsView widget displaying a single PlotItem
+Copyright 2010  Luke Campagnola
+Distributed under MIT/X11 license. See license.txt for more infomation.
+"""
+
+from ..Qt import QtCore, QtGui
+from .GraphicsView import *
+from ..graphicsItems.PlotItem import *
+
+__all__ = ['PlotWidget']
+class PlotWidget(GraphicsView):
+    
+    # signals wrapped from PlotItem / ViewBox
+    sigRangeChanged = QtCore.Signal(object, object)
+    sigTransformChanged = QtCore.Signal(object)
+    
+    """
+    :class:`GraphicsView <pyqtgraph.GraphicsView>` widget with a single 
+    :class:`PlotItem <pyqtgraph.PlotItem>` inside.
+    
+    The following methods are wrapped directly from PlotItem: 
+    :func:`addItem <pyqtgraph.PlotItem.addItem>`, 
+    :func:`removeItem <pyqtgraph.PlotItem.removeItem>`, 
+    :func:`clear <pyqtgraph.PlotItem.clear>`, 
+    :func:`setXRange <pyqtgraph.ViewBox.setXRange>`,
+    :func:`setYRange <pyqtgraph.ViewBox.setYRange>`,
+    :func:`setRange <pyqtgraph.ViewBox.setRange>`,
+    :func:`autoRange <pyqtgraph.ViewBox.autoRange>`,
+    :func:`setXLink <pyqtgraph.ViewBox.setXLink>`,
+    :func:`setYLink <pyqtgraph.ViewBox.setYLink>`,
+    :func:`viewRect <pyqtgraph.ViewBox.viewRect>`,
+    :func:`setMouseEnabled <pyqtgraph.ViewBox.setMouseEnabled>`,
+    :func:`enableAutoRange <pyqtgraph.ViewBox.enableAutoRange>`,
+    :func:`disableAutoRange <pyqtgraph.ViewBox.disableAutoRange>`,
+    :func:`setAspectLocked <pyqtgraph.ViewBox.setAspectLocked>`,
+    :func:`setLimits <pyqtgraph.ViewBox.setLimits>`,
+    :func:`register <pyqtgraph.ViewBox.register>`,
+    :func:`unregister <pyqtgraph.ViewBox.unregister>`
+    
+    
+    For all 
+    other methods, use :func:`getPlotItem <pyqtgraph.PlotWidget.getPlotItem>`.
+    """
+    def __init__(self, parent=None, background='default', **kargs):
+        """When initializing PlotWidget, *parent* and *background* are passed to 
+        :func:`GraphicsWidget.__init__() <pyqtgraph.GraphicsWidget.__init__>`
+        and all others are passed
+        to :func:`PlotItem.__init__() <pyqtgraph.PlotItem.__init__>`."""
+        GraphicsView.__init__(self, parent, background=background)
+        self.setSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
+        self.enableMouse(False)
+        self.plotItem = PlotItem(**kargs)
+        self.setCentralItem(self.plotItem)
+        ## Explicitly wrap methods from plotItem
+        ## NOTE: If you change this list, update the documentation above as well.
+        for m in ['addItem', 'removeItem', 'autoRange', 'clear', 'setXRange', 
+                  'setYRange', 'setRange', 'setAspectLocked', 'setMouseEnabled', 
+                  'setXLink', 'setYLink', 'enableAutoRange', 'disableAutoRange', 
+                  'setLimits', 'register', 'unregister', 'viewRect']:
+            setattr(self, m, getattr(self.plotItem, m))
+        #QtCore.QObject.connect(self.plotItem, QtCore.SIGNAL('viewChanged'), self.viewChanged)
+        self.plotItem.sigRangeChanged.connect(self.viewRangeChanged)
+    
+    def close(self):
+        self.plotItem.close()
+        self.plotItem = None
+        #self.scene().clear()
+        #self.mPlotItem.close()
+        self.setParent(None)
+        super(PlotWidget, self).close()
+
+    def __getattr__(self, attr):  ## implicitly wrap methods from plotItem
+        if hasattr(self.plotItem, attr):
+            m = getattr(self.plotItem, attr)
+            if hasattr(m, '__call__'):
+                return m
+        raise NameError(attr)
+    
+    def viewRangeChanged(self, view, range):
+        #self.emit(QtCore.SIGNAL('viewChanged'), *args)
+        self.sigRangeChanged.emit(self, range)
+
+    def widgetGroupInterface(self):
+        return (None, PlotWidget.saveState, PlotWidget.restoreState)
+
+    def saveState(self):
+        return self.plotItem.saveState()
+        
+    def restoreState(self, state):
+        return self.plotItem.restoreState(state)
+        
+    def getPlotItem(self):
+        """Return the PlotItem contained within."""
+        return self.plotItem
+        
+        
+        
\ No newline at end of file
diff --git a/libs/pyqtgraph/widgets/ProgressDialog.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/ProgressDialog.py
similarity index 100%
rename from libs/pyqtgraph/widgets/ProgressDialog.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/ProgressDialog.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/RawImageWidget.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/RawImageWidget.py
new file mode 100644
index 00000000..657701f9
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/RawImageWidget.py
@@ -0,0 +1,143 @@
+from ..Qt import QtCore, QtGui
+try:
+    from ..Qt import QtOpenGL
+    from OpenGL.GL import *
+    HAVE_OPENGL = True
+except Exception:
+    # Would prefer `except ImportError` here, but some versions of pyopengl generate
+    # AttributeError upon import
+    HAVE_OPENGL = False
+
+from .. import functions as fn
+import numpy as np
+
+class RawImageWidget(QtGui.QWidget):
+    """
+    Widget optimized for very fast video display. 
+    Generally using an ImageItem inside GraphicsView is fast enough.
+    On some systems this may provide faster video. See the VideoSpeedTest example for benchmarking.
+    """
+    def __init__(self, parent=None, scaled=False):
+        """
+        Setting scaled=True will cause the entire image to be displayed within the boundaries of the widget. This also greatly reduces the speed at which it will draw frames.
+        """
+        QtGui.QWidget.__init__(self, parent=None)
+        self.setSizePolicy(QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Expanding))
+        self.scaled = scaled
+        self.opts = None
+        self.image = None
+    
+    def setImage(self, img, *args, **kargs):
+        """
+        img must be ndarray of shape (x,y), (x,y,3), or (x,y,4).
+        Extra arguments are sent to functions.makeARGB
+        """
+        self.opts = (img, args, kargs)
+        self.image = None
+        self.update()
+
+    def paintEvent(self, ev):
+        if self.opts is None:
+            return
+        if self.image is None:
+            argb, alpha = fn.makeARGB(self.opts[0], *self.opts[1], **self.opts[2])
+            self.image = fn.makeQImage(argb, alpha)
+            self.opts = ()
+        #if self.pixmap is None:
+            #self.pixmap = QtGui.QPixmap.fromImage(self.image)
+        p = QtGui.QPainter(self)
+        if self.scaled:
+            rect = self.rect()
+            ar = rect.width() / float(rect.height())
+            imar = self.image.width() / float(self.image.height())
+            if ar > imar:
+                rect.setWidth(int(rect.width() * imar/ar))
+            else:
+                rect.setHeight(int(rect.height() * ar/imar))
+                
+            p.drawImage(rect, self.image)
+        else:
+            p.drawImage(QtCore.QPointF(), self.image)
+        #p.drawPixmap(self.rect(), self.pixmap)
+        p.end()
+
+
+if HAVE_OPENGL:
+    class RawImageGLWidget(QtOpenGL.QGLWidget):
+        """
+        Similar to RawImageWidget, but uses a GL widget to do all drawing.
+        Perfomance varies between platforms; see examples/VideoSpeedTest for benchmarking.
+        """
+        def __init__(self, parent=None, scaled=False):
+            QtOpenGL.QGLWidget.__init__(self, parent=None)
+            self.scaled = scaled
+            self.image = None
+            self.uploaded = False
+            self.smooth = False
+            self.opts = None
+
+        def setImage(self, img, *args, **kargs):
+            """
+            img must be ndarray of shape (x,y), (x,y,3), or (x,y,4).
+            Extra arguments are sent to functions.makeARGB
+            """
+            self.opts = (img, args, kargs)
+            self.image = None
+            self.uploaded = False
+            self.update()
+
+        def initializeGL(self):
+            self.texture = glGenTextures(1)
+            
+        def uploadTexture(self):
+            glEnable(GL_TEXTURE_2D)
+            glBindTexture(GL_TEXTURE_2D, self.texture)
+            if self.smooth:
+                glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR)
+                glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR)
+            else:
+                glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST)
+                glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST)
+            glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_BORDER)
+            glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_BORDER)
+            #glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_BORDER)
+            shape = self.image.shape
+            
+            ### Test texture dimensions first
+            #glTexImage2D(GL_PROXY_TEXTURE_2D, 0, GL_RGBA, shape[0], shape[1], 0, GL_RGBA, GL_UNSIGNED_BYTE, None)
+            #if glGetTexLevelParameteriv(GL_PROXY_TEXTURE_2D, 0, GL_TEXTURE_WIDTH) == 0:
+                #raise Exception("OpenGL failed to create 2D texture (%dx%d); too large for this hardware." % shape[:2])
+            
+            glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, shape[0], shape[1], 0, GL_RGBA, GL_UNSIGNED_BYTE, self.image.transpose((1,0,2)))
+            glDisable(GL_TEXTURE_2D)
+            
+        def paintGL(self):
+            if self.image is None:
+                if self.opts is None:
+                    return
+                img, args, kwds = self.opts
+                kwds['useRGBA'] = True
+                self.image, alpha = fn.makeARGB(img, *args, **kwds)
+            
+            if not self.uploaded:
+                self.uploadTexture()
+            
+            glViewport(0, 0, self.width(), self.height())
+            glEnable(GL_TEXTURE_2D)
+            glBindTexture(GL_TEXTURE_2D, self.texture)
+            glColor4f(1,1,1,1)
+
+            glBegin(GL_QUADS)
+            glTexCoord2f(0,0)
+            glVertex3f(-1,-1,0)
+            glTexCoord2f(1,0)
+            glVertex3f(1, -1, 0)
+            glTexCoord2f(1,1)
+            glVertex3f(1, 1, 0)
+            glTexCoord2f(0,1)
+            glVertex3f(-1, 1, 0)
+            glEnd()
+            glDisable(GL_TEXTURE_3D)
+            
+
+
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/RemoteGraphicsView.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/RemoteGraphicsView.py
new file mode 100644
index 00000000..85f5556a
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/RemoteGraphicsView.py
@@ -0,0 +1,273 @@
+from ..Qt import QtGui, QtCore, USE_PYSIDE
+if not USE_PYSIDE:
+    import sip
+from .. import multiprocess as mp
+from .GraphicsView import GraphicsView
+from .. import CONFIG_OPTIONS
+import numpy as np
+import mmap, tempfile, ctypes, atexit, sys, random
+
+__all__ = ['RemoteGraphicsView']
+
+class RemoteGraphicsView(QtGui.QWidget):
+    """
+    Replacement for GraphicsView that does all scene management and rendering on a remote process,
+    while displaying on the local widget.
+    
+    GraphicsItems must be created by proxy to the remote process.
+    
+    """
+    def __init__(self, parent=None, *args, **kwds):
+        """
+        The keyword arguments 'useOpenGL' and 'backgound', if specified, are passed to the remote
+        GraphicsView.__init__(). All other keyword arguments are passed to multiprocess.QtProcess.__init__().
+        """
+        self._img = None
+        self._imgReq = None
+        self._sizeHint = (640,480)  ## no clue why this is needed, but it seems to be the default sizeHint for GraphicsView.
+                                    ## without it, the widget will not compete for space against another GraphicsView.
+        QtGui.QWidget.__init__(self)
+
+        # separate local keyword arguments from remote.
+        remoteKwds = {}
+        for kwd in ['useOpenGL', 'background']:
+            if kwd in kwds:
+                remoteKwds[kwd] = kwds.pop(kwd)
+
+        self._proc = mp.QtProcess(**kwds)
+        self.pg = self._proc._import('pyqtgraph')
+        self.pg.setConfigOptions(**CONFIG_OPTIONS)
+        rpgRemote = self._proc._import('pyqtgraph.widgets.RemoteGraphicsView')
+        self._view = rpgRemote.Renderer(*args, **remoteKwds)
+        self._view._setProxyOptions(deferGetattr=True)
+        
+        self.setFocusPolicy(QtCore.Qt.StrongFocus)
+        self.setSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
+        self.setMouseTracking(True)
+        self.shm = None
+        shmFileName = self._view.shmFileName()
+        if sys.platform.startswith('win'):
+            self.shmtag = shmFileName
+        else:
+            self.shmFile = open(shmFileName, 'r')
+        
+        self._view.sceneRendered.connect(mp.proxy(self.remoteSceneChanged)) #, callSync='off'))
+                                                                            ## Note: we need synchronous signals
+                                                                            ## even though there is no return value--
+                                                                            ## this informs the renderer that it is 
+                                                                            ## safe to begin rendering again. 
+        
+        for method in ['scene', 'setCentralItem']:
+            setattr(self, method, getattr(self._view, method))
+        
+    def resizeEvent(self, ev):
+        ret = QtGui.QWidget.resizeEvent(self, ev)
+        self._view.resize(self.size(), _callSync='off')
+        return ret
+        
+    def sizeHint(self):
+        return QtCore.QSize(*self._sizeHint)
+        
+    def remoteSceneChanged(self, data):
+        w, h, size, newfile = data
+        #self._sizeHint = (whint, hhint)
+        if self.shm is None or self.shm.size != size:
+            if self.shm is not None:
+                self.shm.close()
+            if sys.platform.startswith('win'):
+                self.shmtag = newfile   ## on windows, we create a new tag for every resize
+                self.shm = mmap.mmap(-1, size, self.shmtag) ## can't use tmpfile on windows because the file can only be opened once.
+            elif sys.platform == 'darwin':
+                self.shmFile.close()
+                self.shmFile = open(self._view.shmFileName(), 'r')
+                self.shm = mmap.mmap(self.shmFile.fileno(), size, mmap.MAP_SHARED, mmap.PROT_READ)
+            else:
+                self.shm = mmap.mmap(self.shmFile.fileno(), size, mmap.MAP_SHARED, mmap.PROT_READ)
+        self.shm.seek(0)
+        data = self.shm.read(w*h*4)
+        self._img = QtGui.QImage(data, w, h, QtGui.QImage.Format_ARGB32)
+        self._img.data = data  # data must be kept alive or PySide 1.2.1 (and probably earlier) will crash.
+        self.update()
+        
+    def paintEvent(self, ev):
+        if self._img is None:
+            return
+        p = QtGui.QPainter(self)
+        p.drawImage(self.rect(), self._img, QtCore.QRect(0, 0, self._img.width(), self._img.height()))
+        p.end()
+        
+    def mousePressEvent(self, ev):
+        self._view.mousePressEvent(int(ev.type()), ev.pos(), ev.globalPos(), int(ev.button()), int(ev.buttons()), int(ev.modifiers()), _callSync='off')
+        ev.accept()
+        return QtGui.QWidget.mousePressEvent(self, ev)
+
+    def mouseReleaseEvent(self, ev):
+        self._view.mouseReleaseEvent(int(ev.type()), ev.pos(), ev.globalPos(), int(ev.button()), int(ev.buttons()), int(ev.modifiers()), _callSync='off')
+        ev.accept()
+        return QtGui.QWidget.mouseReleaseEvent(self, ev)
+
+    def mouseMoveEvent(self, ev):
+        self._view.mouseMoveEvent(int(ev.type()), ev.pos(), ev.globalPos(), int(ev.button()), int(ev.buttons()), int(ev.modifiers()), _callSync='off')
+        ev.accept()
+        return QtGui.QWidget.mouseMoveEvent(self, ev)
+        
+    def wheelEvent(self, ev):
+        self._view.wheelEvent(ev.pos(), ev.globalPos(), ev.delta(), int(ev.buttons()), int(ev.modifiers()), int(ev.orientation()), _callSync='off')
+        ev.accept()
+        return QtGui.QWidget.wheelEvent(self, ev)
+    
+    def keyEvent(self, ev):
+        if self._view.keyEvent(int(ev.type()), int(ev.modifiers()), text, autorep, count):
+            ev.accept()
+        return QtGui.QWidget.keyEvent(self, ev)
+        
+    def enterEvent(self, ev):
+        self._view.enterEvent(int(ev.type()), _callSync='off')
+        return QtGui.QWidget.enterEvent(self, ev)
+        
+    def leaveEvent(self, ev):
+        self._view.leaveEvent(int(ev.type()), _callSync='off')
+        return QtGui.QWidget.leaveEvent(self, ev)
+        
+    def remoteProcess(self):
+        """Return the remote process handle. (see multiprocess.remoteproxy.RemoteEventHandler)"""
+        return self._proc
+
+    def close(self):
+        """Close the remote process. After this call, the widget will no longer be updated."""
+        self._proc.close()
+
+
+class Renderer(GraphicsView):
+    ## Created by the remote process to handle render requests
+    
+    sceneRendered = QtCore.Signal(object)
+    
+    def __init__(self, *args, **kwds):
+        ## Create shared memory for rendered image
+        #pg.dbg(namespace={'r': self})
+        if sys.platform.startswith('win'):
+            self.shmtag = "pyqtgraph_shmem_" + ''.join([chr((random.getrandbits(20)%25) + 97) for i in range(20)])
+            self.shm = mmap.mmap(-1, mmap.PAGESIZE, self.shmtag) # use anonymous mmap on windows
+        else:
+            self.shmFile = tempfile.NamedTemporaryFile(prefix='pyqtgraph_shmem_')
+            self.shmFile.write(b'\x00' * (mmap.PAGESIZE+1))
+            fd = self.shmFile.fileno()
+            self.shm = mmap.mmap(fd, mmap.PAGESIZE, mmap.MAP_SHARED, mmap.PROT_WRITE)
+        atexit.register(self.close)
+        
+        GraphicsView.__init__(self, *args, **kwds)
+        self.scene().changed.connect(self.update)
+        self.img = None
+        self.renderTimer = QtCore.QTimer()
+        self.renderTimer.timeout.connect(self.renderView)
+        self.renderTimer.start(16)
+        
+    def close(self):
+        self.shm.close()
+        if not sys.platform.startswith('win'):
+            self.shmFile.close()
+
+    def shmFileName(self):
+        if sys.platform.startswith('win'):
+            return self.shmtag
+        else:
+            return self.shmFile.name
+        
+    def update(self):
+        self.img = None
+        return GraphicsView.update(self)
+        
+    def resize(self, size):
+        oldSize = self.size()
+        GraphicsView.resize(self, size)
+        self.resizeEvent(QtGui.QResizeEvent(size, oldSize))
+        self.update()
+        
+    def renderView(self):
+        if self.img is None:
+            ## make sure shm is large enough and get its address
+            if self.width() == 0 or self.height() == 0:
+                return
+            size = self.width() * self.height() * 4
+            if size > self.shm.size():
+                if sys.platform.startswith('win'):
+                    ## windows says "WindowsError: [Error 87] the parameter is incorrect" if we try to resize the mmap
+                    self.shm.close()
+                    ## it also says (sometimes) 'access is denied' if we try to reuse the tag.
+                    self.shmtag = "pyqtgraph_shmem_" + ''.join([chr((random.getrandbits(20)%25) + 97) for i in range(20)])
+                    self.shm = mmap.mmap(-1, size, self.shmtag)
+                elif sys.platform == 'darwin':
+                    self.shm.close()
+                    self.shmFile.close()
+                    self.shmFile = tempfile.NamedTemporaryFile(prefix='pyqtgraph_shmem_')
+                    self.shmFile.write(b'\x00' * (size + 1))
+                    self.shmFile.flush()
+                    self.shm = mmap.mmap(self.shmFile.fileno(), size, mmap.MAP_SHARED, mmap.PROT_WRITE)
+                else:
+                    self.shm.resize(size)
+            
+            ## render the scene directly to shared memory
+            if USE_PYSIDE:
+                ch = ctypes.c_char.from_buffer(self.shm, 0)
+                #ch = ctypes.c_char_p(address)
+                self.img = QtGui.QImage(ch, self.width(), self.height(), QtGui.QImage.Format_ARGB32)
+            else:
+                address = ctypes.addressof(ctypes.c_char.from_buffer(self.shm, 0))
+
+                # different versions of pyqt have different requirements here..
+                try:
+                    self.img = QtGui.QImage(sip.voidptr(address), self.width(), self.height(), QtGui.QImage.Format_ARGB32)
+                except TypeError:
+                    try:
+                        self.img = QtGui.QImage(memoryview(buffer(self.shm)), self.width(), self.height(), QtGui.QImage.Format_ARGB32)
+                    except TypeError:
+                        # Works on PyQt 4.9.6
+                        self.img = QtGui.QImage(address, self.width(), self.height(), QtGui.QImage.Format_ARGB32)
+            self.img.fill(0xffffffff)
+            p = QtGui.QPainter(self.img)
+            self.render(p, self.viewRect(), self.rect())
+            p.end()
+            self.sceneRendered.emit((self.width(), self.height(), self.shm.size(), self.shmFileName()))
+
+    def mousePressEvent(self, typ, pos, gpos, btn, btns, mods):
+        typ = QtCore.QEvent.Type(typ)
+        btn = QtCore.Qt.MouseButton(btn)
+        btns = QtCore.Qt.MouseButtons(btns)
+        mods = QtCore.Qt.KeyboardModifiers(mods)
+        return GraphicsView.mousePressEvent(self, QtGui.QMouseEvent(typ, pos, gpos, btn, btns, mods))
+
+    def mouseMoveEvent(self, typ, pos, gpos, btn, btns, mods):
+        typ = QtCore.QEvent.Type(typ)
+        btn = QtCore.Qt.MouseButton(btn)
+        btns = QtCore.Qt.MouseButtons(btns)
+        mods = QtCore.Qt.KeyboardModifiers(mods)
+        return GraphicsView.mouseMoveEvent(self, QtGui.QMouseEvent(typ, pos, gpos, btn, btns, mods))
+
+    def mouseReleaseEvent(self, typ, pos, gpos, btn, btns, mods):
+        typ = QtCore.QEvent.Type(typ)
+        btn = QtCore.Qt.MouseButton(btn)
+        btns = QtCore.Qt.MouseButtons(btns)
+        mods = QtCore.Qt.KeyboardModifiers(mods)
+        return GraphicsView.mouseReleaseEvent(self, QtGui.QMouseEvent(typ, pos, gpos, btn, btns, mods))
+
+    def wheelEvent(self, pos, gpos, d, btns, mods, ori):
+        btns = QtCore.Qt.MouseButtons(btns)
+        mods = QtCore.Qt.KeyboardModifiers(mods)
+        ori = (None, QtCore.Qt.Horizontal, QtCore.Qt.Vertical)[ori]
+        return GraphicsView.wheelEvent(self, QtGui.QWheelEvent(pos, gpos, d, btns, mods, ori))
+
+    def keyEvent(self, typ, mods, text, autorep, count):
+        typ = QtCore.QEvent.Type(typ)
+        mods = QtCore.Qt.KeyboardModifiers(mods)
+        GraphicsView.keyEvent(self, QtGui.QKeyEvent(typ, mods, text, autorep, count))
+        return ev.accepted()
+        
+    def enterEvent(self, typ):
+        ev = QtCore.QEvent(QtCore.QEvent.Type(typ))
+        return GraphicsView.enterEvent(self, ev)
+
+    def leaveEvent(self, typ):
+        ev = QtCore.QEvent(QtCore.QEvent.Type(typ))
+        return GraphicsView.leaveEvent(self, ev)
+
diff --git a/libs/pyqtgraph/widgets/ScatterPlotWidget.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/ScatterPlotWidget.py
similarity index 100%
rename from libs/pyqtgraph/widgets/ScatterPlotWidget.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/ScatterPlotWidget.py
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/SpinBox.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/SpinBox.py
new file mode 100644
index 00000000..a863cd60
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/SpinBox.py
@@ -0,0 +1,500 @@
+# -*- coding: utf-8 -*-
+from ..Qt import QtGui, QtCore
+from ..python2_3 import asUnicode
+from ..SignalProxy import SignalProxy
+
+from .. import functions as fn
+from math import log
+from decimal import Decimal as D  ## Use decimal to avoid accumulating floating-point errors
+from decimal import *
+import weakref
+
+__all__ = ['SpinBox']
+class SpinBox(QtGui.QAbstractSpinBox):
+    """
+    **Bases:** QtGui.QAbstractSpinBox
+    
+    QSpinBox widget on steroids. Allows selection of numerical value, with extra features:
+    
+    - SI prefix notation (eg, automatically display "300 mV" instead of "0.003 V")
+    - Float values with linear and decimal stepping (1-9, 10-90, 100-900, etc.)
+    - Option for unbounded values
+    - Delayed signals (allows multiple rapid changes with only one change signal)
+    
+    =============================  ==============================================
+    **Signals:**
+    valueChanged(value)            Same as QSpinBox; emitted every time the value 
+                                   has changed.
+    sigValueChanged(self)          Emitted when value has changed, but also combines
+                                   multiple rapid changes into one signal (eg, 
+                                   when rolling the mouse wheel).
+    sigValueChanging(self, value)  Emitted immediately for all value changes.
+    =============================  ==============================================
+    """
+    
+    ## There's a PyQt bug that leaks a reference to the 
+    ## QLineEdit returned from QAbstractSpinBox.lineEdit()
+    ## This makes it possible to crash the entire program 
+    ## by making accesses to the LineEdit after the spinBox has been deleted.
+    ## I have no idea how to get around this..
+    
+    
+    valueChanged = QtCore.Signal(object)     # (value)  for compatibility with QSpinBox
+    sigValueChanged = QtCore.Signal(object)  # (self)
+    sigValueChanging = QtCore.Signal(object, object)  # (self, value)  sent immediately; no delay.
+    
+    def __init__(self, parent=None, value=0.0, **kwargs):
+        """
+        ============== ========================================================================
+        **Arguments:**
+        parent         Sets the parent widget for this SpinBox (optional). Default is None.
+        value          (float/int) initial value. Default is 0.0.
+        bounds         (min,max) Minimum and maximum values allowed in the SpinBox. 
+                       Either may be None to leave the value unbounded. By default, values are unbounded.
+        suffix         (str) suffix (units) to display after the numerical value. By default, suffix is an empty str.
+        siPrefix       (bool) If True, then an SI prefix is automatically prepended
+                       to the units and the value is scaled accordingly. For example,
+                       if value=0.003 and suffix='V', then the SpinBox will display
+                       "300 mV" (but a call to SpinBox.value will still return 0.003). Default is False.
+        step           (float) The size of a single step. This is used when clicking the up/
+                       down arrows, when rolling the mouse wheel, or when pressing 
+                       keyboard arrows while the widget has keyboard focus. Note that
+                       the interpretation of this value is different when specifying
+                       the 'dec' argument. Default is 0.01.
+        dec            (bool) If True, then the step value will be adjusted to match 
+                       the current size of the variable (for example, a value of 15
+                       might step in increments of 1 whereas a value of 1500 would
+                       step in increments of 100). In this case, the 'step' argument
+                       is interpreted *relative* to the current value. The most common
+                       'step' values when dec=True are 0.1, 0.2, 0.5, and 1.0. Default is False.
+        minStep        (float) When dec=True, this specifies the minimum allowable step size.
+        int            (bool) if True, the value is forced to integer type. Default is False
+        decimals       (int) Number of decimal values to display. Default is 2. 
+        ============== ========================================================================
+        """
+        QtGui.QAbstractSpinBox.__init__(self, parent)
+        self.lastValEmitted = None
+        self.lastText = ''
+        self.textValid = True  ## If false, we draw a red border
+        self.setMinimumWidth(0)
+        self.setMaximumHeight(20)
+        self.setSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
+        self.opts = {
+            'bounds': [None, None],
+            
+            ## Log scaling options   #### Log mode is no longer supported.
+            #'step': 0.1,
+            #'minStep': 0.001,
+            #'log': True,
+            #'dec': False,
+            
+            ## decimal scaling option - example
+            #'step': 0.1,    
+            #'minStep': .001,    
+            #'log': False,
+            #'dec': True,
+           
+            ## normal arithmetic step
+            'step': D('0.01'),  ## if 'dec' is false, the spinBox steps by 'step' every time
+                                ## if 'dec' is True, the step size is relative to the value
+                                ## 'step' needs to be an integral divisor of ten, ie 'step'*n=10 for some integer value of n (but only if dec is True)
+            'log': False,
+            'dec': False,   ## if true, does decimal stepping. ie from 1-10 it steps by 'step', from 10 to 100 it steps by 10*'step', etc. 
+                            ## if true, minStep must be set in order to cross zero.
+            
+            
+            'int': False, ## Set True to force value to be integer
+            
+            'suffix': '',
+            'siPrefix': False,   ## Set to True to display numbers with SI prefix (ie, 100pA instead of 1e-10A)
+            
+            'delay': 0.3, ## delay sending wheel update signals for 300ms
+            
+            'delayUntilEditFinished': True,   ## do not send signals until text editing has finished
+            
+            'decimals': 3,
+            
+        }
+        
+        self.decOpts = ['step', 'minStep']
+        
+        self.val = D(asUnicode(value))  ## Value is precise decimal. Ordinary math not allowed.
+        self.updateText()
+        self.skipValidate = False
+        self.setCorrectionMode(self.CorrectToPreviousValue)
+        self.setKeyboardTracking(False)
+        self.setOpts(**kwargs)
+        
+        self.editingFinished.connect(self.editingFinishedEvent)
+        self.proxy = SignalProxy(self.sigValueChanging, slot=self.delayedChange, delay=self.opts['delay'])
+        
+    def event(self, ev):
+        ret = QtGui.QAbstractSpinBox.event(self, ev)
+        if ev.type() == QtCore.QEvent.KeyPress and ev.key() == QtCore.Qt.Key_Return:
+            ret = True  ## For some reason, spinbox pretends to ignore return key press
+        return ret
+        
+    ##lots of config options, just gonna stuff 'em all in here rather than do the get/set crap.
+    def setOpts(self, **opts):
+        """
+        Changes the behavior of the SpinBox. Accepts most of the arguments 
+        allowed in :func:`__init__ <pyqtgraph.SpinBox.__init__>`.
+        
+        """
+        #print opts
+        for k in opts:
+            if k == 'bounds':
+                self.setMinimum(opts[k][0], update=False)
+                self.setMaximum(opts[k][1], update=False)
+            elif k == 'min':
+                self.setMinimum(opts[k], update=False)
+            elif k == 'max':
+                self.setMaximum(opts[k], update=False)
+            elif k in ['step', 'minStep']:
+                self.opts[k] = D(asUnicode(opts[k]))
+            elif k == 'value':
+                pass   ## don't set value until bounds have been set
+            elif k in self.opts:
+                self.opts[k] = opts[k]
+            else:
+                raise TypeError("Invalid keyword argument '%s'." % k)
+        if 'value' in opts:
+            self.setValue(opts['value'])
+            
+        ## If bounds have changed, update value to match
+        if 'bounds' in opts and 'value' not in opts:
+            self.setValue()   
+            
+        ## sanity checks:
+        if self.opts['int']:
+            if 'step' in opts:
+                step = opts['step']
+                ## not necessary..
+                #if int(step) != step:
+                    #raise Exception('Integer SpinBox must have integer step size.')
+            else:
+                self.opts['step'] = int(self.opts['step'])
+            
+            if 'minStep' in opts:
+                step = opts['minStep']
+                if int(step) != step:
+                    raise Exception('Integer SpinBox must have integer minStep size.')
+            else:
+                ms = int(self.opts.get('minStep', 1))
+                if ms < 1:
+                    ms = 1
+                self.opts['minStep'] = ms
+        
+        if 'delay' in opts:
+            self.proxy.setDelay(opts['delay'])
+        
+        self.updateText()
+
+    def setMaximum(self, m, update=True):
+        """Set the maximum allowed value (or None for no limit)"""
+        if m is not None:
+            m = D(asUnicode(m))
+        self.opts['bounds'][1] = m
+        if update:
+            self.setValue()
+    
+    def setMinimum(self, m, update=True):
+        """Set the minimum allowed value (or None for no limit)"""
+        if m is not None:
+            m = D(asUnicode(m))
+        self.opts['bounds'][0] = m
+        if update:
+            self.setValue()
+        
+    def setPrefix(self, p):
+        """Set a string prefix.
+        """
+        self.setOpts(prefix=p)
+    
+    def setRange(self, r0, r1):
+        """Set the upper and lower limits for values in the spinbox.
+        """
+        self.setOpts(bounds = [r0,r1])
+        
+    def setProperty(self, prop, val):
+        ## for QSpinBox compatibility
+        if prop == 'value':
+            #if type(val) is QtCore.QVariant:
+                #val = val.toDouble()[0]
+            self.setValue(val)
+        else:
+            print("Warning: SpinBox.setProperty('%s', ..) not supported." % prop)
+
+    def setSuffix(self, suf):
+        """Set the string suffix appended to the spinbox text.
+        """
+        self.setOpts(suffix=suf)
+
+    def setSingleStep(self, step):
+        """Set the step size used when responding to the mouse wheel, arrow
+        buttons, or arrow keys.
+        """
+        self.setOpts(step=step)
+        
+    def setDecimals(self, decimals):
+        """Set the number of decimals to be displayed when formatting numeric
+        values.
+        """
+        self.setOpts(decimals=decimals)
+        
+    def selectNumber(self):
+        """
+        Select the numerical portion of the text to allow quick editing by the user.
+        """
+        le = self.lineEdit()
+        text = asUnicode(le.text())
+        if self.opts['suffix'] == '':
+            le.setSelection(0, len(text))
+        else:
+            try:
+                index = text.index(' ')
+            except ValueError:
+                return
+            le.setSelection(0, index)
+
+    def value(self):
+        """
+        Return the value of this SpinBox.
+        
+        """
+        if self.opts['int']:
+            return int(self.val)
+        else:
+            return float(self.val)
+
+    def setValue(self, value=None, update=True, delaySignal=False):
+        """
+        Set the value of this spin. 
+        If the value is out of bounds, it will be clipped to the nearest boundary.
+        If the spin is integer type, the value will be coerced to int.
+        Returns the actual value set.
+        
+        If value is None, then the current value is used (this is for resetting
+        the value after bounds, etc. have changed)
+        """
+        
+        if value is None:
+            value = self.value()
+        
+        bounds = self.opts['bounds']
+        if bounds[0] is not None and value < bounds[0]:
+            value = bounds[0]
+        if bounds[1] is not None and value > bounds[1]:
+            value = bounds[1]
+
+        if self.opts['int']:
+            value = int(value)
+
+        value = D(asUnicode(value))
+        if value == self.val:
+            return
+        prev = self.val
+        
+        self.val = value
+        if update:
+            self.updateText(prev=prev)
+            
+        self.sigValueChanging.emit(self, float(self.val))  ## change will be emitted in 300ms if there are no subsequent changes.
+        if not delaySignal:
+            self.emitChanged()
+        
+        return value
+
+    
+    def emitChanged(self):
+        self.lastValEmitted = self.val
+        self.valueChanged.emit(float(self.val))
+        self.sigValueChanged.emit(self)
+    
+    def delayedChange(self):
+        try:
+            if self.val != self.lastValEmitted:
+                self.emitChanged()
+        except RuntimeError:
+            pass  ## This can happen if we try to handle a delayed signal after someone else has already deleted the underlying C++ object.
+    
+    def widgetGroupInterface(self):
+        return (self.valueChanged, SpinBox.value, SpinBox.setValue)
+    
+    def sizeHint(self):
+        return QtCore.QSize(120, 0)
+    
+    
+    def stepEnabled(self):
+        return self.StepUpEnabled | self.StepDownEnabled        
+    
+    #def fixup(self, *args):
+        #print "fixup:", args
+    
+    def stepBy(self, n):
+        n = D(int(n))   ## n must be integral number of steps.
+        s = [D(-1), D(1)][n >= 0]  ## determine sign of step
+        val = self.val
+        
+        for i in range(int(abs(n))):
+            
+            if self.opts['log']:
+                raise Exception("Log mode no longer supported.")
+            #    step = abs(val) * self.opts['step']
+            #    if 'minStep' in self.opts:
+            #        step = max(step, self.opts['minStep'])
+            #    val += step * s
+            if self.opts['dec']:
+                if val == 0:
+                    step = self.opts['minStep']
+                    exp = None
+                else:
+                    vs = [D(-1), D(1)][val >= 0]
+                    #exp = D(int(abs(val*(D('1.01')**(s*vs))).log10()))
+                    fudge = D('1.01')**(s*vs) ## fudge factor. at some places, the step size depends on the step sign.
+                    exp = abs(val * fudge).log10().quantize(1, ROUND_FLOOR)
+                    step = self.opts['step'] * D(10)**exp
+                if 'minStep' in self.opts:
+                    step = max(step, self.opts['minStep'])
+                val += s * step
+                #print "Exp:", exp, "step", step, "val", val
+            else:
+                val += s*self.opts['step']
+                
+            if 'minStep' in self.opts and abs(val) < self.opts['minStep']:
+                val = D(0)
+        self.setValue(val, delaySignal=True)  ## note all steps (arrow buttons, wheel, up/down keys..) emit delayed signals only.
+        
+
+    def valueInRange(self, value):
+        bounds = self.opts['bounds']
+        if bounds[0] is not None and value < bounds[0]:
+            return False
+        if bounds[1] is not None and value > bounds[1]:
+            return False
+        if self.opts.get('int', False):
+            if int(value) != value:
+                return False
+        return True
+
+    def updateText(self, prev=None):
+        # get the number of decimal places to print
+        decimals = self.opts.get('decimals')
+        
+        # temporarily disable validation
+        self.skipValidate = True
+
+        # add a prefix to the units if requested
+        if self.opts['siPrefix']:
+
+            # special case: if it's zero use the previous prefix
+            if self.val == 0 and prev is not None:
+                (s, p) = fn.siScale(prev)
+
+                # NOTE: insert optional format string here?
+                txt = ("%."+str(decimals)+"g %s%s") % (0, p, self.opts['suffix'])
+            else:
+                # NOTE: insert optional format string here as an argument?
+                txt = fn.siFormat(float(self.val), precision=decimals, suffix=self.opts['suffix'])
+
+        # otherwise, format the string manually
+        else:
+            # NOTE: insert optional format string here?
+            txt = ('%.'+str(decimals)+'g%s') % (self.val , self.opts['suffix'])
+
+        # actually set the text
+        self.lineEdit().setText(txt)
+        self.lastText = txt
+
+        # re-enable the validation
+        self.skipValidate = False
+    
+    def validate(self, strn, pos):
+        if self.skipValidate:
+            ret = QtGui.QValidator.Acceptable
+        else:
+            try:
+                ## first make sure we didn't mess with the suffix
+                suff = self.opts.get('suffix', '')
+                if len(suff) > 0 and asUnicode(strn)[-len(suff):] != suff:
+                    ret = QtGui.QValidator.Invalid
+                    
+                ## next see if we actually have an interpretable value
+                else:
+                    val = self.interpret()
+                    if val is False:
+                        ret = QtGui.QValidator.Intermediate
+                    else:
+                        if self.valueInRange(val):
+                            if not self.opts['delayUntilEditFinished']:
+                                self.setValue(val, update=False)
+                            ret = QtGui.QValidator.Acceptable
+                        else:
+                            ret = QtGui.QValidator.Intermediate
+                        
+            except:
+                ret = QtGui.QValidator.Intermediate
+            
+        ## draw / clear border
+        if ret == QtGui.QValidator.Intermediate:
+            self.textValid = False
+        elif ret == QtGui.QValidator.Acceptable:
+            self.textValid = True
+        ## note: if text is invalid, we don't change the textValid flag 
+        ## since the text will be forced to its previous state anyway
+        self.update()
+        
+        ## support 2 different pyqt APIs. Bleh.
+        if hasattr(QtCore, 'QString'):
+            return (ret, pos)
+        else:
+            return (ret, strn, pos)
+        
+    def paintEvent(self, ev):
+        QtGui.QAbstractSpinBox.paintEvent(self, ev)
+        
+        ## draw red border if text is invalid
+        if not self.textValid:
+            p = QtGui.QPainter(self)
+            p.setRenderHint(p.Antialiasing)
+            p.setPen(fn.mkPen((200,50,50), width=2))
+            p.drawRoundedRect(self.rect().adjusted(2, 2, -2, -2), 4, 4)
+            p.end()
+
+
+    def interpret(self):
+        """Return value of text. Return False if text is invalid, raise exception if text is intermediate"""
+        strn = self.lineEdit().text()
+        suf = self.opts['suffix']
+        if len(suf) > 0:
+            if strn[-len(suf):] != suf:
+                return False
+            #raise Exception("Units are invalid.")
+            strn = strn[:-len(suf)]
+        try:
+            val = fn.siEval(strn)
+        except:
+            #sys.excepthook(*sys.exc_info())
+            #print "invalid"
+            return False
+        #print val
+        return val
+        
+    def editingFinishedEvent(self):
+        """Edit has finished; set value."""
+        #print "Edit finished."
+        if asUnicode(self.lineEdit().text()) == self.lastText:
+            #print "no text change."
+            return
+        try:
+            val = self.interpret()
+        except:
+            return
+        
+        if val is False:
+            #print "value invalid:", str(self.lineEdit().text())
+            return
+        if val == self.val:
+            #print "no value change:", val, self.val
+            return
+        self.setValue(val, delaySignal=False)  ## allow text update so that values are reformatted pretty-like
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/TableWidget.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/TableWidget.py
new file mode 100644
index 00000000..57852864
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/TableWidget.py
@@ -0,0 +1,498 @@
+# -*- coding: utf-8 -*-
+import numpy as np
+from ..Qt import QtGui, QtCore
+from ..python2_3 import asUnicode, basestring
+from .. import metaarray
+
+
+__all__ = ['TableWidget']
+
+
+def _defersort(fn):
+    def defersort(self, *args, **kwds):
+        # may be called recursively; only the first call needs to block sorting
+        setSorting = False
+        if self._sorting is None:
+            self._sorting = self.isSortingEnabled()
+            setSorting = True
+            self.setSortingEnabled(False)
+        try:
+            return fn(self, *args, **kwds)
+        finally:
+            if setSorting:
+                self.setSortingEnabled(self._sorting)
+                self._sorting = None
+                
+    return defersort
+
+
+class TableWidget(QtGui.QTableWidget):
+    """Extends QTableWidget with some useful functions for automatic data handling
+    and copy / export context menu. Can automatically format and display a variety
+    of data types (see :func:`setData() <pyqtgraph.TableWidget.setData>` for more
+    information.
+    """
+    
+    def __init__(self, *args, **kwds):
+        """
+        All positional arguments are passed to QTableWidget.__init__().
+        
+        ===================== =================================================
+        **Keyword Arguments**
+        editable              (bool) If True, cells in the table can be edited
+                              by the user. Default is False.
+        sortable              (bool) If True, the table may be soted by
+                              clicking on column headers. Note that this also
+                              causes rows to appear initially shuffled until
+                              a sort column is selected. Default is True.
+                              *(added in version 0.9.9)*
+        ===================== =================================================
+        """
+        
+        QtGui.QTableWidget.__init__(self, *args)
+        
+        self.itemClass = TableWidgetItem
+        
+        self.setVerticalScrollMode(self.ScrollPerPixel)
+        self.setSelectionMode(QtGui.QAbstractItemView.ContiguousSelection)
+        self.setSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
+        self.clear()
+        
+        kwds.setdefault('sortable', True)
+        kwds.setdefault('editable', False)
+        self.setEditable(kwds.pop('editable'))
+        self.setSortingEnabled(kwds.pop('sortable'))
+        
+        if len(kwds) > 0:
+            raise TypeError("Invalid keyword arguments '%s'" % kwds.keys())
+        
+        self._sorting = None  # used when temporarily disabling sorting
+        
+        self._formats = {None: None} # stores per-column formats and entire table format
+        self.sortModes = {} # stores per-column sort mode
+        
+        self.itemChanged.connect(self.handleItemChanged)
+        
+        self.contextMenu = QtGui.QMenu()
+        self.contextMenu.addAction('Copy Selection').triggered.connect(self.copySel)
+        self.contextMenu.addAction('Copy All').triggered.connect(self.copyAll)
+        self.contextMenu.addAction('Save Selection').triggered.connect(self.saveSel)
+        self.contextMenu.addAction('Save All').triggered.connect(self.saveAll)
+        
+    def clear(self):
+        """Clear all contents from the table."""
+        QtGui.QTableWidget.clear(self)
+        self.verticalHeadersSet = False
+        self.horizontalHeadersSet = False
+        self.items = []
+        self.setRowCount(0)
+        self.setColumnCount(0)
+        self.sortModes = {}
+        
+    def setData(self, data):
+        """Set the data displayed in the table.
+        Allowed formats are:
+        
+        * numpy arrays
+        * numpy record arrays 
+        * metaarrays
+        * list-of-lists  [[1,2,3], [4,5,6]]
+        * dict-of-lists  {'x': [1,2,3], 'y': [4,5,6]}
+        * list-of-dicts  [{'x': 1, 'y': 4}, {'x': 2, 'y': 5}, ...]
+        """
+        self.clear()
+        self.appendData(data)
+        self.resizeColumnsToContents()
+        
+    @_defersort
+    def appendData(self, data):
+        """
+        Add new rows to the table.
+        
+        See :func:`setData() <pyqtgraph.TableWidget.setData>` for accepted
+        data types.
+        """
+        startRow = self.rowCount()
+        
+        fn0, header0 = self.iteratorFn(data)
+        if fn0 is None:
+            self.clear()
+            return
+        it0 = fn0(data)
+        try:
+            first = next(it0)
+        except StopIteration:
+            return
+        fn1, header1 = self.iteratorFn(first)
+        if fn1 is None:
+            self.clear()
+            return
+        
+        firstVals = [x for x in fn1(first)]
+        self.setColumnCount(len(firstVals))
+        
+        if not self.verticalHeadersSet and header0 is not None:
+            labels = [self.verticalHeaderItem(i).text() for i in range(self.rowCount())]
+            self.setRowCount(startRow + len(header0))
+            self.setVerticalHeaderLabels(labels + header0)
+            self.verticalHeadersSet = True
+        if not self.horizontalHeadersSet and header1 is not None:
+            self.setHorizontalHeaderLabels(header1)
+            self.horizontalHeadersSet = True
+        
+        i = startRow
+        self.setRow(i, firstVals)
+        for row in it0:
+            i += 1
+            self.setRow(i, [x for x in fn1(row)])
+            
+        if self._sorting and self.horizontalHeader().sortIndicatorSection() >= self.columnCount():
+            self.sortByColumn(0, QtCore.Qt.AscendingOrder)
+    
+    def setEditable(self, editable=True):
+        self.editable = editable
+        for item in self.items:
+            item.setEditable(editable)
+    
+    def setFormat(self, format, column=None):
+        """
+        Specify the default text formatting for the entire table, or for a
+        single column if *column* is specified.
+        
+        If a string is specified, it is used as a format string for converting
+        float values (and all other types are converted using str). If a 
+        function is specified, it will be called with the item as its only
+        argument and must return a string. Setting format = None causes the 
+        default formatter to be used instead.
+        
+        Added in version 0.9.9.
+        
+        """
+        if format is not None and not isinstance(format, basestring) and not callable(format):
+            raise ValueError("Format argument must string, callable, or None. (got %s)" % format)
+        
+        self._formats[column] = format
+        
+        
+        if column is None:
+            # update format of all items that do not have a column format 
+            # specified
+            for c in range(self.columnCount()):
+                if self._formats.get(c, None) is None:
+                    for r in range(self.rowCount()):
+                        item = self.item(r, c)
+                        if item is None:
+                            continue
+                        item.setFormat(format)
+        else:
+            # set all items in the column to use this format, or the default 
+            # table format if None was specified.
+            if format is None:
+                format = self._formats[None]
+            for r in range(self.rowCount()):
+                item = self.item(r, column)
+                if item is None:
+                    continue
+                item.setFormat(format)
+        
+    
+    def iteratorFn(self, data):
+        ## Return 1) a function that will provide an iterator for data and 2) a list of header strings
+        if isinstance(data, list) or isinstance(data, tuple):
+            return lambda d: d.__iter__(), None
+        elif isinstance(data, dict):
+            return lambda d: iter(d.values()), list(map(asUnicode, data.keys()))
+        elif (hasattr(data, 'implements') and data.implements('MetaArray')):
+            if data.axisHasColumns(0):
+                header = [asUnicode(data.columnName(0, i)) for i in range(data.shape[0])]
+            elif data.axisHasValues(0):
+                header = list(map(asUnicode, data.xvals(0)))
+            else:
+                header = None
+            return self.iterFirstAxis, header
+        elif isinstance(data, np.ndarray):
+            return self.iterFirstAxis, None
+        elif isinstance(data, np.void):
+            return self.iterate, list(map(asUnicode, data.dtype.names))
+        elif data is None:
+            return (None,None)
+        else:
+            msg = "Don't know how to iterate over data type: {!s}".format(type(data))
+            raise TypeError(msg)
+        
+    def iterFirstAxis(self, data):
+        for i in range(data.shape[0]):
+            yield data[i]
+            
+    def iterate(self, data):
+        # for numpy.void, which can be iterated but mysteriously 
+        # has no __iter__ (??)
+        for x in data:
+            yield x
+        
+    def appendRow(self, data):
+        self.appendData([data])
+        
+    @_defersort
+    def addRow(self, vals):
+        row = self.rowCount()
+        self.setRowCount(row + 1)
+        self.setRow(row, vals)
+        
+    @_defersort
+    def setRow(self, row, vals):
+        if row > self.rowCount() - 1:
+            self.setRowCount(row + 1)
+        for col in range(len(vals)):
+            val = vals[col]
+            item = self.itemClass(val, row)
+            item.setEditable(self.editable)
+            sortMode = self.sortModes.get(col, None)
+            if sortMode is not None:
+                item.setSortMode(sortMode)
+            format = self._formats.get(col, self._formats[None])
+            item.setFormat(format)
+            self.items.append(item)
+            self.setItem(row, col, item)
+            item.setValue(val)  # Required--the text-change callback is invoked
+                                # when we call setItem.
+
+    def setSortMode(self, column, mode):
+        """
+        Set the mode used to sort *column*.
+        
+        ============== ========================================================
+        **Sort Modes**
+        value          Compares item.value if available; falls back to text
+                       comparison.
+        text           Compares item.text()
+        index          Compares by the order in which items were inserted.
+        ============== ========================================================
+        
+        Added in version 0.9.9
+        """
+        for r in range(self.rowCount()):
+            item = self.item(r, column)
+            if hasattr(item, 'setSortMode'):
+                item.setSortMode(mode)
+        self.sortModes[column] = mode
+        
+    def sizeHint(self):
+        # based on http://stackoverflow.com/a/7195443/54056
+        width = sum(self.columnWidth(i) for i in range(self.columnCount()))
+        width += self.verticalHeader().sizeHint().width()
+        width += self.verticalScrollBar().sizeHint().width()
+        width += self.frameWidth() * 2
+        height = sum(self.rowHeight(i) for i in range(self.rowCount()))
+        height += self.verticalHeader().sizeHint().height()
+        height += self.horizontalScrollBar().sizeHint().height()
+        return QtCore.QSize(width, height)
+         
+    def serialize(self, useSelection=False):
+        """Convert entire table (or just selected area) into tab-separated text values"""
+        if useSelection:
+            selection = self.selectedRanges()[0]
+            rows = list(range(selection.topRow(),
+                              selection.bottomRow() + 1))
+            columns = list(range(selection.leftColumn(),
+                                 selection.rightColumn() + 1))        
+        else:
+            rows = list(range(self.rowCount()))
+            columns = list(range(self.columnCount()))
+
+        data = []
+        if self.horizontalHeadersSet:
+            row = []
+            if self.verticalHeadersSet:
+                row.append(asUnicode(''))
+            
+            for c in columns:
+                row.append(asUnicode(self.horizontalHeaderItem(c).text()))
+            data.append(row)
+        
+        for r in rows:
+            row = []
+            if self.verticalHeadersSet:
+                row.append(asUnicode(self.verticalHeaderItem(r).text()))
+            for c in columns:
+                item = self.item(r, c)
+                if item is not None:
+                    row.append(asUnicode(item.value))
+                else:
+                    row.append(asUnicode(''))
+            data.append(row)
+            
+        s = ''
+        for row in data:
+            s += ('\t'.join(row) + '\n')
+        return s
+
+    def copySel(self):
+        """Copy selected data to clipboard."""
+        QtGui.QApplication.clipboard().setText(self.serialize(useSelection=True))
+
+    def copyAll(self):
+        """Copy all data to clipboard."""
+        QtGui.QApplication.clipboard().setText(self.serialize(useSelection=False))
+
+    def saveSel(self):
+        """Save selected data to file."""
+        self.save(self.serialize(useSelection=True))
+
+    def saveAll(self):
+        """Save all data to file."""
+        self.save(self.serialize(useSelection=False))
+
+    def save(self, data):
+        fileName = QtGui.QFileDialog.getSaveFileName(self, "Save As..", "", "Tab-separated values (*.tsv)")
+        if fileName == '':
+            return
+        open(fileName, 'w').write(data)
+
+    def contextMenuEvent(self, ev):
+        self.contextMenu.popup(ev.globalPos())
+        
+    def keyPressEvent(self, ev):
+        if ev.key() == QtCore.Qt.Key_C and ev.modifiers() == QtCore.Qt.ControlModifier:
+            ev.accept()
+            self.copySel()
+        else:
+            QtGui.QTableWidget.keyPressEvent(self, ev)
+
+    def handleItemChanged(self, item):
+        item.itemChanged()
+
+
+class TableWidgetItem(QtGui.QTableWidgetItem):
+    def __init__(self, val, index, format=None):
+        QtGui.QTableWidgetItem.__init__(self, '')
+        self._blockValueChange = False
+        self._format = None
+        self._defaultFormat = '%0.3g'
+        self.sortMode = 'value'
+        self.index = index
+        flags = QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEnabled
+        self.setFlags(flags)
+        self.setValue(val)
+        self.setFormat(format)
+        
+    def setEditable(self, editable):
+        """
+        Set whether this item is user-editable.
+        """
+        if editable:
+            self.setFlags(self.flags() | QtCore.Qt.ItemIsEditable)
+        else:
+            self.setFlags(self.flags() & ~QtCore.Qt.ItemIsEditable)
+            
+    def setSortMode(self, mode):
+        """
+        Set the mode used to sort this item against others in its column.
+        
+        ============== ========================================================
+        **Sort Modes**
+        value          Compares item.value if available; falls back to text
+                       comparison.
+        text           Compares item.text()
+        index          Compares by the order in which items were inserted.
+        ============== ========================================================
+        """
+        modes = ('value', 'text', 'index', None)
+        if mode not in modes:
+            raise ValueError('Sort mode must be one of %s' % str(modes))
+        self.sortMode = mode
+        
+    def setFormat(self, fmt):
+        """Define the conversion from item value to displayed text. 
+        
+        If a string is specified, it is used as a format string for converting
+        float values (and all other types are converted using str). If a 
+        function is specified, it will be called with the item as its only
+        argument and must return a string.
+        
+        Added in version 0.9.9.
+        """
+        if fmt is not None and not isinstance(fmt, basestring) and not callable(fmt):
+            raise ValueError("Format argument must string, callable, or None. (got %s)" % fmt)
+        self._format = fmt
+        self._updateText()
+        
+    def _updateText(self):
+        self._blockValueChange = True
+        try:
+            self._text = self.format()
+            self.setText(self._text)
+        finally:
+            self._blockValueChange = False
+
+    def setValue(self, value):
+        self.value = value
+        self._updateText()
+
+    def itemChanged(self):
+        """Called when the data of this item has changed."""
+        if self.text() != self._text:
+            self.textChanged()
+
+    def textChanged(self):
+        """Called when this item's text has changed for any reason."""
+        self._text = self.text()
+
+        if self._blockValueChange:
+            # text change was result of value or format change; do not
+            # propagate.
+            return
+        
+        try:
+
+            self.value = type(self.value)(self.text())
+        except ValueError:
+            self.value = str(self.text())
+
+    def format(self):
+        if callable(self._format):
+            return self._format(self)
+        if isinstance(self.value, (float, np.floating)):
+            if self._format is None:
+                return self._defaultFormat % self.value
+            else:
+                return self._format % self.value
+        else:
+            return asUnicode(self.value)
+
+    def __lt__(self, other):
+        if self.sortMode == 'index' and hasattr(other, 'index'):
+            return self.index < other.index
+        if self.sortMode == 'value' and hasattr(other, 'value'):
+            return self.value < other.value
+        else:
+            return self.text() < other.text()
+
+
+if __name__ == '__main__':
+    app = QtGui.QApplication([])
+    win = QtGui.QMainWindow()
+    t = TableWidget()
+    win.setCentralWidget(t)
+    win.resize(800,600)
+    win.show()
+    
+    ll = [[1,2,3,4,5]] * 20
+    ld = [{'x': 1, 'y': 2, 'z': 3}] * 20
+    dl = {'x': list(range(20)), 'y': list(range(20)), 'z': list(range(20))}
+    
+    a = np.ones((20, 5))
+    ra = np.ones((20,), dtype=[('x', int), ('y', int), ('z', int)])
+    
+    t.setData(ll)
+    
+    ma = metaarray.MetaArray(np.ones((20, 3)), info=[
+        {'values': np.linspace(1, 5, 20)}, 
+        {'cols': [
+            {'name': 'x'},
+            {'name': 'y'},
+            {'name': 'z'},
+        ]}
+    ])
+    t.setData(ma)
+    
diff --git a/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/TreeWidget.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/TreeWidget.py
new file mode 100644
index 00000000..b98da6fa
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/TreeWidget.py
@@ -0,0 +1,288 @@
+# -*- coding: utf-8 -*-
+from weakref import *
+from ..Qt import QtGui, QtCore
+from ..python2_3 import xrange
+
+
+__all__ = ['TreeWidget', 'TreeWidgetItem']
+
+
+class TreeWidget(QtGui.QTreeWidget):
+    """Extends QTreeWidget to allow internal drag/drop with widgets in the tree.
+    Also maintains the expanded state of subtrees as they are moved.
+    This class demonstrates the absurd lengths one must go to to make drag/drop work."""
+    
+    sigItemMoved = QtCore.Signal(object, object, object) # (item, parent, index)
+    
+    def __init__(self, parent=None):
+        QtGui.QTreeWidget.__init__(self, parent)
+        #self.itemWidgets = WeakKeyDictionary()
+        self.setAcceptDrops(True)
+        self.setDragEnabled(True)
+        self.setEditTriggers(QtGui.QAbstractItemView.EditKeyPressed|QtGui.QAbstractItemView.SelectedClicked)
+        self.placeholders = []
+        self.childNestingLimit = None
+
+    def setItemWidget(self, item, col, wid):
+        """
+        Overrides QTreeWidget.setItemWidget such that widgets are added inside an invisible wrapper widget.
+        This makes it possible to move the item in and out of the tree without its widgets being automatically deleted.
+        """
+        w = QtGui.QWidget()  ## foster parent / surrogate child widget
+        l = QtGui.QVBoxLayout()
+        l.setContentsMargins(0,0,0,0)
+        w.setLayout(l)
+        w.setSizePolicy(wid.sizePolicy())
+        w.setMinimumHeight(wid.minimumHeight())
+        w.setMinimumWidth(wid.minimumWidth())
+        l.addWidget(wid)
+        w.realChild = wid
+        self.placeholders.append(w)
+        QtGui.QTreeWidget.setItemWidget(self, item, col, w)
+
+    def itemWidget(self, item, col):
+        w = QtGui.QTreeWidget.itemWidget(self, item, col)
+        if w is not None:
+            w = w.realChild
+        return w
+
+    def dropMimeData(self, parent, index, data, action):
+        item = self.currentItem()
+        p = parent
+        #print "drop", item, "->", parent, index
+        while True:
+            if p is None:
+                break
+            if p is item:
+                return False
+                #raise Exception("Can not move item into itself.")
+            p = p.parent()
+        
+        if not self.itemMoving(item, parent, index):
+            return False
+        
+        currentParent = item.parent()
+        if currentParent is None:
+            currentParent = self.invisibleRootItem()
+        if parent is None:
+            parent = self.invisibleRootItem()
+            
+        if currentParent is parent and index > parent.indexOfChild(item):
+            index -= 1
+            
+        self.prepareMove(item)
+            
+        currentParent.removeChild(item)
+        #print "  insert child to index", index
+        parent.insertChild(index, item)  ## index will not be correct
+        self.setCurrentItem(item)
+        
+        self.recoverMove(item)
+        #self.emit(QtCore.SIGNAL('itemMoved'), item, parent, index)
+        self.sigItemMoved.emit(item, parent, index)
+        return True
+
+    def itemMoving(self, item, parent, index):
+        """Called when item has been dropped elsewhere in the tree.
+        Return True to accept the move, False to reject."""
+        return True
+        
+    def prepareMove(self, item):
+        item.__widgets = []
+        item.__expanded = item.isExpanded()
+        for i in range(self.columnCount()):
+            w = self.itemWidget(item, i)
+            item.__widgets.append(w)
+            if w is None:
+                continue
+            w.setParent(None)
+        for i in range(item.childCount()):
+            self.prepareMove(item.child(i))
+        
+    def recoverMove(self, item):
+        for i in range(self.columnCount()):
+            w = item.__widgets[i]
+            if w is None:
+                continue
+            self.setItemWidget(item, i, w)
+        for i in range(item.childCount()):
+            self.recoverMove(item.child(i))
+        
+        item.setExpanded(False)  ## Items do not re-expand correctly unless they are collapsed first.
+        QtGui.QApplication.instance().processEvents()
+        item.setExpanded(item.__expanded)
+        
+    def collapseTree(self, item):
+        item.setExpanded(False)
+        for i in range(item.childCount()):
+            self.collapseTree(item.child(i))
+            
+    def removeTopLevelItem(self, item):
+        for i in range(self.topLevelItemCount()):
+            if self.topLevelItem(i) is item:
+                self.takeTopLevelItem(i)
+                return
+        raise Exception("Item '%s' not in top-level items." % str(item))
+    
+    def listAllItems(self, item=None):
+        items = []
+        if item != None:
+            items.append(item)
+        else:
+            item = self.invisibleRootItem()
+        
+        for cindex in range(item.childCount()):
+            foundItems = self.listAllItems(item=item.child(cindex))
+            for f in foundItems:
+                items.append(f)
+        return items
+            
+    def dropEvent(self, ev):
+        QtGui.QTreeWidget.dropEvent(self, ev)
+        self.updateDropFlags()
+
+    
+    def updateDropFlags(self):
+        ### intended to put a limit on how deep nests of children can go.
+        ### self.childNestingLimit is upheld when moving items without children, but if the item being moved has children/grandchildren, the children/grandchildren
+        ### can end up over the childNestingLimit. 
+        if self.childNestingLimit == None:
+            pass # enable drops in all items (but only if there are drops that aren't enabled? for performance...)
+        else:
+            items = self.listAllItems()
+            for item in items:
+                parentCount = 0
+                p = item.parent()
+                while p is not None:
+                    parentCount += 1
+                    p = p.parent()
+                if parentCount >= self.childNestingLimit:
+                    item.setFlags(item.flags() & (~QtCore.Qt.ItemIsDropEnabled))
+                else:
+                    item.setFlags(item.flags() | QtCore.Qt.ItemIsDropEnabled)
+
+    @staticmethod
+    def informTreeWidgetChange(item):
+        if hasattr(item, 'treeWidgetChanged'):
+            item.treeWidgetChanged()
+        else:
+            for i in xrange(item.childCount()):
+                TreeWidget.informTreeWidgetChange(item.child(i))
+        
+        
+    def addTopLevelItem(self, item):
+        QtGui.QTreeWidget.addTopLevelItem(self, item)
+        self.informTreeWidgetChange(item)
+
+    def addTopLevelItems(self, items):
+        QtGui.QTreeWidget.addTopLevelItems(self, items)
+        for item in items:
+            self.informTreeWidgetChange(item)
+            
+    def insertTopLevelItem(self, index, item):
+        QtGui.QTreeWidget.insertTopLevelItem(self, index, item)
+        self.informTreeWidgetChange(item)
+
+    def insertTopLevelItems(self, index, items):
+        QtGui.QTreeWidget.insertTopLevelItems(self, index, items)
+        for item in items:
+            self.informTreeWidgetChange(item)
+            
+    def takeTopLevelItem(self, index):
+        item = self.topLevelItem(index)
+        if item is not None:
+            self.prepareMove(item)
+        item = QtGui.QTreeWidget.takeTopLevelItem(self, index)
+        self.prepareMove(item)
+        self.informTreeWidgetChange(item)
+        return item
+
+    def topLevelItems(self):
+        return map(self.topLevelItem, xrange(self.topLevelItemCount()))
+        
+    def clear(self):
+        items = self.topLevelItems()
+        for item in items:
+            self.prepareMove(item)
+        QtGui.QTreeWidget.clear(self)
+        
+        ## Why do we want to do this? It causes RuntimeErrors. 
+        #for item in items:
+            #self.informTreeWidgetChange(item)
+        
+            
+class TreeWidgetItem(QtGui.QTreeWidgetItem):
+    """
+    TreeWidgetItem that keeps track of its own widgets.
+    Widgets may be added to columns before the item is added to a tree.
+    """
+    def __init__(self, *args):
+        QtGui.QTreeWidgetItem.__init__(self, *args)
+        self._widgets = {}  # col: widget
+        self._tree = None
+        
+        
+    def setChecked(self, column, checked):
+        self.setCheckState(column, QtCore.Qt.Checked if checked else QtCore.Qt.Unchecked)
+        
+    def setWidget(self, column, widget):
+        if column in self._widgets:
+            self.removeWidget(column)
+        self._widgets[column] = widget
+        tree = self.treeWidget()
+        if tree is None:
+            return
+        else:
+            tree.setItemWidget(self, column, widget)
+            
+    def removeWidget(self, column):
+        del self._widgets[column]
+        tree = self.treeWidget()
+        if tree is None:
+            return
+        tree.removeItemWidget(self, column)
+            
+    def treeWidgetChanged(self):
+        tree = self.treeWidget()
+        if self._tree is tree:
+            return
+        self._tree = self.treeWidget()
+        if tree is None:
+            return
+        for col, widget in self._widgets.items():
+            tree.setItemWidget(self, col, widget)
+            
+    def addChild(self, child):
+        QtGui.QTreeWidgetItem.addChild(self, child)
+        TreeWidget.informTreeWidgetChange(child)
+            
+    def addChildren(self, childs):
+        QtGui.QTreeWidgetItem.addChildren(self, childs)
+        for child in childs:
+            TreeWidget.informTreeWidgetChange(child)
+
+    def insertChild(self, index, child):
+        QtGui.QTreeWidgetItem.insertChild(self, index, child)
+        TreeWidget.informTreeWidgetChange(child)
+    
+    def insertChildren(self, index, childs):
+        QtGui.QTreeWidgetItem.addChildren(self, index, childs)
+        for child in childs:
+            TreeWidget.informTreeWidgetChange(child)
+    
+    def removeChild(self, child):
+        QtGui.QTreeWidgetItem.removeChild(self, child)
+        TreeWidget.informTreeWidgetChange(child)
+            
+    def takeChild(self, index):
+        child = QtGui.QTreeWidgetItem.takeChild(self, index)
+        TreeWidget.informTreeWidgetChange(child)
+        return child
+    
+    def takeChildren(self):
+        childs = QtGui.QTreeWidgetItem.takeChildren(self)
+        for child in childs:
+            TreeWidget.informTreeWidgetChange(child)
+        return childs
+        
+        
diff --git a/libs/pyqtgraph/widgets/ValueLabel.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/ValueLabel.py
similarity index 100%
rename from libs/pyqtgraph/widgets/ValueLabel.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/ValueLabel.py
diff --git a/libs/pyqtgraph/widgets/VerticalLabel.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/VerticalLabel.py
similarity index 100%
rename from libs/pyqtgraph/widgets/VerticalLabel.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/VerticalLabel.py
diff --git a/libs/pyqtgraph/widgets/__init__.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/__init__.py
similarity index 100%
rename from libs/pyqtgraph/widgets/__init__.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/__init__.py
diff --git a/libs/pyqtgraph/widgets/tests/test_combobox.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/tests/test_combobox.py
similarity index 100%
rename from libs/pyqtgraph/widgets/tests/test_combobox.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/tests/test_combobox.py
diff --git a/libs/pyqtgraph/widgets/tests/test_tablewidget.py b/site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/tests/test_tablewidget.py
similarity index 100%
rename from libs/pyqtgraph/widgets/tests/test_tablewidget.py
rename to site-packages/pyqtgraph-0.10.0/pyqtgraph/widgets/tests/test_tablewidget.py
diff --git a/site-packages/pyqtgraph-0.10.0/setup.py b/site-packages/pyqtgraph-0.10.0/setup.py
new file mode 100644
index 00000000..a59f7dd5
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/setup.py
@@ -0,0 +1,148 @@
+DESCRIPTION = """\
+PyQtGraph is a pure-python graphics and GUI library built on PyQt4/PySide and
+numpy. 
+
+It is intended for use in mathematics / scientific / engineering applications.
+Despite being written entirely in python, the library is very fast due to its
+heavy leverage of numpy for number crunching, Qt's GraphicsView framework for
+2D display, and OpenGL for 3D display.
+"""
+
+setupOpts = dict(
+    name='pyqtgraph',
+    description='Scientific Graphics and GUI Library for Python',
+    long_description=DESCRIPTION,
+    license='MIT',
+    url='http://www.pyqtgraph.org',
+    author='Luke Campagnola',
+    author_email='luke.campagnola@gmail.com',
+    classifiers = [
+        "Programming Language :: Python",
+        "Programming Language :: Python :: 2",
+        "Programming Language :: Python :: 2.6",
+        "Programming Language :: Python :: 2.7",
+        "Programming Language :: Python :: 3",
+        "Development Status :: 4 - Beta",
+        "Environment :: Other Environment",
+        "Intended Audience :: Science/Research",
+        "License :: OSI Approved :: MIT License",
+        "Operating System :: OS Independent",
+        "Topic :: Software Development :: Libraries :: Python Modules",
+        "Topic :: Scientific/Engineering :: Visualization",
+        "Topic :: Software Development :: User Interfaces",
+        ],
+)
+
+
+import distutils.dir_util
+from distutils.command import build
+import os, sys, re
+try:
+    import setuptools
+    from setuptools import setup
+    from setuptools.command import install
+except ImportError:
+    sys.stderr.write("Warning: could not import setuptools; falling back to distutils.\n")
+    from distutils.core import setup
+    from distutils.command import install
+
+
+# Work around mbcs bug in distutils.
+# http://bugs.python.org/issue10945
+import codecs
+try:
+    codecs.lookup('mbcs')
+except LookupError:
+    ascii = codecs.lookup('ascii')
+    func = lambda name, enc=ascii: {True: enc}.get(name=='mbcs')
+    codecs.register(func)
+
+
+path = os.path.split(__file__)[0]
+sys.path.insert(0, os.path.join(path, 'tools'))
+import setupHelpers as helpers
+
+## generate list of all sub-packages
+allPackages = (helpers.listAllPackages(pkgroot='pyqtgraph') + 
+               ['pyqtgraph.'+x for x in helpers.listAllPackages(pkgroot='examples')])
+
+## Decide what version string to use in the build
+version, forcedVersion, gitVersion, initVersion = helpers.getVersionStrings(pkg='pyqtgraph')
+
+
+
+class Build(build.build):
+    """
+    * Clear build path before building
+    """
+    def run(self):
+        global path
+
+        ## Make sure build directory is clean
+        buildPath = os.path.join(path, self.build_lib)
+        if os.path.isdir(buildPath):
+            distutils.dir_util.remove_tree(buildPath)
+    
+        ret = build.build.run(self)
+        
+
+class Install(install.install):
+    """
+    * Check for previously-installed version before installing
+    * Set version string in __init__ after building. This helps to ensure that we
+      know when an installation came from a non-release code base.
+    """
+    def run(self):
+        global path, version, initVersion, forcedVersion, installVersion
+        
+        name = self.config_vars['dist_name']
+        path = os.path.join(self.install_libbase, 'pyqtgraph')
+        if os.path.exists(path):
+            raise Exception("It appears another version of %s is already "
+                            "installed at %s; remove this before installing." 
+                            % (name, path))
+        print("Installing to %s" % path)
+        rval = install.install.run(self)
+
+        
+        # If the version in __init__ is different from the automatically-generated
+        # version string, then we will update __init__ in the install directory
+        if initVersion == version:
+            return rval
+        
+        try:
+            initfile = os.path.join(path, '__init__.py')
+            data = open(initfile, 'r').read()
+            open(initfile, 'w').write(re.sub(r"__version__ = .*", "__version__ = '%s'" % version, data))
+            installVersion = version
+        except:
+            sys.stderr.write("Warning: Error occurred while setting version string in build path. "
+                             "Installation will use the original version string "
+                             "%s instead.\n" % (initVersion)
+                             )
+            if forcedVersion:
+                raise
+            installVersion = initVersion
+            sys.excepthook(*sys.exc_info())
+    
+        return rval
+
+
+setup(
+    version=version,
+    cmdclass={'build': Build, 
+              'install': Install,
+              'deb': helpers.DebCommand, 
+              'test': helpers.TestCommand,
+              'debug': helpers.DebugCommand,
+              'mergetest': helpers.MergeTestCommand,
+              'style': helpers.StyleCommand},
+    packages=allPackages,
+    package_dir={'pyqtgraph.examples': 'examples'},  ## install examples along with the rest of the source
+    package_data={'pyqtgraph.examples': ['optics/*.gz', 'relativity/presets/*.cfg']},
+    install_requires = [
+        'numpy',
+        ],
+    **setupOpts
+)
+
diff --git a/site-packages/pyqtgraph-0.10.0/tools/generateChangelog.py b/site-packages/pyqtgraph-0.10.0/tools/generateChangelog.py
new file mode 100644
index 00000000..3dcd692d
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/tools/generateChangelog.py
@@ -0,0 +1,80 @@
+import re, time, sys
+
+
+def generateDebianChangelog(package, logFile, version, maintainer):
+    """
+    ------- Convert CHANGELOG format like:
+    pyqtgraph-0.9.1  2012-12-29
+
+    - change
+    - change
+
+
+    -------- to debian changelog format:
+    python-pyqtgraph (0.9.1-1) UNRELEASED; urgency=low
+
+    * Initial release.
+
+    -- Luke <luke.campagnola@gmail.com>  Sat, 29 Dec 2012 01:07:23 -0500
+    
+    
+    *package* is the name of the python package.
+    *logFile* is the CHANGELOG file to read; must have the format described above.
+    *version* will be used to check that the most recent log entry corresponds
+              to the current package version.
+    *maintainer* should be string like "Luke <luke.campagnola@gmail.com>".
+    """
+    releases = []
+    current_version = None
+    current_log = None
+    current_date = None
+    for line in open(logFile).readlines():
+        match = re.match(package+r'-(\d+\.\d+\.\d+(\.\d+)?)\s*(\d+-\d+-\d+)\s*$', line)
+        if match is None:
+            if current_log is not None:
+                current_log.append(line)
+        else:
+            if current_log is not None:
+                releases.append((current_version, current_log, current_date))
+            current_version, current_date = match.groups()[0], match.groups()[2]
+            #sys.stderr.write("Found release %s\n" % current_version)
+            current_log = []
+
+    if releases[0][0] != version:
+        raise Exception("Latest release in changelog (%s) does not match current release (%s)\n" % (releases[0][0],  version))
+    
+    output = []
+    for release, changes, date in releases:
+        date = time.strptime(date, '%Y-%m-%d')
+        changeset = [ 
+            "python-%s (%s-1) UNRELEASED; urgency=low\n" % (package, release),
+            "\n"] + changes + [
+            " -- %s  %s -0%d00\n"  % (maintainer, time.strftime('%a, %d %b %Y %H:%M:%S', date), time.timezone/3600),
+            "\n" ]
+
+        # remove consecutive blank lines except between releases
+        clean = ""
+        lastBlank = True
+        for line in changeset:
+            if line.strip() == '':
+                if lastBlank:
+                    continue
+                else:
+                    clean += line
+                lastBlank = True
+            else:
+                clean += line
+                lastBlank = False
+                
+        output.append(clean)
+        output.append("")
+    return "\n".join(output) + "\n"
+
+
+if __name__ == '__main__':
+    if len(sys.argv) < 5:
+        sys.stderr.write('Usage: generateChangelog.py package_name log_file version "Maintainer <maint@email.com>"\n')
+        sys.exit(-1)
+    
+    print(generateDebianChangelog(*sys.argv[1:]))
+
diff --git a/site-packages/pyqtgraph-0.10.0/tools/pg-release.py b/site-packages/pyqtgraph-0.10.0/tools/pg-release.py
new file mode 100644
index 00000000..ac32b199
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/tools/pg-release.py
@@ -0,0 +1,252 @@
+#!/usr/bin/python
+import os, sys, argparse, random
+from shell import shell, ssh
+
+
+
+description="Build release packages for pyqtgraph."
+
+epilog = """
+Package build is done in several steps:
+
+    * Attempt to clone branch release-x.y.z from source-repo
+    * Merge release branch into master
+    * Write new version numbers into the source
+    * Roll over unreleased CHANGELOG entries
+    * Commit and tag new release
+    * Build HTML documentation
+    * Build source package
+    * Build deb packages (if running on Linux)
+    * Build Windows exe installers
+
+Release packages may be published by using the --publish flag:
+
+    * Uploads release files to website
+    * Pushes tagged git commit to github
+    * Uploads source package to pypi
+
+Building source packages requires:
+
+    * 
+    * 
+    * python-sphinx
+
+Building deb packages requires several dependencies:
+
+    * build-essential
+    * python-all, python3-all
+    * python-stdeb, python3-stdeb
+    
+Note: building windows .exe files should be possible on any OS. However, 
+Debian/Ubuntu systems do not include the necessary wininst*.exe files; these
+must be manually copied from the Python source to the distutils/command 
+submodule path (/usr/lib/pythonX.X/distutils/command). Additionally, it may be
+necessary to rename (or copy / link) wininst-9.0-amd64.exe to 
+wininst-6.0-amd64.exe.
+
+"""
+
+path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
+build_dir = os.path.join(path, 'release-build')
+pkg_dir = os.path.join(path, 'release-packages')
+
+ap = argparse.ArgumentParser(description=description, epilog=epilog, formatter_class=argparse.RawDescriptionHelpFormatter)
+ap.add_argument('version', help='The x.y.z version to generate release packages for. '
+                                'There must be a corresponding pyqtgraph-x.y.z branch in the source repository.')
+ap.add_argument('--publish', metavar='', help='Publish previously built package files (must be stored in pkg-dir/version) and tagged release commit (from build-dir).', action='store_const', const=True, default=False)
+ap.add_argument('--source-repo', metavar='', help='Repository from which release and master branches will be cloned. Default is the repo containing this script.', default=path)
+ap.add_argument('--build-dir', metavar='', help='Directory where packages will be staged and built. Default is source_root/release-build.', default=build_dir)
+ap.add_argument('--pkg-dir', metavar='', help='Directory where packages will be stored. Default is source_root/release-packages.', default=pkg_dir)
+ap.add_argument('--skip-pip-test', metavar='', help='Skip testing pip install.', action='store_const', const=True, default=False)
+ap.add_argument('--no-deb', metavar='', help='Skip building Debian packages.', action='store_const', const=True, default=False)
+ap.add_argument('--no-exe', metavar='', help='Skip building Windows exe installers.', action='store_const', const=True, default=False)
+
+
+
+def build(args):
+    if os.path.exists(args.build_dir):
+        sys.stderr.write("Please remove the build directory %s before proceeding, or specify a different path with --build-dir.\n" % args.build_dir)
+        sys.exit(-1)
+    if os.path.exists(args.pkg_dir):
+        sys.stderr.write("Please remove the package directory %s before proceeding, or specify a different path with --pkg-dir.\n" % args.pkg_dir)
+        sys.exit(-1)
+        
+    # Clone source repository and tag the release branch
+    shell('''
+        # Clone and merge release branch into previous master
+        mkdir -p {build_dir}
+        cd {build_dir}
+        rm -rf pyqtgraph
+        git clone --depth 1 -b master {source_repo} pyqtgraph
+        cd pyqtgraph
+        git checkout -b release-{version}
+        git pull {source_repo} release-{version}
+        git checkout master
+        git merge --no-ff --no-commit release-{version}
+        
+        # Write new version number into the source
+        sed -i "s/__version__ = .*/__version__ = '{version}'/" pyqtgraph/__init__.py
+        sed -i "s/version = .*/version = '{version}'/" doc/source/conf.py
+        sed -i "s/release = .*/release = '{version}'/" doc/source/conf.py
+        
+        # make sure changelog mentions unreleased changes
+        grep "pyqtgraph-{version}.*unreleased.*" CHANGELOG    
+        sed -i "s/pyqtgraph-{version}.*unreleased.*/pyqtgraph-{version}/" CHANGELOG
+
+        # Commit and tag new release
+        git commit -a -m "PyQtGraph release {version}"
+        git tag pyqtgraph-{version}
+
+        # Build HTML documentation
+        cd doc
+            make clean
+            make html
+        cd ..
+        find ./ -name "*.pyc" -delete
+
+        # package source distribution
+        python setup.py sdist
+
+        mkdir -p {pkg_dir}
+        cp dist/*.tar.gz {pkg_dir}
+
+        # source package build complete.
+    '''.format(**args.__dict__))
+
+        
+    if args.skip_pip_test:
+        args.pip_test = 'skipped'
+    else:
+        shell('''
+            # test pip install source distribution
+            rm -rf release-{version}-virtenv
+            virtualenv --system-site-packages release-{version}-virtenv
+            . release-{version}-virtenv/bin/activate
+            echo "PATH: $PATH"
+            echo "ENV: $VIRTUAL_ENV" 
+            pip install --no-index --no-deps dist/pyqtgraph-{version}.tar.gz
+            deactivate
+            
+            # pip install test passed
+        '''.format(**args.__dict__))
+        args.pip_test = 'passed'
+
+
+    if 'linux' in sys.platform and not args.no_deb: 
+        shell('''
+            # build deb packages
+            cd {build_dir}/pyqtgraph
+            python setup.py --command-packages=stdeb.command sdist_dsc
+            cd deb_dist/pyqtgraph-{version}
+            sed -i "s/^Depends:.*/Depends: python (>= 2.6), python-qt4 | python-pyside, python-numpy/" debian/control    
+            dpkg-buildpackage
+            cd ../../
+            mv deb_dist {pkg_dir}/pyqtgraph-{version}-deb
+            
+            # deb package build complete.
+        '''.format(**args.__dict__))
+        args.deb_status = 'built'
+    else:
+        args.deb_status = 'skipped'
+        
+
+    if not args.no_exe:
+        shell("""
+            # Build windows executables
+            cd {build_dir}/pyqtgraph
+            python setup.py build bdist_wininst --plat-name=win32
+            python setup.py build bdist_wininst --plat-name=win-amd64
+            cp dist/*.exe {pkg_dir}
+        """.format(**args.__dict__))
+        args.exe_status = 'built'    
+    else:
+        args.exe_status = 'skipped'
+
+
+    print(unindent("""
+
+    ======== Build complete. =========
+
+    * Source package:     built
+    * Pip install test:   {pip_test}
+    * Debian packages:    {deb_status}
+    * Windows installers: {exe_status}
+    * Package files in    {pkg_dir}
+
+    Next steps to publish:
+    
+    * Test all packages
+    * Run script again with --publish
+
+    """).format(**args.__dict__))
+
+
+def publish(args):
+
+
+    if not os.path.isfile(os.path.expanduser('~/.pypirc')):
+        print(unindent("""
+            Missing ~/.pypirc file. Should look like:
+            -----------------------------------------
+
+                [distutils]
+                index-servers =
+                    pypi
+
+                [pypi]
+                username:your_username
+                password:your_password
+
+        """))
+        sys.exit(-1)
+
+    ### Upload everything to server
+    shell("""
+        # Uploading documentation..
+        cd {build_dir}/pyqtgraph
+        rsync -rv doc/build/* pyqtgraph.org:/www/code/pyqtgraph/pyqtgraph/documentation/build/
+
+        # Uploading release packages to website
+        rsync -v {pkg_dir}/{version} pyqtgraph.org:/www/code/pyqtgraph/downloads/
+
+        # Push to github
+        git push --tags https://github.com/pyqtgraph/pyqtgraph master:master
+
+        # Upload to pypi..
+        python setup.py sdist upload
+
+    """.format(**args.__dict__))
+
+    print(unindent("""
+
+    ======== Upload complete. =========
+
+    Next steps to publish:
+        - update website
+        - mailing list announcement
+        - new conda recipe (http://conda.pydata.org/docs/build.html)
+        - contact deb maintainer (gianfranco costamagna)
+        - other package maintainers?
+
+    """).format(**args.__dict__))
+
+
+def unindent(msg):
+    ind = 1e6
+    lines = msg.split('\n')
+    for line in lines:
+        if len(line.strip()) == 0:
+            continue
+        ind = min(ind, len(line) - len(line.lstrip()))
+    return '\n'.join([line[ind:] for line in lines])
+
+
+if __name__ == '__main__':
+    args = ap.parse_args()
+    args.build_dir = os.path.abspath(args.build_dir)
+    args.pkg_dir = os.path.join(os.path.abspath(args.pkg_dir), args.version)
+
+    if args.publish:
+        publish(args)
+    else:
+        build(args)
diff --git a/site-packages/pyqtgraph-0.10.0/tools/py2exe.bat b/site-packages/pyqtgraph-0.10.0/tools/py2exe.bat
new file mode 100644
index 00000000..f2b070fb
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/tools/py2exe.bat
@@ -0,0 +1,10 @@
+rem
+rem   This is a simple windows batch file containing the commands needed to package
+rem   a program with pyqtgraph and py2exe. See the packaging tutorial at
+rem   http://luke.campagnola.me/code/pyqtgraph for more information.
+rem 
+
+rmdir /S /Q dist
+rmdir /S /Q build
+python .\py2exeSetupWindows.py py2exe --includes sip
+pause
diff --git a/site-packages/pyqtgraph-0.10.0/tools/py2exeSetupWindows.py b/site-packages/pyqtgraph-0.10.0/tools/py2exeSetupWindows.py
new file mode 100644
index 00000000..086b5a4a
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/tools/py2exeSetupWindows.py
@@ -0,0 +1,26 @@
+"""
+Example distutils setup script for packaging a program with 
+pyqtgraph and py2exe. See the packaging tutorial at
+http://luke.campagnola.me/code/pyqtgraph for more information.
+"""
+
+from distutils.core import setup
+from glob import glob
+import py2exe
+import sys
+
+## This path must contain msvcm90.dll, msvcp90.dll, msvcr90.dll, and Microsoft.VC90.CRT.manifest
+## (see http://www.py2exe.org/index.cgi/Tutorial)
+dllpath = r'C:\Windows\WinSxS\x86_Microsoft.VC90.CRT...'
+
+sys.path.append(dllpath)
+data_files = [
+    ## Instruct setup to copy the needed DLL files into the build directory
+    ("Microsoft.VC90.CRT", glob(dllpath + r'\*.*')),
+]
+
+setup(
+    data_files=data_files,
+    windows=['main.py'] ,
+    options={"py2exe": {"excludes":["Tkconstants", "Tkinter", "tcl"]}}
+)
diff --git a/site-packages/pyqtgraph-0.10.0/tools/pyuic5 b/site-packages/pyqtgraph-0.10.0/tools/pyuic5
new file mode 100644
index 00000000..628cc2f8
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/tools/pyuic5
@@ -0,0 +1,2 @@
+#!/usr/bin/python3
+import PyQt5.uic.pyuic
diff --git a/site-packages/pyqtgraph-0.10.0/tools/rebuildUi.py b/site-packages/pyqtgraph-0.10.0/tools/rebuildUi.py
new file mode 100644
index 00000000..2ce80d87
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/tools/rebuildUi.py
@@ -0,0 +1,53 @@
+"""
+Script for compiling Qt Designer .ui files to .py
+
+
+
+"""
+import os, sys, subprocess, tempfile
+
+pyqtuic = 'pyuic4'
+pysideuic = 'pyside-uic'
+pyqt5uic = 'pyuic5'
+
+usage = """Compile .ui files to .py for all supported pyqt/pyside versions.
+
+  Usage: python rebuildUi.py [.ui files|search paths]
+
+  May specify a list of .ui files and/or directories to search recursively for .ui files.
+"""
+
+args = sys.argv[1:]
+if len(args) == 0:
+    print(usage)
+    sys.exit(-1)
+    
+uifiles = []
+for arg in args:
+    if os.path.isfile(arg) and arg.endswith('.ui'):
+        uifiles.append(arg)
+    elif os.path.isdir(arg):
+        # recursively search for ui files in this directory
+        for path, sd, files in os.walk(arg):
+            for f in files:
+                if not f.endswith('.ui'):
+                    continue
+                uifiles.append(os.path.join(path, f))
+    else:
+        print('Argument "%s" is not a directory or .ui file.' % arg)
+        sys.exit(-1)
+
+# rebuild all requested ui files
+for ui in uifiles:
+    base, _ = os.path.splitext(ui)
+    for compiler, ext in [(pyqtuic, '_pyqt.py'), (pysideuic, '_pyside.py'), (pyqt5uic, '_pyqt5.py')]:
+        py = base + ext
+        if os.path.exists(py) and os.stat(ui).st_mtime <= os.stat(py).st_mtime:
+            print("Skipping %s; already compiled." % py)
+        else:
+            cmd = '%s %s > %s' % (compiler, ui, py)
+            print(cmd)
+            try:
+                subprocess.check_call(cmd, shell=True)
+            except subprocess.CalledProcessError:
+                os.remove(py)
diff --git a/site-packages/pyqtgraph-0.10.0/tools/release_instructions.md b/site-packages/pyqtgraph-0.10.0/tools/release_instructions.md
new file mode 100644
index 00000000..b3b53efa
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/tools/release_instructions.md
@@ -0,0 +1,34 @@
+PyQtGraph Release Procedure
+---------------------------
+
+1. Create a release-x.x.x branch
+
+2. Run pyqtgraph/tools/pg-release.py script (this has only been tested on linux)
+    - creates clone of master
+    - merges release branch into master
+    - updates version numbers in code
+    - creates pyqtgraph-x.x.x tag
+    - creates release commit
+    - builds documentation
+    - builds source package
+    - tests pip install
+    - builds windows .exe installers (note: it may be necessary to manually
+      copy wininst*.exe files from the python source packages)
+    - builds deb package (note: official debian packages are built elsewhere;
+      these locally-built deb packages may be phased out)
+
+3. test build files
+    - test setup.py, pip on OSX
+    - test setup.py, pip, 32/64 exe on windows
+    - test setup.py, pip, deb on linux (py2, py3)
+    
+4. Run pg-release.py script again with --publish flag
+    - website upload
+    - github push + release
+    - pip upload
+
+5. publish
+    - update website
+    - mailing list announcement
+    - new conda recipe  (http://conda.pydata.org/docs/build.html)
+    - contact various package maintainers
diff --git a/site-packages/pyqtgraph-0.10.0/tools/setupHelpers.py b/site-packages/pyqtgraph-0.10.0/tools/setupHelpers.py
new file mode 100644
index 00000000..939bca4e
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/tools/setupHelpers.py
@@ -0,0 +1,560 @@
+# -*- coding: utf-8 -*-
+import os, sys, re
+try:
+    from subprocess import check_output, check_call
+except ImportError:
+    import subprocess as sp
+    def check_output(*args, **kwds):
+        kwds['stdout'] = sp.PIPE
+        proc = sp.Popen(*args, **kwds)
+        output = proc.stdout.read()
+        proc.wait()
+        if proc.returncode != 0:
+            ex = Exception("Process had nonzero return value %d" % proc.returncode)
+            ex.returncode = proc.returncode
+            ex.output = output
+            raise ex
+        return output
+
+# Maximum allowed repository size difference (in kB) following merge.
+# This is used to prevent large files from being inappropriately added to 
+# the repository history.
+MERGE_SIZE_LIMIT = 100
+
+# Paths that are checked for style by flake and flake_diff
+FLAKE_CHECK_PATHS = ['pyqtgraph', 'examples', 'tools']
+
+# Flake style checks -- mandatory, recommended, optional
+# See: http://pep8.readthedocs.org/en/1.4.6/intro.html
+# and  https://flake8.readthedocs.org/en/2.0/warnings.html
+FLAKE_MANDATORY = set([
+    'E101',  #  indentation contains mixed spaces and tabs
+    'E112',  #  expected an indented block
+    'E122',  #  continuation line missing indentation or outdented
+    'E125',  #  continuation line does not distinguish itself from next line
+    'E133',  #  closing bracket is missing indentation
+
+    'E223',  #  tab before operator
+    'E224',  #  tab after operator
+    'E242',  #  tab after ‘,’
+    'E273',  #  tab after keyword
+    'E274',  #  tab before keyword
+
+    'E901',  #  SyntaxError or IndentationError
+    'E902',  #  IOError
+        
+    'W191',  #  indentation contains tabs
+        
+    'W601',  #  .has_key() is deprecated, use ‘in’
+    'W602',  #  deprecated form of raising exception
+    'W603',  #  ‘<>’ is deprecated, use ‘!=’
+    'W604',  #  backticks are deprecated, use ‘repr()’    
+    ])
+
+FLAKE_RECOMMENDED = set([
+    'E124',  #  closing bracket does not match visual indentation
+    'E231',  #  missing whitespace after ‘,’
+    
+    'E211',  #  whitespace before ‘(‘
+    'E261',  #  at least two spaces before inline comment
+    'E271',  #  multiple spaces after keyword
+    'E272',  #  multiple spaces before keyword
+    'E304',  #  blank lines found after function decorator
+
+    'F401',  #  module imported but unused
+    'F402',  #  import module from line N shadowed by loop variable
+    'F403',  #  ‘from module import *’ used; unable to detect undefined names
+    'F404',  #  future import(s) name after other statements
+        
+    'E501',  #  line too long (82 > 79 characters)
+    'E502',  #  the backslash is redundant between brackets
+    
+    'E702',  #  multiple statements on one line (semicolon)
+    'E703',  #  statement ends with a semicolon
+    'E711',  #  comparison to None should be ‘if cond is None:’
+    'E712',  #  comparison to True should be ‘if cond is True:’ or ‘if cond:’
+    'E721',  #  do not compare types, use ‘isinstance()’
+
+    'F811',  #  redefinition of unused name from line N
+    'F812',  #  list comprehension redefines name from line N
+    'F821',  #  undefined name name
+    'F822',  #  undefined name name in __all__
+    'F823',  #  local variable name ... referenced before assignment
+    'F831',  #  duplicate argument name in function definition
+    'F841',  #  local variable name is assigned to but never used
+    
+    'W292',  #  no newline at end of file
+
+    ])
+
+FLAKE_OPTIONAL = set([
+    'E121',  #  continuation line indentation is not a multiple of four
+    'E123',  #  closing bracket does not match indentation of opening bracket
+    'E126',  #  continuation line over-indented for hanging indent
+    'E127',  #  continuation line over-indented for visual indent
+    'E128',  #  continuation line under-indented for visual indent
+        
+    'E201',  #  whitespace after ‘(‘
+    'E202',  #  whitespace before ‘)’
+    'E203',  #  whitespace before ‘:’
+    'E221',  #  multiple spaces before operator
+    'E222',  #  multiple spaces after operator
+    'E225',  #  missing whitespace around operator
+    'E227',  #  missing whitespace around bitwise or shift operator
+    'E226',  #  missing whitespace around arithmetic operator
+    'E228',  #  missing whitespace around modulo operator
+    'E241',  #  multiple spaces after ‘,’
+    'E251',  #  unexpected spaces around keyword / parameter equals
+    'E262',  #  inline comment should start with ‘# ‘     
+        
+    'E301',  #  expected 1 blank line, found 0
+    'E302',  #  expected 2 blank lines, found 0
+    'E303',  #  too many blank lines (3)
+        
+    'E401',  #  multiple imports on one line
+
+    'E701',  #  multiple statements on one line (colon)
+        
+    'W291',  #  trailing whitespace
+    'W293',  #  blank line contains whitespace
+        
+    'W391',  #  blank line at end of file
+    ])
+
+FLAKE_IGNORE = set([
+    # 111 and 113 are ignored because they appear to be broken.
+    'E111',  #  indentation is not a multiple of four
+    'E113',  #  unexpected indentation
+    ])
+
+
+#def checkStyle():
+    #try:
+        #out = check_output(['flake8', '--select=%s' % FLAKE_TESTS, '--statistics', 'pyqtgraph/'])
+        #ret = 0
+        #print("All style checks OK.")
+    #except Exception as e:
+        #out = e.output
+        #ret = e.returncode
+        #print(out.decode('utf-8'))
+    #return ret
+
+
+def checkStyle():
+    """ Run flake8, checking only lines that are modified since the last
+    git commit. """
+    test = [ 1,2,3 ]
+    
+    # First check _all_ code against mandatory error codes
+    print('flake8: check all code against mandatory error set...')
+    errors = ','.join(FLAKE_MANDATORY)
+    cmd = ['flake8', '--select=' + errors] + FLAKE_CHECK_PATHS
+    proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
+    #ret = proc.wait()
+    output = proc.stdout.read().decode('utf-8')
+    ret = proc.wait()
+    printFlakeOutput(output)
+    
+    # Check for DOS newlines
+    print('check line endings in all files...')
+    count = 0
+    allowedEndings = set([None, '\n'])
+    for path, dirs, files in os.walk('.'):
+        for f in files:
+            if os.path.splitext(f)[1] not in ('.py', '.rst'):
+                continue
+            filename = os.path.join(path, f)
+            fh = open(filename, 'U')
+            x = fh.readlines()
+            endings = set(fh.newlines if isinstance(fh.newlines, tuple) else (fh.newlines,))
+            endings -= allowedEndings
+            if len(endings) > 0:
+                print("\033[0;31m" + "File has invalid line endings: %s" % filename + "\033[0m")
+                ret = ret | 2
+            count += 1
+    print('checked line endings in %d files' % count)
+            
+    
+    # Next check new code with optional error codes
+    print('flake8: check new code against recommended error set...')
+    diff = subprocess.check_output(['git', 'diff'])
+    proc = subprocess.Popen(['flake8', '--diff', #'--show-source',
+                                '--ignore=' + errors],
+                            stdin=subprocess.PIPE, 
+                            stdout=subprocess.PIPE)
+    proc.stdin.write(diff)
+    proc.stdin.close()
+    output = proc.stdout.read().decode('utf-8')
+    ret |= printFlakeOutput(output)
+    
+    if ret == 0:
+        print('style test passed.')
+    else:
+        print('style test failed: %d' % ret)
+    return ret
+
+def printFlakeOutput(text):
+    """ Print flake output, colored by error category.
+    Return 2 if there were any mandatory errors,
+    1 if only recommended / optional errors, and
+    0 if only optional errors.
+    """
+    ret = 0
+    gotError = False
+    for line in text.split('\n'):
+        m = re.match(r'[^\:]+\:\d+\:\d+\: (\w+) .*', line)
+        if m is None:
+            print(line)
+        else:
+            gotError = True
+            error = m.group(1)
+            if error in FLAKE_MANDATORY:
+                print("\033[0;31m" + line + "\033[0m")
+                ret |= 2
+            elif error in FLAKE_RECOMMENDED:
+                print("\033[0;33m" + line + "\033[0m")
+                #ret |= 1
+            elif error in FLAKE_OPTIONAL:
+                print("\033[0;32m" + line + "\033[0m")
+            elif error in FLAKE_IGNORE:
+                continue
+            else:
+                print("\033[0;36m" + line + "\033[0m")
+    if not gotError:
+        print("    [ no errors ]\n")
+    return ret
+
+
+
+def unitTests():
+    """
+    Run all unit tests (using py.test)
+    Return the exit code.
+    """
+    try:
+        if sys.version[0] == '3':
+            out = check_output('PYTHONPATH=. py.test-3', shell=True)
+        else:
+            out = check_output('PYTHONPATH=. py.test', shell=True)
+        ret = 0
+    except Exception as e:
+        out = e.output
+        ret = e.returncode
+    print(out.decode('utf-8'))
+    return ret
+
+
+def checkMergeSize(sourceBranch=None, targetBranch=None, sourceRepo=None, targetRepo=None):
+    """
+    Check that a git merge would not increase the repository size by MERGE_SIZE_LIMIT.
+    """
+    if sourceBranch is None:
+        sourceBranch = getGitBranch()
+        sourceRepo = '..'
+        
+    if targetBranch is None:
+        if sourceBranch == 'develop':
+            targetBranch = 'develop'
+            targetRepo = 'https://github.com/pyqtgraph/pyqtgraph.git'
+        else:
+            targetBranch = 'develop'
+            targetRepo = '..'
+    
+    workingDir = '__merge-test-clone'
+    env = dict(TARGET_BRANCH=targetBranch, 
+               SOURCE_BRANCH=sourceBranch, 
+               TARGET_REPO=targetRepo, 
+               SOURCE_REPO=sourceRepo,
+               WORKING_DIR=workingDir,
+               )
+    
+    print("Testing merge size difference:\n"
+          "  SOURCE: {SOURCE_REPO} {SOURCE_BRANCH}\n"
+          "  TARGET: {TARGET_BRANCH} {TARGET_REPO}".format(**env))
+    
+    setup = """
+        mkdir {WORKING_DIR} && cd {WORKING_DIR} &&
+        git init && git remote add -t {TARGET_BRANCH} target {TARGET_REPO} &&
+        git fetch target {TARGET_BRANCH} && 
+        git checkout -qf target/{TARGET_BRANCH} && 
+        git gc -q --aggressive
+        """.format(**env)
+        
+    checkSize = """
+        cd {WORKING_DIR} && 
+        du -s . | sed -e "s/\t.*//"
+        """.format(**env)
+    
+    merge = """
+        cd {WORKING_DIR} &&
+        git pull -q {SOURCE_REPO} {SOURCE_BRANCH} && 
+        git gc -q --aggressive
+        """.format(**env)
+    
+    try:
+        print("Check out target branch:\n" + setup)
+        check_call(setup, shell=True)
+        targetSize = int(check_output(checkSize, shell=True))
+        print("TARGET SIZE: %d kB" % targetSize)
+        print("Merge source branch:\n" + merge)
+        check_call(merge, shell=True)
+        mergeSize = int(check_output(checkSize, shell=True))
+        print("MERGE SIZE: %d kB" % mergeSize)
+        
+        diff = mergeSize - targetSize
+        if diff <= MERGE_SIZE_LIMIT:
+            print("DIFFERENCE: %d kB  [OK]" % diff)
+            return 0
+        else:
+            print("\033[0;31m" + "DIFFERENCE: %d kB  [exceeds %d kB]" % (diff, MERGE_SIZE_LIMIT) + "\033[0m")
+            return 2
+    finally:
+        if os.path.isdir(workingDir):
+            shutil.rmtree(workingDir)
+
+
+def mergeTests():
+    ret = checkMergeSize()
+    ret |= unitTests()
+    ret |= checkStyle()
+    if ret == 0:
+        print("\033[0;32m" + "\nAll merge tests passed." + "\033[0m")
+    else:
+        print("\033[0;31m" + "\nMerge tests failed." + "\033[0m")
+    return ret
+
+
+def listAllPackages(pkgroot):
+    path = os.getcwd()
+    n = len(path.split(os.path.sep))
+    subdirs = [i[0].split(os.path.sep)[n:] for i in os.walk(os.path.join(path, pkgroot)) if '__init__.py' in i[2]]
+    return ['.'.join(p) for p in subdirs]
+
+
+def getInitVersion(pkgroot):
+    """Return the version string defined in __init__.py"""
+    path = os.getcwd()
+    initfile = os.path.join(path, pkgroot, '__init__.py')
+    init = open(initfile).read()
+    m = re.search(r'__version__ = (\S+)\n', init)
+    if m is None or len(m.groups()) != 1:
+        raise Exception("Cannot determine __version__ from init file: '%s'!" % initfile)
+    version = m.group(1).strip('\'\"')
+    return version
+
+def gitCommit(name):
+    """Return the commit ID for the given name."""
+    commit = check_output(['git', 'show', name], universal_newlines=True).split('\n')[0]
+    assert commit[:7] == 'commit '
+    return commit[7:]
+
+def getGitVersion(tagPrefix):
+    """Return a version string with information about this git checkout.
+    If the checkout is an unmodified, tagged commit, then return the tag version.
+    If this is not a tagged commit, return the output of ``git describe --tags``.
+    If this checkout has been modified, append "+" to the version.
+    """
+    path = os.getcwd()
+    if not os.path.isdir(os.path.join(path, '.git')):
+        return None
+        
+    v = check_output(['git', 'describe', '--tags', '--dirty', '--match=%s*'%tagPrefix]).strip().decode('utf-8')
+    
+    # chop off prefix
+    assert v.startswith(tagPrefix)
+    v = v[len(tagPrefix):]
+
+    # split up version parts
+    parts = v.split('-')
+    
+    # has working tree been modified?
+    modified = False
+    if parts[-1] == 'dirty':
+        modified = True
+        parts = parts[:-1]
+        
+    # have commits been added on top of last tagged version?
+    # (git describe adds -NNN-gXXXXXXX if this is the case)
+    local = None
+    if len(parts) > 2 and re.match(r'\d+', parts[-2]) and re.match(r'g[0-9a-f]{7}', parts[-1]):
+        local = parts[-1]
+        parts = parts[:-2]
+        
+    gitVersion = '-'.join(parts)
+    if local is not None:
+        gitVersion += '+' + local
+    if modified:
+        gitVersion += 'm'
+
+    return gitVersion
+
+def getGitBranch():
+    m = re.search(r'\* (.*)', check_output(['git', 'branch'], universal_newlines=True))
+    if m is None:
+        return ''
+    else:
+        return m.group(1)
+
+def getVersionStrings(pkg):
+    """
+    Returns 4 version strings: 
+    
+    * the version string to use for this build,
+    * version string requested with --force-version (or None)
+    * version string that describes the current git checkout (or None).
+    * version string in the pkg/__init__.py, 
+    
+    The first return value is (forceVersion or gitVersion or initVersion).
+    """
+    
+    ## Determine current version string from __init__.py
+    initVersion = getInitVersion(pkgroot=pkg)
+
+    ## If this is a git checkout, try to generate a more descriptive version string
+    try:
+        gitVersion = getGitVersion(tagPrefix=pkg+'-')
+    except:
+        gitVersion = None
+        sys.stderr.write("This appears to be a git checkout, but an error occurred "
+                        "while attempting to determine a version string for the "
+                        "current commit.\n")
+        sys.excepthook(*sys.exc_info())
+
+    # See whether a --force-version flag was given
+    forcedVersion = None
+    for i,arg in enumerate(sys.argv):
+        if arg.startswith('--force-version'):
+            if arg == '--force-version':
+                forcedVersion = sys.argv[i+1]
+                sys.argv.pop(i)
+                sys.argv.pop(i)
+            elif arg.startswith('--force-version='):
+                forcedVersion = sys.argv[i].replace('--force-version=', '')
+                sys.argv.pop(i)
+                
+                
+    ## Finally decide on a version string to use:
+    if forcedVersion is not None:
+        version = forcedVersion
+    elif gitVersion is not None and getGitBranch() != 'debian': # ignore git version if this is debian branch
+        version = gitVersion
+        sys.stderr.write("Detected git commit; will use version string: '%s'\n" % version)
+    else:
+        version = initVersion
+
+    return version, forcedVersion, gitVersion, initVersion
+
+
+from distutils.core import Command
+import shutil, subprocess
+from generateChangelog import generateDebianChangelog
+
+class DebCommand(Command):
+    description = "build .deb package using `debuild -us -uc`"
+    maintainer = "Luke Campagnola <luke.campagnola@gmail.com>"
+    debTemplate = "debian"
+    debDir = "deb_build"
+    
+    user_options = []
+    
+    def initialize_options(self):
+        self.cwd = None
+        
+    def finalize_options(self):
+        self.cwd = os.getcwd()
+        
+    def run(self):
+        version = self.distribution.get_version()
+        pkgName = self.distribution.get_name()
+        debName = "python-" + pkgName
+        debDir = self.debDir
+        
+        assert os.getcwd() == self.cwd, 'Must be in package root: %s' % self.cwd
+        
+        if os.path.isdir(debDir):
+            raise Exception('DEB build dir already exists: "%s"' % debDir)
+        sdist = "dist/%s-%s.tar.gz" % (pkgName, version)
+        if not os.path.isfile(sdist):
+            raise Exception("No source distribution; run `setup.py sdist` first.")
+        
+        # copy sdist to build directory and extract
+        os.mkdir(debDir)
+        renamedSdist = '%s_%s.orig.tar.gz' % (debName, version)
+        print("copy %s => %s" % (sdist, os.path.join(debDir, renamedSdist)))
+        shutil.copy(sdist, os.path.join(debDir, renamedSdist))
+        print("cd %s; tar -xzf %s" % (debDir, renamedSdist))
+        if os.system("cd %s; tar -xzf %s" % (debDir, renamedSdist)) != 0:
+            raise Exception("Error extracting source distribution.")
+        buildDir = '%s/%s-%s' % (debDir, pkgName, version)
+        
+        # copy debian control structure
+        print("copytree %s => %s" % (self.debTemplate, buildDir+'/debian'))
+        shutil.copytree(self.debTemplate, buildDir+'/debian')
+        
+        # Write new changelog
+        chlog = generateDebianChangelog(pkgName, 'CHANGELOG', version, self.maintainer)
+        print("write changelog %s" % buildDir+'/debian/changelog')
+        open(buildDir+'/debian/changelog', 'w').write(chlog)
+        
+        # build package
+        print('cd %s; debuild -us -uc' % buildDir)
+        if os.system('cd %s; debuild -us -uc' % buildDir) != 0:
+            raise Exception("Error during debuild.")
+
+
+class DebugCommand(Command):
+    """Just for learning about distutils."""
+    description = ""
+    user_options = []
+    def initialize_options(self):
+        pass
+    def finalize_options(self):
+        pass
+    def run(self):
+        global cmd
+        cmd = self
+        print(self.distribution.name)
+        print(self.distribution.version)
+
+
+class TestCommand(Command):
+    description = "Run all package tests and exit immediately with informative return code."
+    user_options = []
+    
+    def run(self):
+        sys.exit(unitTests())
+        
+    def initialize_options(self):
+        pass
+    
+    def finalize_options(self):
+        pass
+    
+
+class StyleCommand(Command):
+    description = "Check all code for style, exit immediately with informative return code."
+    user_options = []
+    
+    def run(self):
+        sys.exit(checkStyle())
+        
+    def initialize_options(self):
+        pass
+    
+    def finalize_options(self):
+        pass
+
+    
+class MergeTestCommand(Command):
+    description = "Run all tests needed to determine whether the current code is suitable for merge."
+    user_options = []
+    
+    def run(self):
+        sys.exit(mergeTests())
+        
+    def initialize_options(self):
+        pass
+    
+    def finalize_options(self):
+        pass
+
diff --git a/site-packages/pyqtgraph-0.10.0/tools/shell.py b/site-packages/pyqtgraph-0.10.0/tools/shell.py
new file mode 100644
index 00000000..76667980
--- /dev/null
+++ b/site-packages/pyqtgraph-0.10.0/tools/shell.py
@@ -0,0 +1,38 @@
+import os, sys
+import subprocess as sp
+
+
+def shell(cmd):
+    """Run each line of a shell script; raise an exception if any line returns
+    a nonzero value.
+    """
+    pin, pout = os.pipe()
+    proc = sp.Popen('/bin/bash', stdin=sp.PIPE)
+    for line in cmd.split('\n'):
+        line = line.strip()
+        if line.startswith('#'):
+            print('\033[33m> ' + line + '\033[0m')
+        else:
+            print('\033[32m> ' + line + '\033[0m')
+        if line.startswith('cd '):
+            os.chdir(line[3:])
+        proc.stdin.write((line + '\n').encode('utf-8'))
+        proc.stdin.write(('echo $? 1>&%d\n' % pout).encode('utf-8'))
+        ret = ""
+        while not ret.endswith('\n'):
+            ret += os.read(pin, 1)
+        ret = int(ret.strip())
+        if ret != 0:
+            print("\033[31mLast command returned %d; bailing out.\033[0m" % ret)
+            sys.exit(-1)
+    proc.stdin.close()
+    proc.wait()
+
+
+def ssh(host, cmd):
+    """Run commands on a remote host by ssh.
+    """
+    proc = sp.Popen(['ssh', host], stdin=sp.PIPE)
+    proc.stdin.write(cmd)
+    proc.wait()
+
diff --git a/site-packages/timeseriesviewer.pth b/site-packages/timeseriesviewer.pth
new file mode 100644
index 00000000..78141782
--- /dev/null
+++ b/site-packages/timeseriesviewer.pth
@@ -0,0 +1,6 @@
+# site packages for enmapb-box
+HTML.py-0.04
+html-1.16
+markup
+units-0.06
+pyqtgraph-0.10.0
\ No newline at end of file
-- 
GitLab