2

I am using Qtdesigner3 to write a python gui that will read data files do some math and then plot the results using matplotlib. I've looked at examples of matplotlib qt, but none of them use the designer.

My question is how do I create a matplotlib widget in the QTdesigner?

2 Answers 2

4

There is a better response to almost this exact question over at the pythonxy mailling list

http://groups.google.com/group/pythonxy/browse_thread/thread/c52424bf11328181?pli=1

To quote the salient point from the thread. This is from one of the lead developers of the project.

You may directly use the Matplotlib Qt Designer plugin which is shipped with Python(x,y). It is located here: "C:\Python26\Lib\site-packages\PyQt4\plugins \designer\python". On your linux machine, create an environment variable called PYQTDESIGNERPATH, and set it to the directory containing 'matplotlibplugin.py'. That's all!

Sign up to request clarification or add additional context in comments.

1 Comment

any idea in which package 'matplotlibplugin.py' is located on ubuntu? Doesn't seem to be part of python-matplotlib
2

Python(x,y) has a matplotlib widget that can be used in Qt Designer. If you don't want to install Python(x,y), you can follow the instructions at this tutorial to create your own.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.