Is there a way to make the map fill the entire canvas without the padding on top/bottom? It seems to max out the width, and then size down the map. I’ve implemented a timer using QTimer inside a Singleton. The Singleton is implemented using the Borg pattern. If I start a QTimer with single shot inside a function of the Singleton it won’t be executed. The same call in a function outside the Singleton works well. Why is one call working and the other not? Is there something wrong with my implementation of the Borg or with the usage of QTimer? I want to add fixed sized images left to right, top to bottom but I am having trouble is figuring out when adding another image to a row would make it not fit and then decide that that images should be placed in a new row. Ive got a scroll area with a grid layout in it which is fine if I know what can fit, but I can’t figure out how to make it move items if say the window width is shrunk, and say an item needs to be moved down 1 row which moves other etc. I’m just starting out with PyQt4. I’m having an issue using the grid layout. For some reason my line edit boxes are controlling the width of the column. This makes my spin boxes look uneven and weird. I have a problem with the command pdeplot, precisely with ‘mesh’, ‘off’. Example 1 works very well, I mean that the mesh is not represented when I plot my data. Whereas example 2 with the contour option, the mesh off no longer works. it plots contours but also the mesh. I have a page that I am trying to create that looks like the image attached. [![enter image description here]] I got so far as putting in the thumbnails because no matter what I do, the thumbnails will line up like I write the code to do, however once I get the text links under them, it goes out of whack. I have drawn a figure with Mathematica, and want to read data from the figure. For example, there exists a Square Wave with the following code, and I want the value of the third turning point: I make efford to read the value of the function wave. Due to the continuity of the curve, the value I read in this way may not be the right one. I am working with some weather data to plot contour lines on basemap using matplotlib. The data I have used (x, y and data) is uploaded here http://www.mediafire.com/download/0epjjdm8auit611/mslp.txt here http://www.mediafire.com/download/1dn6p8nw96h2mmd/xlong.txt and here http://www.mediafire.com/download/31suzsz6j7u2bgz/xlat.txt. The working example code is below:- The plot is absolutely OK. But I would like to hide/ remove contour lines over a particular area. So, I have drawn a polygon over a basemap and tried to hide data beneath the polygon. The code I have used for doing is as follows:- The resulting image is lloking like below. As you can see, there is no effect of facecolour as it does not hide any data beneath it. What I want to do is either remove contour lines passing through this polygon or hide/ clip the polygon area using image processing technique. 1. Apply some white colour to polygon region so that it matches the basemap colour and data is hidden (this is already done in the above example and does not work). 2. Go through each contour from contour collection and check if it is passing through the polygon region. Finally remove it from plot. My mind is not proceeding beyond above ideas. Any solution to solve this issue is highly appreciated. I wish to plot a 2d density map atop of a city, Washington DC in this case.The 2d density estimation graph is created using plotly and the points are graphed by their latitude and longitude. I have looked at basemap but it seems that you can only draw state boundaries, and cannot get city boundaries and streets on the map. I didn’t seem to find a way to do it with google maps api either. Problem: Can’t display streets in basemap. I have an excel-file with all cities with 300000+ habitants + coordinates. I have to plot them on a global map. For this I have the following code: Now I have to give the points on each continent another color (so for instance South-America orange, Europe blue…). Source.