SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
(3)
Jun
Jul
Aug
(12)
Sep
(12)
Oct
(56)
Nov
(65)
Dec
(37)
2004 Jan
(59)
Feb
(78)
Mar
(153)
Apr
(205)
May
(184)
Jun
(123)
Jul
(171)
Aug
(156)
Sep
(190)
Oct
(120)
Nov
(154)
Dec
(223)
2005 Jan
(184)
Feb
(267)
Mar
(214)
Apr
(286)
May
(320)
Jun
(299)
Jul
(348)
Aug
(283)
Sep
(355)
Oct
(293)
Nov
(232)
Dec
(203)
2006 Jan
(352)
Feb
(358)
Mar
(403)
Apr
(313)
May
(165)
Jun
(281)
Jul
(316)
Aug
(228)
Sep
(279)
Oct
(243)
Nov
(315)
Dec
(345)
2007 Jan
(260)
Feb
(323)
Mar
(340)
Apr
(319)
May
(290)
Jun
(296)
Jul
(221)
Aug
(292)
Sep
(242)
Oct
(248)
Nov
(242)
Dec
(332)
2008 Jan
(312)
Feb
(359)
Mar
(454)
Apr
(287)
May
(340)
Jun
(450)
Jul
(403)
Aug
(324)
Sep
(349)
Oct
(385)
Nov
(363)
Dec
(437)
2009 Jan
(500)
Feb
(301)
Mar
(409)
Apr
(486)
May
(545)
Jun
(391)
Jul
(518)
Aug
(497)
Sep
(492)
Oct
(429)
Nov
(357)
Dec
(310)
2010 Jan
(371)
Feb
(657)
Mar
(519)
Apr
(432)
May
(312)
Jun
(416)
Jul
(477)
Aug
(386)
Sep
(419)
Oct
(435)
Nov
(320)
Dec
(202)
2011 Jan
(321)
Feb
(413)
Mar
(299)
Apr
(215)
May
(284)
Jun
(203)
Jul
(207)
Aug
(314)
Sep
(321)
Oct
(259)
Nov
(347)
Dec
(209)
2012 Jan
(322)
Feb
(414)
Mar
(377)
Apr
(179)
May
(173)
Jun
(234)
Jul
(295)
Aug
(239)
Sep
(276)
Oct
(355)
Nov
(144)
Dec
(108)
2013 Jan
(170)
Feb
(89)
Mar
(204)
Apr
(133)
May
(142)
Jun
(89)
Jul
(160)
Aug
(180)
Sep
(69)
Oct
(136)
Nov
(83)
Dec
(32)
2014 Jan
(71)
Feb
(90)
Mar
(161)
Apr
(117)
May
(78)
Jun
(94)
Jul
(60)
Aug
(83)
Sep
(102)
Oct
(132)
Nov
(154)
Dec
(96)
2015 Jan
(45)
Feb
(138)
Mar
(176)
Apr
(132)
May
(119)
Jun
(124)
Jul
(77)
Aug
(31)
Sep
(34)
Oct
(22)
Nov
(23)
Dec
(9)
2016 Jan
(26)
Feb
(17)
Mar
(10)
Apr
(8)
May
(4)
Jun
(8)
Jul
(6)
Aug
(5)
Sep
(9)
Oct
(4)
Nov
Dec
2017 Jan
(5)
Feb
(7)
Mar
(1)
Apr
(5)
May
Jun
(3)
Jul
(6)
Aug
(1)
Sep
Oct
(2)
Nov
(1)
Dec
2018 Jan
Feb
Mar
Apr
(1)
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2020 Jan
Feb
Mar
Apr
May
(1)
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2025 Jan
(1)
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
S M T W T F S
1
2
(6)
3
4
(7)
5
(6)
6
(1)
7
(11)
8
(2)
9
(9)
10
(1)
11
12
(11)
13
(6)
14
(25)
15
16
(6)
17
(6)
18
(13)
19
(13)
20
(5)
21
22
(9)
23
(1)
24
25
26
27
28

Showing 13 results of 13

