allow specifying custom x and y scales; closes #346