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
(10) |
2
(10) |
3
(9) |
4
(3) |
5
(2) |
6
(6) |
7
(12) |
8
(21) |
9
(4) |
10
(19) |
11
(7) |
12
(2) |
13
(28) |
14
(13) |
15
(27) |
16
(17) |
17
(21) |
18
(22) |
19
(3) |
20
(25) |
21
(17) |
22
(16) |
23
(28) |
24
(19) |
25
(4) |
26
(4) |
27
(23) |
28
(13) |
29
(15) |
30
(19) |
|
|
Hi. I tested the svn snapshot from yesterday to see if the problem is there for me in the most recent version. I had to do the check on a linux box, as that one is the only one I am able to compile on. The svn version states itself as 1.0.0 also in matplotlib.__version__ which I hope is ok. The "strange" behavior is still there. Besides: Where would the correct place be to switch the level of detail parameter. Once for the axes in add_subplot or for every plot command, or both? Jens From: Jens Nie [mailto:JN...@Ro...] Sent: Wednesday, September 01, 2010 10:03 AM To: mat...@li... Subject: Re: [Matplotlib-users] How to get all data points plotted/displayed in a line plot Hi Ben. It is the version 1.0.0 that i am using, both on Linux and windows. Is there any newer (development) version that I should try? Jens [...] Is there any way to enforce plotting each and every point? I use matplotlib version 1.0.0 on a 32 Bit windows XP system installed via the windows installer from sf. A quick check on a opensuse 11.3 linux box showed the same issue. Using the "standard" TK backend instead of Qt4Agg behaves just the same. Jens Jens, Which version of matplotlib are you using? I wonder if this is the path.simplify bug that was fixed for 1.0. Essentially, there was a bug in some code that caused some points to be skipped in the process of displaying images that had datapoints that were closer together than could be resolved. I suspect this is what is happening here, because everything looks fine on my latest build. Ben Root
Hello, Is it possible to specify both an alpha level and a background color so that an entire saved image has a uniform transparency and color? For example, with matplotlib 1.0.0, this script yields the attached image: from matplotlib.pyplot import figure, savefig, show fig = figure() ax = fig.add_subplot(111) ax.plot([1,2,3]) fig.patch.set_alpha(0.5) for ax in fig.axes: ax.patch.set_alpha(0.5) fig.patch.set_facecolor('red') for ax in fig.axes: ax.patch.set_facecolor('red') savefig('test.png', facecolor='red') In particular, the areas inside and outside the axes have different transparency level and color. Perhaps I'm over/mis/ab-using the options here? Thanks for your great software and any help you can provide! Sincerely, Mitesh Patel
On Sep 1, 2010, at 5:10 PM, Ali Fessi wrote: > Hi, > > is there a way to change the default font, e.g., to Times New Roman?! > I've been looking at the rcparams but it's kind of confusing. > > Cheers. Yes, but first you should make sure the font is on your system and is of the correct type, i.e. TrueType (TTF). AND you have to make sure know the name of it (some fonts may have names that aren't obvious). To check the name, type the following in the python interpreter: >>> from matplotlib import font_manager >>> font_manager.findfont('Times New Roman') If the font manager finds it, then it should return the path to a ttf file with a similar name; otherwise, it'll return some default font (on my system Vera.ttf). Assuming you've got all that sorted out, you can set the default font in each script, or in your matplotlibrc file (i.e. globally). But first note that Times New Roman is a serif font; matplotlib uses sans-serif fonts by default (at least on my system). So if you decide to go with Times New Roman, or another serif font, you need to change the font family, as well. Here's some examples 1) In a script, add: import matplotlib.pyplot as plt plt.rc('font', family='serif') plt.rc('font', serif='Times New Roman') 2) In your matplotlibrc file, add: font.family: serif font.serif: Times New Roman Best, -Tony
Hi, is there a way to change the default font, e.g., to Times New Roman?! I've been looking at the rcparams but it's kind of confusing. Cheers.
Hi, I use qt4 backend. I update some lines doing something like that: def draw_curves(self, datas, x): for y in datas: self.lines[i].set_data(x, y) min_y, max_y = self.min_max(y) self.ax[i].axis((0, x[-1], min_y, max_y)) #self.ax[i].draw_artist(self.lines[i]) #self.fig.canvas.blit(self.ax[i].bbox) self.fig.canvas.draw() the self.fig.canvas.draw() is very slow. (I have 20 subplot in that figure). I tried to use: self.ax[i].draw_artist(self.lines[i]) self.fig.canvas.blit(self.ax[i].bbox) it's very fast. But it does not update the scale of the plot. and it does not remove the old datas. Can someone help me on that ? if I plot a sin(x) at first, I get it between 0 and 1. then, if I plot 2.sin(x), it does not update the zoom to 0-2 thank you, Philippe
From: Yi Shang [mailto:mir...@gm...] Sent: Friday, August 27, 2010 17:33 Hi Ben, Thanks for the reply. I did try to match font.family and font.$family and I am using matplotlib 0.99.0. I did find something interesting... For testing, I tried only using font.family line, (deleting font.$family line). I got reasonable font for "monospace", "fantasy" "sans-serif" and "serif" family, but "cursive" looked exactly the same as "sans-serif", which is the default font.family value. Do you have any of the fonts in plt.rcParams['font.cursive']? If not, matplotlib falls back to another font. You might have gotten a warning message of the form "... font_manager.py:1242: UserWarning: findfont: Font family ['cursive'] not found. Falling back to Bitstream Vera Sans". Then, I added font.$family line. When font.family and font.$family match, as you suggested, I always get the default font as if I only specified font.family as sans-serif. {''font.family' : 'fantasy', 'font.fantasy' : 'Chicago'} gives me the default font, {''font.family' : 'fantasy', 'font.fantasy' : 'foo'} also gives me the default font ('Chicago is actually in 'fantasy' family, 'foo' is not). Then I tried to mismatch font.family and font.$family, since they are not matching, font.$family is not taking effect, I am getting whatever font.family line is giving me. I think the syntax I used may be wrong. Anyone has any idea how to specify a specific font name within a font family? The font families font.sans-serif, font.serif, etc., must be lists of names of fonts, whereas font.family is a string naming either one of the families or a font. So, you could use either params = {'font.family' : 'sans-serif', 'font.sans-serif' : ['Arial']} or params = {'font.family' : 'Arial'} to specify a font.
Hi, When using log scale, if the error is larger than flux, the error bar does not plot at all: import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(1, 1, 1) ax.errorbar([1.],[1.],yerr=[2.]) ax.set_yscale('log') fig.savefig('test.png') However, I think it would make more correct to plot the line for the errorbar, and to make it go down to -infinity. Would it be possible to fix this? I have submitted a bug report: https://sourceforge.net/tracker/?func=detail&aid=3057653&group_id=80706&atid=560720 Thanks, Thomas
vbkhp wrote: > Hi, > > Could anyone tell me how can I remove matplotlib completely on Mac? > I was on version 0.99 and I wanted to upgrade to version 1.0 so i removed > the matplotlib directory and the egg file (besides the pylab.py, > pylab.pyo, and pylab.pyc files), That should have done it -- except perhaps for your matplotlibrc file(s), but you may want to keep that anyway. > and installed the new version using > .dmg file "matplotlib-1.0.0-python.org-py2.6-macosx10.4". Now, I can > import and work with pylab when I call it from the terminal, but I can > not import it other places like IDLE. I get the following error. If it's different from IDLE than the command line, that indicates that you may be running two different versions of Python. You have at least two -- the one that Apple supplied and the python.org one. > Process: Python [922] > Path: /Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python This is the python.org one -- which is where that dmg file should have put the new matplotlib. So which are you running when you use the command line? one way to tell is with by checking the __file__ attribute on an arbitrary module: In [10]: import numpy In [11]: numpy.__file__ Out[11]: '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/__init__.pyc' So mine is the python.org one -- the Apple one is in /System/.... Once you've got that cleared up, at least you can know where your problem is -- sorry I can't help you with that crash report. One more thought -- IDLE uses TK, ans so does (optionally) MPL -- perhaps there is a version conflict there? (I'm not a IDLE or Tk user, so I don't know if that's likely). You might try testing other back ends: import matplotlib matplotlib.use('agg') for instance. -Chris -- 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...
On Wed, Sep 1, 2010 at 7:21 AM, xyz <mi...@op...> wrote: > On 30/08/10 23:34, Ryan May wrote: > > On Mon, Aug 30, 2010 at 4:44 AM, xyz<mi...@op...> <mi...@op...> wrote: > > > On 30/08/10 03:51, Benjamin Root wrote: > > > maxy = max(max(y1), max(y2)) > maxx = max(x) > > ax.set_xlim((0.0, maxx)) > ax.set_ylim((0.0, maxy)) > > > Thank you, but unfortunately I have still the same problems: > * plt.text appears outside x and y coordinates > * and the coordinates starts not from 0 > > with the updated code: > from pylab import * > import matplotlib.pyplot as plt > > x = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, > 20, 21, 22, 23, 24, 25, 26, 27, 28, 29] > y1 = [20, 24, 8, 4, 12, 22, 31, 25, 15, 28, 12, 27, 22, 22, 27, 14, 32, > 28, 8, 17, 2, 8, 29, 13, 14, 20, 11, 28, 8] > y2= [2, 32, 28, 1, 22, 11, 14, 27, 3, 31, 12, 20, 32, 24, 24, 16, 7, 10, > 12, 11, 3, 32, 10, 20, 14, 14, 3, 25, 14] > point_labels1 = ['A=1', 'A=1', 'A=1', 'A=1', 'A=1', 'A=1', 'A=1', 'A=1', > 'A=1', 'A=1', 'A=1', 'A=1', 'A=1', 'A=1', 'A=1', 'A=1', 'A=1', 'A=1', > 'A=1', 'A=1', 'A=1', 'A=1', 'A=1', 'A=1', 'A=1', 'A=1', 'A=1', 'A=1', > 'A=1'] > point_labels2 = ['B=1', 'B=1', 'B=1', 'B=1', 'B=1', 'B=1', 'B=1', 'B=1', > 'B=1', 'B=1', 'B=1', 'B=1', 'B=1', 'B=1', 'B=1', 'B=1', 'B=1', 'B=1', > 'B=1', 'B=1', 'B=1', 'B=1', 'B=1', 'B=1', 'B=1', 'B=1', 'B=1', 'B=1', > 'B=1'] > > fig = plt.figure() > ax = fig.add_subplot(111) > > ax.set_title('The red point should be on the path') > > plt.plot(x, y1, 'bo', x, y2, 'go') > ax.grid(True) > maxy = max(max(y1), max(y2)) > maxx = max(x) > > ax.set_xlim((0.0, maxx)) > ax.set_ylim((0.0, maxy)) > > fig.autofmt_xdate() > > plt.xticks(range(0, 40, 1)) > > plt.yticks(range(0, 40, 1)) > plt.xlabel('Longitude') > plt.ylabel('Latitude') > plt.legend(('Model length', 'Data length'), > 'best', shadow=True, fancybox=True) > > for i, label in enumerate(y1): > plt.text (x[i], y1[i]+0.2, label, > horizontalalignment='center' ) > > for i, label in enumerate(y2): > plt.text (x[i], y2[i]+0.2, label, > horizontalalignment='center' ) > > > ax.autoscale_view() > plt.savefig('test.png') > plt.show() > > What did I wrong? > > > Like Eric said, the call to ax.autoscale_view() overrides the limits > you set by hand. Remove this line. > > Ryan > > > > Thank you, now are plt.text in the coordinates. Unfortunately, now > overlapping the x and y coordinates. > > How is it possible to solve this problem? > > I am not sure I understand what you mean. Could you please attach an image of the problem? Ben Root
On 30/08/10 23:34, Ryan May wrote: > On Mon, Aug 30, 2010 at 4:44 AM, xyz<mi...@op...> wrote: >> On 30/08/10 03:51, Benjamin Root wrote: >>> maxy = max(max(y1), max(y2)) >>> maxx = max(x) >>> >>> ax.set_xlim((0.0, maxx)) >>> ax.set_ylim((0.0, maxy)) >> Thank you, but unfortunately I have still the same problems: >> * plt.text appears outside x and y coordinates >> * and the coordinates starts not from 0 >> >> with the updated code: >> from pylab import * >> import matplotlib.pyplot as plt >> >> x = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, >> 20, 21, 22, 23, 24, 25, 26, 27, 28, 29] >> y1 = [20, 24, 8, 4, 12, 22, 31, 25, 15, 28, 12, 27, 22, 22, 27, 14, 32, >> 28, 8, 17, 2, 8, 29, 13, 14, 20, 11, 28, 8] >> y2= [2, 32, 28, 1, 22, 11, 14, 27, 3, 31, 12, 20, 32, 24, 24, 16, 7, 10, >> 12, 11, 3, 32, 10, 20, 14, 14, 3, 25, 14] >> point_labels1 = ['A=1', 'A=1', 'A=1', 'A=1', 'A=1', 'A=1', 'A=1', 'A=1', >> 'A=1', 'A=1', 'A=1', 'A=1', 'A=1', 'A=1', 'A=1', 'A=1', 'A=1', 'A=1', >> 'A=1', 'A=1', 'A=1', 'A=1', 'A=1', 'A=1', 'A=1', 'A=1', 'A=1', 'A=1', >> 'A=1'] >> point_labels2 = ['B=1', 'B=1', 'B=1', 'B=1', 'B=1', 'B=1', 'B=1', 'B=1', >> 'B=1', 'B=1', 'B=1', 'B=1', 'B=1', 'B=1', 'B=1', 'B=1', 'B=1', 'B=1', >> 'B=1', 'B=1', 'B=1', 'B=1', 'B=1', 'B=1', 'B=1', 'B=1', 'B=1', 'B=1', >> 'B=1'] >> >> fig = plt.figure() >> ax = fig.add_subplot(111) >> >> ax.set_title('The red point should be on the path') >> >> plt.plot(x, y1, 'bo', x, y2, 'go') >> ax.grid(True) >> maxy = max(max(y1), max(y2)) >> maxx = max(x) >> >> ax.set_xlim((0.0, maxx)) >> ax.set_ylim((0.0, maxy)) >> >> fig.autofmt_xdate() >> >> plt.xticks(range(0, 40, 1)) >> >> plt.yticks(range(0, 40, 1)) >> plt.xlabel('Longitude') >> plt.ylabel('Latitude') >> plt.legend(('Model length', 'Data length'), >> 'best', shadow=True, fancybox=True) >> >> for i, label in enumerate(y1): >> plt.text (x[i], y1[i]+0.2, label, >> horizontalalignment='center' ) >> >> for i, label in enumerate(y2): >> plt.text (x[i], y2[i]+0.2, label, >> horizontalalignment='center' ) >> >> >> ax.autoscale_view() >> plt.savefig('test.png') >> plt.show() >> >> What did I wrong? > Like Eric said, the call to ax.autoscale_view() overrides the limits > you set by hand. Remove this line. > > Ryan > Thank you, now are plt.text in the coordinates. Unfortunately, now overlapping the x and y coordinates. How is it possible to solve this problem?
Hi Ben. It is the version 1.0.0 that i am using, both on Linux and windows. Is there any newer (development) version that I should try? Jens [...] Is there any way to enforce plotting each and every point? I use matplotlib version 1.0.0 on a 32 Bit windows XP system installed via the windows installer from sf. A quick check on a opensuse 11.3 linux box showed the same issue. Using the "standard" TK backend instead of Qt4Agg behaves just the same. Jens Jens, Which version of matplotlib are you using? I wonder if this is the path.simplify bug that was fixed for 1.0. Essentially, there was a bug in some code that caused some points to be skipped in the process of displaying images that had datapoints that were closer together than could be resolved. I suspect this is what is happening here, because everything looks fine on my latest build. Ben Root
On Tue, Aug 31, 2010 at 6:08 AM, Jens Nie <JN...@ro...> wrote: > Hi everyone. > > I face a problem here, which I can’t seem to handle by myself, so any help > is really appreciated. > > I would like to do a simple line plot of a huge dataset as an overview to > quickly compare success of different measurement scenarios, and it seems > that not every datapoint is displayed. I played a little with the lod > parameter, both for the creation of the axis and the plot command. However > timing the plot command and the display itself do not show differences. Here > are a few lines of code that help to reproduce the problem. > > import time > > import matplotlib > matplotlib.use("Qt4Agg") > import matplotlib.pyplot as plt > > import numpy as np > > xData=np.linspace(0, 10.0, 1e6) > yData=np.zeros(xData.shape) > > xDataDetail=np.linspace(0.0, 2*np.pi, 1000) > yDataDetail=np.exp(-xDataDetail)*np.sin(10.0*xDataDetail) > > yData[100000:100000+len(yDataDetail)]=yDataDetail > > fig=plt.figure() > axes=fig.add_subplot(111) > tic=time.time() > axes.plot(xData, yData, "b-") > toc=time.time() > axes.grid(True) > print "Plotting took %g s." % (toc-tic) > plt.show() > > The code shows how I usually use the matplotlib environment and creates a > simple dataset of 1 million zeros with a short non trivial peak within, that > is to be plotted as a blue solid line. > > You can see what happens, when you vary the width of the displaying window. > On my system usually the minimum amplitude varies when resizing the window. > > Is there any way to enforce plotting each and every point? > > I use matplotlib version 1.0.0 on a 32 Bit windows XP system installed via > the windows installer from sf. > A quick check on a opensuse 11.3 linux box showed the same issue. Using the > "standard" TK backend instead of Qt4Agg behaves just the same. > > Jens > > Jens, Which version of matplotlib are you using? I wonder if this is the path.simplify bug that was fixed for 1.0. Essentially, there was a bug in some code that caused some points to be skipped in the process of displaying images that had datapoints that were closer together than could be resolved. I suspect this is what is happening here, because everything looks fine on my latest build. Ben Root