SourceForge logo
SourceForge logo
Menu

Re: [matplotlib-devel] First cut on a QtAgg backend

From: Steve C. <ste...@ya...> - 2005年01月30日 12:45:46
On Fri, 2005年01月28日 at 21:36 +0100, Sigve Tjora wrote: 
> Hi,
> I have written a basic QtAgg backend for Matplot-lib. It is only tested
> on Windows, so some more testing should be done, but it is my hope that
> it can some day be included in the matplotlib distribution. I will test
> on linux when I get the time, but all the code is python so it should
> probably work ok.
Well done. I tried it out on Linux (Fedora 3) and it works reasonably
well.
I noticed a few things:
It puts the toolbar at the top rather than the bottom of the window.
The graph is smaller and the colours are different than that produced
with GTKAgg, which is strange since they both use Agg rendering.
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 copied the file into cvs so other people can try it out.
Regards
Steve

View entire thread

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /