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
(16) |
2
(22) |
3
(28) |
4
(17) |
5
(17) |
6
(7) |
7
|
8
(15) |
9
(28) |
10
(26) |
11
(28) |
12
(19) |
13
(5) |
14
(3) |
15
(21) |
16
(28) |
17
(11) |
18
(18) |
19
(6) |
20
(5) |
21
(18) |
22
(11) |
23
(22) |
24
(28) |
25
(17) |
26
(17) |
27
(7) |
28
(16) |
29
(24) |
30
(25) |
31
(14) |
|
|
|
From: Ken D. <kp...@ve...> - 2010-03-27 14:13:35
|
Hi, thanks for the suggestion. They do have multiple versions but I checked that everything is using 2.5 regards, Ken Dere Rune V. Sjøen wrote: > Hi, > > Does the box have multiple python versions installed, and are you sure > that apache is using the > same version and/or site packages as when you run it from the command line > ? > > Regards, > Rune V. Sjøen > > On Fri, Mar 26, 2010 at 8:07 PM, Ken Dere > <kp...@ve...> wrote: > >> Hi, >> >> I am trying to import pylab into an application running under an Apache >> wsgi >> server. The error I get is that if it tries to import matplotlib.cbook. >> The application can import numpy, scipy etc just fine. >> >> the error message is that matplotlib has no module cbook. >> >> I can import matplotlib OK but if a do a dir(matplolib) it does indeed >> not include cbook. >> >> If I try to import pylab from the command line it works fine and >> pylab.cbook >> is found. >> >> Any suggestions would be appreciated. >> >> >> K. Dere >> >> >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> -- K. Dere |
From: Brian B. <bb...@br...> - 2010-03-27 12:17:20
|
On Mar 27, 2010, at 1:13 , Ariel Rokem wrote: > In particular, I am interested in using the plt.cm.RdYlBu_r > colormap. If the data has both negative and positive values, I want > 0 to map to the central value of this colormap (a pale whitish > yellow) and I want negative values to be in blue and positive > numbers to be in red. not sure if this is what you want (I'd never heard of RdYlBu_r...I need to go read up!), but I've used a similar colormap with the code posted below. You might be able to modify it for your case. hope this helps! bb from pylab import * def bluewhitered(a,N=256): bottom = [0, 0, 0.5] botmiddle = [0, 0.5, 1] middle = [1, 1, 1] topmiddle = [1, 0, 0] top = [0.5, 0, 0] lims=[a.min(),a.max()] if lims[0]<0 and lims[1]>0: ratio=abs(lims[0])/(abs(lims[0])+lims[1]) cdict={} cdict['red']=[] cdict['green']=[] cdict['blue']=[] # negative part red=[(0.0, 0.0, 0.0), (ratio/2, 0.0, 0.0), (ratio, 1.0, 1.0)] green=[(0.0, 0.0, 0.0), (ratio/2, 0.5, 0.5), (ratio, 1.0, 1.0)] blue=[(0.0, 0.5, 0.5), (ratio/2, 1, 1), (ratio, 1.0, 1.0)] cdict['red'].extend(red) cdict['green'].extend(green) cdict['blue'].extend(blue) nratio=1-(1-ratio)/2.0 # positive part red=[(ratio, 1.0, 1.0), (nratio, 1.0, 1.0), (1, 0.5, 0.5)] green=[(ratio, 1.0, 1.0), (nratio, 0., 0.), (1, 0.0, 0.0)] blue=[(ratio, 1., 1.), (nratio, 0, 0), (1, 0, 0)] cdict['red'].extend(red) cdict['green'].extend(green) cdict['blue'].extend(blue) elif lims[0]>=0: # all positive cdict={} cdict['red']=[] cdict['green']=[] cdict['blue']=[] ratio=0.0 nratio=0.5 # positive part red=[(ratio, 1.0, 1.0), (nratio, 1.0, 1.0), (1, 0.5, 0.5)] green=[(ratio, 1.0, 1.0), (nratio, 0., 0.), (1, 0.0, 0.0)] blue=[(ratio, 1., 1.), (nratio, 0, 0), (1, 0, 0)] cdict['red'].extend(red) cdict['green'].extend(green) cdict['blue'].extend(blue) else: # all negative cdict={} cdict['red']=[] cdict['green']=[] cdict['blue']=[] ratio=1.0 # negative part red=[(0.0, 0.0, 0.0), (ratio/2, 0.0, 0.0), (ratio, 1.0, 1.0)] green=[(0.0, 0.0, 0.0), (ratio/2, 0.5, 0.5), (ratio, 1.0, 1.0)] blue=[(0.0, 0.5, 0.5), (ratio/2, 1, 1), (ratio, 1.0, 1.0)] cdict['red'].extend(red) cdict['green'].extend(green) cdict['blue'].extend(blue) my_cmap = matplotlib.colors.LinearSegmentedColormap ('my_colormap',cdict,N) return my_cmap if __name__=="__main__": a=randn(20,20) my_cmap=bluewhitered(a,256) clf() pcolor(a,cmap=my_cmap) colorbar() -- Brian Blais bb...@br... http://web.bryant.edu/~bblais http://bblais.blogspot.com/ |
From: Ariel R. <ar...@be...> - 2010-03-27 05:14:32
|
Hi everyone, I am trying to make a color-map which will respond to the range of values in the data itself. That is - I want to take one of the mpl colormaps and use parts of it, depending on the range of the data. In particular, I am interested in using the plt.cm.RdYlBu_r colormap. If the data has both negative and positive values, I want 0 to map to the central value of this colormap (a pale whitish yellow) and I want negative values to be in blue and positive numbers to be in red. Also - I would want to use the parts of the colormap that represent how far away the smallest and largest values in the data are from 0. So - if my data is in the range [x1,x2] I would want to use the part of the colormap in indices 127-127*abs(x1)/(x2-x1) through 127+127*x2/(x2-x1). If the data only includes positive numbers, I would want to only use the blue part of the colormap and if there are negative numbers, I would want to only use the red part of the colormap (in these cases, I would also want to take only a portion of the colormap which represents the size of the interval [x1,x2] relative to the interval [0,x1] or [x2,0], as the case may be). I think that this might be useful when comparing matrices generated from different data, but with the same computation, such as correlation or coherence (see http://nipy.sourceforge.net/nitime/examples/fmri.html to get an idea of what I mean). First of all - is this a good idea? Or in other words - is there any reason I am not thinking of why this idea is a really bad idea? Second - the technical questions. I think that I can make this happen by using matplotlib.colors.LinearSegmentedColormap, after fiddling with the values of the color-map a bit (as described above), but in order to do that, I need to know what segmentdata was used in order to generate the original colormap (for example, how many lines did each of the entries in the cdict have? Looking at a plot of the cmap it looks like there must have been 8 or 9 for RdYlBu_r, but I can't be sure). I could analyze it in more detail to get that out empirically, but I am guessing that someone around here might be able to spare me that lunacy (if not others...). Thanks in advance, Ariel -- Ariel Rokem Helen Wills Neuroscience Institute University of California, Berkeley http://argentum.ucbso.berkeley.edu/ariel |
From: Brian G. <ell...@gm...> - 2010-03-27 04:23:12
|
Greetings everyone, This year, there will be two days of tutorials (June 28th and 29th) before the main SciPy 2010 conference. Each of the two tutorial tracks (intro, advanced) will have a 3-4 hour morning and afternoon session both days, for a total of 4 intro sessions and 4 advanced sessions. The main tutorial web page for SciPy 2010 is here: http://conference.scipy.org/scipy2010/tutorials.html We are currently in the process of planning the tutorial sessions. You can help us in two ways: Brainstorm/vote on potential tutorial topics ============================================ To help us plan the tutorials, we have setup a web site that allow everyone in the community to brainstorm and vote on tutorial ideas/topics. The website for brainstorming/voting is here: http://conference.scipy.org/scipy2010/tutorialsUV.html The tutorial committee will use this information to help select the tutorials. Please jump in and let us know what tutorial topics you would like to see. Tutorial proposal submissions ============================= We are now accepting tutorial proposals from individuals or teams that would like to present a tutorial. Tutorials should be focused on covering a well defined topic in a hands on manner. We want to see tutorial attendees coding! We are pleased to offer tutorial presenters stipends this year for the first time: * 1 Session: $1,000 (half day) * 2 Sessions: $1,500 (full day) Optionally, part of this stipend can be applied to the presenter's registration costs. To submit a tutorial proposal please submit the following materials to 201...@sc... by April 15: * A short bio of the presenter or team members. * Which track the tutorial would be in (intro or advanced). * A short description and/or outline of the tutorial content. * A list of Python packages that attendees will need to have installed to follow along. |
From: Friedrich R. <fri...@gm...> - 2010-03-27 00:23:43
|
2010/3/26 timothee cezard <tc...@st...>: > does it make sense to use something like > plt.bar(bins, nb_per_bin, width=(max(bins)-min(bins)) / (1.5*len(bins))) I think that should work, although you should use (max(bins) - min(bins) / 1.5 / (len(bins) - 1), but I would suggest: bounds = {some N + 1 array} center = 0.5 * (bounds[1:] + bounds[:-1]) width = 0.9 * (bounds[1:] - bounds[:-1]) offset = 0.5 * width plt.bar(center - offset, {some N array}, width = width) but I haven't tested it. bar() does accept an iterable as *width* argument. Friedrich |
From: Gökhan S. <gok...@gm...> - 2010-03-26 20:27:53
|
On Fri, Mar 26, 2010 at 12:42 PM, konstellationen <kon...@gm... > wrote: > > >>You can try: > > >>xticklabels = getp(gca(), 'xticklabels') > >>yticklabels = getp(gca(), 'yticklabels') > >>setp(xticklabels, fontsize=14, weight='bold') > >>setp(yticklabels, fontsize=14, weight='bold') > > I've tried this, but since I've set rc('text', usetex=True), the > ticklabels > are only responsive to fontsize but not to weight. That is at least my > experience. Am I doing something wrong? > > I've been trying to solve my problem by replacing the ticklabels with > strings. I know this is a very inelegant workaround, but I am running out > of > ideas. I've tried two approaches that haven't worked successfully. (I don't > get error messages, but nothing changes in the plot): > > Approach 1: > x_labels = ['\boldmath $10^22$','\boldmath $10^23$','\boldmath $10^24$'] > ax1.set_xticklabels(x_labels) > > Approach 2: > Inspired by > http://old.nabble.com/axis-on-top-for-barh-plot-td26549035.html > this post : > > ax1.xaxis.set_major_locator(ticker.FixedLocator(range(3))) > ax1.xaxis.set_major_formatter(ticker.FixedFormatter(x_labels)) > Does it work with: plt.xticks((10**22, 10**23, 10**24), (r'$10^{22}$', r'$10^{23}$', r'$10^{24}$'), weight='extra bold') > > >>Those are nice looking plots. It would be nice them to be shared on mpl's > >>gallery or as an example :) > > Thanks! I'd be happy to share my code with everyone. It is not very nicely > written, but I can fix it up. What steps should I take? Everything I've > learned is from examples. This is just an amalgamation of expressions I've > found on the web. > > Cheers, Daniel > > Just prepare a self-running code, and add some documentation what is it good for. Later send an e-mail either here or to mpl-devel. Someone with commit access would be glad to include it in pylab_examples. -- Gökhan |
From: Rune V. S. <rv...@gm...> - 2010-03-26 20:05:06
|
Hi, Does the box have multiple python versions installed, and are you sure that apache is using the same version and/or site packages as when you run it from the command line ? Regards, Rune V. Sjøen On Fri, Mar 26, 2010 at 8:07 PM, Ken Dere <kp...@ve...> wrote: > Hi, > > I am trying to import pylab into an application running under an Apache > wsgi > server. The error I get is that if it tries to import matplotlib.cbook. > The application can import numpy, scipy etc just fine. > > the error message is that matplotlib has no module cbook. > > I can import matplotlib OK but if a do a dir(matplolib) it does indeed not > include cbook. > > If I try to import pylab from the command line it works fine and > pylab.cbook > is found. > > Any suggestions would be appreciated. > > > K. Dere > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Jeff K. <kl...@wi...> - 2010-03-26 19:28:10
|
I was not aware of color cycles, but it looks like this is the way to go about solving my problem. Below is an example that actually works. ---------------------------------- import pylab as P mu, sigma = 200, 25 x0 = mu + sigma*P.randn(10000) x1 = mu + sigma*P.randn(7000) x2 = mu + sigma*P.randn(3000) # Set the color cycle of the axes rather than using a kwarg P.gca().set_color_cycle([(0.5,0.,0.), (0.,0.5,0.), (0.,0.,0.5)]) n, bins, patches = P.hist([x0,x1,x2], 50, normed=1, histtype='bar') P.show() ----------------------------------- |
From: Ken D. <kp...@ve...> - 2010-03-26 19:08:18
|
Hi, I am trying to import pylab into an application running under an Apache wsgi server. The error I get is that if it tries to import matplotlib.cbook. The application can import numpy, scipy etc just fine. the error message is that matplotlib has no module cbook. I can import matplotlib OK but if a do a dir(matplolib) it does indeed not include cbook. If I try to import pylab from the command line it works fine and pylab.cbook is found. Any suggestions would be appreciated. K. Dere |
From: konstellationen <kon...@gm...> - 2010-03-26 17:42:52
|
>>You can try: >>xticklabels = getp(gca(), 'xticklabels') >>yticklabels = getp(gca(), 'yticklabels') >>setp(xticklabels, fontsize=14, weight='bold') >>setp(yticklabels, fontsize=14, weight='bold') I've tried this, but since I've set rc('text', usetex=True), the ticklabels are only responsive to fontsize but not to weight. That is at least my experience. Am I doing something wrong? I've been trying to solve my problem by replacing the ticklabels with strings. I know this is a very inelegant workaround, but I am running out of ideas. I've tried two approaches that haven't worked successfully. (I don't get error messages, but nothing changes in the plot): Approach 1: x_labels = ['\boldmath $10^22$','\boldmath $10^23$','\boldmath $10^24$'] ax1.set_xticklabels(x_labels) Approach 2: Inspired by http://old.nabble.com/axis-on-top-for-barh-plot-td26549035.html this post : ax1.xaxis.set_major_locator(ticker.FixedLocator(range(3))) ax1.xaxis.set_major_formatter(ticker.FixedFormatter(x_labels)) >>Those are nice looking plots. It would be nice them to be shared on mpl's >>gallery or as an example :) Thanks! I'd be happy to share my code with everyone. It is not very nicely written, but I can fix it up. What steps should I take? Everything I've learned is from examples. This is just an amalgamation of expressions I've found on the web. Cheers, Daniel -- View this message in context: http://old.nabble.com/Bold-Latex-Tick-Labels-tp28037900p28045728.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: David C. <dl...@ha...> - 2010-03-26 16:36:07
|
I need help finding the right path to accomplish some custom "visual masking" and corresponding array-mask construction: For much of what I need, scikits.timeseries initially sounded useful but either I misunderstand how to use it, or it just can't do most of what I want, which is: 1: create/apply a mask that invalidates/masks the data that is outside normal business hours; i.e. mask out the weekends and anything between 18:00 and 06:00 the next day. 2: The second task is to create vertical spans in the plot to show the mask visually. So, for #2 what I need is essentially two collections of axvspan patches: Axvspan collection 'a' begins at 17h00 each Friday, and ends at 09h00 each Monday. Collection 'b' begins at 17h00 each weekday, and ends at 09h00 the following morning, but is masked out by collection 'a'. Axes.fill_betweenx() looks like it's *not* what I need.... Most of this app operates at finer granularity than what pyplot provides, so I'm dealing directly with the individual axes and artists; the solution needs to work in that domain. So I'd be grateful for ideas.... Thanks. |
From: Ruben M. <rub...@gm...> - 2010-03-26 15:59:07
|
Hello, pylab.rcParams['path.simplify'] = false did the job. Thank you very much! |
From: Jeff K. <kl...@wi...> - 2010-03-26 15:47:14
|
In the extended histogram demo: http://matplotlib.sourceforge.net/examples/pylab_examples/histogram_demo_extended.html?highlight=codex%20hist Multiple data are shown in parallel with different colors, using a single hist command. These colors seem to be automatically chosen, however, and I cannot figure out a way to control them. The color kwarg description says that it accepts "matplotlib color arg or sequence of rgba tuples", but giving it a list of rgba tuples raises an error. Am I approaching this the wrong way? Has anybody successfully done this? Example that raises error: ---------------------------------- import pylab as P mu, sigma = 200, 25 x0 = mu + sigma*P.randn(10000) x1 = mu + sigma*P.randn(7000) x2 = mu + sigma*P.randn(3000) # The following gives a ValueError from to_rgba n, bins, patches = P.hist([x0,x1,x2], 50, normed=1, histtype='bar', color=[(.5, 0., 0., 1.), (0., .5, 0., 1.),]) P.show() ----------------------------------- Many thanks, Jeff || Jeff Klukas, Research Assistant, Physics || University of Wisconsin -- Madison || jeff.klukas@gmail | jeffyklukas@aim | jeffklukas@skype || http://www.hep.wisc.edu/~jklukas/ |
From: Michael D. <md...@st...> - 2010-03-26 15:23:45
|
This may be the fault of the known bug in path simplification. If you set the rcParam "path.simplify" to False does that resolve it? (If that's the case, this bug should be fixed in the next release). Mike On 03/26/2010 11:12 AM, Gökhan Sever wrote: > > > On Fri, Mar 26, 2010 at 3:23 AM, Ruben Moor <rub...@gm... > <mailto:rub...@gm...>> wrote: > > Hello, > > I use the following plot command > > plot(tdata, vdata, '.-') > > with an unexpected result (s. attached png). Some points are not > connected. If I plot with linestyle '-' you can't even see them. > Is that a known issue ? What do I do wrong ? > > > What is your matplotlib version? Could you share the data to test it? > On the latest matplotlib source copy ".-" works nicely with a test > plot like: > > plt.plot(np.random.random(100), ".-") > > -- > Gökhan > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Gökhan S. <gok...@gm...> - 2010-03-26 15:12:08
|
On Fri, Mar 26, 2010 at 3:23 AM, Ruben Moor <rub...@gm...> wrote: > Hello, > > I use the following plot command > > plot(tdata, vdata, '.-') > > with an unexpected result (s. attached png). Some points are not > connected. If I plot with linestyle '-' you can't even see them. > Is that a known issue ? What do I do wrong ? > > What is your matplotlib version? Could you share the data to test it? On the latest matplotlib source copy ".-" works nicely with a test plot like: plt.plot(np.random.random(100), ".-") -- Gökhan |
From: Gökhan S. <gok...@gm...> - 2010-03-26 14:51:48
|
On Fri, Mar 26, 2010 at 3:06 AM, konstellationen <kon...@gm...>wrote: > Hi, I am making plots for a publication using matplotlib which requires the > use of heavy fonts. I am rendering text in the graph with Latex, which has a > limited capability to make fonts more heavy. I partially solved the problem > using the \boldmath Latex command for the axis-labels and text inside the > plot (see attached figure). The only remaining text to be "bolden" are the > tick labels. I can change their size via the xtick.labelsize rc parameter, > but do not know how to make them heavier. Does anybody know what can be done > to solve this? Any help would be appreciated!!!! Best, Daniel > ------------------------------ > You can try: xticklabels = getp(gca(), 'xticklabels') yticklabels = getp(gca(), 'yticklabels') setp(xticklabels, fontsize=14, weight='bold') setp(yticklabels, fontsize=14, weight='bold') Those are nice looking plots. It would be nice them to be shared on mpl's gallery or as an example :) -- Gökhan |
From: Konstantin K. <kkl...@ce...> - 2010-03-26 11:30:08
|
* The problem is universally seen on WinXP, WinVista and Ubuntu 9.10. * print matplotlib.__version__ = 0.99.1 * mpl was obtained from pythonxy on Windows and EPD on Linux * no customizations to matplotlibrc The attached example shows a square picture with equal settings for X and Y axes. While the X ticks coincide with the inter-square borders, the Y ticks are off (marked by circles). Now look closer to the border squares. These are by one screen pixel smaller in the direction to the corresponding axis (this pixel is transferred to the axis line), except for the bottom axis where the squares are by one pixel higher. This bug leads to a vertical shift in additional marks which I put over imshow images. Can you please make it more precise? Best regards, Konstantin |
From: timothee c. <tc...@st...> - 2010-03-26 09:55:37
|
Thanks Friedrich, I though the width was calculated on the fly. does it make sense to use something like plt.bar(bins, nb_per_bin, width=(max(bins)-min(bins)) / (1.5*len(bins))) If I want something more generic Tim Friedrich Romstedt wrote: > You must give a proper :param width: argument: > > plt.bar(bins, height, 0.01) > > http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.bar > > Friedrich > > 2010/3/25 timothee cezard <tc...@st...>: > >> Hi all, >> I'm trying to plot a distribution using bar() but when I'm setting the >> left variable to as a sequence of float some of the bar look weird. >> When I replace this sequence by a sequence of int it works fines >> Does anybody know why this happens and how I can fix it? >> >> Here is the code I'm using: >> >> if __name__=="__main__": >> bins=[0.0, 0.02, 0.04, 0.06, 0.08, 0.1, 0.12, 0.14, 0.16, >> 0.18, 0.2, 0.22, 0.24, 0.26, 0.28, 0.30, 0.32, 0.34, >> 0.36, 0.38, 0.40, 0.42, 0.44, 0.46, 0.48, 0.5, 0.52, >> 0.54, 0.56, 0.58, 0.60, 0.62, 0.64, 0.66, 0.68, 0.70, >> 0.72, 0.74, 0.76, 0.78, 0.80, 0.82, 0.84, 0.86, 0.88, >> 0.90, 0.92, 0.94, 0.96, 0.98, 1.0] >> height=[89775, 1665, 1791, 1695, 1467, 1395, 1306, 1169, >> 1252, 1134, 1190, 1117, 1018, 995, 1055, 904, 960, >> 886, 810, 821, 829, 763, 766, 857, 737, 862, 724, >> 852, 742, 644, 733, 679, 630, 672, 665, 659, 663, >> 653, 657, 700, 731, 721, 699, 871, 837, 913, 940, >> 966, 1028, 159774, 40002] >> fig = plt.figure() >> ax = fig.add_subplot(1,1,1) >> plt.bar(bins, height) >> plt.show() >> > > -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. |
From: Ruben M. <rub...@gm...> - 2010-03-26 08:24:00
|
Hello, I use the following plot command plot(tdata, vdata, '.-') with an unexpected result (s. attached png). Some points are not connected. If I plot with linestyle '-' you can't even see them. Is that a known issue ? What do I do wrong ? |
From: konstellationen <kon...@gm...> - 2010-03-26 08:06:31
|
Hi, I am making plots for a publication using matplotlib which requires the use of heavy fonts. I am rendering text in the graph with Latex, which has a limited capability to make fonts more heavy. I partially solved the problem using the \boldmath Latex command for the axis-labels and text inside the plot (see attached figure). The only remaining text to be "bolden" are the tick labels. I can change their size via the xtick.labelsize rc parameter, but do not know how to make them heavier. Does anybody know what can be done to solve this? Any help would be appreciated!!!! Best, Daniel http://old.nabble.com/file/p28037900/m8.png -- View this message in context: http://old.nabble.com/Bold-Latex-Tick-Labels-tp28037900p28037900.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: b b <coo...@gm...> - 2010-03-26 03:39:50
|
Hi Lee, That was it. It took me a few more minutes to find out that set_xlim and set_ylim are methods in of the figure but now it's working nicely. I also found that the set_[xy]lim methods have to be called after the bar() method. Updated script: /---------------------------------------- from pylab import * import sys fig = figure() ax = fig.add_subplot(111) if(len(sys.argv) > 1 and sys.argv[1].lower() == 'y'): ax.bar([1, 2, 3, 4, 5], [0, 1, 0, 0, 0]) else: ax.bar([1, 2, 3, 4, 5], [1, 2, 3, 4, 5]) ax.set_xlim(0, 6) show() \---------------------------------------- The output is at http://img149.imageshack.us/img149/9302/updatedf.png . Thanks a lot. On Fri, Mar 26, 2010 at 3:12 PM, Jae-Joon Lee <lee...@gm...> wrote: > I think it is just that the x-range is wrongly set. > Try something like > > xlim(1, 6) > ylim(-1, 2) > > You will see zero-height rectangles. > > Currently, zero-height rectangles are ignored for autoscaling x- and y-axis. > Regards, |
From: Jae-Joon L. <lee...@gm...> - 2010-03-26 02:13:20
|
I think it is just that the x-range is wrongly set. Try something like xlim(1, 6) ylim(-1, 2) You will see zero-height rectangles. Currently, zero-height rectangles are ignored for autoscaling x- and y-axis. Regards, -JJ On Thu, Mar 25, 2010 at 6:50 PM, b b <coo...@gm...> wrote: > Hi, > > Here's a version that goes to the list too :-) > > On Fri, Mar 26, 2010 at 9:10 AM, Jae-Joon Lee <lee...@gm...> wrote: >> With the current svn, I cannot reproduce the problem, i.e., bars with >> 0 height are correctly displayed. The x-range is incorrectly set, but >> it is not clear if this is what you meant. > > Uhm I tried to use the svn trunk on revision 8214 but it wouldn't > display anything. The script just runs and doesn't open any window. > > Anyway the script wasn't quite working, here's an update: > /--------------------------------------------- > from pylab import * > import sys > figure(8) > if(len(sys.argv) > 1 and sys.argv[1].lower() == 'y'): > bar([1, 2, 3, 4, 5], [0, 1, 0, 0, 0]) > else: > bar([1, 2, 3, 4, 5], [1, 2, 3, 4, 5]) > show() > \--------------------------------------------- > >> Can you post a screenshot of your figure? Also, version of your >> matplotlib will be helpful. > > Should have thought of that myself, thanks ... The issue occurs with > 0.98.3-4ubuntu1 as well as with 0.99.0-1ubuntu1. > > Also I had the script save the bar charts. Here's what it produced: if > branch http://img153.imageshack.us/img153/7817/01000.png / else branch > http://img87.imageshack.us/img87/3021/12345my.png . > > Thanks for the help. > Cheers, B. > |
From: <PH...@Ge...> - 2010-03-25 23:32:22
|
How up-to-date is Macports? This is a reasonable approximation of how I got my OX 10.6 machine set up: http://newmediaandcapitalmarkets.org/component/content/article/68-how-i-got-matplotlib-working-on-my-macbook.html > -----Original Message----- > From: Christopher Barker [mailto:Chr...@no...] > Sent: Wednesday, March 24, 2010 3:47 PM > To: mat...@li... > Subject: Re: [Matplotlib-users] where's superpack? > > David Kremer wrote: > >> Does anybody know where I could get a > >> copy of superpack? > > I don't know of the status of that, but this is what I recommend: > > install the python2.6 from python.org > install the numpy1.3 binary from scipy.org > install the matplotlib binary (*.dmg) from matplotlib.org > > (optional) > install the scipy binary from scipy.org > > and there you go -- I suppose it would be nice to have it all in one > install, but that's not too hard. > > (if you really want all in one -- check out Python(x,y) or EPD) > > > -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... > > ------------------------------------------------------------------------- > ----- > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: b b <coo...@gm...> - 2010-03-25 22:50:41
|
Hi, Here's a version that goes to the list too :-) On Fri, Mar 26, 2010 at 9:10 AM, Jae-Joon Lee <lee...@gm...> wrote: > With the current svn, I cannot reproduce the problem, i.e., bars with > 0 height are correctly displayed. The x-range is incorrectly set, but > it is not clear if this is what you meant. Uhm I tried to use the svn trunk on revision 8214 but it wouldn't display anything. The script just runs and doesn't open any window. Anyway the script wasn't quite working, here's an update: /--------------------------------------------- from pylab import * import sys figure(8) if(len(sys.argv) > 1 and sys.argv[1].lower() == 'y'): bar([1, 2, 3, 4, 5], [0, 1, 0, 0, 0]) else: bar([1, 2, 3, 4, 5], [1, 2, 3, 4, 5]) show() \--------------------------------------------- > Can you post a screenshot of your figure? Also, version of your > matplotlib will be helpful. Should have thought of that myself, thanks ... The issue occurs with 0.98.3-4ubuntu1 as well as with 0.99.0-1ubuntu1. Also I had the script save the bar charts. Here's what it produced: if branch http://img153.imageshack.us/img153/7817/01000.png / else branch http://img87.imageshack.us/img87/3021/12345my.png . Thanks for the help. Cheers, B. |
From: Gökhan S. <gok...@gm...> - 2010-03-25 21:25:39
|
On Thu, Mar 25, 2010 at 4:17 PM, Tom Kuiper <ku...@jp...> wrote: > > > Date: Thu, 25 Mar 2010 13:17:01 -0500 > > From: G?khan Sever <gok...@gm...> > > Subject: Re: [SciPy-User] milliseconds in matplotlib.dates? > > To: SciPy Users List <sci...@sc...> > > Cc: Matplotlib Users <mat...@li...> > > > ... > > Alternatively, you might use just floating-point version of your time > values > > and with a little adjustment (Ryan mentioned this in the recently, and > will > > forward there for other suggestions) millisecond resolutions should be > > visible when zoomed in furthest. > > > > Something like: > > > > sci_fmt = plt.FormatStrFormatter("%.2f") > > plt.gca().xaxis.set_major_formatter(sci_fmt) > > > Here's how I modified my code: > sci_fmt = FormatStrFormatter("%.2f") > fig = figure() > top_axes = subplot(211) > top_axes.xaxis.set_major_formatter(sci_fmt) > #plot_date(times,kurts,fmt='b-') > #plot_date(times,kurt_sm,fmt='r-',label=("Hamming 1-sec FWHM")) > plot(times,kurts,'b-') > plot(times,kurt_sm,'r-',label=("Hamming 1-sec FWHM")) > I then restarted 'ipython -pylab' because I've noticed that date > formatting problems seems to linger even after a code change. However, > I see no change in behaviour. I can get six 1-sec ticks across my > plot. If I expand the plot any more, the ticks disappear. > > Regards > > Tom > _______________________________________________ > SciPy-User mailing list > Sci...@sc... > http://mail.scipy.org/mailman/listinfo/scipy-user > Here is how it looks when I run your code till plot(times...) http://img202.imageshack.us/img202/5415/ss1i.png and one with zoom: http://img411.imageshack.us/img411/8292/ss2el.png I am not sure this could be related to the mpl version you have. -- Gökhan |