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
(13) |
2
(11) |
3
|
4
(9) |
|
5
(3) |
6
(17) |
7
(24) |
8
(11) |
9
(26) |
10
(19) |
11
(4) |
|
12
(4) |
13
(14) |
14
(9) |
15
(5) |
16
(18) |
17
(23) |
18
(3) |
|
19
(1) |
20
(7) |
21
(27) |
22
(26) |
23
(6) |
24
(17) |
25
(1) |
|
26
|
27
(7) |
28
(1) |
29
(4) |
30
(5) |
|
|
|
From: Chris B. <ch...@ed...> - 2006-11-06 01:34:29
|
I have a matplotlib figure (by the way - matplot lib is brilliant) with lots of widgets (buttons, check boxes) on it, and am wondering if it is possible to put a combo box on it? Cheers, Chris Bartley |
|
From: Werner F. B. <wer...@fr...> - 2006-11-05 09:05:33
|
Hi Charlie, Charlie Moad wrote: > ... > I hope not. I am guessing that wxPython is like the linux kernel, so > 2.7 is a dev branch. Yes, 2.7 is a dev branch which normally lasts for quit some time, however this time round they are hoping to move to 2.8 pretty quickly, I believe before the end of the year. > >> Is it not possible to have a wxPython nutral build? > > > The native interface was added for high speed blitting/animation. A > while back we talked about and agreed on trying to remove the native > interfaces for gtk and wxpython to avoid these compilation headaches. > This was after having decent success with pure python approaches for > qt3 and qt4. We are sticking with the unicode wxpython build for the > remainder of 0.87.x to avoid more confusion. Ideally 0.88 will have > the pure python blitting implementations. That is good news. Best regards Werner |
|
From: Alan J. <al...@aj...> - 2006-11-05 03:31:44
|
A problem I don't understand with matplotlib. This used to work, until I
upgraded. Now running
dev-lang/python-2.4.3-r4
dev-python/numpy-1.0
dev-python/matplotlib-0.87.7
sci-libs/scipy-0.5.1-r1
on a Gentoo Linux system :
2.6.16-gentoo-r3
AMD Athlon 64 X2 3800+
$ ~/lib/python/weatherlib_alpha.py
/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/_core.py:13155: UserWarning: wxPython/wxWidgets release number mismatch
warnings.warn("wxPython/wxWidgets release number mismatch")
/usr/lib/python2.4/calendar.py:105: DeprecationWarning: integer argument expected, got float
return datetime.date(year, month, day).weekday()
/usr/lib/python2.4/site-packages/dateutil/relativedelta.py:271: DeprecationWarning: integer argument expected, got float
ret = (other.replace(**repl)
Traceback (most recent call last):
File "/home/ajackson/lib/python/weatherlib_alpha.py", line 228, in ?
WD = wpanel(WD_defs)
File "/home/ajackson/lib/python/weatherlib_alpha.py", line 138, in __init__
self.Cax_c = figtext(0.84, .1, 'OOO')
File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line 776, in figtext
draw_if_interactive()
File "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py", line 1172, in draw_if_interactive
figManager.canvas.draw()
File "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py", line 61, in draw
FigureCanvasAgg.draw(self)
File "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_agg.py", line 392, in draw
self.figure.draw(renderer)
File "/usr/lib/python2.4/site-packages/matplotlib/figure.py", line 544, in draw
for a in self.axes: a.draw(renderer)
File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line 1063, in draw
a.draw(renderer)
File "/usr/lib/python2.4/site-packages/matplotlib/axis.py", line 559, in draw
tick.set_label1(label)
File "/usr/lib/python2.4/site-packages/matplotlib/axis.py", line 188, in set_label1
self.label1.set_text(s)
File "/usr/lib/python2.4/site-packages/matplotlib/text.py", line 671, in set_text
raise TypeError("This doesn't look like a string: '%s'"%s)
TypeError: This doesn't look like a string: '0.0'
--
-----------------------------------------------------------------------
| Alan K. Jackson | To see a World in a Grain of Sand |
| al...@aj... | And a Heaven in a Wild Flower, |
| www.ajackson.org | Hold Infinity in the palm of your hand |
| Houston, Texas | And Eternity in an hour. - Blake |
-----------------------------------------------------------------------
|
|
From: Charlie M. <cw...@gm...> - 2006-11-05 03:31:42
|
On 11/4/06, Werner F. Bruhin <wer...@fr...> wrote: > > Hi Charlie, > > Charlie Moad wrote: > > Installing the unicode version of wxpython is the solution. This will > get rid of the error message. Matplotlib is compiled against it. > > Isn't this a maint headache for you and others maintaining matplotlib? Among other things. ;) > Will there be wxPython 2.6, 2.7 and 2.8 builds? I hope not. I am guessing that wxPython is like the linux kernel, so 2.7 is a dev branch. > Is it not possible to have a wxPython nutral build? The native interface was added for high speed blitting/animation. A while back we talked about and agreed on trying to remove the native interfaces for gtk and wxpython to avoid these compilation headaches. This was after having decent success with pure python approaches for qt3 and qt4. We are sticking with the unicode wxpython build for the remainder of 0.87.x to avoid more confusion. Ideally 0.88 will have the pure python blitting implementations. - Charlie |
|
From: <zh...@um...> - 2006-11-04 21:36:55
|
> Hi, all: > Can python excute multi-files task, just like C++ with #include "**.h"? > |
|
From: <zh...@um...> - 2006-11-04 21:25:04
|
Hi, all: Can python excute multi-files task, just like C++ with #include "**.h"? |
|
From: <zh...@um...> - 2006-11-04 21:24:59
|
Hi, all: Can python excute multi-files task, just like C++ with #include "**.h"? |
|
From: Werner F. B. <wer...@fr...> - 2006-11-04 15:47:52
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Charlie,<br>
<br>
Charlie Moad wrote:<br>
<blockquote
cite="mid...@ma..."
type="cite">
<pre wrap="">Installing the unicode version of wxpython is the solution. This will
get rid of the error message. Matplotlib is compiled against it.
</pre>
</blockquote>
Isn't this a maint headache for you and others maintaining matplotlib?<br>
<br>
Will there be wxPython 2.6, 2.7 and 2.8 builds?<br>
<br>
Is it not possible to have a wxPython nutral build?<br>
<br>
Best regards<br>
Werner<br>
<br>
<br>
<blockquote
cite="mid...@ma..."
type="cite">
<pre wrap="">
On 11/4/06, Etrade Griffiths <a class="moz-txt-link-rfc2396E" href="mailto:etr...@ds..."><etr...@ds...></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi
running Win XP, Python 2.4 with matlibplot and wxpython installed from
these executables both down-loaded from sourceforge
matplotlib-0.87.7.win32-py2.4.exe
wxPython2.6-win32-ansi-2.6.3.3-py24.exe
Just taking the first steps with matplotlib and wxpython using
wxmpl. Running one of the wxmpl test apps I get this error message
python.exe - Unable to locate component
"This application has failed to start because wxmsw26uh_vc.dll was not
found. Reinstalling this application may fix this problem"
After dismissing the message box, the app pops up and runs OK so I guess
the error is not that serious but still pretty irritating to users. Tried
reinstalling but that doesn't help. Also did a google search on
wxmsw26uh_vc.dll and it seems that several people have reported this
problem but I couldn't find a solution. One of the discussions I did find
mentioned unicode versions of wxpython but AFAIK I have never installed a
unicode version.
All suggestions gratefully received!
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
<a class="moz-txt-link-freetext" href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642</a>
_______________________________________________
Matplotlib-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Mat...@li...">Mat...@li...</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/matplotlib-users">https://lists.sourceforge.net/lists/listinfo/matplotlib-users</a>
</pre>
</blockquote>
<pre wrap=""><!---->
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
<a class="moz-txt-link-freetext" href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642</a>
_______________________________________________
Matplotlib-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Mat...@li...">Mat...@li...</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/matplotlib-users">https://lists.sourceforge.net/lists/listinfo/matplotlib-users</a>
</pre>
</blockquote>
<br>
</body>
</html>
|
|
From: Charlie M. <cw...@gm...> - 2006-11-04 15:40:43
|
Installing the unicode version of wxpython is the solution. This will get rid of the error message. Matplotlib is compiled against it. On 11/4/06, Etrade Griffiths <etr...@ds...> wrote: > Hi > > running Win XP, Python 2.4 with matlibplot and wxpython installed from > these executables both down-loaded from sourceforge > > matplotlib-0.87.7.win32-py2.4.exe > wxPython2.6-win32-ansi-2.6.3.3-py24.exe > > Just taking the first steps with matplotlib and wxpython using > wxmpl. Running one of the wxmpl test apps I get this error message > > python.exe - Unable to locate component > > "This application has failed to start because wxmsw26uh_vc.dll was not > found. Reinstalling this application may fix this problem" > > After dismissing the message box, the app pops up and runs OK so I guess > the error is not that serious but still pretty irritating to users. Tried > reinstalling but that doesn't help. Also did a google search on > wxmsw26uh_vc.dll and it seems that several people have reported this > problem but I couldn't find a solution. One of the discussions I did find > mentioned unicode versions of wxpython but AFAIK I have never installed a > unicode version. > > All suggestions gratefully received! > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: Etrade G. <etr...@ds...> - 2006-11-04 14:24:36
|
Hi running Win XP, Python 2.4 with matlibplot and wxpython installed from these executables both down-loaded from sourceforge matplotlib-0.87.7.win32-py2.4.exe wxPython2.6-win32-ansi-2.6.3.3-py24.exe Just taking the first steps with matplotlib and wxpython using wxmpl. Running one of the wxmpl test apps I get this error message python.exe - Unable to locate component "This application has failed to start because wxmsw26uh_vc.dll was not found. Reinstalling this application may fix this problem" After dismissing the message box, the app pops up and runs OK so I guess the error is not that serious but still pretty irritating to users. Tried reinstalling but that doesn't help. Also did a google search on wxmsw26uh_vc.dll and it seems that several people have reported this problem but I couldn't find a solution. One of the discussions I did find mentioned unicode versions of wxpython but AFAIK I have never installed a unicode version. All suggestions gratefully received! |
|
From: John H. <jdh...@ac...> - 2006-11-04 02:35:01
|
>>>>> "Eric" == Eric Firing <ef...@ha...> writes:
Eric> The way axis sharing is implemented, everything is shared; a
Eric> single axis object is used for more than one axes object. I
Eric> agree that this is not always what one wants, but I think it
Eric> would be quite difficult to change, so for now you will need
Eric> to forgo the sharey kwarg and instead manually synchronize
Eric> the properties that you want the axes to have in common.
Eric> Unless John has a better idea, of course...
This time I do :-)
The axis doesn't share everything -- it shares a locator and the view
limits. When you do ylim([]) you are telling the y tick locator to
use no ticks, and this is shared. There is a workaround -- no
terribly elegant but servicable, and one I use all the time.
Suppose ax1 and ax2 share the xaxis and you only want tick labels on
ax2
ax1 = fig.add_subplot(211)
ax2 = fig.add_subplot(212, sharex=ax1)
ax1.plot(something)
ax2.plot(somethingelse)
for label in ax1.get_xticklabels():
label.set_visible(False)
The key idea is that the actual ticks are not shared (they can't be
because their y locations are different). But their x locations are
shared (which is why ax1.set_xlim([]) doesn't do what you want. But
you can set the visibility property to make them invisible, which
works.
Should be a recipe in the cookbook, enterprising mailing list readers.
JDH
|
|
From: Eric F. <ef...@ha...> - 2006-11-04 01:37:27
|
Try putting the subplots_adjust call after you have made all your subplots in a given figure. Subplots_adjust operates on a set of axes that are already in the figure--it does not set a parameter to be used later. Eric hu...@ya... wrote: > Hi, > > I have a problem with subplot_adjust but I don't know if it's a bug or because > I didn't understand how to use it... > > I would like to create a 2 by 3 plots without space between the subplot and I > can't arrive to manage it... > > > Is the results of the next script is normal? > > import pylab > > fig1 = pylab.figure() > fig1.subplots_adjust(wspace=0,hspace=0) > > pylab.subplot(231) > pylab.subplot(232) > pylab.subplot(233) > pylab.subplot(234) > pylab.subplot(235) > pylab.subplot(236) > > fig2 = pylab.figure() > fig2.subplots_adjust(wspace=0) > > pylab.subplot(231) > pylab.subplot(232) > pylab.subplot(233) > pylab.subplot(234) > pylab.subplot(235) > pylab.subplot(236) > > fig3 = pylab.figure() > fig3.subplots_adjust(hspace=0) > > pylab.subplot(231) > pylab.subplot(232) > pylab.subplot(233) > pylab.subplot(234) > pylab.subplot(235) > pylab.subplot(236) > > pylab.show() > > Thanks, > > N. > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
From: Eric F. <ef...@ha...> - 2006-11-04 00:13:55
|
hu...@ya... wrote: > and the same question: this behavior is normal? > > fig1 = figure() > ax1 = subplot(121) > xlim([0,10]) > ax2 = subplot(122,sharey=ax1) > yticks([]) > > I would like to hide the ticks label for only one subplot (the one who share > the axes) but I would like to have the ticklabels for the global plot, ie on > the left subplot. > > I was thinking that sharey means that the plot will have the same limit for > this axes not to have all the properties. Do I have to tell to all the > subplot to have the same limit and remove the ticks for the one I want? The way axis sharing is implemented, everything is shared; a single axis object is used for more than one axes object. I agree that this is not always what one wants, but I think it would be quite difficult to change, so for now you will need to forgo the sharey kwarg and instead manually synchronize the properties that you want the axes to have in common. Unless John has a better idea, of course... Eric |
|
From: <hu...@ya...> - 2006-11-02 21:58:06
|
and the same question: this behavior is normal? fig1 = figure() ax1 = subplot(121) xlim([0,10]) ax2 = subplot(122,sharey=ax1) yticks([]) I would like to hide the ticks label for only one subplot (the one who share the axes) but I would like to have the ticklabels for the global plot, ie on the left subplot. I was thinking that sharey means that the plot will have the same limit for this axes not to have all the properties. Do I have to tell to all the subplot to have the same limit and remove the ticks for the one I want? N. |
|
From: Senkel, F. <fra...@sh...> - 2006-11-02 18:58:22
|
Is there any way to have multiple y-axes (more than two)=2E I'm looking to= =0D=0Aplot time series data and would like to overlay say four data sets ea= ch=0D=0Awith its own independent axis=2E=0D=0A=0D=0A =0D=0A=0D=0AThank you= =2E=0D=0A=0D=0A =0D=0A=0D=0AFrank =0D=0A=0D=0A=0D=0A=0D=0A=0D=0A-----------= ------------------------------=0D=0A****Internet Email Confidentiality Foot= er**** =0D=0A=0D=0APrivileged/Confidential Information may be contained in = this=0D=0Amessage=2E If you are not the addressee indicated in this messag= e=0D=0A(or responsible for delivery of the message to such person), you=0D= =0Amay not copy or deliverthis message to anyone=2E In such case, you=0D=0A= should destroy this messageand notify the sender by reply email=2E=0D=0APle= ase advise immediately if you or your employer do not consent to=0D=0AInter= net email for messages of this kind=2E Opinions, conclusions and=0D=0Aother= information in this message that do not relate to the=0D=0Aofficial busine= ss of The Shaw Group Inc=2E or its subsidiaries shall=0D=0Abe understood as= neither given nor endorsed by it=2E=0D=0A=0D=0A___________________________= ___________=0D=0A=0D=0AThe Shaw Group Inc=2E=0D=0Ahttp://www=2Eshawgrp=2Eco= m=0D=0A |
|
From: John H. <jdh...@ac...> - 2006-11-02 18:40:33
|
>>>>> "Asrarahmed" == Asrarahmed Kadri <aj...@go...> writes:
Asrarahmed> Thank you so much. One more thing: How can save teh
Asrarahmed> graph in a file and then embed it in a Tkinter canvas
Asrarahmed> widget,...??
you don't need to first save the graph -- though you can. You can
embed matplotlib directly. See
http://matplotlib.sourceforge.net/examples/embedding_in_tk.py
http://matplotlib.sourceforge.net/examples/embedding_in_tk2.py
At this point, it would be a good idea for you to spend some time
reading the documentation on the website, as many of these ideas are
covered there.
JDH
|
|
From: Asrarahmed K. <aj...@go...> - 2006-11-02 18:20:32
|
Thank you so much. One more thing: How can save teh graph in a file and then embed it in a Tkinter canvas widget,...?? TIA (Thanks in anticipation). REgards, Asrarahmed On 11/2/06, John Hunter <jdh...@ac...> wrote: > > >>>>> "Asrarahmed" == Asrarahmed Kadri <aj...@go...> writes: > > Asrarahmed> Hello, Can you help with some examples for drawing bar > Asrarahmed> charts in matplotlib..>>/// > > Did you see my previous email responding to your "a query" post, where > I pointed you to two examples? > > Here is another specifically for horizontal bar charts: > > http://matplotlib.sourceforge.net/examples/barh_demo.py > > JDH > -- To HIM you shall return. |
|
From: Antonio G. <Ant...@ki...> - 2006-11-02 18:17:32
|
When building your histograms, define your bins by means of either 'arange' (to set the same bin width) or 'linspace' (to set equally-spaced bin limits). Eg, if all your histograms will have an x-axis ranging from 0 to 100, and you want the data in each of them plotted into 12 equally-spaced bins, then all you have to do is: bins = linspace(0, 100, 13) # sets 13 bin limits, ie 12 bins h1 = hist(data1, bins) h2 = hist(data2, bins) ... If what you want is to plot each data set into 10-units-width bins (within the same 0-to-100 x-axis): bins = arange(0, 100+10, 10) # sets bin widths h1 = hist(data1, bins) h2 = hist(data2, bins) ... /Antonio Christopher Fonnesbeck wrote: > On Nov 1, 2006, at 2:15 PM, John Hunter wrote: > >>>>>>> "listservs" == listservs <lis...@ma...> writes: >> listservs> I am trying to produce a series of histograms of >> listservs> related data, for which I want the ranges and scales of >> listservs> the x-axes to be the same. However, I dont see an >> listservs> obvious way of doing this with hist, since specifying >> listservs> nbins will not guarantee the same axis for each. Is >> listservs> there some sort of hack that I can use to do this (or >> listservs> an argument I am overlooking?). >> >> >> You can force axes in the same figure to share the same xaxes >> >> ax1 = subplot(211) >> ax2 = subplot(212, sharex=ax1) >> >> then any changes (panning and zooming) in one will be instantaneously >> reflected in the other. >> >> For axes in different figures, you can set the xlim manually >> >> ax1.set_xlim(xmin, xmax) >> ax2.set_xlim(xmin, xmax) >> >> There is more sophisticated stuff you can do with observers and event >> handling to couple axes between figures in the presence of panning and >> zooming if need be. > > I was able to get a common x-axis for all plots, but the bar width > remains inconsistent with very thick plots on some histograms, and > very thin ones on others. What is the secret here? I need to get > equal-width, non-overlapping bars on all the plots. > > I'm surprised that these issues have not come up before. For > publication in scientific journals, most editors would want > consistent scales for any series of plots. > > Thanks for any ideas, > Chris > > -- > Christopher Fonnesbeck > fon...@ma... > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
From: John H. <jdh...@ac...> - 2006-11-02 18:14:14
|
>>>>> "Asrarahmed" == Asrarahmed Kadri <aj...@go...> writes:
Asrarahmed> Hello, Can you help with some examples for drawing bar
Asrarahmed> charts in matplotlib..>>///
Did you see my previous email responding to your "a query" post, where
I pointed you to two examples?
Here is another specifically for horizontal bar charts:
http://matplotlib.sourceforge.net/examples/barh_demo.py
JDH
|
|
From: Asrarahmed K. <aj...@go...> - 2006-11-02 17:29:29
|
Hello, Can you help with some examples for drawing bar charts in matplotlib..>>/// Best Regards, Asrarahmed -- To HIM you shall return. |
|
From: <hu...@ya...> - 2006-11-02 16:54:29
|
Le Jeudi 2 Novembre 2006 09:19, John Hunter a =E9crit=A0: > >>>>> "John" =3D=3D John Hunter <jdh...@ac...> writes: > > John> I need to tweak the overlap function to take an optional arg > John> so that endpoint overlap is OK. > > OK, this is now fixed in svn. Thanks for the report. The solution gave by Eric works too and with your solution I saw that=20 I had to force myself to use a more pythonic writing in my software... But if far better with the bug corrected.=20 Thanks to have done it so fast. I'm always impressed.=20 N. |
|
From: Christopher F. <lis...@ma...> - 2006-11-02 16:43:11
|
On Nov 1, 2006, at 2:15 PM, John Hunter wrote: >>>>>> "listservs" == listservs <lis...@ma...> writes: > > listservs> I am trying to produce a series of histograms of > listservs> related data, for which I want the ranges and scales of > listservs> the x-axes to be the same. However, I dont see an > listservs> obvious way of doing this with hist, since specifying > listservs> nbins will not guarantee the same axis for each. Is > listservs> there some sort of hack that I can use to do this (or > listservs> an argument I am overlooking?). > > > You can force axes in the same figure to share the same xaxes > > ax1 = subplot(211) > ax2 = subplot(212, sharex=ax1) > > then any changes (panning and zooming) in one will be instantaneously > reflected in the other. > > For axes in different figures, you can set the xlim manually > > ax1.set_xlim(xmin, xmax) > ax2.set_xlim(xmin, xmax) > > There is more sophisticated stuff you can do with observers and event > handling to couple axes between figures in the presence of panning and > zooming if need be. I was able to get a common x-axis for all plots, but the bar width remains inconsistent with very thick plots on some histograms, and very thin ones on others. What is the secret here? I need to get equal-width, non-overlapping bars on all the plots. I'm surprised that these issues have not come up before. For publication in scientific journals, most editors would want consistent scales for any series of plots. Thanks for any ideas, Chris -- Christopher Fonnesbeck fon...@ma... |
|
From: John H. <jdh...@ac...> - 2006-11-02 14:21:23
|
>>>>> "John" == John Hunter <jdh...@ac...> writes:
John> I need to tweak the overlap function to take an optional arg
John> so that endpoint overlap is OK.
OK, this is now fixed in svn. Thanks for the report.
JDH
|
|
From: John H. <jdh...@ac...> - 2006-11-02 14:08:44
|
>>>>> "humufr" == humufr <hu...@ya...> writes:
humufr> Hi, I have a problem with subplot_adjust but I don't know
humufr> if it's a bug or because I didn't understand how to use
humufr> it...
humufr> I would like to create a 2 by 3 plots without space
humufr> between the subplot and I can't arrive to manage it...
humufr> Is the results of the next script is normal?
Definitely a bug. I always write code like the following, which
works.
fig1 = pylab.figure()
fig1.subplots_adjust(wspace=0,hspace=0)
ax1 = fig1.add_subplot(231)
ax2 = fig1.add_subplot(232)
ax3 = fig1.add_subplot(233)
ax4 = fig1.add_subplot(234)
ax5 = fig1.add_subplot(235)
ax6 = fig1.add_subplot(236)
The problem is in pylab subplot, which has the feature of deleting new
subplots if they overlap old ones. Basically it is a problem of an
open ended versus closed ended overlap test. The overlap function is
indicating the two axes overlap when the hspace or wspace is zero, and
should not. I need to tweak the overlap function to take an optional
arg so that endpoint overlap is OK.
JDH
|
|
From: <hu...@ya...> - 2006-11-01 23:58:19
|
Hi, I have a problem with subplot_adjust but I don't know if it's a bug or because I didn't understand how to use it... I would like to create a 2 by 3 plots without space between the subplot and I can't arrive to manage it... Is the results of the next script is normal? import pylab fig1 = pylab.figure() fig1.subplots_adjust(wspace=0,hspace=0) pylab.subplot(231) pylab.subplot(232) pylab.subplot(233) pylab.subplot(234) pylab.subplot(235) pylab.subplot(236) fig2 = pylab.figure() fig2.subplots_adjust(wspace=0) pylab.subplot(231) pylab.subplot(232) pylab.subplot(233) pylab.subplot(234) pylab.subplot(235) pylab.subplot(236) fig3 = pylab.figure() fig3.subplots_adjust(hspace=0) pylab.subplot(231) pylab.subplot(232) pylab.subplot(233) pylab.subplot(234) pylab.subplot(235) pylab.subplot(236) pylab.show() Thanks, N. |