File tree Expand file tree Collapse file tree 4 files changed +48
-25
lines changed Expand file tree Collapse file tree 4 files changed +48
-25
lines changed Original file line number Diff line number Diff line change 13
13
- " 3.11"
14
14
- " 3.10"
15
15
- " 3.9"
16
- - " 3.8"
17
16
pyqt-dependency :
18
17
- " PyQt5"
19
- # - "PyQt6 "
18
+ - " PySide2 "
20
19
21
20
steps :
22
21
- uses : " actions/checkout@v3"
Original file line number Diff line number Diff line change 3
3
4
4
This is a little tool for analyzing colormaps and creating new colormaps.
5
5
6
- Try::
7
-
8
- $ pip install viscm
9
- $ python -m viscm view jet
10
- $ python -m viscm edit
11
-
12
- There is some information available about how to interpret the
13
- resulting visualizations and use the editor tool `on this website
14
- <https://bids.github.io/colormap/> `_.
15
-
16
6
Downloads:
17
7
* https://pypi.python.org/pypi/viscm/
18
8
* https://anaconda.org/conda-forge/viscm/
@@ -24,16 +14,44 @@ Contact:
24
14
Nathaniel J. Smith <njs@pobox.com> and Stéfan van der Walt <stefanv@berkeley.edu>
25
15
26
16
Dependencies:
27
- * Python 3.8+
28
- * `colorspacious <https://pypi.python.org/pypi/colorspacious >`_
29
- * Matplotlib
30
- * NumPy
17
+ * Python 3.9+
18
+ * `colorspacious <https://pypi.python.org/pypi/colorspacious >`_ 1.1+
19
+ * Matplotlib 3.5+
20
+ * NumPy 1.22+
21
+ * SciPy 1.8+
31
22
32
23
License:
33
24
MIT, see `LICENSE <LICENSE >`__ for details.
34
25
26
+
27
+ Installation
28
+ ------------
29
+
30
+ This is a GUI application, and requires Qt Python bindings.
31
+ They can be provided by PyQt (GPL) or PySide (LGPL)::
32
+
33
+ $ pip install viscm[PySide]
34
+
35
+ ...or::
36
+
37
+ $ pip install viscm[PyQt]
38
+
39
+
40
+ Usage
41
+ -----
42
+
43
+ ::
44
+
45
+ $ viscm view jet
46
+ $ viscm edit
47
+
48
+ There is some information available about how to interpret the
49
+ resulting visualizations and use the editor tool `on this website
50
+ <https://bids.github.io/colormap/> `_.
51
+
52
+
35
53
Reproducing viridis
36
- -------------------
54
+ ^^^^^^^^^^^^^^^^^^^
37
55
38
56
Load [viridis AKA option_d.py](https://github.com/BIDS/colormap/) using:
39
57
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ python -m build
22
22
pip install dist/* .whl # or `dist/*.tar.gz`
23
23
```
24
24
25
+ To automatically install a Qt dependency, try ` pip install dist/<wheel_filename>[PyQt] ` .
26
+
25
27
26
28
## Tests
27
29
Original file line number Diff line number Diff line change @@ -15,14 +15,18 @@ classifiers = [
15
15
" Programming Language :: Python :: 3" ,
16
16
]
17
17
18
- requires-python = " ~=3.8 "
18
+ requires-python = " ~=3.9 "
19
19
dependencies = [
20
- " numpy" ,
21
- " matplotlib" ,
22
- " colorspacious" ,
23
- " scipy" ,
20
+ " numpy ~=1.22 " ,
21
+ " matplotlib ~=3.5 " ,
22
+ " colorspacious ~=1.1 " ,
23
+ " scipy ~=1.8 " ,
24
24
]
25
25
26
+ [project .optional-dependencies ]
27
+ PySide = [" PySide2 ~=5.15" ]
28
+ PyQt = [" PyQt5 ~=5.15" ]
29
+
26
30
[project .urls ]
27
31
repository = " https://github.com/matplotlib/viscm"
28
32
# documentation = "https://viscm.readthedocs.io"
@@ -46,7 +50,7 @@ package-data = {viscm = ["examples/*"]}
46
50
47
51
48
52
[tool .mypy ]
49
- python_version = " 3.8 "
53
+ python_version = " 3.9 "
50
54
51
55
# These libraries don't have type stubs. Mypy will see them as `Any` and not
52
56
# throw an [import] error.
@@ -62,10 +66,10 @@ ignore_missing_imports = true
62
66
63
67
64
68
[tool .black ]
65
- target-version = [" py38 " , " py39" , " py310" , " py311" ]
69
+ target-version = [" py39" , " py310" , " py311" ]
66
70
67
71
[tool .ruff ]
68
- target-version = " py38 "
72
+ target-version = " py39 "
69
73
select = [
70
74
" F" ,
71
75
" E" ,
You can’t perform that action at this time.
0 commit comments