Several improvements to plots and tab.variable