refactor autoplot 1d