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
(6) |
2
(29) |
3
(19) |
4
(6) |
5
(5) |
6
(9) |
7
(9) |
8
(19) |
9
(14) |
10
(19) |
11
(26) |
12
(10) |
13
(26) |
14
(22) |
15
(19) |
16
(17) |
17
(16) |
18
(2) |
19
|
20
(1) |
21
(1) |
22
(10) |
23
(11) |
24
(17) |
25
(6) |
26
(1) |
27
|
28
(9) |
29
(9) |
30
(9) |
|
|
|
The original message with attachment didn't go thru... Begin forwarded message: *From:* Arlindo da Silva <da...@al...> *To:* matplotlib-users <mat...@li...> *Subject:* *Bug or feature: bbox of maps* Hi, (A similar issue was reported back in 7/4/11 without a definite solution, so I am reposting with some additional diagnostics. ) Up to Matplotlib 0.99 (EPD 6.3) the code snippet below produced a plot with an aligned colorbar as in the attached "correct.png" plot: fig = plt.figure() ax = fig.add_axes(...) m = Basemap(..., ax=ax, ...) im = m.imshow(...) # show() # setup colorbar axes and draw colorbar bbox = ax.get_position() l,b,w,h = bbox.bounds cax = fig.add_axes([l+w+0.05, b, 0.05, h],frameon=False) fig.colorbar(im, cax=cax) Starting with Matplotlib 1.0.0 this no longer works. The ax.get_position() no longer returns the bounding box of the plot but the bbox of the window, see the attached "wrong.png" attached. Some odd behavior: 1) I can get the code above to work correctly under MPL 1.0 if I uncomment the show() line above. (This is not an acceptable solution because show() blocks if not in interactive mode). 2) Under ipython, if after plotting I print gca().get_position().bounds I get the correct bounding box, even when I just got the wrong colorbar positioning. 3) If I run the code above twice in a row (without creating a new fig), the second time around the correct bounding box is returned. Can someone explain to me what is going on? Is this one of those arcane features of matplotlib transform caching? It appears that show() is flushing some type of buffer. Is there any way of accomplishing this without actually calling show()? Thank you, Arlindo -- Arlindo da Silva da...@al... <correct.png> <wrong.png>
On Tue, Nov 22, 2011 at 3:09 PM, Nicolas Rougier <Nic...@in...>wrote: > > Is that what you want ? > > No ticks, no labels: > > import matplotlib.pyplot as plt > plt.plot(np.arange(10), np.arange(10)) > plt.ylim(0,10) > plt.yticks(np.linspace(3,10,8)) > plt.show() > Thanks. That works in your example, but in my actual code, it seems to override my custom formatter, and therefore messes up the axis formatting, which isn't going to work. Maybe I can integrate it into the formatter somehow. If anyone has related tips, please let me know. Che
On Wednesday, November 23, 2011, Bala subramanian <bal...@gm...> wrote: > Hello, > I am trying to make a wireframe plot with the x,y,z values in my data (attached file). I get the following error which i dnt understand. Kindly write me what is going wrong. > > Traceback (most recent call last): > File "test.py", line 14, in <module> > ax.plot_wireframe(d1,d2,d3) > File "/usr/lib/pymodules/python2.7/mpl_toolkits/mplot3d/axes3d.py", line 687, in plot_wireframe > rows, cols = Z.shape > ValueError: need more than 1 value to unpack > > I used is similar code as in the gallery. > > #!/usr/bin/env python > import numpy as np > from mpl_toolkits.mplot3d import Axes3D > import matplotlib.pyplot as plt > > d1=np.loadtxt('test.dat',usecols=(0,)) > d2=np.loadtxt('test.dat',usecols=(1,)) > d3=np.loadtxt('test.dat',usecols=(2,)) > > fig=plt.figure() > ax = Axes3D(fig) > > ax.plot_wireframe(d1,d2,d3) > > Thanks, > Bala > > The data needs to be 2d. I think the x and y can be 1d, so long as they can be broadcasted together to the same shape as Z. Ben Root
Dear mailinglist readers, I have a problem by accessing the content http://matplotlib.sourceforge.net/examples/pylab_examples/demo_tight_layout_00.html whereas other contents, like for example http://matplotlib.sourceforge.net/examples/pylab_examples/demo_ribbon_box.html are well accessible. Is there a reason, why this content is not available? I would be glad, if you might help. Best regards, Sven Ahrens The error message: An error has been encountered in accessing this page. 1. *Server:* matplotlib.sourceforge.net 2. *URL path:* /examples/pylab_examples/demo_tight_layout_00.html 3. *Error notes:* NONE 4. *Error type:* 404 5. *Request method:* GET 6. *Request query string:* NONE 7. *Time:* 2011年11月23日 12:45:59 UTC (1322052359)
Dear MatPlotLib users, I am having trouble with the performance of matplotlib. For data analysis, I want to be able to place multiple graphs on screen, with multiple lines, each consisting of 16000 data points. I have benchmarked my solution, but it did not perform too well. For example: 6 graphs with 6 lines each, takes 12.5 seconds. This graph indicates my benchmark: http://img59.imageshack.us/img59/7613/graphpython.gif In comparison, matlab takes only 2.48 seconds for drawing those. I also noticed that memory usage during the benchmark rises to too high levels. I have, during a different experiment, plotted 36 graphs with 1 line. This is about 9MB of total (x,y) data alltogether, but execution of the benchmark spikes 1GB of memory usage. My question: - Is this performance of matplotlib to be expected? - Can my code (see below) be improved in any way? Thank you very much in advance, Mike ================================ The code I use for the benchmark ================================ for nr_of_graphs in range (1,7): for nr_of_lines in range(1,7): root = Tk.Tk() #nr_of_lines = int(argv[0]) #nr_of_graphs = int(argv[1]) m = myLinMultiPlot() m.drawxy("test {0}L on {1}G".format(nr_of_lines, nr_of_graphs), nr_of_graphs, nr_of_lines) root.mainloop() ================================ The code that plots the actual lines ================================ class myLinMultiPlot(Tk.Toplevel): def drawxy(self, test_name, plots, lines): pointsize = 16000 figure = Figure(figsize=(2,1), dpi=100) storage = [] axes_arr = [] for p in range(0,plots): for li in range(0,lines): shift = li * 100 axes = figure.add_subplot(plots,1,1 + p) axes_arr.append(axes) xarr = xrange(0,16000) yarr = [] for x in xarr: yarr.append(math.sqrt(x + shift)) strg = [xarr,yarr] storage.append(strg) startdraw = timeit.default_timer() for a in axes_arr: for l in storage: a.plot(l[0],l[1]) canvas = FigureCanvasTkAgg(figure, master = self) canvas._tkcanvas.pack(side=Tk.TOP, fill=Tk.BOTH, expand=1) canvas.show() canvas.blit() //This is the time depicted in my benchmark! durationdraw = timeit.default_timer() - startdraw
On 11/23/11 9:49 AM, Chao YUE wrote: > Dear all, > > I am using matplotlib 0.99.3 (I think it's the default version when I use sudo > apt-get install under ubuntu 11.04), but I don't have matplotlib.animation > module. I think I need to reinstall it? The animation module was added in matplotlib 1.1.0. You will have to install that version instead. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
Dear MatPlotLib users, I am having trouble with the performance of matplotlib. For data analysis, I want to be able to place multiple graphs on screen, with multiple lines, each consisting of 16000 data points. I have benchmarked my solution, but it did not perform too well. For example: 6 graphs with 6 lines each, takes 12.5 seconds. This graph indicates my benchmark: http://img59.imageshack.us/img59/7613/graphpython.gif I also noticed that memory usage during the benchmark rises to too high levels. I have, during a different experiment, plotted 36 graphs with 1 line. This is about 9MB of total (x,y) data alltogether, but execution of the benchmark spikes 1GB of memory usage. My question: - Is this performance of matplotlib to be expected? - Can it be improved in any way? Thank you very much in advance, Anne ================================ The code I use for the benchmark ================================ for nr_of_graphs in range (1,7): for nr_of_lines in range(1,7): root = Tk.Tk() #nr_of_lines = int(argv[0]) #nr_of_graphs = int(argv[1]) m = myLinMultiPlot() m.drawxy("test {0}L on {1}G".format(nr_of_lines, nr_of_graphs), nr_of_graphs, nr_of_lines) root.mainloop() ================================ The code that plots the actual lines ================================ class myLinMultiPlot(Tk.Toplevel): def drawxy(self, test_name, plots, lines): pointsize = 16000 figure = Figure(figsize=(2,1), dpi=100) storage = [] axes_arr = [] for p in range(0,plots): for li in range(0,lines): shift = li * 100 axes = figure.add_subplot(plots,1,1 + p) axes_arr.append(axes) xarr = xrange(0,16000) yarr = [] for x in xarr: yarr.append(math.sqrt(x + shift)) strg = [xarr,yarr] storage.append(strg) startdraw = timeit.default_timer() for a in axes_arr: for l in storage: a.plot(l[0],l[1]) canvas = FigureCanvasTkAgg(figure, master = self) canvas._tkcanvas.pack(side=Tk.TOP, fill=Tk.BOTH, expand=1) canvas.show() canvas.blit() //This is the time depicted in my benchmark! durationdraw = timeit.default_timer() - startdraw
Dear all, I am using matplotlib 0.99.3 (I think it's the default version when I use sudo apt-get install under ubuntu 11.04), but I don't have matplotlib.animation module. I think I need to reinstall it? thanks, chao -- *********************************************************************************** Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF Sur YVETTE Cedex Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16 ************************************************************************************
Is that what you want ? No ticks, no labels: import matplotlib.pyplot as plt plt.plot(np.arange(10), np.arange(10)) plt.ylim(0,10) plt.yticks(np.linspace(3,10,8)) plt.show() Ticks but no labels: import matplotlib.pyplot as plt plt.plot(np.arange(10), np.arange(10)) plt.ylim(0,10) plt.yticks(np.linspace(0,10,11), ['']*3 + ['%d' % i for i in linspace(3,10,8)]) plt.show() Nicolas On Nov 22, 2011, at 20:13 , C M wrote: > What's the best way in Matplotlib to have a y axis that doesn't have ticks/axis numbers near the bottom of the graph? I don't know if it would be specified as the bottom 1/10th of the graph or x amount of pixels or inches or whatever...just need a bit of extra "y-less" space there to plot values that have an x value but no y value. I'm assuming this would be done with a Formatter or Locator, but wasn't sure how to go about it. > > See attached image.... > > Thanks, > Che > <y_axis_lower_margin.jpg>------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d_______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Hi, I am a new user of matplotlib Basemap. I tried to draw the latitude with interval 0.1 degree using drawparallels, but failed. I wonder if the drawparallels can draw latitude lines with small interval instead of integer values. (drawmeridian can work with small interval 0.1). Does anyone have any idea to fix this issue? Thanks! Dave #here is a test program to test the drawparallels function #testbasemap.py from mpl_toolkits.basemap import Basemap import matplotlib.pyplot as plt import numpy as np import math latmin=36.803200 latmax=37.306640 lonmin=-76.396026 lonmax=-75.602331 latmin1=math.floor(latmin) latmax1=math.ceil(latmax) lonmin1=math.floor(lonmin) lonmax1=math.ceil(lonmax) m=Basemap(projection='merc',resolution='h',llcrnrlat=latmin,urcrnrlat=latmax,llcrnrlon=lonmin,urcrnrlon=lonmax) m.drawcoastlines() m.drawmapboundary(fill_color='aqua') m.fillcontinents(color='coral',lake_color='aqua') meridians = np.arange(lonmin1,lonmax1,0.1) m.drawmeridians(meridians,labels=[1,1,0,1],fmt='%5.2f') parallels=np.arange(latmin,latmax,0.1) m.drawparallels(parallels,labels=[1,1,0,1],fmt='%5.2f') plt.savefig('test.png') ##################################################################### The error message is as follows: Traceback (most recent call last): File "testbasemap.py", line 25, in <module> m.drawparallels(parallels,labels=[1,1,0,1],fmt='%5.2f') File "/usr/local/lib/python2.7/site-packages/mpl_toolkits/basemap/__init__.py", line 2067, in drawparallels if t is not None: linecolls[int(lat)][1].append(t) KeyError: 36
2011年11月22日 Robert Kern <rob...@gm...>: > To get matplotlib 1.1.0 right now, you will have to build it yourself from > sources. Matplotlib packages for Precise also seem to work well in Oneiric. Goyo
On 11/22/11 9:40 AM, andrei barcaru wrote: > Hello > My name is Andrew and I'm working in University of Gerona, Spain. I've installed > the entought distribution package on UBUNTU 11 32b OS . During the install I was > asked by the shell if I want to create a folder .. so I did that, I've created a > folder named pyth. Now .. when I'm trying to import matplotlib.animation as > animation for instance .. I get an error that the module animation is missing . > And indeed in pyth/lib/python2.7/site-package/matplotlib/ there is no file named > animation > Can you tell me please how can I update matplotlib to get the animation package > installed. The current version of EPD contains matplotlib 1.0.1. The animation package was added in matplotlib 1.1.0. To get matplotlib 1.1.0 right now, you will have to build it yourself from sources. You can remove EPD's matplotlib 1.0.1 like so: $ enpkg --remove matplotlib -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
You may need to set your default font to something with those characters. For example: import matplotlib matplotlib.rcParams['font.family'] = 'DejaVu Sans' Mike On 11/22/2011 05:41 AM, Yannick Copin wrote: > Hi, > > I'm confused regarding the use of Unicode characters in matplotlib. I tried > the following: > > <code> > > #!/usr/bin/env python > # -*- coding: utf-8 -*- > > import matplotlib.pyplot as P > > ax = P.gca() > ax.set_title(u"OK: ×ばつ÷, Not OK: αβγδ") > P.show() > > </code> > > The 1st "OK" characters are displayed correctly, while the "Not OK" ones are > (well) not (while they are available from the Gnome Character Map). I have a > standard matplotlib over a standard Ubuntu distribution... > > I'm aware I could use "r$\alpha$" and so on, but I'd like to stick to unicode > characters... Is there any hope to use unicode greek characters? > > Cheers,
Hi Paul, Thanks. I tried that and I get the same results as you --- running "./version.py" returns 2.7.1 but "python version.py" returns 2.7.2. I think it's because the python installed at /usr/bin/python is the one that came with the OS; when I installed python 2.7.2 using macports, it installed it to /usr/bin/python2.7, then set the environment to point to that. So, if I change the first line from #! /usr/bin/python to #! /usr/bin/env python, I get the same result when I run version.py either way. Anyway, are you saying that having the two pythons installed is affecting pylab.show()? If so, how can I fix it? Thanks, Collin On Nov 18, 2011, at 10:54 AM, Paul de Beurs wrote: Collin, I had the same kind of trouble. OSX Lion comes with Python 2.7.1. I have this little script named 'version.py': #!/usr/bin/python import sys print 'Python', sys.version In a Terminal you can start version.py in two different ways. when I typed: python version.py I got: Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 14:13:39) [GCC 4.0.1 (Apple Inc. build 5493)] when I typed: version.py I got: Python 2.7.1 (r271:86832, Jun 16 2011, 16:59:05) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 23351500)] When I change the first line in version.py in #!/Library/Frameworks/Python.framework/Versions/2.7/bin/python the results of the two test are the same. Maybe this helps you. Please give me your results. Paul 2011年11月16日 Collin Capano <cdc...@sy...<mailto:cdc...@sy...>> Hi, I've installed matplotlib on a new computer running OSX Lion 10.7.2 (Xcode version 4.2). When I open ipython and try to run: In [1]: import pylab In [2]: pylab.figure(); pylab.plot([0,1],[2,2]); pylab.show() nothing happens. I can, however, save the plot using pylab.savefig. I am using matplotlib version 1.1.0, with Python 2.7.2 and ipython version 0.11. I installed all of these using MacPorts (specifically, the python27, py27-matplotlib, and py27-ipython ports). Any help would be greatly appreciated, as interactive plotting is important for my work. Thanks, Collin ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ Matplotlib-users mailing list Mat...@li...<mailto:Mat...@li...> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
On 11/21/11 8:45 PM, Arlindo da Silva wrote: > Hi, > > (A similar issue was reported back in 7/4/11 without a definite > solution, so I am reposting with some additional diagnostics. ) Up to > Matplotlib 0.99 (EPD 6.3) the code snippet below produced a plot with > an aligned colorbar as in the attached "correct.png" plot: > > fig = plt.figure() > ax = fig.add_axes(...) > > m = Basemap(..., ax=ax, ...) > > im = m.imshow(...) > # show() > # setup colorbar axes and draw colorbar > bbox = ax.get_position() > l,b,w,h = bbox.bounds > cax = fig.add_axes([l+w+0.05, b, 0.05, h],frameon=False) > fig.colorbar(im, cax=cax) > > Starting with Matplotlib 1.0.0 this no longer works. The > ax.get_position() no longer returns the bounding box of the plot but > the bbox of the window, see the attached "wrong.png" attached. Some > odd behavior: > > 1) I can get the code above to work correctly under MPL 1.0 if I > uncomment theshow() line above. (This is not an acceptable solution > because show() blocks if not in interactive mode). > > 2) Under ipython, if after plotting I print > gca().get_position().bounds I get the correct bounding box, even when > I just got the wrong colorbar positioning. > > 3) If I run the code above twice in a row (without creating a new > fig), the second time around the correct bounding box is returned. > > Can someone explain to me what is going on? Is this one of those > arcane features of matplotlib transform caching? It appears that > show() is flushing some type of buffer. Is there any way of > accomplishing this without actually calling show()? > > Thank you, > > Hi Arlindo: I'm not sure what changed in matplotlib to cause this (I'm sure someone else on the list will). However, if you upgrade to basemap 1.0.2/matplotlib 1.1.0 you can use the new matplotlib colorbar method, which does what you want automatically without having to use ax.get_position. If uses the axes_grid toolkit under the hood to compute the correct location and size for the colorbar. See http://matplotlib.github.com/basemap/api/basemap_api.html?highlight=colorbar#mpl_toolkits.basemap.Basemap.colorbar The examples at http://matplotlib.github.com/basemap/users/examples.html use this. Regards, Jeff
Hello My name is Andrew and I'm working in University of Gerona, Spain. I've installed the entought distribution package on UBUNTU 11 32b OS . During the install I was asked by the shell if I want to create a folder .. so I did that, I've created a folder named pyth. Now .. when I'm trying to import matplotlib.animation as animation for instance .. I get an error that the module animation is missing . And indeed in pyth/lib/python2.7/site-package/matplotlib/ there is no file named animation Can you tell me please how can I update matplotlib to get the animation package installed. Thank yuo. AB.
On Fri, Nov 18, 2011 at 9:22 AM, brogi federico <blu...@ho...>wrote: > Hi, > > -my operating system is : > Linux fede 2.6.32-34-generic #77-Ubuntu SMP Tue Sep 13 19:40:53 UTC 2011 > i686 GNU/Linux > > -matplotlib version > 0.99.1.1 > > - I obtained the matplotlib from Sourceforge site > > - my problem is the following: > > >>> from mpl_toolkits.basemap import Basemap > * * > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File > "/usr/local/lib/python2.6/dist-packages/mpl_toolkits/basemap/__init__.py", > line 31, in <module> > from mpl_toolkits.axes_grid1 import make_axes_locatable > File > "/usr/local/lib/python2.6/dist-packages/mpl_toolkits/axes_grid1/__init__.py", > line 2, in <module> > from axes_divider import Divider, SubplotDivider, LocatableAxes, \ > File > "/usr/local/lib/python2.6/dist-packages/mpl_toolkits/axes_grid1/axes_divider.py", > line 343, in <module> > from matplotlib.gridspec import SubplotSpec, GridSpec > ImportError: No module named gridspec > > I've just installed basemap- 1.0.2 from Sourceforge site. > > Waiting for an answer, > Thanks, > > Federico > > Federico, v0.99.1.1 is a somewhat older version of matplotlib. We are currently on v1.1.0 which was released about a month ago. Is there a particular reason why you need that version, or could you try the newer version? Or, perhaps your installation of matplotlib did not override a previously existing install? Ben Root
2011年11月15日 Jun Tanaka <tn...@gm...>: > Dear All, > I have a problem with installation of python(x,y). When I try, it says > "python 2.6.2 msi was not found" If anyone knows how to resolve this issue, > please help me. My OS is windows 7 64bit. > If this mailing lists does not help pyhton(x,y) issue, please lead me to a > right place. Try the python(x,y) discussion group http://groups.google.com/group/pythonxy
On 11/16/11 8:00 PM, Eric Firing wrote: > On 11/16/2011 03:16 PM, Gökhan Sever wrote: >> Hi, >> >> Using the example code shown below I can't get meridians plotted on the >> screen: >> >> from mpl_toolkits.basemap import Basemap >> import matplotlib.pyplot as plt >> import numpy as np >> >> m = Basemap(projection='merc',lon_0=-79, lat_0=25.5, >> llcrnrlon=-93, urcrnrlon=-63, llcrnrlat=14, urcrnrlat=36.2) >> >> m.drawcoastlines(linewidth=0.3) >> parallels = np.arange(0.,90,2.) >> m.drawparallels(parallels, labels=[1,0,0,0]) >> meridians = np.arange(180.,360.,5.) > It can't handle the wrap; subtract 360 from your meridians, and they > will show up. I just committed a fix for this, so that the wraparound is handled automatically in drawmeridians. -Jeff > > Eric > >> m.drawmeridians(meridians, labels=[0,0,0,1]) >> >> plt.show() >> >> Two other projections "laea" and "tmerc" work fine for this case. >> >> Any ideas? >> >> Thanks. >> >> >> -- >> Gökhan >> >> -- 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
Hi, -my operating system is :Linux fede 2.6.32-34-generic #77-Ubuntu SMP Tue Sep 13 19:40:53 UTC 2011 i686 GNU/Linux -matplotlib version0.99.1.1 - I obtained the matplotlib from Sourceforge site - my problem is the following: >>> from mpl_toolkits.basemap import Basemap Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.6/dist-packages/mpl_toolkits/basemap/__init__.py", line 31, in <module> from mpl_toolkits.axes_grid1 import make_axes_locatable File "/usr/local/lib/python2.6/dist-packages/mpl_toolkits/axes_grid1/__init__.py", line 2, in <module> from axes_divider import Divider, SubplotDivider, LocatableAxes, \ File "/usr/local/lib/python2.6/dist-packages/mpl_toolkits/axes_grid1/axes_divider.py", line 343, in <module> from matplotlib.gridspec import SubplotSpec, GridSpecImportError: No module named gridspec I've just installed basemap- 1.0.2 from Sourceforge site. Waiting for an answer,Thanks, Federico
Hi. I have a plot with numerous time series plotted using pyplot.plot. Between these time series, I fill the regions using pyplot.fill_between. I would like to be able to provide information when users hover over different filled regions. Is there a way to catch mouse motion events for the filled between regions of the plot? Many thanks for any guidance. Cheers, Ben
I've been suffering from installing Scipy, Numpy, and matplotlib on my Mac-Lion system. I've searched through google and attempted a couple of the methods. Some worked fine, some not. In the end I decided to use Enthought Python Distribution. I've found it very easy and working fine. Of course, I'd like to get things going by my own. But it is sometimes too difficult and time-consuming. Youngung On Wed, Nov 16, 2011 at 1:11 PM, Collin Capano <cdc...@sy...> wrote: > Hi, > > I've installed matplotlib on a new computer running OSX Lion 10.7.2 (Xcode > version 4.2). When I open ipython and try to run: > > In [1]: import pylab > In [2]: pylab.figure(); pylab.plot([0,1],[2,2]); pylab.show() > > nothing happens. I can, however, save the plot using pylab.savefig. I am > using matplotlib version 1.1.0, with Python 2.7.2 and ipython version 0.11. > I installed all of these using MacPorts (specifically, the python27, > py27-matplotlib, and py27-ipython ports). > > Any help would be greatly appreciated, as interactive plotting is > important for my work. > > Thanks, > Collin > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
Hi Sameer, If you are using the default (system) Python, I found that the only extra dependency you need to install is pkg-config. I used homebrew for this (http://mxcl.github.com/homebrew/ and "brew install pkg-config"). Alternatively, you can install it directly from the source obtained at http://www.freedesktop.org/wiki/Software/pkg-config. Be sure to get the 0.25 release at http://pkg-config.freedesktop.org/releases/pkg-config-0.25.tar.gz, as 0.26 has an unnecessary and expensive dependence on glib. To install, unpack and follow the instructions from the homebrew formula: (mkdir -p /usr/local if needed) ./configure --disable-debug --with-pc-path=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11/lib/pkgconfig make install Don't worry about the libpng problem - it is fixed in matplotlib 1.1.0, which is available on PyPI. I can't vouch for pip, but "sudo easy_install matplotlib" did it for me. Regards and please let me know how it went! Ludwig
On 11/15/2011 05:44 AM, astrowilson wrote: > > Hey everyone, > > I'm doing a dissertation where I need to vary the size of the points in a 2D > plot. Now I know that you can change the size of every point by changing the > value of markersize to any integer value you want, but how do you put in an > array so that every point is a specific size? > > Thanks Use scatter. http://matplotlib.sourceforge.net/examples/pylab_examples/scatter_demo2.html Watch out for the way the size is specified: area, not radius. Eric
Thanks Jeff and Eric. Both solutions simply works :) -- Gökhan