kx-plot 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
kx/__init__.py ADDED
@@ -0,0 +1,76 @@
1
+ """
2
+ kx: tiny matplotlib helper.
3
+
4
+ Token grammar for kx.plot(spec): kind-theme-flag-flag-...
5
+ kind : line | step | area | band | scatter | bar | hist
6
+ theme : any file name in styles/
7
+ flags : grid | leg | logx | logy | tight | stack | norm (stack and norm: area only)
8
+
9
+ Palettes (kx.use(theme, palette="okabe")): any file name in styles/palettes/
10
+ Colormaps (kx.use(theme, cmap="magma")): kx.cmaps()
11
+ kx.grammar("area") and kx.source("area") explain one kind.
12
+ """
13
+ import glob
14
+ import importlib.metadata
15
+ import inspect
16
+ import os
17
+ import re
18
+
19
+ from ._data import datasets, load
20
+ from ._plot import plot
21
+ from ._spec import COMMON_FLAGS, KINDS, all_flags
22
+ from ._spec import parse as _parse # noqa: F401 (tests)
23
+ from ._theme import BUILTIN_CMAPS, cmaps, palette, palettes, show, styles, use
24
+
25
+ __all__ = ["BUILTIN_CMAPS", "__version__", "cmaps", "datasets", "grammar", "load", "palette", "palettes", "plot",
26
+ "show", "source", "styles", "use"]
27
+
28
+
29
+ def _version() -> str:
30
+ """project.version from pyproject.toml, the only place it is written.
31
+
32
+ """
33
+ toml = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "pyproject.toml")
34
+ if os.path.isfile(toml):
35
+ with open(toml) as f:
36
+ m = re.search(r'^version\s*=\s*"([^"]+)"', f.read(), re.MULTILINE)
37
+ if m:
38
+ return m.group(1)
39
+ try:
40
+ return importlib.metadata.version("kx-plot")
41
+ except importlib.metadata.PackageNotFoundError:
42
+ return "unknown"
43
+
44
+
45
+ __version__ = _version()
46
+
47
+
48
+ def _kind(name: str): # noqa: ANN202
49
+ if name not in KINDS:
50
+ raise ValueError(f"unknown kind {name!r}. Available: {sorted(KINDS)}")
51
+ return KINDS[name]
52
+
53
+
54
+ def grammar(kind: str | None = None) -> None:
55
+ """Print the valid tokens for kx.plot specs, or what one kind does and which flags it takes."""
56
+ if kind:
57
+ k = _kind(kind)
58
+ print(f"{k.name}: {inspect.getdoc(k.draw)}")
59
+ print("flags:", sorted(COMMON_FLAGS), "+", sorted(k.flags) or "none of its own")
60
+ return
61
+ print("kind :", sorted(KINDS))
62
+ print("theme:", styles())
63
+ print("flags:", sorted(all_flags()))
64
+ print("palettes (kx.use):", palettes())
65
+ print("cmaps (kx.use):", cmaps())
66
+
67
+
68
+ def source(kind: str | None = None) -> None:
69
+ """Print the code that draws one kind, or every file in this package."""
70
+ if kind:
71
+ print(inspect.getsource(_kind(kind).draw))
72
+ return
73
+ here = os.path.dirname(os.path.abspath(__file__))
74
+ for p in sorted(glob.glob(os.path.join(here, "**", "*.py"), recursive=True)):
75
+ with open(p) as f:
76
+ print(f"# ---------- kx/{os.path.relpath(p, here)} ----------\n{f.read()}")
kx/_data.py ADDED
@@ -0,0 +1,16 @@
1
+ """Demo data that ships in data/."""
2
+ import pandas as pd
3
+
4
+ from . import _files
5
+
6
+
7
+ def datasets() -> list[str]:
8
+ """List CSV names available to kx.load()."""
9
+ return _files.names("data", ".csv")
10
+
11
+
12
+ def load(name: str) -> pd.DataFrame:
13
+ """Read data/<name>.csv that ships with the package."""
14
+ if name not in datasets():
15
+ raise ValueError(f"unknown dataset {name!r}. Available: {datasets()}")
16
+ return pd.read_csv(_files.path("data", f"{name}.csv"))
kx/_files.py ADDED
@@ -0,0 +1,16 @@
1
+ """Files that ship inside the package: styles/, styles/palettes/, data/."""
2
+ import glob
3
+ import os
4
+
5
+ # the kx/ package folder; read as _files.root at call time so tests can point it elsewhere
6
+ root = os.path.dirname(os.path.abspath(__file__))
7
+
8
+
9
+ def path(*parts: str) -> str:
10
+ """Path under the root."""
11
+ return os.path.join(root, *parts)
12
+
13
+
14
+ def names(folder: str, ext: str) -> list[str]:
15
+ """Sorted base names of the <folder>/*<ext> files under the root."""
16
+ return sorted(os.path.basename(p)[:-len(ext)] for p in glob.glob(path(folder, f"*{ext}")))
kx/_plot.py ADDED
@@ -0,0 +1,42 @@
1
+ """kx.plot: the one-liner. Kinds live in kx/kinds/; this file checks input and applies common flags."""
2
+ import contextlib
3
+
4
+ import matplotlib.pyplot as plt
5
+ from matplotlib.axes import Axes
6
+ from numpy.typing import ArrayLike
7
+
8
+ from . import kinds # noqa: F401 (registers every kind)
9
+ from ._spec import KINDS, parse
10
+ from ._theme import style_path
11
+
12
+
13
+ def plot(x: ArrayLike, y: ArrayLike | None = None, z: ArrayLike | str | None = None,
14
+ spec: str | None = None, title: str | None = None, ax: Axes | None = None) -> Axes:
15
+ """kx.plot(x, y, z, 'scatter-dark-grid-leg') or kx.plot(x, y, 'bar-light')
16
+
17
+ A theme in the spec applies to this plot only; kx.use() sets the notebook default.
18
+ """
19
+ if isinstance(z, str): # kx.plot(x, y, "spec"): spec given as 3rd arg
20
+ if spec is not None:
21
+ raise TypeError("spec given twice (as z and as spec=)")
22
+ z, spec = None, z
23
+ name, theme, flags = parse(spec or "line")
24
+ kind = KINDS[name]
25
+ if kind.needs_y and y is None:
26
+ raise ValueError(f"kind {name!r} needs both x and y")
27
+ if kind.check:
28
+ kind.check(y, z, flags)
29
+
30
+ style = plt.style.context(["default", style_path(theme)]) if theme else contextlib.nullcontext()
31
+ with style:
32
+ ax = ax or plt.subplots()[1]
33
+ kind.draw(ax, x, y, z, flags)
34
+
35
+ if "grid" in flags: ax.grid(True)
36
+ if "leg" in flags and ax.get_legend() is None: # a 100% stack has no free corner: legend goes right
37
+ ax.legend(**({"loc": "center left", "bbox_to_anchor": (1, 0.5)} if "norm" in flags else {}))
38
+ if "logx" in flags: ax.set_xscale("log")
39
+ if "logy" in flags: ax.set_yscale("log")
40
+ if title: ax.set_title(title)
41
+ if "tight" in flags: ax.figure.tight_layout()
42
+ return ax
kx/_spec.py ADDED
@@ -0,0 +1,57 @@
1
+ """Spec grammar (kind-theme-flag-flag-...) and the registry of kinds."""
2
+ from collections.abc import Callable
3
+ from dataclasses import dataclass
4
+ from typing import Any
5
+
6
+ from ._theme import styles
7
+
8
+ COMMON_FLAGS = {"grid", "leg", "logx", "logy", "tight"} # handled by kx.plot for every kind
9
+
10
+
11
+ @dataclass(frozen=True)
12
+ class Kind:
13
+ """A plot kind: draw(ax, x, y, z, flags) plus what kx.plot checks before drawing."""
14
+ name: str
15
+ draw: Callable[..., None]
16
+ flags: frozenset[str] # kind-specific flags, on top of COMMON_FLAGS
17
+ needs_y: bool
18
+ check: Callable[[Any, Any, set[str]], None] | None # check(y, z, flags) raises on bad input
19
+
20
+
21
+ KINDS: dict[str, Kind] = {}
22
+
23
+
24
+ def kind(name: str, flags: tuple[str, ...] = (), needs_y: bool = True,
25
+ check: Callable[[Any, Any, set[str]], None] | None = None) -> Callable:
26
+ """Decorator that registers a draw function as kind `name`."""
27
+ def register(draw: Callable[..., None]) -> Callable[..., None]:
28
+ if name in KINDS or name in COMMON_FLAGS or "-" in name:
29
+ raise ValueError(f"kind name {name!r} is taken or has a '-'")
30
+ KINDS[name] = Kind(name, draw, frozenset(flags), needs_y, check)
31
+ return draw
32
+ return register
33
+
34
+
35
+ def all_flags() -> set[str]:
36
+ """Common flags and every kind-specific flag."""
37
+ return COMMON_FLAGS.union(*(k.flags for k in KINDS.values()))
38
+
39
+
40
+ def parse(spec: str) -> tuple[str, str | None, set[str]]:
41
+ """Split 'kind-theme-flag-...' into (kind, theme, flags). Strict: no guessing."""
42
+ toks = spec.split("-")
43
+ themes, flags = set(styles()), all_flags()
44
+ unknown = [t for t in toks if t not in KINDS.keys() | flags | themes]
45
+ if unknown:
46
+ raise ValueError(f"unknown tokens: {unknown}. Run kx.grammar() to see valid ones.")
47
+ kinds = [t for t in toks if t in KINDS]
48
+ picked = [t for t in toks if t in themes]
49
+ if len(kinds) > 1:
50
+ raise ValueError(f"spec {spec!r} has more than one kind: {kinds}")
51
+ if len(picked) > 1:
52
+ raise ValueError(f"spec {spec!r} has more than one theme: {picked}")
53
+ kind = (kinds or ["line"])[0]
54
+ for flag in sorted(set(toks) & (flags - COMMON_FLAGS - KINDS[kind].flags)):
55
+ owners = sorted(k.name for k in KINDS.values() if flag in k.flags)
56
+ raise ValueError(f"flag {flag!r} only works with kind {owners}, not {kind!r}")
57
+ return kind, (picked or [None])[0], set(toks) & flags
kx/_theme.py ADDED
@@ -0,0 +1,72 @@
1
+ """Themes, palettes and colormaps: discovery and kx.use."""
2
+ from typing import Any
3
+
4
+ import matplotlib as mpl
5
+ import matplotlib.pyplot as plt
6
+
7
+ from . import _files
8
+
9
+ BUILTIN_CMAPS = ("viridis", "magma", "plasma", "inferno", "cividis", "turbo",
10
+ "twilight", "coolwarm", "berlin", "managua", "vanimo")
11
+
12
+
13
+ def styles() -> list[str]:
14
+ """List available theme names."""
15
+ return _files.names("styles", ".mplstyle")
16
+
17
+
18
+ def style_path(name: str) -> str:
19
+ """Path to styles/<name>.mplstyle; unknown names raise ValueError."""
20
+ if name not in styles():
21
+ raise ValueError(f"unknown theme {name!r}. Available: {styles()}")
22
+ return _files.path("styles", f"{name}.mplstyle")
23
+
24
+
25
+ def palettes() -> list[str]:
26
+ """List available palette names."""
27
+ return _files.names("styles/palettes", ".txt")
28
+
29
+
30
+ def palette(name: str) -> list[str]:
31
+ """Colors of styles/palettes/<name>.txt as '#RRGGBB' strings (one hex per line, '#' lines are comments)."""
32
+ return _read_palette(name)
33
+
34
+
35
+ def _read_palette(name: str) -> list[str]:
36
+ """palette() under a name that kx.use's `palette` argument does not shadow."""
37
+ if name not in palettes():
38
+ raise ValueError(f"unknown palette {name!r}. Available: {palettes()}")
39
+ with open(_files.path("styles", "palettes", f"{name}.txt")) as f:
40
+ lines = (line.strip() for line in f)
41
+ return [f"#{line}" for line in lines if line and not line.startswith("#")]
42
+
43
+
44
+ def cmaps() -> list[str]:
45
+ """List supported colormap names that this matplotlib version has."""
46
+ return sorted(n for n in BUILTIN_CMAPS if n in mpl.colormaps)
47
+
48
+
49
+ def show(name: str) -> None:
50
+ """Print the contents of a style file."""
51
+ with open(style_path(name)) as f:
52
+ print(f.read())
53
+
54
+
55
+ def use(name: str = "dark", palette: str | list[str] | None = None, cmap: str | None = None,
56
+ **rc: Any) -> None:
57
+ """Apply a theme, optional palette (name from styles/palettes/ or list of colors),
58
+ colormap (one of kx.cmaps()), and rcParam overrides.
59
+ Use double underscore for dots: figure__figsize=(8, 4) -> figure.figsize
60
+ """
61
+ if cmap is not None and cmap not in cmaps():
62
+ raise ValueError(f"unknown cmap {cmap!r}. Available: {cmaps()}")
63
+ plt.style.use(["default", style_path(name)]) # reset first so themes never mix
64
+ if cmap:
65
+ plt.rcParams["image.cmap"] = cmap
66
+ if palette:
67
+ colors = _read_palette(palette) if isinstance(palette, str) else list(palette)
68
+ # swap only the colors; other cycled props (paper's linestyles) repeat to the new length
69
+ rest = {k: v for k, v in plt.rcParams["axes.prop_cycle"].by_key().items() if k != "color"}
70
+ plt.rcParams["axes.prop_cycle"] = plt.cycler(
71
+ color=colors, **{k: [v[i % len(v)] for i in range(len(colors))] for k, v in rest.items()})
72
+ plt.rcParams.update({k.replace("__", "."): v for k, v in rc.items()})
kx/_util.py ADDED
@@ -0,0 +1,22 @@
1
+ """Small helpers shared by the kinds."""
2
+ from typing import Any
3
+
4
+ import numpy as np
5
+ import pandas as pd
6
+ from numpy.typing import ArrayLike
7
+
8
+
9
+ def label(arr: ArrayLike, default: str) -> str:
10
+ """Use a pandas Series name as legend label when there is one."""
11
+ name = getattr(arr, "name", None)
12
+ return str(name) if name is not None else default
13
+
14
+
15
+ def categories(z: ArrayLike) -> list[Any] | None:
16
+ """Category values of z if it is text, bool or categorical; None if z is numeric."""
17
+ s = z if isinstance(z, pd.Series) else pd.Series(np.asarray(z))
18
+ if isinstance(s.dtype, pd.CategoricalDtype):
19
+ return list(s.cat.categories)
20
+ if pd.api.types.is_numeric_dtype(s) and not pd.api.types.is_bool_dtype(s):
21
+ return None
22
+ return sorted(s.dropna().unique(), key=str)
kx/data/cloud.csv ADDED
@@ -0,0 +1,201 @@
1
+ x,y,z
2
+ 0.3047,0.4529,0.7037
3
+ -1.04,0.502,-0.479
4
+ 0.7505,0.5227,1.5193
5
+ 0.9406,1.0795,1.9019
6
+ -1.951,-2.8108,-4.6054
7
+ -1.3022,-0.8203,-2.2022
8
+ 0.1278,-0.5979,-0.5053
9
+ -0.3162,-1.1648,-1.2322
10
+ -0.0168,-0.7126,-1.3273
11
+ -0.853,-0.7791,-2.0211
12
+ 0.8794,1.2604,1.6951
13
+ 0.7778,-0.5944,-0.5167
14
+ 0.066,0.0641,-0.0733
15
+ 1.1272,0.289,1.6411
16
+ 0.4675,0.0184,0.4004
17
+ -0.8593,0.2866,-0.5133
18
+ 0.3688,0.6517,1.3473
19
+ -0.9589,0.4946,-0.066
20
+ 0.8785,0.4035,1.2612
21
+ -0.0499,-0.5867,-0.2306
22
+ -0.1849,-0.29,-0.4472
23
+ -0.6809,-0.2146,-1.1467
24
+ 1.2225,0.8748,1.919
25
+ -0.1545,-0.9602,-1.5589
26
+ -0.4283,-0.1846,-0.8794
27
+ -0.3521,-0.0287,-0.4882
28
+ 0.5323,2.3334,3.1067
29
+ 0.3654,1.7207,2.6024
30
+ 0.4127,-0.435,-0.4369
31
+ 0.4308,0.0286,0.5773
32
+ 2.1416,0.1142,1.9437
33
+ -0.4064,-0.7164,-0.9804
34
+ -0.5122,-0.0549,-0.6064
35
+ -0.8138,0.4764,-0.8866
36
+ 0.616,-0.2137,0.6808
37
+ 1.129,0.1541,1.1015
38
+ -0.1139,-1.7862,-2.0603
39
+ -0.8402,-0.6342,-1.7953
40
+ -0.8245,-1.3446,-2.3654
41
+ 0.6506,-0.0332,0.7458
42
+ 0.7433,-0.2555,0.4309
43
+ 0.5432,0.2505,0.8922
44
+ -0.6655,-1.8055,-2.3624
45
+ 0.2322,-1.0343,-0.406
46
+ 0.1167,1.7734,1.7873
47
+ 0.2187,-0.8987,-1.1231
48
+ 0.8714,-0.3546,0.837
49
+ 0.2236,1.6037,1.7278
50
+ 0.6789,2.7314,3.7447
51
+ 0.0676,-0.8967,-0.7141
52
+ 0.2891,-0.1211,0.1287
53
+ 0.6313,0.652,1.3879
54
+ -1.4572,0.5087,-0.3632
55
+ -0.3197,-0.9813,-0.6779
56
+ -0.4704,-0.4784,-0.928
57
+ -0.6389,0.2385,-0.3523
58
+ -0.2751,0.1827,0.2305
59
+ 1.4949,0.596,1.8373
60
+ -0.8658,-0.6266,-1.3925
61
+ 0.9683,-0.5189,0.4416
62
+ -1.6829,-1.2003,-2.789
63
+ -0.3349,-0.414,-0.9989
64
+ 0.1628,0.2834,-0.0307
65
+ 0.5862,-0.0925,-0.1282
66
+ 0.7112,0.804,1.18
67
+ 0.7933,1.2862,1.9419
68
+ -0.3487,-0.0849,-0.5216
69
+ -0.4624,0.004,0.1228
70
+ 0.858,0.5573,1.7471
71
+ -0.1913,-0.1147,-0.5946
72
+ -1.2757,-1.3427,-2.514
73
+ -1.1333,-0.4268,-1.6822
74
+ -0.9195,-0.6295,-1.6343
75
+ 0.4972,1.9728,2.5256
76
+ 0.1424,1.3441,1.6723
77
+ 0.6905,0.723,1.3117
78
+ -0.4273,-0.8668,-0.9749
79
+ 0.1585,-0.7948,-0.9788
80
+ 0.6256,1.3283,1.9558
81
+ -0.3093,0.0246,0.4945
82
+ 0.4568,0.6582,1.1819
83
+ -0.6619,-1.7928,-2.0248
84
+ -0.3631,0.5241,0.1885
85
+ -0.3817,0.1345,-0.073
86
+ -1.1958,-1.6058,-2.8187
87
+ 0.487,-0.085,0.3508
88
+ -0.4694,-0.0707,-0.7739
89
+ 0.0125,0.0495,0.1911
90
+ 0.4807,0.0547,0.28
91
+ 0.4465,0.1851,0.8313
92
+ 0.6654,0.1976,1.1886
93
+ -0.0985,0.063,0.0744
94
+ -0.4233,0.9232,0.414
95
+ -0.0797,-2.1012,-2.0447
96
+ -1.6873,-1.2019,-2.9818
97
+ -1.4471,-0.7271,-1.8935
98
+ -1.3227,-0.5568,-2.4289
99
+ -0.9972,-0.8959,-1.9938
100
+ 0.3998,-1.1655,-1.363
101
+ -0.9055,-0.2809,-1.6349
102
+ -0.3782,1.155,1.186
103
+ 1.2992,-0.4476,1.1202
104
+ -0.3563,0.4773,-0.0948
105
+ 0.7375,0.1797,0.4665
106
+ -0.9336,-0.6092,-2.4322
107
+ -0.2054,-0.9656,-1.3341
108
+ -0.95,-0.8376,-1.0615
109
+ -0.339,0.8366,0.628
110
+ 0.8403,0.9703,1.6427
111
+ -1.7273,0.3495,-1.2383
112
+ 0.4344,1.2026,1.1687
113
+ 0.2377,0.4939,0.6424
114
+ -0.5941,1.0387,0.4744
115
+ -1.4461,-0.5164,-1.9883
116
+ 0.0721,0.7057,1.015
117
+ -0.5295,-0.555,-0.9811
118
+ 0.2327,0.1928,0.626
119
+ 0.0219,-0.5448,-0.7295
120
+ 1.6018,1.7527,3.6239
121
+ -0.2394,-1.0863,-0.8369
122
+ -1.0235,0.0118,-1.3028
123
+ 0.1793,-0.045,-0.132
124
+ 0.22,1.069,1.6897
125
+ 1.3592,1.4162,2.718
126
+ 0.8351,1.9576,3.2138
127
+ 0.3569,0.7987,1.0229
128
+ 1.4633,-0.3797,1.5202
129
+ -1.1888,-0.7668,-1.9161
130
+ -0.6398,-1.3215,-1.8837
131
+ -0.9266,-0.9706,-1.4277
132
+ -0.3898,0.9751,0.4768
133
+ -1.3767,-0.316,-1.975
134
+ 0.6352,-0.1781,0.3225
135
+ -0.2222,-0.9443,-1.0308
136
+ -1.4708,-0.8563,-2.7968
137
+ -1.0156,-1.5826,-2.4069
138
+ 0.3135,-0.3488,-0.1969
139
+ 0.8381,0.7525,1.935
140
+ 1.9967,2.1223,3.4007
141
+ 2.9139,2.2353,4.9132
142
+ 0.4144,-1.5844,-1.6759
143
+ -0.9895,-0.3502,-1.5876
144
+ -2.132,-1.2216,-3.2793
145
+ 0.2677,0.4917,0.7057
146
+ -0.8129,0.8052,-0.0838
147
+ -0.4154,-1.8998,-2.3629
148
+ -0.6121,-0.8401,-1.3912
149
+ -0.1408,0.3883,-0.0551
150
+ 1.066,-0.6257,0.6523
151
+ 0.157,1.275,1.6308
152
+ -0.1586,0.1995,0.1564
153
+ -1.0357,0.0559,-0.8128
154
+ -1.6747,-1.4616,-3.0473
155
+ -0.4863,0.3592,0.4834
156
+ -0.0538,0.8225,0.7426
157
+ 1.7679,1.2471,2.9229
158
+ 0.1303,0.2657,0.1699
159
+ 0.9827,0.8059,1.479
160
+ -0.4993,-0.9903,-1.8629
161
+ -1.1849,-0.829,-2.2806
162
+ -0.9651,-0.7011,-1.6874
163
+ -0.7252,-0.1284,-0.7534
164
+ 2.1285,2.0769,4.2208
165
+ -0.8214,-1.3397,-2.3907
166
+ 0.8385,0.4031,1.5116
167
+ -0.9029,0.6434,-0.0377
168
+ 0.9316,-0.0359,0.8478
169
+ 0.385,-0.4268,-0.2378
170
+ -0.1566,0.0679,0.0758
171
+ -0.0408,0.6511,0.6667
172
+ -0.6548,-0.3837,-1.473
173
+ 0.4461,1.3308,1.7565
174
+ -0.455,0.4124,0.0361
175
+ -1.2256,-0.0619,-1.5574
176
+ -1.2779,-0.3235,-1.5445
177
+ 0.1726,1.9657,1.7018
178
+ 1.5791,0.7833,2.7633
179
+ 0.16,-1.5068,-0.9724
180
+ -0.1186,1.2122,1.0178
181
+ 0.2858,-0.1947,0.2002
182
+ 1.306,0.8699,1.4529
183
+ 0.2194,1.1793,1.0517
184
+ -0.4109,-1.5284,-2.0274
185
+ 1.1063,-0.3375,0.4471
186
+ 0.4288,-1.0238,-0.3807
187
+ 1.5358,0.2861,2.4211
188
+ 0.1832,0.4616,0.2919
189
+ -1.2245,-0.3153,-1.791
190
+ -1.3682,-0.5999,-1.8974
191
+ 1.6509,-0.1397,1.9946
192
+ 1.7237,-0.8139,0.5431
193
+ -0.1795,-0.0642,-0.169
194
+ -0.3832,-0.6073,-0.4441
195
+ 1.4614,1.2444,2.2103
196
+ -1.107,-0.1027,-1.594
197
+ -0.8947,-0.4262,-1.4481
198
+ 0.6433,0.9941,1.4813
199
+ -0.3946,-0.0534,-0.2042
200
+ -0.0051,0.421,0.4884
201
+ -0.1634,-0.6618,-1.3577