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
(1) |
2
(12) |
3
(12) |
4
(19) |
5
(7) |
6
(6) |
7
(2) |
8
(2) |
9
(11) |
10
(15) |
11
(27) |
12
(27) |
13
(18) |
14
(3) |
15
(3) |
16
(25) |
17
(9) |
18
(3) |
19
(4) |
20
(2) |
21
(4) |
22
(9) |
23
(28) |
24
(18) |
25
(16) |
26
(9) |
27
(4) |
28
(13) |
29
(15) |
30
(33) |
|
|
|
|
|
This is a years-old known bug in distutils (which it looks like you've already commented on...). I've looked at it many times over those years, and it's really very difficult to fix from outside without terrible monkey-patching hacks that are certain to break on as many systems as they fix. We just may be forced to deal with it at this point, though. (FWIW, we run Solaris here, too, but we build matplotlib on gcc). I'll comment on that bug as well and see if we can get some movement on it. In the meantime, I'll investigate whether the scons work by David Cournapeau resolves this problem. See here: http://github.com/cournape/matplotlib/tree/scons_build Mike Dr. David Kirkby wrote: > I was trying to build matplotlib 0.99.0 as part of Sage > > http://www.sagemath.org/ > > on a Sun Blade 2000 workstation running Solaris 10 update 7, using the Sun > Studio compiler version 12.1 (not gcc). > > CC and CXX were defined properly as C and C++ compilers, but it would appear > that the C compiler is being called to compile the file src/ft2font.cpp, which > is of course a C++ file. > > You might get away with this with gcc, but the Sun C compiler will not compile > C++ code. > > Here's the error I get: > > > /opt/xxxsunstudio12.1/bin/cc -DNDEBUG -O -xcode=pic32 > -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API > -I/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/lib/python2.6/site-packages/numpy/core/include > -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/local/include -I. > -I/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/include/ > -I/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/include/python2.6 -c > src/ft2font.cpp -o build/temp.solaris-2.10-sun4u-2.6/src/ft2font.o > cc: No valid input files specified, no output generated > error: command '/opt/xxxsunstudio12.1/bin/cc' failed with exit status 1 > > This is recorded in the Sage trac as: > > http://trac.sagemath.org/sage_trac/ticket/7028 > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA
Dr. Phillip M. Feldman wrote: > The basemap demo `cubed_sphere.py` contains the following line of code: > > fig.subplots_adjust(bottom=0, left=0, right=1, top=0, wspace=0, hspace=0) > > >From the documentation, it would appear that `wspace=0` should remove all > horizontal space between the subplots. But, this isn't what happens. (I > tried to insert an image, but this feature of Nabble appears to be broken). > Phillip: Do you see any white space between the unfolded faces of the cube on the cubed_sphere plot? If not, then that command is working as expected. -Jeff
Dr. Phillip M. Feldman wrote: > The script run_all.py in the basemap examples does not work when Python has > been installed to "C:\Program Files\Python25". It appears that this problem > involves the space in the path. > Phillip: I don't have a windows machine to test on - so could you please send the actual error message? -Jeff
IMO I don't think the traffic level on either pure mpl or basemap warrants a split. Gary R. Dr. Phillip M. Feldman wrote: > It seems as though there are enough basemap-related posts that it might be > worth creating a separate basemap-specific sub-forum of the matplotlib > forum.
Try installing the Microsoft Visual C++ 2008 Redistributable Package (x86) <http://www.microsoft.com/downloadS/details.aspx?familyid=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&displaylang=en>. This is usually installed during the installation of Python in the "Install For All Users" mode. Christoph
Hi, all. I am unable to import matplotlib.pylab. When I run the following command: python -c "import matplotlib.pylab" the application crashes with a windows error message. Running with the -v option shows that the application crashes at the following stage: import matplotlib.transforms >From previous posts on this mailing list, others have encountered similar (but perhaps not quite the same?) problems. I followed some of the advice and downloaded the dependency walker software from http://www.dependencywalker.com. Dependency Walker says that the following DLLs are missing for _path.pyd: MSVCP90.DLL, MSVCR90.DLL, DWMAPI.DLL, EFSADU.DLL. (Indeed I tried many .pyd files from C:\Python26\Lib\site-packages\matplotlib and all of them gave similar error messages.) Any idea how I can get these DLLs (they aren't in C:\Windows\System32) or, indeed, whether this is the actual solution to the problem? I have the following versions: Windows XP Service Pack 2 Python 2.6 Matplotlib 0.99.1 Python and Matplotlib were binaries downloaded from sourceforge.net. Thanks, Dilip.
The basemap demo `cubed_sphere.py` contains the following line of code: fig.subplots_adjust(bottom=0, left=0, right=1, top=0, wspace=0, hspace=0) >From the documentation, it would appear that `wspace=0` should remove all horizontal space between the subplots. But, this isn't what happens. (I tried to insert an image, but this feature of Nabble appears to be broken). -- View this message in context: http://old.nabble.com/%60fig.subplots_adjust%60-does-not-behave-as-advertized-tp26471386p26471386.html Sent from the matplotlib - users mailing list archive at Nabble.com.
It seems as though there are enough basemap-related posts that it might be worth creating a separate basemap-specific sub-forum of the matplotlib forum. -- View this message in context: http://old.nabble.com/separate-sub-forum-for-basemap--tp26470932p26470932.html Sent from the matplotlib - users mailing list archive at Nabble.com.
The script run_all.py in the basemap examples does not work when Python has been installed to "C:\Program Files\Python25". It appears that this problem involves the space in the path. -- View this message in context: http://old.nabble.com/bug-in-run_all.py-tp26470905p26470905.html Sent from the matplotlib - users mailing list archive at Nabble.com.
Laurent Dufrechou wrote: > You can define exactly the size and position of your plot like this: > > fig = Figure() > axe = fig.add_axes([pos_x,pos_y,size_x,size_y]) I believe the OP was asking how to position the entire figure Window (or frame in wx parlance) on the screen, rather than the axis within the figure. If you are using the wx back-end, you should be able to get a reference to the wx.Frame, and do what you like with it. (sorry, I don't remember how to do that off the top of my head, though if need be a few calls to GetParent should get you there). If you are using another back-end there should be a similar calls available. However, given your description, I suspect that you'd be better off managing the frames with your code anyway. Take a look at wxMPL (http://agni.phys.iit.edu/~kmcivor/wxmpl/) and/or the "embedded_in_wx" examples. -Chris > axe.plot(x, y, 'b') > > where pos_x,pos_y is a number (0<n<1) and 0,0 is bottom left > size_x, size_x is a number (0<n<1) > 1 is full figure size. > > Ex: axe = fig.add_axes([0.1,0.1,0.8,0.2]) > > Plot @10% x,10% y from bottom left > And size is 80% of figure x size and 20% of figure y size. > > > Laurent > > -----Message d'origine----- > De : Marie De La Fontaine [mailto:mar...@ya...] > Envoyé : dimanche 22 novembre 2009 18:05 > À : mat...@li... > Objet : [Matplotlib-users] set figure position > > We have recently switched to matplotlib after having done all plotting with > pure wxPython for years. > > There is one problem we cannot solve. With wxPython we are free to set the > geometry (position and size) of each Frame anywhere on the screen. We have > developed a heuristic solution which packs the Frames automatically > according to a pattern that can be recognized after a user has manually > repositioned a few Frames on the screen. For example, some users tend to > align their figures in a row, others subdivide the available space for > different groups of figures, and so on. Please let us know if anyone is > interested to integrate this heuristic packing into matplotlib. > > The important question is: > How can we set the position of a Figure on the screen using matplotlib? > There is a function Figure.set_size_inches, but no function to move the > Figure to a new position. Please help. > > Regards, > Marie > > > __________________________________________________ > Do You Yahoo!? > Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz > gegen Massenmails. > http://mail.yahoo.com > > > ---------------------------------------------------------------------------- > -- > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no...
Hi marie, You can define exactly the size and position of your plot like this: fig = Figure() axe = fig.add_axes([pos_x,pos_y,size_x,size_y]) axe.plot(x, y, 'b') where pos_x,pos_y is a number (0<n<1) and 0,0 is bottom left size_x, size_x is a number (0<n<1) 1 is full figure size. Ex: axe = fig.add_axes([0.1,0.1,0.8,0.2]) Plot @10% x,10% y from bottom left And size is 80% of figure x size and 20% of figure y size. Laurent -----Message d'origine----- De : Marie De La Fontaine [mailto:mar...@ya...] Envoyé : dimanche 22 novembre 2009 18:05 À : mat...@li... Objet : [Matplotlib-users] set figure position We have recently switched to matplotlib after having done all plotting with pure wxPython for years. There is one problem we cannot solve. With wxPython we are free to set the geometry (position and size) of each Frame anywhere on the screen. We have developed a heuristic solution which packs the Frames automatically according to a pattern that can be recognized after a user has manually repositioned a few Frames on the screen. For example, some users tend to align their figures in a row, others subdivide the available space for different groups of figures, and so on. Please let us know if anyone is interested to integrate this heuristic packing into matplotlib. The important question is: How can we set the position of a Figure on the screen using matplotlib? There is a function Figure.set_size_inches, but no function to move the Figure to a new position. Please help. Regards, Marie __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com ---------------------------------------------------------------------------- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Matplotlib-users mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Hi, RTFM...indeed it works. However, the axis do not scale accordingly: quiver([1],[1],[2],[2], angles='xy', scale_units='xy', scale=1) on a TkAgg backend produce a plot with: In [11]: axis() Out[11]: (0.94000000000000006, 1.0600000000000001, 0.94000000000000006, 1.0600000000000001) The display area scales the same way as it does using quiver([1],[1],[2],[2]) (without any other args). It looks like a bug. Xavier > Hi Xavier, > > You can pass some handy keyword arguments to fix that. Use the following: > > quiver([1],[1],[1.2],[1.2], angles='xy', scale_units='xy', scale=1) > > Hope that helps :) > > > Regards, > -- Damon > > -------------------------- > Damon McDougall > Mathematics Institute > University of Warwick > Coventry > CV4 7AL > d.m...@wa... > > On 22 Nov 2009, at 16:37, Xavier Gnata wrote: > > >> Hi, >> >> I woud like to draw a vector field using pylab. >> quivert looks nice but it sould not scale the arrows to fit my use-case. >> quiver([1],[1],[1.2],[1.2]) does plot a nice arrow but the head of the >> arrow is not at (1.2,1.2). >> Is there a way to plot a list of arrows *without* any scaling? >> >> Xavier >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >> trial. Simplify your report design, integration and deployment - and focus on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >
Hi Xavier, You can pass some handy keyword arguments to fix that. Use the following: quiver([1],[1],[1.2],[1.2], angles='xy', scale_units='xy', scale=1) Hope that helps :) Regards, -- Damon -------------------------- Damon McDougall Mathematics Institute University of Warwick Coventry CV4 7AL d.m...@wa... On 22 Nov 2009, at 16:37, Xavier Gnata wrote: > Hi, > > I woud like to draw a vector field using pylab. > quivert looks nice but it sould not scale the arrows to fit my use-case. > quiver([1],[1],[1.2],[1.2]) does plot a nice arrow but the head of the > arrow is not at (1.2,1.2). > Is there a way to plot a list of arrows *without* any scaling? > > Xavier > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
We have recently switched to matplotlib after having done all plotting with pure wxPython for years. There is one problem we cannot solve. With wxPython we are free to set the geometry (position and size) of each Frame anywhere on the screen. We have developed a heuristic solution which packs the Frames automatically according to a pattern that can be recognized after a user has manually repositioned a few Frames on the screen. For example, some users tend to align their figures in a row, others subdivide the available space for different groups of figures, and so on. Please let us know if anyone is interested to integrate this heuristic packing into matplotlib. The important question is: How can we set the position of a Figure on the screen using matplotlib? There is a function Figure.set_size_inches, but no function to move the Figure to a new position. Please help. Regards, Marie __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com
Hi, I woud like to draw a vector field using pylab. quivert looks nice but it sould not scale the arrows to fit my use-case. quiver([1],[1],[1.2],[1.2]) does plot a nice arrow but the head of the arrow is not at (1.2,1.2). Is there a way to plot a list of arrows *without* any scaling? Xavier
Hi Jae-Joon and others, i switched to using splines, but i still cannot see how to adjust the space between the axis labels and the ticks of the axes. right now the labels are too far away. here is my code: fig = plt.figure() x = np.linspace(0,2*np.pi,100) y = 2*np.sin(x) ax = fig.add_subplot(2,2,1) ax.plot(x,y) show_spines(ax,['left', 'bottom']) plt.xlabel('xlabel') plt.ylabel('ylabel') ax = fig.add_subplot(2,2,2) ax.plot(x,y) show_spines(ax,['left', 'bottom']) plt.xlabel('xlabel') plt.ylabel('ylabel') ax = fig.add_subplot(2,2,3) ax.plot(x,y) show_spines(ax,['left','bottom']) plt.xlabel('xlabel') plt.ylabel('ylabel') ax = fig.add_subplot(2,2,4) ax.plot(x,y) show_spines(ax,['left', 'bottom']) plt.xlabel('xlabel') plt.ylabel('ylabel') plt.savefig('test.pdf') i don't see how i could switch to plt.text or plt.annotate here. the xlabel and ylabel functions automatically plot the label of an axis in the center, which is exactly what i need. computing where the coordinates where a label should be plotted with plt.text so that the label appears in the center seems very messy and difficult, since it requires knowing how much space the label will take (and that depends on the font size etc.) is there an existing parameter that just controls the distance between the xticks and the label? it seems like there must be.. i just want to bring them closer together. thank you. On 11/13/09, Jae-Joon Lee <lee...@gm...> wrote: > I think I have said this a few times, but if you're using axes_grid > toolkit, it is likely that most of the ticks, ticklabels and > axis-related command of the original matplotlib may NOT work. And that > is why I recommend you to use the spines instead. > > Anyhow, adjusting the pad between axis and the axis label in the > axes_grid toolkit way is > > ax.axis["xzero"].LABELPAD=10 > > Things like "labelpad" parameters in xlabel (or ylabel) command are > currently ignored. > > I don't think set_position command will work also. I f you need to > place your labels at some specific point, simply use "text" or > "annotate" command instead. > > -JJ > > > > On Fri, Nov 13, 2009 at 2:02 PM, per freem <per...@gm...> wrote: >> thanks for the suggestion, though this does not work for me in the >> following example: >> >> import matplotlib >> matplotlib.use('PDF') >> import matplotlib.pyplot as plt >> from matplotlib import rc >> rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']}) >> plt.rcParams['ps.useafm'] = True >> rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']}) >> plt.rcParams['pdf.fonttype'] = 42 >> plt.rcParams['font.size'] = 10 >> >> from mpl_toolkits.axes_grid.axislines import SubplotZero >> >> def setup_axes(fig, labelpad=1, invisible=["bottom", "top", "right"]): >> plt.rcParams['ytick.major.pad'] = 2 >> plt.rcParams['ytick.minor.pad'] = 2 >> # Y ticks work, but X tick do not... >> plt.rcParams['xtick.major.pad'] = 0.01 >> plt.rcParams['xtick.minor.pad'] = 0.01 >> ax = SubplotZero(fig, 1, 1, 1) >> fig.add_subplot(ax) >> # make xzero axis (horizontal axis line through y=0) visible. >> ax.axis["xzero"].set_visible(True) >> # make other axis (bottom, top, right) invisible. >> for n in invisible: >> ax.axis[n].set_visible(False) >> return ax >> >> fig = plt.figure(figsize=(5, 5), dpi=300) >> setup_axes(fig, labelpad=2) >> x = range(1, 11) >> y = [5000, 900, 600, 500, 200, 110, 50, 20, 10, 5] >> plt.plot(x, y, linewidth=1.5, c='k') >> plt.ylabel('hello', labelpad=10) >> xlab = plt.xlabel('hello x axis') >> xlab.set_position((0.2, 0.1)) >> plt.savefig('test_logscale.pdf') >> >> the xaxis doesn't seem to be moved. any idea what might be wrong here? >> thanks. >> >> On Fri, Nov 13, 2009 at 1:43 PM, Gökhan Sever <gok...@gm...> >> wrote: >>> >>> >>> On Fri, Nov 13, 2009 at 12:36 PM, per freem <per...@gm...> wrote: >>>> >>>> hi all, >>>> >>>> how can the space between the label (e.g. thing created by >>>> plt.xlabel('mylabel')) and the axes be adjusted? i am not talking >>>> about the space between the ticklabels of the axes and the axes >>>> themselves (which is set by 'xtick.major.pad' or 'ytick.major.pad') >>>> but between the overall axes label and the axes. >>>> >>>> how can this be done? thanks. >>>> >>> >>> Using the set_position method, e.g. : >>> >>> xlab = plt.xlabel("my x-axes label") >>> xlab.set_position((0.2, 0.1)) >>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >>>> 30-Day >>>> trial. Simplify your report design, integration and deployment - and >>>> focus >>>> on >>>> what you do best, core application coding. Discover what's new with >>>> Crystal Reports now. http://p.sf.net/sfu/bobj-july >>>> _______________________________________________ >>>> Matplotlib-users mailing list >>>> Mat...@li... >>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >>> >>> >>> -- >>> Gökhan >>> >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day >> trial. Simplify your report design, integration and deployment - and focus >> on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >
I was trying to build matplotlib 0.99.0 as part of Sage http://www.sagemath.org/ on a Sun Blade 2000 workstation running Solaris 10 update 7, using the Sun Studio compiler version 12.1 (not gcc). CC and CXX were defined properly as C and C++ compilers, but it would appear that the C compiler is being called to compile the file src/ft2font.cpp, which is of course a C++ file. You might get away with this with gcc, but the Sun C compiler will not compile C++ code. Here's the error I get: /opt/xxxsunstudio12.1/bin/cc -DNDEBUG -O -xcode=pic32 -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API -I/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/lib/python2.6/site-packages/numpy/core/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/local/include -I. -I/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/include/ -I/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/include/python2.6 -c src/ft2font.cpp -o build/temp.solaris-2.10-sun4u-2.6/src/ft2font.o cc: No valid input files specified, no output generated error: command '/opt/xxxsunstudio12.1/bin/cc' failed with exit status 1 This is recorded in the Sage trac as: http://trac.sagemath.org/sage_trac/ticket/7028
Hi all, I'm pleased to announce that the book about Matplotlib has been published. More info at: http://sandrotosi.blogspot.com/2009/11/matplotlib-for-python-developers.html Regards, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi
Hi, I would like to have a different marker facecolor in the legend that in the plot. Is there any way to change this color?=20 In more detail my problem is the following. I plotted 6 dataset. They are divided in 2 groups; one with blue and the other with red color. In each group I have used 3 different markers. I have annotated the meaning of the color in the plot, so I don't need a legend with 6 lines. I only need 3, but I would like that the markers in this plot will be empty (markerfacecolor=3Dwhite). Is it possible? Best regards, Zunbeltz -- Zunbeltz Izaola
Le 18 novembre 2009 17:24, Michael Droettboom <md...@st...> a écrit : > > This is a bug -- but it has a fairly straightforward fix: to use Sphinx's > "include" directive rather than roll our own as we currently do. This has > been fixed in SVN r7972. plot-directive now takes an "encoding" option, > exactly like the Sphinx include directive. It does not do automatic > encoding detection (meaning it ignores the "# coding: latin1" comments), > just as the Sphinx include directive does. > Hello Michael, thank you for your fast reply and action. I just tried with the version from trunk (r7978) and I still have an encoding problem on the same test case. It seems to happen when the file is ran (to produce the figure) rather. I do not understand what is happenning, I would have expected imp to proprely guess the encoding. Could you tell me if you have the same problem ? Do you have any idea of what is going on ? Thanks ! $ git clone git://github.com/sbarthelemy/SphinxEncoding.git $ cd SphinxEncoding/ $ make html sphinx-build -b html -d _build/doctrees . _build/html Making output directory... Running Sphinx v0.6.2 loading pickled environment... not found building [html]: targets for 1 source files that are out of date updating environment: 1 added, 0 changed, 0 removed /home/barthelemy/.local/lib/python2.6/site-packages/matplotlib/sphinxext/plot_directive.py:273: UserWarning: Exception running plot ./fileutf8.py Traceback (most recent call last): File "/home/barthelemy/.local/lib/python2.6/site-packages/matplotlib/sphinxext/plot_directive.py", line 270, in render_figures run_code(plot_path, function_name, plot_code) File "/home/barthelemy/.local/lib/python2.6/site-packages/matplotlib/sphinxext/plot_directive.py", line 182, in run_code "__plot__", fd, fname, ('py', 'r', imp.PY_SOURCE)) File "fileutf8.py", line 2, in <module> print(u"accent aigus é") UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 13: ordinal not in range(128)
Hi Jeff, I finally had a chance to try this. I can't get it to work but I think I'm close - for some reason, the way I'm creating the geos polygons seems to always intersect the boundary polygon. It's hard to think of a good minimal example for this so I've attached an example that illustrates the problem - it tries to plot an icosahedron on the Mollweide plot. Gary R. Jeff Whitaker wrote: > Gary Ruben wrote: >> I'm plotting a coverage map of a sphere using the Mollweide plot in >> basemap. The attachment is an example that is produced by sending an >> array of polygons (one polygon per row described as four corners, one >> per column) described using polar (theta) and azimuthal (phi) angles to >> the following function. As a kludge, I discard any polygons that cross >> the map boundary, but this produces artefacts and it would be better to >> subdivide these and keep the parts. I was wondering whether there's a >> function I missed that allows me to add polygons and performs the split >> across the map boundary. >> >> Gary R. > > Gary: You might be able to use the _geoslib module to compute the > intersections of those polygons with the map boundary. I do a similar > thing with the coastline polygons in the _readboundarydata function. > The _boundarypolyll and _boundarypolyxy instance variables have the > vertices of the map projection region polygons in lat/lon and projection > coords. You could do somethig like this: > > from mpl_toolkits.basemap import _geoslib > poly = _geoslib.Polygon(b) # a geos Polygon instance > describing your polygon) > b = self._boundarypolyxy.boundary > bx = b[:,0]; by= b[:,1] > boundarypoly = _geoslib.Polygon(b) # a geos Polygon instance > describing the map region > if poly.intersects(boundarypoly): > geoms = poly.intersection(boundarypoly) > polygons = [] # polygon intersections to plot. > for psub in geoms: > b = psub.boundary # boundary of an intersection > polygons.append(zip(b[:,0],b[:,1])) > > -Jeff
Hi, I would like to have a different marker facecolor in the legend that in the plot. Is there any way to change this color? In more detail my problem is the following. I plotted 6 dataset. They are divided in 2 groups; one with blue and the other with red color. In each group I have used 3 different markers. I have annotated the meaning of the color in the plot, so I don't need a legend with 6 lines. I only need 3, but I would like that the markers in this plot will be empty (markerfacecolor=white). Is it possible? Best regards, Zunbeltz -- Dr Zunbeltz Izaola G-I1 Methods and instruments of neutron scattering Tel +49 30 8062-3179 Helmholtz-Zentrum Berlin für Materialien und Energie GmbH Glienicker Straße 100, 14109 Berlin Vorsitzende des Aufsichtsrates: Dr. Beatrix Vierkorn-Rudolph Stellvertretende Vorsitzende: Dr. Jutta Koch-Unterseher Geschäftsführer: Prof. Dr. Anke Rita Pyzalla, Prof. Dr. Dr. h.c. Wolfgang Eberhardt, Dr. Ulrich Breuer Sitz der Gesellschaft: Berlin Handelsregister: AG Charlottenburg, 89 HRB 5583
I have also seen this error and I believe it is to do with identical geometries being unioned. I cleaned my dataset using someting like select t1.id from points t1, points t2 where t1.id<>t2.id and st_equals(t1.geom,t2.geom)='t' group by t1.id to find all the duplicates which i then deleted. The st_union function then worked as expected. Jeff Whitaker wrote: > > John [H2O] wrote: >> Does anyone know what this error may result from: >> GEOS_ERROR: TopologyException: no outgoing dirEdge found >> (74.5584,-90,-90) >> Segmentation fault >> >> >> I am getting it for various projections and datasets... >> >> working with mpl_toolkits.basemap >> >> Thanks! >> > What versions of python, numpy, matplotlib, basemap and the GEOS library > do you have? > > -Jeff > > -- > Jeffrey S. Whitaker Phone : (303)497-6313 > Meteorologist FAX : (303)497-6449 > NOAA/OAR/PSD R/PSD1 Email : Jef...@no... > 325 Broadway Office : Skaggs Research Cntr 1D-113 > Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg > > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > 200ドル on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- View this message in context: http://old.nabble.com/GEOS-Error-tp23096254p26436982.html Sent from the matplotlib - users mailing list archive at Nabble.com.
Thanks for the fix and the link! Tom On Nov 18, 2009, at 7:56 PM, Jae-Joon Lee wrote: > http://matplotlib.sourceforge.net/api/artist_api.html?highlight=fancyarrowpatch#matplotlib.patches.FancyArrowPatch > > try to set shrinkA and shrinkB to 0. > > Also see below for how arrows are drawn. > > http://matplotlib.sourceforge.net/users/annotations_guide.html#annotating-with-arrow > > -JJ > > > On Thu, Nov 19, 2009 at 9:46 AM, Thomas Robitaille > <tho...@gm...> wrote: >> Hello, >> >> I'm trying to plot two perpendicular arrows and getting them to >> start from >> the exact same point. If I try the following: >> >> --- >> >> import matplotlib >> matplotlib.use('Agg') >> import matplotlib.pyplot as mpl >> from matplotlib.patches import FancyArrowPatch >> >> fig = mpl.figure() >> ax = fig.add_subplot(111) >> >> arrow1 = FancyArrowPatch(posA=(0.5, 0.5), posB=(0.6, 0.5), \ >> arrowstyle='-|>', mutation_scale=20.) >> >> arrow2 = FancyArrowPatch(posA=(0.5, 0.5), posB=(0.5, 0.6), \ >> arrowstyle='-|>', mutation_scale=20.) >> >> ax.add_patch(arrow1) >> ax.add_patch(arrow2) >> >> fig.savefig('fancyarrow.png') >> >> --- >> >> then the result are two perpendicular arrows but the arrows don't >> touch at >> their origin (see attached image). Is there a way to fix this? >> >> Cheers, >> >> Tom >> >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports >> 2008 30-Day >> trial. Simplify your report design, integration and deployment - >> and focus >> on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >>
http://matplotlib.sourceforge.net/api/artist_api.html?highlight=fancyarrowpatch#matplotlib.patches.FancyArrowPatch try to set shrinkA and shrinkB to 0. Also see below for how arrows are drawn. http://matplotlib.sourceforge.net/users/annotations_guide.html#annotating-with-arrow -JJ On Thu, Nov 19, 2009 at 9:46 AM, Thomas Robitaille <tho...@gm...> wrote: > Hello, > > I'm trying to plot two perpendicular arrows and getting them to start from > the exact same point. If I try the following: > > --- > > import matplotlib > matplotlib.use('Agg') > import matplotlib.pyplot as mpl > from matplotlib.patches import FancyArrowPatch > > fig = mpl.figure() > ax = fig.add_subplot(111) > > arrow1 = FancyArrowPatch(posA=(0.5, 0.5), posB=(0.6, 0.5), \ > arrowstyle='-|>', mutation_scale=20.) > > arrow2 = FancyArrowPatch(posA=(0.5, 0.5), posB=(0.5, 0.6), \ > arrowstyle='-|>', mutation_scale=20.) > > ax.add_patch(arrow1) > ax.add_patch(arrow2) > > fig.savefig('fancyarrow.png') > > --- > > then the result are two perpendicular arrows but the arrows don't touch at > their origin (see attached image). Is there a way to fix this? > > Cheers, > > Tom > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > >