#124 mouseformat in svg term


I use the latest development version from cvs.
The hide/unhide function for svg term works perfect.
set term svg mouse size 1000,600 jsdir './'
does its job
set mouse mouseformat 4
doesn't change anything.
am i too stupid to use it or is there still some developing needed?


  • Ethan Merritt

    Ethan Merritt - 2011-09-01

    The current code has no provision for translating user-defined functions or formats from gnuplot's own syntax into javascript for use by the svg or canvas terminals. That sounds hard.

    It would probably be easier to provide some mechanism for specifying use of a named javascript routine that the user provides. Suggestions or examples of how that might work would be welcome.

  • Nobody/Anonymous

    Thanks for your statement.
    But i do not have the knowledge to bring any suggestions, sorry.

  • Ethan Merritt

    Ethan Merritt - 2011-09-04
    • status: open --> open
  • Ethan Merritt

    Ethan Merritt - 2011-09-04

    I have just now added basic time-format support to the javascript mousing code for the svg and canvas terminals. mouseformat 4 = Date mouseformat 5 = Time anything else = full Date+Time.

    If you do "set mouse mouseformat 'string'" it will pass the string through to the output, but the javascript code doesn't currently do anything useful with it. The idea is that eventually you could use this to request output via a javascript routine provided by the user.

  • Nobody/Anonymous

    Thank you very very much.

  • Nobody/Anonymous

    Error: gnuplot is not defined
    Source File: gnuplot_svg.js
    Line: 68

  • Ethan Merritt

    Ethan Merritt - 2011-09-06

    Oops. Sorry. Fixed now.

  • Ethan Merritt

    Ethan Merritt - 2011-11-25
    • status: open --> closed

Log in to post a comment.