Open ea42gh opened 6 years ago
Not sure about that fix: consistency would require that the AdjointLayout plot as a whole gets a title, rather than one of the elements composing it: I can always add a title to each of the elements
x_vals = .3*np.random.normal(size=500)+5
y_vals = np.random.normal(size=500)
h=\
(hv.Scatter((x_vals,y_vals)).redim.range(x=(0,10))).relabel('scatterplot')<<\
hv.Distribution( y_vals, 'y').options(width=150)<<\
hv.Distribution( x_vals, 'x').options(height=150)
h
calling h.relabel('plot title')
now changes the scatterplot title....
Setting yaxis and xaxis to None for the right and top plots results in too big a gap between the plots in matplotlib. How can that get adjusted?
Also note that the top distribution is not correct in matplotlib: tha axes are independent?!
Also note that the top distribution is not correct in matplotlib: the axes are independent?!
Looks like it. I'll try to add fixes for both.
I think an example like this would make a great HowTo:
If you have suggestions for improvements of the routine, I'd love to see them!
Any activity on this?
I can't figure out how set a title on an AdjointLayout. Calling adjointlayout.relabel
or adjointlayout.opts(...)
throws TypeError: __init__() got an unexpected keyword argument 'cdims'
Help would be much appreciated
A workaround would be to add an hv.Div() with a title to the Figure as a whole
I'm having the same problem.
results in the title to be applied to each hv Element in the plot
Adding a Div to insert a title runs into width/height issues: The Div below does not start at the same left hand side as the plot, and there appears to be an additional element off to the top right:
Relabeling the topmost plot does work in bokeh; note the layout problems when viewed with say eog in Linux