All Questions
11 questions
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 = ...
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 ...
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 ...
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 ...
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
...
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 ...
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 ...
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 ...
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 ...
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 ...
3
votes
3
answers
5k
views
Preparing data to plot contours in Matplotlib's Basemap
I'm having a hard time with plotting a basemap with Matplotlib and I'm fairly new to it so I was hoping for some help.
I have data of the format:
[ (lat1, lon1, data1),
(lat2, lon2, data2),
(...