Ticket #36 (closed defect: worksforme)

Opened 7 years ago

Last modified 7 years ago

dynamic plots using matplotlib not working on Mac

Reported by: mmckerns Owned by: mmckerns
Priority: critical Milestone: mystic-0.1a2
Component: mystic.examples Keywords:
Cc:

Description (last modified by mmckerns) (diff)

dynamic plots using matplotlib not working on Mac

Impacts:

  • trunk, mystic-0.1a1 release

Symptoms:

  • python example02.py {is OK}
  • python example04.py {blank plot hangs at getch, mystic continues, 'Ctrl-C' shows plot during solver run}
  • python example09.py {blank plot hangs at getch, mystic continues, 'Ctrl-C' or 'call' shows plot during solver run}

However, it might just be a bad install of matplotlib...

Change History

comment:1 Changed 7 years ago by mmckerns

  • Status changed from new to assigned

comment:2 Changed 7 years ago by mmckerns

  • Description modified (diff)
  • Summary changed from getch may interfere with matplotlib 'ion' mode on the mac to dynamic plots using matplotlib not working on Mac

comment:3 Changed 7 years ago by mmckerns

  • Status changed from assigned to closed
  • Resolution set to worksforme

apparently, this is due to a known issue with the refresh rate of the different matplotlib backends (see  https://svn.enthought.com/epd/ticket/275).

A workaround is to run the examples with the TKAgg backend, like this:

$ python example04.py -dTKAgg

Should also add a note on the tutorials/installation page.

Note: See TracTickets for help on using tickets.