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: 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. > |