contourf

Overlaying contour plot on basemap

Overlaying contour plot on basemap Question: Please can anyone look at this code it is not giving a desired result. # use the Miller projection m = Basemap( projection=’mill’, resolution=’i’, lon_0=0., lat_0=0.) # draw coastline, map-boundary m.drawcoastlines(linewidth=0.5) m.drawmapboundary( fill_color=’white’ ) # draw grid m.drawparallels( np.arange(-90.,90.,30.), labels=[1,0,0,0] ) m.drawmeridians( np.arange(-180.,180.,60.), labels=[0,0,0,1] ) # Creating 2-D grid …

Total answers: 1

Showing Levels end values on contourf

Showing Levels end values on contourf Question: I’m using a contourf to plot my data (var) and I would like to have 20 levels going from -100 to 100, so this what I did. plt.contourf(var, levels=np.linspace(-100, 100, 21)) But when I plot it it will miss the end values (-100 and 100), how can I …

Total answers: 1

Problem with 3D contour plots in matplotlib

Problem with 3D contour plots in matplotlib Question: I created a 3D contour map in Mathematica a while back, and I am trying to do it in Python this time. First let me show you what I obtained: Mathematica: Python: Now, I would like the foreground (the visible part of the hills) to hide the …

Total answers: 2

How do I add a coastline to an xarray.plot.facetgrid.FacetGrid?

How do I add a coastline to an xarray.plot.facetgrid.FacetGrid? Question: I am attempting to make a figure with 12 plots showing the monthly average of a parameter from the 1800’s to the 2100’s for each month. I have the plots pretty much finished with the average monthly data for each month and 12 plots, I …

Total answers: 1