def testE2E(self): """Test end-to-end creation of figures with outputs to pdf and png""" p = pygg.ggplot('diamonds', pygg.aes(x='carat', y='price', color='clarity')) p += pygg.geom_point(alpha=0.5, size = .75) p += pygg.scale_x_log10() p += pygg.theme_bw() self.check_ggsave(p, None, ext=".pdf") self.check_ggsave(p, None, ext=".png") self.check_ggsave(p, None, ext=".jpg")
def testE2E(self): """Test end-to-end creation of figures with outputs to pdf and png""" p = pygg.ggplot('diamonds', pygg.aes(x='carat', y='price', color='clarity')) p += pygg.geom_point(alpha=0.5, size=.75) p += pygg.scale_x_log10() p += pygg.theme_bw() self.check_ggsave(p, None, ext=".pdf") self.check_ggsave(p, None, ext=".png") self.check_ggsave(p, None, ext=".jpg")
def testLimits(self): p = pygg.ggplot('diamonds', pygg.aes(x='carat', y='price', color='clarity')) p += pygg.geom_point(alpha=0.5, size = .75) p += pygg.scale_x_log10(limits=[1, 2]) self.check_ggsave(p, None)
def testLimits(self): p = pygg.ggplot('diamonds', pygg.aes(x='carat', y='price', color='clarity')) p += pygg.geom_point(alpha=0.5, size=.75) p += pygg.scale_x_log10(limits=[1, 2]) self.check_ggsave(p, None)