Beispiel #1
0
    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")
Beispiel #2
0
    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")
Beispiel #3
0
 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)
Beispiel #4
0
 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)