piccolbo / altair_recipes

A selection of statistical graphics for vega in python, based on altair.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overlapping axis title in faceted graphs

piccolbo opened this issue · comments

  • altair_recipes version: 0.5.0
  • Python version:
  • Operating System:

Description

faceted graphs

What I Did

See test_autoplot_45, for instance

What happens

Faceted graphs have overlapping axis titles. They are also redundant. One solution is to shorten them with titleLimit, available from vega 3 which should also correspond to altair 3. Another could be not to display all of them, like alternating, or just one. FWIW, the ggplot way is to not repeat axis titles because of faceting. Just place one in the middle. Also, move the facet var opposite to the axis.