Skip to content

Commit 091b137

Browse files
fix range bug. added levels to Comp Map Plot
1 parent 3a5652d commit 091b137

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

CompressorMapPlot/CompressorMapPlotCV_v3.ipynb

Lines changed: 9 additions & 9 deletions
Large diffs are not rendered by default.

CompressorMapPlot/CompressorMapPlotCV_v3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,10 +260,10 @@ def Interpolate_plot(df,data,color,xlim,ylmin,ylmax,etamin,etamax,elevation,azim
260260
Z = interpolate.griddata((y,x),z,(Y,X),method='cubic')
261261

262262
plt.figure(0)
263-
plt.contourf(X,Y,Z, 30 ,cmap='bwr',alpha=0.3)
263+
plt.contourf(X,Y,Z, 30 ,cmap='bwr',alpha=0.3,levels = np.linspace(etamin, etamax, 30))
264264
plt.colorbar()
265265
#plt.imshow(Z, extent=[x.min(),x.max(),y.min(),y.max()], origin='lower' ,cmap='bwr', aspect=0.1)
266-
plt.contour(X,Y,Z, 10 ,colors='slategrey')
266+
plt.contour(X,Y,Z, 10 ,colors='slategrey',levels = np.linspace(etamin, etamax, 10))
267267

268268
#=========Plotting Others===========
269269
#Plot map speedlines

0 commit comments

Comments
 (0)