Rewrite plot-ranking and plot-nuis