-
Notifications
You must be signed in to change notification settings - Fork 184
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
Matplotlib matshow as custom tooltip #186
Comments
I believe, instead of calling show, you could save the figure as a numpy array, such as in this SO question: https://stackoverflow.com/questions/7821518/matplotlib-save-plot-to-numpy-array That should be roughly the same format as the image tooltips in the examples we provide. If you generate the array for each of the nodes and set those as the tooltips, you should get the desired results. Let me know if this makes sense and works, or if I can help with more detail. Thanks |
Thanks, I'll try and implement your suggestion 👍 |
@sauln when passing my custom tooltips list to Note that the python file in the gist is a mix of the custom tooltip algorithm and the whacky hack I did to avoid error in I have little understanding of the HTML template. Could you please take a look and see if I have done something obviously wrong? https://gist.github.com/torlarse/1ca1bdf50ec177822fa3d52d88b7b6e2 |
Is your feature request related to a problem? Please describe.
I have a large-ish Mapper complex where the samples in each node are nine-dimensional points with grayscale values. I have manual routine for finding interesting nodes in the
.html
output, identify node by number, then plot these vectors usingmatplotlib.pyplot.matshow
. That is quite tedious and not generalizable. My routine is this:Describe the solution you'd like
I would like to see the
plt.show()
from the snippet above to show as a tooltip in the.html
output file.Describe alternatives you've considered
I have looked around on the image tooltips and other variations from your website. Also automate routine of showing matrix subplots in a regular file.
Additional context
I don't mind trying to implement this myself, if the problem seem reasonable to solve.
The text was updated successfully, but these errors were encountered: