[Chicago] Bokeh methods as arguments

Brian Ray brianhray at gmail.com
Thu Jun 23 14:56:59 EDT 2016


Why would you want to do this?

You can subclass Figure and add your own method yes. Or you can just do
something like (untested):

def my_call(p, shape_methods, x, y, line_color, fill_color):  # or *args
**kwargs...
   for method_name in shape_methods:
      method = getattr(p, method_name)
      method(x, y, line_color, fill_color)


-- 
Brian Ray
@brianray
(773) 669-7717
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20160623/89a107d5/attachment.html>


More information about the Chicago mailing list