File: xrfembedpyqt.rst

package info (click to toggle)
pymca 5.6.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 46,584 kB
  • sloc: python: 164,135; ansic: 20,050; sh: 175; makefile: 142; xml: 55
file content (15 lines) | stat: -rw-r--r-- 532 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Embedding PyMca XRF fitting
===========================

Besides providing ready-to-use applications, PyMca is very modular and it allows to be used as a library.

Let's say you have your own way of displaying your data into a PyQt5 (or PyQt4, PySide or PySide2)
application. All you need to do to provide XRF fitting capabilities to it requires 4 lines of code.

.. code-block:: python

   from PyMca5.PyMca import McaAdvancedFit   
   widget = McaAdvancedFit.McaAdvancedFit()
   widget.setData(channels, counts)
   widget.show()