Thanks do your interest in Bokeh. First I want to mention that the API is going to change slightly in 0.7, and actually to make things like you are asking more clear. But let me say how you can get ahold of plots now:
* all the glyph functions, line, rect, etc. return a plot
* curplot() returns the "current plot"
So you could do something like:
p1 = line(...)
p2 = rect(...)
later you can do whatever you like with p1, and p2: update their ranges, change their visual attributes, and you can also add new glyphs:
p1.circle(...) # add a circle glyph to p1
Note that this more explicit style of use is actual what will be madated in 0.7 anyway.
Let us know if this is enough information to get you going,
On Sep 28, 2014, at 1:08 PM, Magne <[email protected]> wrote:
I have recently begun using your Bokeh library. Today however, I hit a bit of a wall. My problem seems simple, but I cannot find any help online, and no examples are resembling my problem. I therefore turn directly to you for any guidance.
Basically, my problem is as follows:
1: I create a new plot by calling figure() and draw some glyphs.
2: Then I create a second plot by calling figure() again, and draw glyphs to it.
3: I now want to select the first plot and draw new glyphs to it, but I cannot find how to set the current plot that the glyphs will be drawn on!
To me it seems that the only way to change the current plot is by making a whole new plot. Is there no way of setting an already existing plot a the current plot?
Using Opera's mail client: http://www.opera.com/mail/
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/op.xmwsowhfolrznv%40magne-gs60.v.cablecom.net.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.