If you are thinking about using this tag then perhaps reconsider whether your question would be better posted to Stack Overflow because "matplotlib is a python 2D plotting library" rather than GIS software.

learn more… | top users | synonyms

2
votes
1answer
40 views

Plot shapefile on top of raster using plot and imshow from matplotlib

I need to plot a shapefile on top of a raster. I would like to use the python package rasterio and some combination of fiona or geopandas to load the shapefile. I found an example in the rasterio ...
0
votes
0answers
46 views

cartopy: plotting shapefiles

I am new to gis and am trying to plot a shapefile containing land polygons. (From OSM.) Unfortunately my output image is always empty (i.e. white). Can somebody tell me what I am doing wrong? import ...
0
votes
0answers
45 views

Basemap (Matlibplot) not plotting GPS WGS84 coordinates accurately

I have a list of lat,lon coordinates from Flickr pictures taken in Sydney (see here) When I plot these points on google maps, the locations are correct. However when I use my Basemap the results are ...
1
vote
1answer
88 views

Plotting classification map using shapefile in matplotlib?

"I have been struggling with python map plotting since past few days. I have realized that one can use python for plotting comparatively easy maps, but when one has to display detailed information, it ...
1
vote
0answers
42 views

Raster and shapefiles are not overlapping in matplotlib?

I plotted a raster map using matplotlib. When I overlay a shapefile, the raster seems to be shifted a bit. The same raster and shapefile overlap each other perfectly in ArcGIS. Here is what I am ...
1
vote
0answers
35 views

Customize colormap for a raster map in matplotlib?

I am plotting a raster map in python. The area is a river basin hence, has nodata cells as well. I want to display pixel values inside the basin using an appropriate colormap scheme while ignoring ...
4
votes
1answer
143 views

Plotting raster maps in python?

I am trying to plot raster map using Pyhton. Image is not being saved, though it appears. Moreover, pixels are not appearing on the exact place. I am getting image as shown below (which is WRONG, ...
1
vote
0answers
33 views

Hide meridians and parallel lines from plot and add TICK marks in matplotlib?

I want to hide the meridian and parallel lines from my plot and add the tick marks. I could remove the lines by setting linewidth=0, but how to add the tick marks with each Lat-Lon label. meridians ...
0
votes
0answers
108 views

How to read shapefile faster using python basemap (and pickle)?

I am trying to plot a simple 'merc' map with boundary from shape file. The total size of the shape file ne_10m_admin_0_countries_lakes.shp is just 8mb. The simple mslp surface plot from GFS data took ...
2
votes
0answers
40 views

Grid parameter restriction of mpl_toolkits.basemap.maskoceans

I have plotted the image below with the use of matplotlib and mpl_toolkits.basemap. However I am not satisfied with the result. The image is still very blocky near the coast line. The grid parameter ...
3
votes
0answers
61 views

matplotlib show() suspends ArcGIS

I've written a python script to plot a cross-section from a DEM along a line. Everything works fine except when I Show the plot, ArcGIS hangs and I have to force it to close with Task Manager. I ...
2
votes
0answers
84 views

Altering legend labels in Matplotlib

I have a choropleth map which displays crime percentage change. It is plotted from a geodataframe and the choropleth intervals are determined in the background by Python. Unfortunately, the first ...
6
votes
1answer
316 views

Find shortest path between points avoiding shapefile?

I am an intermediate python developer with very limited GIS experience. I have a list of latitude/longitudes of a ship at sea. I need to join them into a polyline using the shortest distance between ...
2
votes
1answer
269 views

Plotting “large” image with points with matplotlib - MemoryError

I want to plot an image of 3193 x 3293 pixels with 1502 points. When running in a smaller image and less points (934,722 pixels and 60 points), everything runs perfectly. I wrote like this: # I am ...
0
votes
0answers
68 views

unable to use matplotlib in qgis using python

I have tried to draw graph using matplotlib i used this library in my qgis application but i got the error ImportError: No module named backend_qt4agg i used following code in my qgis python ...
2
votes
0answers
120 views

Converting points using FeatureClassToNumPyArray to interpolate cross-section with scipy “interpolate” [closed]

I'm trying to plot elevation cross section and extract elevations along a cross section using scipy's "interpolate" function. I'm converting a point feature class of profile elevation points to 2 ...
1
vote
2answers
341 views

Can I plot this “diagram” in matplotlib [closed]

I am not sure weather that is the right stackexchange here. I want to grade a diagram like this: http://matplotlib.org/examples/shapes_and_collections/scatter_demo.html Unfortunately, I have no idea ...
1
vote
2answers
217 views

How to make a contour map from a list of points and values? [duplicate]

I need to create a nice map with contours that represent various thematic data on a scale of a country, for instance, average temperatures in Germany. I have a list of coordinates with the values, ...
3
votes
3answers
3k views

Plot shapefile with matplotlib

I am trying to read a shapefile and plot it using matplotlib. Here is the code: import matplotlib.pyplot as plt import shapefile shpFilePath = "D:\test.shp" listx=[] listy=[] test = ...
1
vote
0answers
77 views

mark points on shapefile using python

I want to mark specific lat long coordinates on a shapefile using python. I am trying to use the plot function from matplotlib to do it. In the examples that have been provided, a basemap object needs ...
2
votes
1answer
89 views

Qgis how to combine a geotif with a country border shape file?

I have 2 files. A geotif with different values and 1 shape file with country borders of this area. Can I generate with this 2 files an image with the country borders and the data from the geotif? ...
1
vote
0answers
126 views

How to update country borders in matplotlib.basemap?

I'm using basemap-1.0.7 and generated an image of Africa with the drawcountries() method. The border between Sudan and South Sudan is missing. Does someone know how to update this country borders?
1
vote
1answer
137 views

how to transfer a geotif with WGS84 to a mercator array for ploting it with matplotlib.basemap

I want to plot data from a sensor raster file (tif) to a map using basemap. I have a geotif with 'WGS 84' >>> gtif = gdal.Open("example.tif") >>> print gtif.GetProjectionRef() ...
3
votes
0answers
224 views

QGIS installation failed - requires matplotlib which has been installed by Anaconda

Is there any way to specify python environment variable to solve this? When I tried to install QGIS on my machine - mac OS 10.9 and Anaconda has installed numpy, scipy, and matplotlib, I got the error ...
0
votes
1answer
1k views

How to make coordinates match between Google Maps and matplotlib.basemap

I'm trying to plot some data with matplotlib and basemap, but I have trouble making the coordinates match between Google Maps and basemap. For example, I click at a distinctive feature on the map in ...
2
votes
0answers
391 views

Matplotlib error when installing Molusce or lifemapper in QGIS Brighton

I am installing plugins via the QGIS desktop internal interface, and have had twice now messages associated with matplotlib. The first error was for something called lifemapper and now for MOLUSCE. ...
0
votes
0answers
309 views

ArcGIS 10.2 with MatPlotLib Non-Blocking Plot

ArcGIS 10.2 ships with MatPlotLib 1.1.1 installed. I am trying to display a non-blocking plot window. Trials: Launch an interactive plot in a Tk window from a toolbox. This causes the plot to ...
1
vote
2answers
3k views

RuntimeError while executing python

After downloading Matplotlib to use the Statist Pugin An error has occured while executing Python code: RuntimeError: module compiled against API version 9 but this version of numpy is 6 Python ...
0
votes
1answer
466 views

Issue using Matplotlib in QGIS

I am developing a QGIS-plugin and for graphing I want to use matplotlib, like many other QGIS -plugins. This worked fine under linux, but under windows with QGIS2.4 I am experiencing problems. I ...
7
votes
1answer
363 views

Why is matplotlib installed with ArcGIS?

Today I upgraded to ArcGIS Desktop 10.2.2 as well as the 64-bit background processing tool and noticed that both numpy and matplotlib were installed with Python. In fact, in the "What's New?" section ...
3
votes
1answer
2k views

Converting Matplotlib contour objects to Shapely objects

I would like to convert a Matplotlib contour collection to a Shapely geometry collection, in order to calculate the area contained within closed contour lines. it seems that all the information is ...
2
votes
2answers
2k views

Problem with matplotlib when installing QGIS on mac

I have matplotlib installed on a Mac (Mavericks) via pip, which means the matplotlib files get installed under /System/Library/... I tried installing the most recent version of QGIS, and the install ...
2
votes
1answer
183 views

How to use matplotlib with ArcGIS 10.1 without Microsoft Visual C++ Runtime Error?

I have problems using the matplotlib for python with ArcGIS 10.1 If I run the code below as a script tool in ArcMap. No pdf is generated and when I close ArcMap this error is shown. If I run the ...
2
votes
2answers
966 views

Python problem visualization .tif image

I am trying to read a hyperspectral image in Uint16 .tif format and visualize it. I use GDAL in Python to read the data and everything works perfectly when I use matplotlib to show one band of the ...
1
vote
0answers
86 views

Matplotlib downloads to override folder

Just completed install of QGIS (2.0.1 Dufour) on a Macbook Pro running on Mavericks via Kyngchaos download page. However, when downloading Matplotlib for the install, while everything ended up the ...
4
votes
1answer
2k views

Python Mapping in Matplotlib Cartopy Color One Country

I have plotted a map of the world using matplotlib Cartopy. Now I want to select a specific country in the map in this case the United States and change the color. I think this is possible but not ...
0
votes
1answer
674 views

Plotting 3D Data using Python

I have a Uniform Grid of 1KMx1KM squares as a shapefile with population data in each grid in a specific column as an integer. I would like to extrude each polygon based on the population and export ...
3
votes
0answers
176 views

Calculate size of area where data values exceed certain limit

I am using Python and Basemap to plot sea ice concentration within the Arctic region. I need to calculate the total area (square meters) where the sea ice concentration exceeds a certain limit (e.g. ...
-4
votes
1answer
435 views

Transform all pixels from one projection to another projection under the Matplotlib Basemap

Is there a way to transform all pixels from one projection to another projection under the Matplotlib Basemap?
3
votes
2answers
5k views

Determine if point is within an irregular polygon using Python

I would like to create a mask of a grid where points are evaluated as either 1's or 0's depending on if they lay outside of an irregular (i.e. not rectangular) polygon. I have a set of high-latitude ...
1
vote
0answers
376 views

Matplotlib Basemap Resolution with PyQt makes Python Quit Unexpectedly

I'm having difficulties using Matplotlibs Basemap in combination with a PyQt4 interface. Basically I create a Pyqt4 Canvas in which I plot a Matplotlib Basemap and some markers. I call the function in ...
0
votes
2answers
3k views

How to install matplotlib and pyparsing correctly on OSX-Lion?

I am trying to install the Contour plugin in QGIS 2.0.1 (I'm running OSX-Lion) and I have installed NumPy and Matplotlib from kyngchaos however when I go to install the plugin I get the following ...
1
vote
0answers
279 views

Reference to Basemap instance's coordinate system

I use the matplotlib basemap toolkit (mpl_basemap.Basemap) to plot GeoTIFF images on a map background using pcolor() or pcolormesh(). For this purpose, I need to transform a meshgrid of x and y ...
1
vote
1answer
557 views

Forcing Lat/Lon Bounding Box to appear on LCC Projection Map in matplotlib-Basemap

I'm trying to do some plots of data on a basemap of Australia using matplotlib-Basemap. I'm finding the interface for creating the basemap to be tricky. Specifically, I have lat/lon definitions for ...
2
votes
1answer
3k views

Display a georeferenced DEM surface in 3D matplotlib

I want to use a DEM file to generate a simulated terrain surface using matplotlib. But I do not know how to georeference the raster coordinates to a given CRS. Nor do I know how to express the ...
30
votes
3answers
13k views

Simple thematic mapping of shapefile using Python?

I wish to visualize geographical data in Python, without using ArcGIS/ArcPy, and make a map. On the internet I found how to make a thematic map using Python: Here is some code that I tried: ...
4
votes
1answer
1k views

Using matplotlib to create and export graphs automatically from ArcMap

I am going to start a project soon where, after the data has been processed in various ways, an output jpg showing a graph of the data should be produced. The workflow is as follows: 1. A feature ...
5
votes
2answers
824 views

matplotlib does not work in ArcGIS 10 and Eclipse (Python)

I have installed matplotlib (v. 1.0.1) which works with iPython quite good. But if I insert the same script in ArcGIS 10 or Eclipse 3.7.0 (with PyDev) I get always errors. As I consider to use ...