xhorizon.diagram_tools.curvemakers module
This module contains functious for generating useful curves which can be added to a diagram.
DEFAULT ZORDER: 100 = FILL 200 = UV GRID 400 = BOUNDARY 600 = RLINES
- xhorizon.diagram_tools.curvemakers.rlines(rvals, sty={}, inf=50.0, t0=0.0, npoints=1000)
Produce lines of constant radius for r in rvals. Return list of curves.
- xhorizon.diagram_tools.curvemakers.default_rlines(func, sty={}, inf=50.0, npoints=1000)
- xhorizon.diagram_tools.curvemakers.rstarlines(vals, c=None, sty={}, inf=50.0, npoints=1000)
Produce lines of constant rstar for rstar in vals. Return list of curves.
- xhorizon.diagram_tools.curvemakers.rstarlines_special_1(vals, c=None, s0=None, ki=None, A=10000.0, sty={}, inf=100.0, npoints1=1001, npoints2=1001, npoints3=1001)
Produce lines of constant rstar for rstar in vals. Return list of curves. These are specially supplemented to give many data points immediately after s0 for zoom views.
- xhorizon.diagram_tools.curvemakers.rstarlines_special_2(vals, uvbounds, c=None, sty={}, inf=100.0, npoints=1000, eps=1e-12)
- Produce lines of constant rstar for rstar in vals. Return list of curves.
(v-u)/2 = rstar - c
- xhorizon.diagram_tools.curvemakers.uvlines(uvvals, uv='uv', uvbounds={}, sty={}, c=0.0, eps=1e-24, inf=100.0, npoints=1001)
Produce lines of constant radius for r in rvals. Return list of curves.
- xhorizon.diagram_tools.curvemakers.block_boundary(blk, sty={}, inf=100.0, npoints=1000)
- xhorizon.diagram_tools.curvemakers.block_boundary_2(blk, sty={}, inf=100.0, npoints=2001)
- xhorizon.diagram_tools.curvemakers.colnorm1(svals, smin, smax)
Color bar normalizer for input into colormap. Input an array of svals. Return an array of the absolute values normalized to (0,1) and truncated at smin, smax.