From: Jorge S. <jor...@ya...> - 2015年02月19日 20:39:09
Thomas Caswell <tcaswell@...> writes:
> 
> 
> Jorge,I have put in a PR to fix this issue. Can you confirm that it is
equivalent to your fix? For aesthetic reasons I chose to pass guiEvent as a
kwarg to all of the event related functions.
> 
> https://github.com/matplotlib/matplotlib/pull/4130
> 
> 
> Tom
I can confirm this fixes the issue I had. 
Jorge
From: Raniere S. <ra...@im...> - 2015年02月19日 12:05:54
Hi,
NumFOCUS has promotes and supports the ongoing research and development of
open-source computing tools including Matplotlib.
This year NumFOCUS want to try be a Google Summer of Code
"umbrella" mentoring organization,
 Umbrella organizations are mentoring organizations accepted into the Google
 Summer of Code program that have other open source organizations working
 "under" them. Sometime organizations that work very closely or have very
 similar goals or communities may get put together under an "umbrella."
 Google stills expects all organizations under the umbrella, whether accepted
 into the program under their title or not, to adhere to all the rules and
 regulations of the program.
 From https://www.google-melange.com/gsoc/document/show/gsoc_program/google/gsoc2015/help_page#umbrella_organization
To help promote and support Matplotlib.
We encourage Matplotlib to apply to Google Summer of Code under your own title
and will be very happy if you can also do with us.
If you are interested, please check https://github.com/swcarpentry/gsoc2015
and https://github.com/swcarpentry/gsoc2015/blob/master/CONTRIBUTING.md.
If you have any question, please email me directly.
Thanks in advance,
Raniere
From: gdm <jga...@gm...> - 2015年02月19日 08:58:43
Ok, axes.apply_aspect() seems to work. The other obvious kluge I had found
was to save the figure twice, once before and once after I accessed the axes
position. 
It seems the more elegant solution might be to use a somewhat-complicated
transform, so that that the two endpoints of a Line2d segment can have
coordinates in different coordinate systems (e.g. one end is in data
coordinates on ax1, and the other end is in data coordinates on ax2). The
"axes zoom effect" is similar to what I'm trying to do: 
http://matplotlib.org/users/annotations_guide.html#zoom-effect-between-axes
Thanks!
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/axes-get-position-inaccurate-until-after-savefig-tp44954p44990.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Eric F. <ef...@ha...> - 2015年02月19日 07:19:26
On 2015年02月18日 7:51 AM, Ryan Nelson wrote:
> I don't have an answer to your question exactly. But I'll just say that
> this does make sense. The aspect-corrected axes (after show) is a subset
> of what you originally asked for, i.e. the bottom is higher, and the
> height is smaller. My guess is that this is not calculated until the
> final rendering on save on some computational effort. Otherwise, these
> values might need to be recalculated every time you add e.g. a colorbar.
> There is certainly a way to "trick" the plot into rendering, but I
> wonder if you could post a small (maybe two axes) version that
> demonstrates the effect your trying to accomplish. Perhaps someone might
> have a simpler/more robust solution.
There is an Axes method called apply_aspect() that is called by the 
Axes.draw() method. Normally there is no need to call it before that, 
but I think you could do so.
I think the problem, though, is that until the figure is rendered to a 
real device or saved in a file, its dimensions in inches are not known, 
and apply_aspect needs that information.
Try including the figsize_inches kwarg when you make the figure, and 
then see if calling apply_aspect makes the position settle down to its 
final value.
Eric
>
> Ryan
>
> On Wed, Feb 18, 2015 at 4:27 AM, gdm <jga...@gm...
> <mailto:jga...@gm...>> wrote:
>
> New matplotlib user here. Sometimes I like to make figures with
> multiple
> axes, and have lines that cross multiple axes. I've run in to
> problems with
> coordinates when doing this. One such problem is that
> axes.get_position()
> seems to return incorrect coordinates for an axes with a fixed
> aspect ratio.
> However, after calling pyplot.show() (or fig.savefig()), it returns the
> correct coordinates.
>
> Here is some example code:
> #########################
> import numpy
> import matplotlib.pyplot as plt
>
> # make up some data
> x = numpy.arange(10)
> y = numpy.sin(x)
> y2 = numpy.cos(x)
>
> # generate the figure
> fig = plt.figure()
>
> # setup the first axes
> ax1 = fig.add_subplot(121)
> plt.plot(x,y)
>
> # setup the second axes with axis ratio
> ax2 = fig.add_subplot(122, aspect=6)
> plt.plot(x, y2)
>
> # Print out the axes position after various operations
> print "aaa", ax2.get_position()
>
> plt.draw()
> print "bbb", ax2.get_position()
>
> fig.canvas.draw()
> print "ccc", ax2.get_position()
>
> plt.show(block=False)
> print "yyy", ax2.get_position()
> ##########################
>
> Running this code produces the following output:
> aaa Bbox('array([[ 0.54772727, 0.1 ],\n [ 0.9 , 0.9
> ]])')
> bbb Bbox('array([[ 0.54772727, 0.1 ],\n [ 0.9 , 0.9
> ]])')
> ccc Bbox('array([[ 0.54772727, 0.1 ],\n [ 0.9 , 0.9
> ]])')
> yyy Bbox('array([[ 0.54772727, 0.18686869],\n [ 0.9 ,
> 0.81313131]])')
>
> P.S.: I think this might be related to an issue noted here:
> http://stackoverflow.com/questions/11900654/get-position-does-strange-things-when-using-a-colorbar
>
>
>
>
>
> --
> View this message in context:
> http://matplotlib.1069221.n5.nabble.com/axes-get-position-inaccurate-until-after-savefig-tp44954.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
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> <mailto:Mat...@li...>
> 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
>
>
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Thomas C. <tca...@gm...> - 2015年02月19日 03:05:27
Jorge,
I have put in a PR to fix this issue. Can you confirm that it is
equivalent to your fix? For aesthetic reasons I chose to pass guiEvent as
a kwarg to all of the event related functions.
https://github.com/matplotlib/matplotlib/pull/4130
Tom
On Wed Feb 18 2015 at 5:32:04 PM Thomas Caswell <tca...@gm...> wrote:
> Can you put in a pull request with those changes please?
>
> On Wed, Feb 18, 2015, 17:03 Jorge Scandaliaris <jor...@ya...>
> wrote:
>
>> Hi,
>> A recent commit against lib/matplotlib/backends/backend_qt5.py [1] causes
>> some errors in code that was working fine before. The error is as follows:
>>
>> ------------------------------------------------------------
>> ---------------
>> TypeError Traceback (most recent call
>> last)
>> /home/jscandal/sw/matplotlib/matplotlib.py3/lib/matplotlib/backends
>> /backend_qt5.py
>> in enterEvent(self, event)
>> 249
>> 250 def enterEvent(self, event):
>> --> 251 FigureCanvasBase.enter_notify_event(self, event,
>> guiEvent=event)
>> 252
>> 253 def leaveEvent(self, event):
>>
>> TypeError: enter_notify_event() got multiple values for argument
>> 'guiEvent'
>>
>> ------------------------------------------------------------
>> ---------------
>> TypeError Traceback (most recent call
>> last)
>> /home/jscandal/sw/matplotlib/matplotlib.py3/lib/matplotlib/backends
>> /backend_qt5.py
>> in leaveEvent(self, event)
>> 253 def leaveEvent(self, event):
>> 254 QtWidgets.QApplication.restoreOverrideCursor()
>> --> 255 FigureCanvasBase.leave_notify_event(self, event,
>> guiEvent=event)
>> 256
>> 257 def mousePressEvent(self, event):
>>
>> TypeError: leave_notify_event() got multiple values for argument
>> 'guiEvent'
>>
>>
>>
>> Reverting the changes introduced by the commit in lines 251 and 255 of
>> backend_qt5.py seems to fix the issue, in my particular use case.
>>
>> Regards,
>>
>> Jorge
>>
>>
>> 1.
>> b72e0cd9e63f7cf4bec2908143c62c23666b674a
>> Author: Steven Silvester <ste...@ie...>
>> Date: Sun Feb 15 09:38:21 2015 -0600
>>
>> Add guiEvent data to Qt backend
>>
>>
>>
>> ------------------------------------------------------------
>> ------------------
>> 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
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>
From: Fernando P. <fpe...@gm...> - 2015年02月19日 02:28:03
On Wed, Feb 18, 2015 at 4:57 PM, Thomas Caswell <tca...@gm...> wrote:
> Interesting, I was going off what the IPython devs said here
> https://github.com/ipython/ipython/issues/7774
>
That was just adding the "notebook" alias to the `%matplotlib` magic. The
actual underlying functionality has been around for a while longer.
-- 
Fernando Perez (@fperez_org; http://fperez.org)
fperez.net-at-gmail: mailing lists only (I ignore this when swamped!)
fernando.perez-at-berkeley: contact me here for any direct mail
From: Thomas C. <tca...@gm...> - 2015年02月19日 00:57:34
Interesting, I was going off what the IPython devs said here
https://github.com/ipython/ipython/issues/7774
On Wed Feb 18 2015 at 7:48:32 PM Eric Firing <ef...@ha...> wrote:
> On 2015年02月18日 2:31 PM, Thomas Caswell wrote:
> > Recent means IPython > 2.4.
>
> Did you mean 2.2? It works on 2.3.
>
> Eric
>
> >
> > For 3.0
> >
> > %matplotlib notebook
> >
> > will also work.
> >
> > Tom
> >
> > On Wed Feb 18 2015 at 7:25:41 PM Eric Firing <ef...@ha...
> > <mailto:ef...@ha...>> wrote:
> >
> > On 2015年02月18日 6:44 AM, Emilia Petrisor wrote:
> > > Hi all,
> > >
> > > I looked for a link where I could find out what’s new in
> |matplotlib
> > > 1.4.3|, but there is no one.
> > >
> > > Especially I’m interested in the new features of |nbagg backend|.
> > All I
> > > know is what I read in an email here, namely that /The nbagg
> > backend is
> > > looking great - some pretty swish new features/.
> > > Thanks,
> > >
> > > Emilia
> > >
> >
> > In a recent IPython, try starting up a notebook and using
> >
> > %matplotlib nbagg
> >
> > You will find that the embedded plot is fully interactive, complete
> with
> > a cursor readout and navigation buttons. I think that's the new
> part.
> >
> > Eric
> >
> >
> >
> > ------------------------------__----------------------------
> --__------------------
> > 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>
> >
>
>
From: Eric F. <ef...@ha...> - 2015年02月19日 00:48:40
On 2015年02月18日 2:31 PM, Thomas Caswell wrote:
> Recent means IPython > 2.4.
Did you mean 2.2? It works on 2.3.
Eric
>
> For 3.0
>
> %matplotlib notebook
>
> will also work.
>
> Tom
>
> On Wed Feb 18 2015 at 7:25:41 PM Eric Firing <ef...@ha...
> <mailto:ef...@ha...>> wrote:
>
> On 2015年02月18日 6:44 AM, Emilia Petrisor wrote:
> > Hi all,
> >
> > I looked for a link where I could find out what’s new in |matplotlib
> > 1.4.3|, but there is no one.
> >
> > Especially I’m interested in the new features of |nbagg backend|.
> All I
> > know is what I read in an email here, namely that /The nbagg
> backend is
> > looking great - some pretty swish new features/.
> > Thanks,
> >
> > Emilia
> >
>
> In a recent IPython, try starting up a notebook and using
>
> %matplotlib nbagg
>
> You will find that the embedded plot is fully interactive, complete with
> a cursor readout and navigation buttons. I think that's the new part.
>
> Eric
>
>
>
> ------------------------------__------------------------------__------------------
> 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>
>
From: Thomas C. <tca...@gm...> - 2015年02月19日 00:31:28
Recent means IPython > 2.4.
For 3.0
%matplotlib notebook
 will also work.
Tom
On Wed Feb 18 2015 at 7:25:41 PM Eric Firing <ef...@ha...> wrote:
> On 2015年02月18日 6:44 AM, Emilia Petrisor wrote:
> > Hi all,
> >
> > I looked for a link where I could find out what’s new in |matplotlib
> > 1.4.3|, but there is no one.
> >
> > Especially I’m interested in the new features of |nbagg backend|. All I
> > know is what I read in an email here, namely that /The nbagg backend is
> > looking great - some pretty swish new features/.
> > Thanks,
> >
> > Emilia
> >
>
> In a recent IPython, try starting up a notebook and using
>
> %matplotlib nbagg
>
> You will find that the embedded plot is fully interactive, complete with
> a cursor readout and navigation buttons. I think that's the new part.
>
> Eric
>
>
>
> ------------------------------------------------------------
> ------------------
> 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
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Eric F. <ef...@ha...> - 2015年02月19日 00:25:15
On 2015年02月18日 6:44 AM, Emilia Petrisor wrote:
> Hi all,
>
> I looked for a link where I could find out what’s new in |matplotlib
> 1.4.3|, but there is no one.
>
> Especially I’m interested in the new features of |nbagg backend|. All I
> know is what I read in an email here, namely that /The nbagg backend is
> looking great - some pretty swish new features/.
> Thanks,
>
> Emilia
>
In a recent IPython, try starting up a notebook and using
%matplotlib nbagg
You will find that the embedded plot is fully interactive, complete with 
a cursor readout and navigation buttons. I think that's the new part.
Eric
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>
> >
>
>
From: Eric F. <ef...@ha...> - 2015年02月19日 00:14:29
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>
>
From: Thomas C. <tca...@gm...> - 2015年02月19日 00:00:34
Is this just on master or with 1.4.x?
On Wed Feb 18 2015 at 6:00:26 PM Eric Firing <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>
> >
> > quiverkey() doesn't work anymore...:
> > <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
> > 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
> > _______________________________________________
> > Matplotlib-users mailing list
> > Mat...@li...
> > 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
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>

Showing 13 results of 13

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /