Skip to main content

All Questions

0 votes
1 answer
192 views

Calculate the non-projected area inside a contour line created by Basemap

I am currently trying to determine the area inside specfic contour lines on a Mollweide map projection using Basemap. Specifically, what I'm looking for is the area of various credible intervals in ...
Scott's user avatar
  • 23
0 votes
1 answer
342 views

Contour/Scatter Plot - Interpolated data not covering entire scatter plot

I am trying to create a map showing an interpolated values over a scatter plot, here my code so far # define map extent lllon = dd lllat = bb urlon = cc urlat = aa # Set up Basemap instance m = ...
frogger538's user avatar
1 vote
1 answer
525 views

basemap contour colorbar not labeling contours correctly

I have a contour plot in matplotlib basemap- negative contours dashed, positive solid. The colorbar for this field is not being drawn correctly. The tics on the colorbar are correct [-100,100] however ...
John's user avatar
  • 69
0 votes
0 answers
127 views

Insert a base map with contour map via MATLAB

I have created a contour map, with latitude, longitude and a value (X,Y,Z). I have used commands like meshgrid and it works. I would like to put a base map and paste the contour map I've created on ...
user avatar
0 votes
0 answers
125 views

Looping across files to overlay contours from different datasets onto one pcolor map

I am trying to have a pcolor plot from one dataset on a polar stereographic grid, and then overlay many contours for one level , but these contours are being defined from a 3d dataset of their own. I ...
pwprnt's user avatar
  • 561
2 votes
1 answer
348 views

How to mask countor plot over basemap python?

I want to draw a contour map with basemap-python. I used contour and contourf functions I have data over the land but ı want to mask these datas. Contourf is self masked with basemap but contour is ...
k112's user avatar
  • 31
2 votes
0 answers
2k views

A smooth contour plot covering and masked by shapefile in Basemap

I have a polygon shapefile (the state of Illinois) and a CSV file with (lat, lon, zvalue). I want to plot a smooth contour plot representing those zvalues. Following is my code: import glob import ...
SereneWizard's user avatar
0 votes
0 answers
135 views

Drawing countour lines on a map Python 2

i am trying to draw contour lines on a world map, the lines represent the magnetic declination in a specific latitude and longitude. My current code is such: def frange(start, stop, step): x = start ...
Rbsann's user avatar
  • 1
2 votes
1 answer
687 views

contour lines from the edge of a map don't show up on basemap

I'm drawing several contour lines over a basemap projection as shown in the following figure:. There are 3 contours that are not drawn completely (in Oregon, Washington and California) and seems like ...
Ash's user avatar
  • 3,580
2 votes
1 answer
2k views

contour deformation in python

I have a contour map and I want to make a deformation of all the contour lines, where the contour of level 0.5 will be deformed around the blue point situated in his line and then pass on the blue ...
Yassine 's user avatar
2 votes
0 answers
436 views

matplotlib: why inconsistent results between contour and contourf

Why would matplotlib's contour and contourf produce inconsistent results? I have some data that I wish to plot on a map using the matplotlib basemap toolkit's stereographic projection. When I plot ...
JCOidl's user avatar
  • 464
0 votes
1 answer
1k views

Basemap Contour - Correct Indices

I'm trying to make a contour map with Basemap. My lat, lon and eof1 arrays are all 1-D and 79 items long. When I run this code, I get an error saying: IndexError: too many indices for array Any ...
DJV's user avatar
  • 873
8 votes
2 answers
12k views

contour plot - clabel spacing

I have trouble with matplotlib / pyplot / basemap. I plot contour lines (air pressure) on a map. I use clabel to show the value of the contour lines. But the problem is: the padding between the value ...
mcatis's user avatar
  • 1,276
2 votes
1 answer
3k views

matplotlib: preventing a few very large (or small) values to affect my contour

in plotting the data some times there are a few very large (or very small) numbers which, if not taken care of, will affect the contour in a bad way. a solution is to take out the 10% highest and ...
BobbyF's user avatar
  • 431
2 votes
1 answer
454 views

Two contour plots in single viewer- Python FiPy

I am trying to solve two independent variables varying geometrically over a given domain. I want to plot their variance in a single viewer display. How can I get two different contour plots one each ...
bvspavan89's user avatar

15 30 50 per page