Menu

#2526 Wrong mouseformat 2 in logscale!?

None
closed-fixed
nobody
2022-07-11
2022-05-28
theozh
No

According to documentation, with the set mouse mouseformat 2 you should get

2 graph coordinates (from 0 to 1) /0.00, 1.00/

For the edge points of the graph this seems to be correct.
However, not for graphs with a logarithmic axis and positions between graph 0 and graph 1.

### wrong mouseformat 2 in logscale
reset session

set xrange [0:1]
set yrange [0.01:1]
set logscale y
set grid x,y
set mouse mouseformat 2

plot x
### end of code
# x    y    mouseX  mouseY
  0.0  0.01  0.0     0.0        # correct
  1.0  0.01  1.0     0.0        # correct
  1.0  1.0   1.0     1.0        # correct
  0.0  1.0   0.0     1.0        # correct
  0.0  0.1   0.0     0.0916     # however, mouseY should be 0.5
  0.5  0.1   0.5     0.0916     # however, mouseY should be 0.5
1 Attachments

Discussion

  • Ethan Merritt

    Ethan Merritt - 2022-05-30
    • status: open --> pending-fixed
     
  • Ethan Merritt

    Ethan Merritt - 2022-07-11
    • Status: pending-fixed --> closed-fixed
     

Log in to post a comment.