|
From: Thomas C. <tca...@gm...> - 2015-02-19 00:17:14
|
This is probably related to the Agg renderer issue with edge-only markers. On Wed Feb 18 2015 at 7:14:22 PM Eric Firing <ef...@ha...> wrote: > On 2015/02/18 2:00 PM, Thomas Caswell wrote: > > Is this just on master or with 1.4.x? > > It's on 1.4.1 and 1.4.2, but not on 1.4.3 or master or 1.4.0. Therefore > I won't enter it as an issue. > > I don't know what went wrong with this in those two bugfix releases. > > Eric > > > > > On Wed Feb 18 2015 at 6:00:26 PM Eric Firing <ef...@ha... > > <mailto:ef...@ha...>> wrote: > > > > On 2015/02/18 9:52 AM, njs wrote: > > > Hi All, > > > > > > I'm having issues with quiver, and quiverkey() although, I have > never > > > experienced these issues in the past. I attached an image to > > this post that > > > demonstrates that quiver_key() used to work for me, this image > > was generated > > > on 17-Jul-2014. However, if I run this exact same code (see > > below for the > > > code), the quiver key reference on the top right does not get > > plotted, but > > > the text will. I haven't changed anything, but I think there > > have been some > > > package updates between then and now. For what it's worth, I've > > tried many > > > different ways to generate the quiverkey() and haven't had any > > luck. Has > > > anyone else experienced similar issues? > > > > That's alarming! I can reproduce the problem even with the standard > mpl > > example--the arrow is missing in 5 out of the 6 plots. I will file a > > github issue. Thanks for the report. > > > > Eric > > > > > > > > Thanks for any insights! > > > > > > Working quiverkey(): > > > <http://matplotlib.1069221.n5.__nabble.com/file/n44968/qkey.__png > > <http://matplotlib.1069221.n5.nabble.com/file/n44968/qkey.png>> > > > > > > quiverkey() doesn't work anymore...: > > > > > <http://matplotlib.1069221.n5.__nabble.com/file/n44968/qkey_1.__png > > <http://matplotlib.1069221.n5.nabble.com/file/n44968/qkey_1.png>> > > > > > > Code: > > > > > > fig = plt.figure(figsize=(12,12)) > > > map = Basemap(projection = 'cyl', llcrnrlat = -30, > > urcrnrlat = 90, \ > > > llcrnrlon = 0, urcrnrlon = 360, resolution = > > 'c') > > > [x,y] = N.meshgrid(lons,lats) > > > [x,y] = map(x,y) > > > [xulr,yulr] = N.meshgrid(lons1,lats1) > > > [xulr,yulr] = map(xulr,yulr) > > > clevs = N.arange(-50,51,5) > > > cs = map.contourf(x,y,hgt500aComp[_ > _lag,:,:],cmap='RdBu_r', > > > levels = clevs) > > > cs1 = > > map.contour(x,y,hgt500Comp[__lag,:,:],N.arange(1110,1230,6)__, \ > > > > > colors='purple',linewidth=100,__linestyle = 'dashed') > > > cs1 = map.contour(x,y,hgt500aComp[__lag,:,:],levels = > clevs, > > > colors = 'black') > > > > > > > > colors=[(244,2,255),(36,26,__232),(255,255,255),(8,232,61), > __(224,255,0)] > > > cmap = mF.make_cmap(colors, position=None, bit=True) > > > clevs = N.arange(-30,30.025,.025) > > > cs2 = map.contourf(xulr,yulr,__ > olrComp[lag,:,:],cmap=cmap, > > > levels = clevs) > > > Q = > > map.quiver(x[::2,::2],y[::2,::__2],u850Comp[lag,::2,::2], > > > v850Comp[lag,::2,::2],width = 0.002,scale = 50) > > > map.drawcoastlines(linewidth = 1) > > > map.drawcountries(linewidth = 0.5) > > > map.fillcontinents(zorder = 0) > > > map.drawmeridians(N.arange(0,__360,30)) > > > map.drawparallels(N.arange(-__90,90,30)) > > > title = plt.title('Lag: {0} | Transition Cases | n = > > > {1}'.format(lag-30,len(cases))__) > > > title.set_fontweight('bold') > > > axt = fig.add_axes([.15,.35,.3,.01]) > > > cbar = plt.colorbar(cs,cax = axt,orientation = > 'horizontal') > > > cbar.set_label('500-hPa Anomaly (m)') > > > cbar.set_ticks(N.arange(-50,__51,25)) > > > cs1.clabel(fmt = '%d') > > > axt = fig.add_axes([.58,.35,.3,.01]) > > > cbar2 = plt.colorbar(cs2,cax = axt,orientation = > > 'horizontal') > > > cbar2.set_label(r'OLR Anomaly ($W m^{-2}$)') > > > cbar2.set_ticks(N.arange(-30,__31,10)) > > > qk = plt.quiverkey(Q,0.95,1.05,1.0,__r'1 $m > > s^{-1}$',labelpos='E') > > > > > > > > > > > > -- > > > View this message in context: > > http://matplotlib.1069221.n5.__nabble.com/quiverkey-doesn-t- > __plot-the-reference-vector-__tp44968.html > > <http://matplotlib.1069221.n5.nabble.com/quiverkey-doesn-t- > plot-the-reference-vector-tp44968.html> > > > Sent from the matplotlib - users mailing list archive at > Nabble.com. > > > > > > > > ------------------------------__---------------------------- > --__------------------ > > > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > > > from Actuate! Instantly Supercharge Your Business Reports and > > Dashboards > > > with Interactivity, Sharing, Native Excel Exports, App > > Integration & more > > > Get technology previously reserved for billion-dollar > > corporations, FREE > > > > > http://pubads.g.doubleclick.__net/gampad/clk?id=190641631&__ > iu=/4140/ostg.clktrk > > <http://pubads.g.doubleclick.net/gampad/clk?id=190641631& > iu=/4140/ostg.clktrk> > > > _________________________________________________ > > > Matplotlib-users mailing list > > > Matplotlib-users@lists.__sourceforge.net > > <mailto:Mat...@li...> > > > https://lists.sourceforge.net/__lists/listinfo/matplotlib-__users > > <https://lists.sourceforge.net/lists/listinfo/matplotlib-users> > > > > > > > > > ------------------------------__---------------------------- > --__------------------ > > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > > from Actuate! Instantly Supercharge Your Business Reports and > Dashboards > > with Interactivity, Sharing, Native Excel Exports, App Integration & > > more > > Get technology previously reserved for billion-dollar corporations, > FREE > > http://pubads.g.doubleclick.__net/gampad/clk?id=190641631&__ > iu=/4140/ostg.clktrk > > <http://pubads.g.doubleclick.net/gampad/clk?id=190641631& > iu=/4140/ostg.clktrk> > > _________________________________________________ > > Matplotlib-users mailing list > > Matplotlib-users@lists.__sourceforge.net > > <mailto:Mat...@li...> > > https://lists.sourceforge.net/__lists/listinfo/matplotlib-__users > > <https://lists.sourceforge.net/lists/listinfo/matplotlib-users> > > > > |