/+junk/pygooglechart-py3k

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/pygooglechart-py3k

« back to all changes in this revision

Viewing changes to pygooglechart.py

  • Committer: gak
  • Date: 2009-03-15 09:26:16 UTC
  • Revision ID: git-v1:4b470bcc49f53e8203d87d08be532215701881a6
 - #16 Allow either arguments in set_title_style()

Show diffs side-by-side

added added

removed removed

Lines of Context:
332
332
        self.markers = []
333
333
        self.line_styles = {}
334
334
        self.grid = None
 
335
        self.title_colour = None
 
336
        self.title_font_size = None
335
337
 
336
338
    # URL generation
337
339
    # -------------------------------------------------------------------------
402
404
        else:
403
405
            self.title = None
404
406
 
405
 
    def set_title_style(self, colour, font_size):
 
407
    def set_title_style(self, colour=None, font_size=None):
406
408
        if not colour is None:
407
409
            _check_colour(colour)
408
 
        self.title_colour = colour
409
 
        self.title_font_size = font_size
 
410
        if not colour and not font_size:
 
411
            return
 
412
        self.title_colour = colour or '333333'
 
413
        self.title_font_size = font_size or 13.5
410
414
 
411
415
    def set_legend(self, legend):
412
416
        """legend needs to be a list, tuple or None"""