Scaling, categorization, and selecting materials have been fixed since Jorge's submission. All code should use db_get_plot_single_values now, but the old function is still around.