New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation Issues from a Learner's Perspective #2116
Comments
Visualization OptionsI have learned that the list of options can be seen by using
Here is how I (failed) to figure things out. For example: suppose I want to change the height of the following plots: x = np.linspace(0,1,100)
l = hv.Curve((x, x**2)) + hv.Curve((x, np.sin(x)))
l First I need to know to do
My reading of this documentation is that something called Failures: hv.help('LayoutPlot') # no Python documentation found for 'LayoutPlot'
l.height = 100 # Silently fails to do anything. Okay, this is python.
l.set_param(height=100) # ValueError: 'height' is not a parameter of Layout10599
l.get_param_values() # Ah, height is not a parameter... okay
l.opts(height=100) # TypeError: 'int' object is not iterable??
l.opts(options=dict(height=100)) # AttributeError: 'int' object has no attribute 'items'???
# I give up for now... Let's go to options.
%%opts LayoutPlot [height=100] # WARNING: Unknown elements LayoutPlot not registered with any of the loaded backends.
%%opts Layout [height=100] # Silently has no effect.
%%opts Curve (height=100) # Unexpected style option 'height' for Curve... Clear
%%opts Curve [height=100] # Works!
# Reads Dictionary format section of Customizing Plots
dict_spec = {'Layout.Curve': {'plot': dict(height=100)}}
dict_spec = {'Curve': {'plot': dict(height=100)}}
l.opts(dict_spec)
l # Does nothing. Successes: %%opts Curve [height=100] # Works! dict_spec = {'Curve': {'plot': dict(height=100)}}
l.opts(dict_spec) # This returns a clone that has the options set. dict_spec = {'Curve': {'plot': dict(height=100)}}
hv.opts(dict_spec) # Globally sets the options It really surprised me that |
Normalization
For example, I expected the following with distinct
|
As I am starting again to seriously consider using HoloViews, I come across deficiencies in the documentation from the perspective of a learner. I will collect these here:
Curve.html
data
parameter should be for a Curve. It can be either a single array in which case the the abscissa will be an array of indices, or it can be a tuple of arrays. Can thekdims
andvdims
also be passed in? If it is anxarray.DataArray
or aDataset
, then thekdims
etc. can be specified from there. I suppose if one has a good working knowledge of HoloViews, then this might all be obvious, but for a first time user, Curve is probably the entry point, and it would be nice to have at least a link to the appropriate discussion at this point. Some related questions that could be answered here:group
andlabel
options do not appear in any documentation I could easily find at the point of source.data
somehow specifygroup
orlabel
options?The text was updated successfully, but these errors were encountered: