eloy.viz#
Visualization utilities for astronomical images.
This module provides functions for image scaling and for plotting marks and labels on matplotlib axes.
Functions#
|
Compute z-scale interval for image display. |
|
Plot circular marks and optional labels on a matplotlib axis. |
Module Contents#
- eloy.viz.z_scale(data, c=0.05)[source]#
Compute z-scale interval for image display.
- Parameters:
data (np.ndarray) – 2D image data.
c (float, optional) – Contrast parameter for ZScaleInterval.
- Returns:
(vmin, vmax) for display scaling.
- Return type:
tuple
- eloy.viz.plot_marks(x, y, label=None, position='bottom', offset=7, fontsize=12, color=[0.51, 0.86, 1.0], ms=12, n=None, inside=True, alpha=1, ax=None)[source]#
Plot circular marks and optional labels on a matplotlib axis.
- Parameters:
x (array-like) – X coordinates.
y (array-like) – Y coordinates.
label (array-like or None, optional) – Labels for each mark.
position (str, optional) – Position of the label (“top” or “bottom”).
offset (float, optional) – Offset for label position.
fontsize (int, optional) – Font size for labels.
color (list or str, optional) – Color for marks and labels.
ms (float, optional) – Marker size.
n (int or None, optional) – Number of marks to plot.
inside (bool, optional) – Only plot marks inside axis limits.
alpha (float, optional) – Alpha transparency.
ax (matplotlib.axes.Axes or None, optional) – Axis to plot on.
- Return type:
None