proplot icon indicating copy to clipboard operation
proplot copied to clipboard

Auto-offset "hanging" twin axes

Open lukelbd opened this issue 5 years ago • 3 comments

Like this:

I think this is cleaner and more obvious than the current dualx and dualy behavior, which looks like this:

Although this might be more suitable for the workflow described in #46 -- permitting arbitrarily "stacked" objects along the sides of each axes.

lukelbd avatar Oct 03 '19 15:10 lukelbd

In fact a really nice addition to the API might be to permit "axis legends", where instead of drawing a legend, we use color-coded, stacked, hanging x and y-axes, with axis labels instead of legend labels. This would be suitable for comparing data with vastly different ranges.

So many ideas, so little time...

lukelbd avatar Oct 03 '19 16:10 lukelbd

Arbitrarily many twins are now implemented (see #226). The specific "hanging" axis feature is probably not high priority.

lukelbd avatar Aug 19 '21 19:08 lukelbd

For those interested, it is now very easy to generate "hanging" axes in proplot with e.g. ax.altx(loc=('axes', 1.1)) -- although the positions are still not auto-adjusted. See this example from the website.

lukelbd avatar Dec 01 '21 19:12 lukelbd