Skip to content

Commit 97a4a58

Browse files
committed
updated documentation
1 parent 71edcce commit 97a4a58

File tree

2 files changed

+27
-11
lines changed

2 files changed

+27
-11
lines changed

xpipe/tools/catalogs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ def flat_copy(recarr):
106106

107107

108108
def match_endian(arr):
109+
"""Tries to auto convert the Endian ordering of an array to match to native ordering"""
109110
valid_endians = ["<", ">"]
110111
endians = {
111112
"little": "<",

xpipe/tools/visual.py

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,38 @@ def make_simple_corner(flat_samples, color="C0", fig=None, axarr=None, npar=3, f
1616
1717
Parameters
1818
----------
19-
flat_samples
20-
color
21-
fig
22-
axarr
23-
npar
24-
figsize
25-
wspace
26-
hspace
27-
axis_labels
28-
limits
29-
nbins
19+
flat_samples; np.array
20+
MCMC chain samples
21+
color: str
22+
color for contour lines
23+
fig: plt.figure
24+
figure to overdraw to
25+
axarr: plt.axes
26+
array of plt.axis to overdraw to
27+
npar: int
28+
number of parameters in flat_samples
29+
figsize: tuple
30+
figure size in inch
31+
wspace: float
32+
wspace for subplots_adjust
33+
hspace: float
34+
hspace for subplots_adjust
35+
axis_labels: list of str
36+
axis labels (including latex special characters)
37+
limits: list of lists
38+
plotting limits for each parametr
39+
nbins: int
40+
number of bins for histogram
3041
levels: str
3142
"max" or "conf"
3243
kwargs
3344
3445
Returns
3546
-------
47+
fig: plt.figure
48+
figure
49+
axarr: plt.axis
50+
list of axes
3651
3752
"""
3853
if fig is None:

0 commit comments

Comments
 (0)