Vasco Tenner

Results 15 comments of Vasco Tenner

I changed the PR such that is does not break the API anymore. There are no tests yet for the new code.

Will this be merged?

At this moment cache function does not store the code yet. In the function definition are some traces that this is very easy, including the line: `code = cell if...

I have a really uggly solution: ``` python %%opts Curve [finalize_hooks=[setglobal_hook], show_frame=True] a = hv.Curve(([1,2], [3,21]), vdims=['A']) b = hv.Curve(([1,2], [30,20]), vdims=['B']) def setglobal_hook(plot, element): global fig, el fig =...

A slightly cleaner solution: ``` def overlay(first, plot, element): fig = hv.Store.renderers['matplotlib'].get_plot(first) ax = plot.handles['axis'] ax2 = ax.twinx() ax2.set_yticks(fig.handles['axis'].get_yticks()) #ax2.set_yticklabels([t.get_text() for t in fig.handles['axis'].get_yticklabels()]) ax2.set_ylabel(fig.handles['axis'].get_ylabel()) for line in fig.handles['axis'].lines: ax2.plot(*line.get_data())...

This is a nice solution. It demonstrates again how powerfull holoviews is. But it show also how many undocumented gems are available. It might be good to add a cookbook...

It is really super that you have such a fast response on feature request! Today I tried this with elements with a group, but that does not work yet: ```...

Another point is that the range of the original axis is adjusted to fit to data of the second axis in. This is different from plt.twinx and unwanted behaviour. ```...

Setting `apply_ranges=False` works fine! Now I try to put this figure with two axis to a layout. Once of a sudden it is elongated: ``` a * b + a...

The same works for the y-axis ``` %%opts Curve [apply_ranges=False] def twiny(plot, element): ax = plot.handles['axis'] twinax = ax.twiny() twinax.set_xlabel(str(element.last.get_dimension(0))) plot.handles['axis'] = twinax a = hv.Curve(([1,2], [3,21]), kdims=[dim_radius], vdims=['A']) b...