On Sat, Jul 4, 2009 at 8:08 AM, Ash<[email protected]> wrote: > > Hey, > > I am currently designing an interactive program that demonstrates the > Sieve of Eratosthenes. It displays a grid of numbers, created using > the matrix_plot function. > > I was hoping to include some code that will allow tooltips to appear > when the cursor moves over certain numbers in the grid. Is there any > way to do this?
There is no way to currently do that using matrix_plot. If I were you, I would write my own HTML output of a matrix and use the HTML <a href="" alt="tooltip">299</a> tag. You can use the Sage command html(...) to output html. > > At the moment I have used javascript to get popup windows whenever the > desired numbers are clicked. I also know how to get tooltips to come > up over text (by using a link). I'm just not sure how to get tooltips > onto the plot. > > Thanks a lot, > Ash > > > -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
