You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move axisartist towards using standard Transforms.
axisartist can generate "slanted" or "curved" axes defined using either
a custom Transform, or a custom pair of callables (forward, backward)
which define the Transform. Instead of repeatedly testing the two cases
in `transform_xy` and `inv_transform_xy`, just wrap the
pair-of-callables into a custom Transform subclass (which should
probably not be moved to the main library, as it uses the transposed
convention compared to the usual one), and expose it through a getter.
This allows later combining this transform using "standard" transform
addition (and get benefits such as single multiplication of matrices
in affine transforms, exact cancellation of inverses, or (later) more
accurate transforming of arcs in polar transforms), instead of having to
manually call successive transforms. See e.g. the two changes in the
local transform_xy definitions.
0 commit comments