From: Sigve T. <si...@tj...> - 2005-01-31 19:39:19
|
Steve Chaplin skrev: >Well done. I tried it out on Linux (Fedora 3) and it works reasonably >well. > > > Thats nice. >I noticed a few things: >It puts the toolbar at the top rather than the bottom of the window. > > Fix by changing in NavigationToolbar2QtAgg.__init: qt.QToolBar.__init__(self, qt.QString(""), window, qt.Qt.DockTop) to qt.QToolBar.__init__(self, qt.QString(""), window, qt.Qt.DockBottom) >The graph is smaller and the colours are different than that produced >with GTKAgg, which is strange since they both use Agg rendering. > > Colors are fixed in CVS, i think. >I think it would be better to have a 'backend_qt.py' file used as a base >class (with a FigureCanvasQtAgg.draw() method that raises >NotImplementedError), and with backend_qtagg.py overriding just those >functions/methods which are specific to drawing using Agg. This would >allow backend_qt.py code to be used to produce a QtCairo backend at a >later date. > > > I agree, but have not time to do it right now. Regards, Sigve |