overriding the coordinates display on Figure window

Hi John

Thanks for that. I thought I recalled seeing the example you mentioned, but obviously it was a different one.

I tried the code you gave me and it worked perfectly. Thanks very much!


John Hunter wrote:

The approach I suggested doesn't affect the x and y axes, only the
coord in the toolbar.




  def myfmt(x,y): return 'myfmt (%1.2f, %1.2f)'%(x,y) ax = subplot(111)
  ax.format_coord = myfmt


John Pye
Department of Mechanical and Manufacturing Engineering
University of New South Wales, Sydney, Australia