Carlos Pascual - 2015-09-29

Just to facilitate the patch (cannot do it myself now), here are a few notes:

The necessary changes should be done on the following lines of TaurusPlot.pickDataPoint()

            if self.getXIsTime():
                infotxt = "'%s'[%i]:\n\t (t=%s, y=%.5g)"%(pickedCurveTitle,pickedIndex,datetime.fromtimestamp(picked.x()).ctime(),picked.y())
            else:
                infotxt = "'%s'[%i]:\n\t (x=%.5g, y=%.5g)"%(pickedCurveTitle,pickedIndex,picked.x(),picked.y())

The formats for x and y can be obtained from the corresponding TaurusAttributes referenced by the picked curve (we already know its name in this scope).

Note 1: A quick -and-dirty workaround would be to change the hardcoded format strings "%.5g" by whatever other format you need

Note 2: TEP14 may introduce some changes here since the format will be available in a scheme-agnostic way from the "default_format" attribute of the rvalue

 

Last edit: Carlos Pascual 2015-09-29