list about
how to use GDAL to rasterize a set of polygons (represented as paths),
including some links to stack-overflow questions. It isn't a complete
end-to-end solution, but the pieces are there.
Cheers!
Ben Root
On Wed, Oct 15, 2014 at 2:09 PM, David Hoese dho...@gmail.com
mailto:dho
I've been searching and reading through source code and google searches
to see if this is possible, but no luck so far. I'm basically trying to
map some data using Basemap, use contourf to map it to an image, and
then put that image in a geotiff (or other format) for use in other GIS
programs.
whatever you wish with them.
Joy
On Wed, Oct 15, 2014 at 9:11 PM, David Hoese dho...@gmail.com
mailto:dho...@gmail.com wrote:
I've been searching and reading through source code and google searches
to see if this is possible, but no luck so far. I'm basically trying to
map
You likely need to show() the canvas. I usually do this by calling
fig.canvas.show() before the for loop.
Since you are using a Qt4 backend the canvas used by the figure is a
QWidget, the basic component of a Qt4 GUI. I don't know if there is a
more matplotlib specific way of doing this, but
Oops forgot to change the subject line.
On 3/11/13 9:34 AM, David Hoese wrote:
You likely need to show() the canvas. I usually do this by calling
fig.canvas.show() before the for loop.
Since you are using a Qt4 backend the canvas used by the figure is a
QWidget, the basic component of a Qt4
plt.draw()
On Mon, Mar 11, 2013 at 10:35 AM, David Hoese dho...@gmail.com
mailto:dho...@gmail.com wrote:
Oops forgot to change the subject line.
On 3/11/13 9:34 AM, David Hoese wrote:
You likely need to show() the canvas. I usually do this by
calling
as a callback, with a main
loop that calls me periodically. Could that fit the model I
described, where a lengthy computation produces a new value every
few/10s of seconds?
On Mon, Mar 11, 2013 at 1:55 PM, David Hoese dho...@gmail.com
mailto:dho...@gmail.com wrote:
Someone may have
I've asked this question on GIS stack exchange site, but thought it
would be good to post here too. The SE question is here:
http://gis.stackexchange.com/questions/50394/importing-matplotlib-basemap-and-shapely
I have a python script that uses matplotlib's basemap and another part
that uses
I experienced the same problem on the macosx backend, switched to Qt4Agg
and no problems.
import matplotlib
matplotlib.use(Qt4Agg)
-Dave
On 1/6/12 10:08 AM, md...@stsci.edu wrote:
I suspect this bug is specific to the macosx backend. Can you switch to
another backend and confirm
:22 AM, David Hoese dho...@gmail.com
mailto:dho...@gmail.com wrote:
I experienced the same problem on the macosx backend, switched to
Qt4Agg
and no problems.
import matplotlib
matplotlib.use(Qt4Agg)
-Dave
On 1/6/12 10:08 AM, md...@stsci.edu mailto:md
Eric,
I installed mpl from git (git clone
git://github.com/matplotlib/matplotlib.git, unless I was suppose to use
one of the branches) and same problem. I looked at my code again and
thought there should be a canvas.draw() before calling
c.copy_from_bbox(a.bbox), but still the same problem.
Oops forgot to change subject.
On 12/15/11 10:02 AM, David Hoese wrote:
Eric,
I installed mpl from git (git clone
git://github.com/matplotlib/matplotlib.git, unless I was suppose to
use one of the branches) and same problem. I looked at my code again
and thought there should
, if I
could better understand why your bug fix was needed.
On 12/15/11 10:04 AM, David Hoese wrote:
Oops forgot to change subject.
On 12/15/11 10:02 AM, David Hoese wrote:
Eric,
I installed mpl from git (git clone
git://github.com/matplotlib/matplotlib.git, unless I was suppose to
use one
I'm not sure how experienced you are with multithreaded programs, but
here is some sample code (I mentioned it can get complicated). I
suggest you research Qt4 QThreads and also Qt4 Signals and slots to
better understand the code below. It is a working sample so you should
be able to run it
I don't know what you mean by ApplicationWindow, is that a class or
just a name for the main GUI window. I also don't really know what
calling the graphical application means, but I'm sure the book can help
you more than I can. Again, good luck.
-Dave
On 12/14/11 10:17 AM, Fabien Lafont
Does anyone know if using the blit method from FigureCanvasQTAgg is not
fully supported? I'm having a problem where I'm animating a plot using
the blit method and I click on/activate the window the background of the
figure disappears (axes and line stay visible). I'm not sure if this is
just
Fabien,
The GUI not being responsive might be my fault, I've never used a timer
of 0 and processEvents(). I think what might be happening is that when
you call processEvents, the timer of 0 calls your principal function
again, which calls processEvents again, and so on. Try a timer of 2
Yeah I didn't think about suggesting that, but I think it might get
complicated. I think he would have to start a one shot timer to call a
function to set the voltage. Then that function would also start
another one shot timer to call another function that would read from the
sample. That
Hey Fabien,
So you made your principal function run on a timer every 2 seconds? And
by lag do you mean that the GUI is unresponsive? I'm still not seeing
when the loop stops, but what you can do is set the timer at a 0
interval so it will call the principal function as fast as it can (but
If I'm understanding your question correctly and reading your code correctly,
you're asking why the timer method of doing things works, but the principal()
while loop method does not.
I had a couple solutions that involved the main event loop, but I just noticed
2 main things that are probably
I think you forget to set the layout on your central widget.
self.main_widget.setLayout(vbl) # in your case
-Dave
On 12/4/2011 9:57 AM, matplotlib-users-requ...@lists.sourceforge.net wrote:
2011/12/2 Daniel Hyamsdhy...@gmail.com:
I don't have PyQt installed, so I couldn't test the code, but
Neal,
I do something similar to this where data that I'm plotting in a 2D line
plot comes from a UDP socket and some memory mapped files. To
accomplish the live updating I have a mix of your #2 and #3. I have a
main GUI thread that displays the plots, then I have a second thread
that gets
22 matches
Mail list logo