-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
Updates to matplotlib element references to use opts #3270
Conversation
I've gone through the suggestions above and I think my own preference is fairly clear and consistent: if you have a composition and don't need to distinguish identical element types, put I think this has the advantages of:
One thing I would say is maybe curve = hv.Curve((xs,ys))
arrow = hv.Arrow(0, 5, 'Inflection', 'v')
(curve * arrow).opts(
opts.Curve(color='#D3D3D3')) This is in the |
|
"%%opts QuadMesh [xticks=[10, 100,1000]] QuadMesh.LogScale [logx=True]\n", | ||
"hv.QuadMesh((xs, ys, zs), group='LinearScale') + hv.QuadMesh((xs, ys, zs), group='LogScale')" | ||
"qmesh = hv.QuadMesh((xs, ys, zs), label='Linear Axis')\n", | ||
"log_qmesh = qmesh.relabel('Log x-axis')\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could use title_format
here too...
"hmap = hv.HoloMap({phase: hv.VectorField((x, y,(vector_data[2]+phase)%np.pi*2, vector_data[3]+np.abs(phase)))\n", | ||
" for phase in np.linspace(-np.pi,np.pi,5)}, kdims='Phase')\n", | ||
"\n", | ||
"hmap.opts(opts.VectorField(color='Angle', magnitude=dim('Magnitude').norm()*0.2, rescale_lengths=False))" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would format this consistently i.e start opts.VectorField
indented on the next line.
Thanks for updating these! I think we are converging on a common style now. Merging. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
No description provided.