Testing Site Testing Site

skip to navigation
skip to content

sciplot-pyqt 0.1.5b1

A small matplotlib wrapper/UI for creating publication-ready plots, graphs, and images

SciPlot-PyQt: Publication-ready scientific plotting for Python

SciPlot-PyQt (aka SciPlot) is a user-interface/matplotlib wrapper built with PyQt5 that allows interactive plotting through an embedded matplotlib canvas. It enables fast and easy publication-ready plots and images:

  • Interactive plotting
  • Theme and style editing (TODO)
  • Figure saving and opening for later editing (TODO)

Dependencies

Note: These are the developmental system specs. Older versions of certain packages may work.

  • python >= 3.4
    • Tested with 3.4.4, 3.5.2, 3.6.1
  • numpy (1.9.3)
    • Tested with 1.11.3+mkl
  • PyQT5 (5.5.* or 5.6.*)
    • Tested with 5.6, 5.8.1
  • matplotlib (1.5.0rc3, 2.0.0) (see below for MPL2)
    • Tested with 1.5.2, 2.0.0
  • Sphinx (1.5.2) (Only for building documentation)
    • Tested with 1.4.5, 1.6.4

Known Issues

  1. IPython: SciPlot has problems when imported and ran via sciplot.main() or %run from within IPython. It appears to work as expected when called through a normal Python interpreter.
  2. PyQt 5.7: There is a bug in PyQt 5.7.* that will prevent SciPlot’s tables from showing the individual plot entries (see https://www.riverbankcomputing.com/pipermail/pyqt/2017-January/038483.html). Apparently, this will be fixed in 5.7.2.
    • As WinPython 3.5.2.3Qt5 and 3.5.2.2Qt5 use PyQt 5.7.*, it is advised to use WinPython 3.5.2.1Qt5 or 3.4.4.5Qt5 until the matter is sorted out.
    • Alternatively, one can uninstall pyqt5.7.* and force an install of <= 5.6.*.
  3. MATPLOTLIB 2.0: SciPlot version solder than 0.1.4 will crash with MPL 2.* as several changes have been made to the MPL API.
    • For v0.1.3, the dev-MPL2 branch should address those problems
    • v0.1.4 is a merge of v0.1.3 and the dev-MPL2 branch (with other updates)

Installation

# Make new directory for crikit2 and enter it
# Clone from github
git clone https://github.com/CCampJr/SciPlot-PyQt.git

# Install (mainly check installation)
pip install -e .

# IMPORTANT: You will need to manually install PyQt5 and Qt5
# These packages are not pip-installable at this time

Usage

import sciplot
sp = sciplot.main()

Example

sp.plot((0,1),(2,3),label='Line', x_label='X', y_label='Y', ls='--')
sp.fill_between((0,1),(1,2),(3,4),label='Fill Between', color='r', alpha=0.25)
sp.hist(r, bins=100, label='Histogram', color=[0, .2, .3],
        x_label='Amplitude', y_label='Counts', alpha=0.5)
sp.imshow(r, clim=[25,75], cmap='viridis', label='Imshow', x_label='X (pix)',
          y_label='Y (pix)')

NONLICENSE

This software was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to Title 17 Section 105 of the United States Code, this software is not subject to copyright protection and is in the public domain. NIST assumes no responsibility whatsoever for use by other parties of its source code, and makes no guarantees, expressed or implied, about its quality, reliability, or any other characteristic.

Specific software products identified in this open source project were used in order to perform technology transfer and collaboration. In no case does such identification imply recommendation or endorsement by the National Institute of Standards and Technology, nor does it imply that the products identified are necessarily the best available for the purpose.

Contact

Charles H Camp Jr: charles.camp@nist.gov

Contributors

Charles H Camp Jr, Mona Lee

 
File Type Py Version Uploaded on Size
sciplot-pyqt-0.1.5b1.tar.gz (md5) Source 2017-12-07 837KB