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
(28) |
2
(11) |
3
(15) |
4
(11) |
5
(13) |
6
(33) |
7
(13) |
8
(9) |
9
(2) |
10
(9) |
11
(27) |
12
(5) |
13
(10) |
14
(6) |
15
(9) |
16
(4) |
17
(2) |
18
(19) |
19
(11) |
20
(9) |
21
(16) |
22
(16) |
23
(5) |
24
(2) |
25
(8) |
26
(2) |
27
(11) |
28
(10) |
29
(5) |
30
(1) |
31
(2) |
|
|
|
|
|
|
From: Xavier G. <xav...@gm...> - 2008-08-31 12:33:52
|
John Hunter wrote: > On Sat, Aug 30, 2008 at 4:13 PM, Xavier Gnata <xav...@gm...> wrote: > >> Hi, >> >> I'm using the TkAgg backend. It is nice and fine except one issue: >> >> Here is a trivial testcase: >> >> import pylab >> import numpy >> >> M=numpy.zeros((2000,2000)) >> pylab.imshow(M) >> >> The cursor position is displayed this way: x=1.23e03 y=1.72e03 (in right >> corner of the window) >> It should be formated as intergers and not as floats. >> >> It is not only cosmetics because with 1.23e03, we are missing the last >> digit (it matters in my usecase and anyhow it is q bit stupid). >> >> The fix should be trivial but I have to find the line of interest... >> > > The x and y toolbar coordinate formatting are controlled by a pair of > functions, fmt_xdata and fmt_ydata. You can set them to be anything > you like, eg for integer formatting: > > def format_int(pylab.imshow(M)x): > return '%d'%int(x) > > ax.fmt_xdata = format_int > > > JDH > Ok thanks it does the job. However, I think it should really be done by default. self.xaxis.major.formatter.set_scientific(sb) is not the best way to display pixel numbers (IMHO). Xavier |
From: John H. <jd...@gm...> - 2008-08-31 03:03:41
|
On Sat, Aug 30, 2008 at 4:13 PM, Xavier Gnata <xav...@gm...> wrote: > Hi, > > I'm using the TkAgg backend. It is nice and fine except one issue: > > Here is a trivial testcase: > > import pylab > import numpy > > M=numpy.zeros((2000,2000)) > pylab.imshow(M) > > The cursor position is displayed this way: x=1.23e03 y=1.72e03 (in right > corner of the window) > It should be formated as intergers and not as floats. > > It is not only cosmetics because with 1.23e03, we are missing the last > digit (it matters in my usecase and anyhow it is q bit stupid). > > The fix should be trivial but I have to find the line of interest... The x and y toolbar coordinate formatting are controlled by a pair of functions, fmt_xdata and fmt_ydata. You can set them to be anything you like, eg for integer formatting: def format_int(x): return '%d'%int(x) ax.fmt_xdata = format_int JDH |
From: Xavier G. <xav...@gm...> - 2008-08-30 21:13:30
|
Hi, I'm using the TkAgg backend. It is nice and fine except one issue: Here is a trivial testcase: import pylab import numpy M=numpy.zeros((2000,2000)) pylab.imshow(M) The cursor position is displayed this way: x=1.23e03 y=1.72e03 (in right corner of the window) It should be formated as intergers and not as floats. It is not only cosmetics because with 1.23e03, we are missing the last digit (it matters in my usecase and anyhow it is q bit stupid). The fix should be trivial but I have to find the line of interest... Xavier |
From: Jeff W. <js...@fa...> - 2008-08-29 22:22:57
|
Larsen, Jesper wrote: > > Hi matplotlib-users, > > I have an application in which regions that are not known beforehand > are defined and plotted. When the application plots a region a Basemap > instance is created. My datasets define longitudes from 0 to 360. When > regions cross the Greenwich meridian I try to make a Basemap like this: > > m = Basemap(350, -10, 10, 10) > print m.aspect > > But this results in negative aspect ratios. How would you handle that? > Will I have to make extra checks for whether the region crosses the 0 > meridian and add 360 to all longitudes > 0 or do you have a better > solution? > > (i.e. create m = Basemap(350, -10, 370, 10)) > Jesper: Yes, that should work fine. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : Jef...@no... 325 Broadway Office : Skaggs Research Cntr 1D-113 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg |
From: Larsen, J. <jl...@dm...> - 2008-08-29 20:13:07
|
Hi matplotlib-users, I have an application in which regions that are not known beforehand are defined and plotted. When the application plots a region a Basemap instance is created. My datasets define longitudes from 0 to 360. When regions cross the Greenwich meridian I try to make a Basemap like this: m = Basemap(350, -10, 10, 10) print m.aspect But this results in negative aspect ratios. How would you handle that? Will I have to make extra checks for whether the region crosses the 0 meridian and add 360 to all longitudes > 0 or do you have a better solution? (i.e. create m = Basemap(350, -10, 370, 10)) Regards, Jesper |
From: Mathieu L. <lep...@gm...> - 2008-08-29 11:50:52
|
On Thu, Aug 28, 2008 at 12:15 AM, andy yu <yc...@ho...> wrote: > i 'm using the way > > X = load(data1.dat) > datalen = X[:, 1] > times = X[:, 0] > > times is UNIX_TIMESTAMP of datetime. > > > data1.dat file like this: > > > > 1158224731 1858 > 1158225026 1926 > 1158225328 1959 > 1158225627 2017 > 1158225931 2020 > 1158226229 2103 > 1158226534 2098 > > > the end of the polt like this > > > datalen| > | > | > | > | > ------------------------------------ > times > > how to make this plot using bar? any help will be great thank you ! You may have to convert each Unix time value of "times" to datetime.datetime ( Some info here : http://pleac.sourceforge.net/pleac_python/datesandtimes.html ) And then do : times = pylab.date2num( times ) to convert dates into matplotlib's date plotting format. |
From: Mathieu L. <lep...@gm...> - 2008-08-29 11:46:25
|
On Wed, Aug 27, 2008 at 11:14 AM, stuartornum <st...@mu...> wrote: > > Hi, > > I would like to be able to plot dates along the X axis' with values up the > Y. However Im having problems with the correct format in order to pass to > plot_date(). > > This is what I have so far: (example) > > #################################### > List = [ [datetime.datetime(2008, 7, 12, 5, 12)], ['46.8'] ] > > plot_date(List[0], List[1]) > ##################################### > Returns error: > > c = numeric.array(data, dtype=tc, copy=True, order=order) > ValueError: setting an array element with a sequence. > ##################################### > > I have looked at the pylab example for plot_date, however it uses a drange() > to figure out the dates and doesn't show me how to do it one by one. > Hi Have a look at pylab.date2num() Mathieu. > Thank you for your time. > -- > View this message in context: http://www.nabble.com/plot_date%28%29---Correct-format-to-plot-tp19181899p19181899.html > Sent from the matplotlib - users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Paulo M. <mu...@gm...> - 2008-08-29 01:54:55
|
Hi, I made some small changes to wxMpl to make it work with matplotlib 0.98, based on matplotlib's API_CHANGES. As I'm new to both matplotlib and wxMpl (and Python too), I don't know if it is working properly, but it doesn't print error messages anymore. The demos from wxMpl seemed to work OK. The modified file is attached, I hope it helps. Paulo Meira -- > On Wed, Aug 27, 2008 at 9:30 PM, Ryan Krauss <ryanlists@gm...> wrote: > > > I had emailed Ken and he said he intended to fix it. He didn't give me a > > time line though. > > > > Ryan > > > > > > On Wed, Aug 27, 2008 at 9:04 PM, Fernando Perez <fperez.net@gm...>wrote: > > > >> Howdy, > >> > >> On Thu, Aug 7, 2008 at 9:55 AM, Michael Droettboom <mdroe@st...> > >> wrote: > >> > I'm not aware of the problem (but I'm not a regular wxmpl user). > >> > > >> > From 0.91 to 0.98, a major refactoring was done to make it easier to > >> > add new kinds of projections. So PolarAxes is no longer a special case, > >> > it is just one of many possible non-Cartesian projections. > >> > Unfortunately to do this, the API had to change in a number of places. > >> > These are documented in the API_CHANGES file in the "TRANSFORMS > >> > REFACTORING" section. > >> > > >> > wxmpl needs to be updated based on those instructions in order to be > >> > compatible with mpl 0.98. Hopefully that process won't be too > >> > difficult, but it's hard to say without trying. basemap, a fairly large > >> > mpl toolkit, was able to handle the transition fairly smoothly. > >> > >> Are there any news on this front? Has wxmpl been updated, are there > >> plans to do so, or is it on hold for now? > >> > >> Just curious... > >> > >> Cheers, > >> > >> > >> f > >> > >> ------------------------------------------------------------------------- > >> This SF.Net email is sponsored by the Moblin Your Move Developer's > >> challenge > >> Build the coolest Linux based applications with Moblin SDK & win great > >> prizes > >> Grand prize is a trip for two to an Open Source event anywhere in the > >> world > >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ > >> _______________________________________________ > >> Matplotlib-users mailing list > >> Matplotlib-users@li... > >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users > >> > > > > |
From: John H. <jd...@gm...> - 2008-08-28 18:44:49
|
On Thu, Aug 28, 2008 at 1:34 PM, Nils Wagner <nw...@ia...> wrote: > Please find attached the output (test.png). > The order of the legend entries is wrong. Am I missing > something ? OK, now I see your point. auto-legending doesn't respect the order of the plots across different artist types. I hadn't thought of this before. As a workaround, you can use the label kwarg: scatter(x,y,label='Messdaten') plot(xr,yr,label='Ausgleichskurve') legend(shadow=True) JDH |
From: Nils W. <nw...@ia...> - 2008-08-28 18:35:04
|
On Thu, 28 Aug 2008 13:29:07 -0500 "John Hunter" <jd...@gm...> wrote: > On Thu, Aug 28, 2008 at 12:14 PM, Nils Wagner > <nw...@ia...> wrote: >> Hi all, >> >> I am wondering if I can use scatter in connection with >>legend >> (attached test for details). I am using the latest svn >>version. > > Your example works for me -- we recently added support >for > autolegending of scatters using a proxy rectangle of the >same color as > the first symbol in the scatter. This could be improved >upon by using > a proxy patch with the same shape as your first polygon >in the > collection, but there are some scaling issues that have >to be worked > out. > > Is it the fact that you get a Rectangle vs a Circle that >you are > posting about? Or are you not getting anything at all >for your > scatter in the legend? > > JDH Please find attached the output (test.png). The order of the legend entries is wrong. Am I missing something ? Nils |
From: John H. <jd...@gm...> - 2008-08-28 18:29:11
|
On Thu, Aug 28, 2008 at 12:14 PM, Nils Wagner <nw...@ia...> wrote: > Hi all, > > I am wondering if I can use scatter in connection with legend > (attached test for details). I am using the latest svn version. Your example works for me -- we recently added support for autolegending of scatters using a proxy rectangle of the same color as the first symbol in the scatter. This could be improved upon by using a proxy patch with the same shape as your first polygon in the collection, but there are some scaling issues that have to be worked out. Is it the fact that you get a Rectangle vs a Circle that you are posting about? Or are you not getting anything at all for your scatter in the legend? JDH |
From: Nils W. <nw...@ia...> - 2008-08-28 17:14:54
|
Hi all, I am wondering if I can use scatter in connection with legend (attached test for details). I am using the latest svn version. Any pointer would be appreciated. Cheers, Nils |
From: Michael D. <md...@st...> - 2008-08-28 13:13:14
|
This problem is now resolved in SVN r6054. Mike |
From: andy yu <yc...@ho...> - 2008-08-28 05:29:53
|
Hello, I am trying to construct a plot that is a barchartwith the X-axis being dates. I have used the plot_dates to generated line plots that look great, however, I cannotfigure out a way to do a barchart with dates as theXaxis.Has anyone done one of these _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx |
From: andy yu <yc...@ho...> - 2008-08-28 05:28:41
|
Hello, I am trying to construct a plot that is a barchartwith the X-axis being dates. I have used the plot_dates to generated line plots that look great, however, I cannotfigure out a way to do a barchart with dates as theXaxis.Has anyone done one of these _________________________________________________________________ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE |
From: andy yu <yc...@ho...> - 2008-08-28 03:16:06
|
i 'm using the way X = load(data1.dat)datalen = X[:, 1]times = X[:, 0] times is UNIX_TIMESTAMP of datetime. data1.dat file like this: 1158224731 18581158225026 19261158225328 19591158225627 20171158225931 20201158226229 21031158226534 2098 the end of the polt like this datalen| | | | | ------------------------------------ times how to make this plot using bar? any help will be great thank you ! _________________________________________________________________ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us |
From: Ryan K. <rya...@gm...> - 2008-08-28 02:31:02
|
I had emailed Ken and he said he intended to fix it. He didn't give me a time line though. Ryan On Wed, Aug 27, 2008 at 9:30 PM, Ryan Krauss <rya...@gm...> wrote: > I had emailed Ken and he said he intended to fix it. He didn't give me a > time line though. > > Ryan > > > On Wed, Aug 27, 2008 at 9:04 PM, Fernando Perez <fpe...@gm...>wrote: > >> Howdy, >> >> On Thu, Aug 7, 2008 at 9:55 AM, Michael Droettboom <md...@st...> >> wrote: >> > I'm not aware of the problem (but I'm not a regular wxmpl user). >> > >> > From 0.91 to 0.98, a major refactoring was done to make it easier to >> > add new kinds of projections. So PolarAxes is no longer a special case, >> > it is just one of many possible non-Cartesian projections. >> > Unfortunately to do this, the API had to change in a number of places. >> > These are documented in the API_CHANGES file in the "TRANSFORMS >> > REFACTORING" section. >> > >> > wxmpl needs to be updated based on those instructions in order to be >> > compatible with mpl 0.98. Hopefully that process won't be too >> > difficult, but it's hard to say without trying. basemap, a fairly large >> > mpl toolkit, was able to handle the transition fairly smoothly. >> >> Are there any news on this front? Has wxmpl been updated, are there >> plans to do so, or is it on hold for now? >> >> Just curious... >> >> Cheers, >> >> >> f >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > > |
From: Fernando P. <fpe...@gm...> - 2008-08-28 02:04:44
|
Howdy, On Thu, Aug 7, 2008 at 9:55 AM, Michael Droettboom <md...@st...> wrote: > I'm not aware of the problem (but I'm not a regular wxmpl user). > > From 0.91 to 0.98, a major refactoring was done to make it easier to > add new kinds of projections. So PolarAxes is no longer a special case, > it is just one of many possible non-Cartesian projections. > Unfortunately to do this, the API had to change in a number of places. > These are documented in the API_CHANGES file in the "TRANSFORMS > REFACTORING" section. > > wxmpl needs to be updated based on those instructions in order to be > compatible with mpl 0.98. Hopefully that process won't be too > difficult, but it's hard to say without trying. basemap, a fairly large > mpl toolkit, was able to handle the transition fairly smoothly. Are there any news on this front? Has wxmpl been updated, are there plans to do so, or is it on hold for now? Just curious... Cheers, f |
From: Jae-Joon L. <lee...@gm...> - 2008-08-27 19:36:09
|
Hi Uri, What version of matplotlib are you using? I guess the get_frame() method is deprecated (but still available) in the recent version of matplotlib. Instead, frame and patch attributes can be used. I only started looking into the code behind the matplotlib recently so I don't know much about how it can be handled in the older version. I suggest you upgrade to the recent version of matplotlib if possible. Or you may wait for others to answer. I'll send you Tony's class in a separate email. But I'm not sure if it will work with older versions. Regards, -JJ On Wed, Aug 27, 2008 at 3:12 PM, Uri Laserson <las...@mi...> wrote: > Hi JJ, > > Thanks for the suggestion...I think we are close. First, the AxesSubplot > object which is returned from ax=gca() does not have a 'frame' > object/attribute. However, ax.get_frame() gives me a rectangle object, but > when I call the set_visible(False) method, it turns the background gray > while leaving all the axes in place (the inverse behavior of what you said > below). Any idea how to reverse this? > > Also, the link to the attachment for Tony's class is broken. Any idea where > I could get the file? > > Thanks! > Uri > > On Wed, Aug 27, 2008 at 14:38, Jae-Joon Lee <lee...@gm...> wrote: >> >> You can suppress the tick marks on the top and right axis as Mathieu >> suggested. Setting frame_on as False will suppresse both the bounding >> lines and the white background patch of the axes. You can suppress >> only the bounding lines by >> >> ax = gca() >> ax.frame.set_visble(False) >> >> Note that this will delete not only the top and the right axis lines >> but also the bottom and the left ones. >> Therefore, you need to manually draw the axis lines (bottom and left). >> >> p, = ax.plot([0,0],[0,1], "k-", transform=ax.transAxes) >> p.set_clip_on(False) >> p, = ax.plot([0,1],[0,0], "k-", transform=ax.transAxes) >> p.set_clip_on(False) >> >> >> You may consider to use a custom axes class by Tony. >> >> http://thread.gmane.org/gmane.comp.python.matplotlib.general/13619 >> >> Regards, >> >> -JJ >> >> >> On Tue, Aug 26, 2008 at 10:35 PM, Uri Laserson <las...@mi...> wrote: >> > Hi, >> > >> > Is it possible to create plots that only have a single x-axis on the >> > bottom >> > and a single y-axis on the left, while suppressing an upper or right >> > axis >> > (i.e., have the graph be "open")? >> > >> > Thanks! >> > Uri >> > >> > >> > -- >> > Uri Laserson >> > PhD Candidate, Biomedical Engineering >> > Harvard Medical School (Genetics) >> > Massachusetts Institute of Technology (Mathematics) >> > phone +1 917 742 8019 >> > las...@mi... >> > >> > >> > ------------------------------------------------------------------------- >> > This SF.Net email is sponsored by the Moblin Your Move Developer's >> > challenge >> > Build the coolest Linux based applications with Moblin SDK & win great >> > prizes >> > Grand prize is a trip for two to an Open Source event anywhere in the >> > world >> > http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> > _______________________________________________ >> > Matplotlib-users mailing list >> > Mat...@li... >> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > >> > > > > > -- > Uri Laserson > PhD Candidate, Biomedical Engineering > Harvard Medical School (Genetics) > Massachusetts Institute of Technology (Mathematics) > phone +1 917 742 8019 > las...@mi... > |
From: Jae-Joon L. <lee...@gm...> - 2008-08-27 18:39:01
|
You can suppress the tick marks on the top and right axis as Mathieu suggested. Setting frame_on as False will suppresse both the bounding lines and the white background patch of the axes. You can suppress only the bounding lines by ax = gca() ax.frame.set_visble(False) Note that this will delete not only the top and the right axis lines but also the bottom and the left ones. Therefore, you need to manually draw the axis lines (bottom and left). p, = ax.plot([0,0],[0,1], "k-", transform=ax.transAxes) p.set_clip_on(False) p, = ax.plot([0,1],[0,0], "k-", transform=ax.transAxes) p.set_clip_on(False) You may consider to use a custom axes class by Tony. http://thread.gmane.org/gmane.comp.python.matplotlib.general/13619 Regards, -JJ On Tue, Aug 26, 2008 at 10:35 PM, Uri Laserson <las...@mi...> wrote: > Hi, > > Is it possible to create plots that only have a single x-axis on the bottom > and a single y-axis on the left, while suppressing an upper or right axis > (i.e., have the graph be "open")? > > Thanks! > Uri > > > -- > Uri Laserson > PhD Candidate, Biomedical Engineering > Harvard Medical School (Genetics) > Massachusetts Institute of Technology (Mathematics) > phone +1 917 742 8019 > las...@mi... > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
From: stuartornum <st...@mu...> - 2008-08-27 14:14:28
|
Hi, I would like to be able to plot dates along the X axis' with values up the Y. However Im having problems with the correct format in order to pass to plot_date(). This is what I have so far: (example) #################################### List = [ [datetime.datetime(2008, 7, 12, 5, 12)], ['46.8'] ] plot_date(List[0], List[1]) ##################################### Returns error: c = numeric.array(data, dtype=tc, copy=True, order=order) ValueError: setting an array element with a sequence. ##################################### I have looked at the pylab example for plot_date, however it uses a drange() to figure out the dates and doesn't show me how to do it one by one. Thank you for your time. -- View this message in context: http://www.nabble.com/plot_date%28%29---Correct-format-to-plot-tp19181899p19181899.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: Michael D. <md...@st...> - 2008-08-27 12:13:23
|
Mathieu Leplatre wrote: > For the colors, I just use : > > textobj.set_color( #FF0000 ) > textobj.set_alpha( 0.5 ) > Just to point out -- from this you have access to ~16 million colors. > For the fonts, I never noticed there were a limit : > > textobj.set_fontname( "DejaVu Sans" ) > > I would be interested in a way to check if the selected font exists on > the system or not, because currently no exception is raised. > This *should* work -- matplotlib should be able to use any font on your system. If not, that's a bug, so please let us know. To help us diagnose the problem, please look here: http://matplotlib.sourceforge.net/doc/html/faq/troubleshooting_faq.html#how-do-i-report-a-problem Cheers, Mike > Hope it helps. > > On Wed, Aug 27, 2008 at 3:54 AM, sa6113 <s.p...@gm...> wrote: > >> Dear All, >> how can I set more color and font for my plot, as I know matplotlib just >> supporte 8 color strings and five fonts. >> Is there any way to extend it for all color and font from system ? >> has every one any useful code about that? >> Thanks >> -- >> View this message in context: http://www.nabble.com/set-font-and-color-problem-tp19175632p19175632.html >> Sent from the matplotlib - users mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Mathieu L. <lep...@gm...> - 2008-08-27 11:20:20
|
Uri, You could look have a look at : gca().xaxis.tick_bottom() gca().yaxis.tick_left() or hide the frame : ax = axes( FrameOne=False ) Hope this helps. On Tue, Aug 26, 2008 at 11:35 PM, Uri Laserson <las...@mi...> wrote: > Hi, > > Is it possible to create plots that only have a single x-axis on the bottom > and a single y-axis on the left, while suppressing an upper or right axis > (i.e., have the graph be "open")? > > Thanks! > Uri > > > -- > Uri Laserson > PhD Candidate, Biomedical Engineering > Harvard Medical School (Genetics) > Massachusetts Institute of Technology (Mathematics) > phone +1 917 742 8019 > las...@mi... > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
From: Mathieu L. <lep...@gm...> - 2008-08-27 11:04:43
|
For the colors, I just use : textobj.set_color( #FF0000 ) textobj.set_alpha( 0.5 ) For the fonts, I never noticed there were a limit : textobj.set_fontname( "DejaVu Sans" ) I would be interested in a way to check if the selected font exists on the system or not, because currently no exception is raised. Hope it helps. On Wed, Aug 27, 2008 at 3:54 AM, sa6113 <s.p...@gm...> wrote: > > Dear All, > how can I set more color and font for my plot, as I know matplotlib just > supporte 8 color strings and five fonts. > Is there any way to extend it for all color and font from system ? > has every one any useful code about that? > Thanks > -- > View this message in context: http://www.nabble.com/set-font-and-color-problem-tp19175632p19175632.html > Sent from the matplotlib - users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Mathieu L. <lep...@gm...> - 2008-08-27 10:58:51
|
Hi Uri, AFAI, in matplotlibrc you have : ### TICKS # see http://matplotlib.sourceforge.net/matplotlib.axis.html#Ticks #xtick.direction : in # direction: in or out #ytick.direction : in # direction: in or out Hope it helps. Mathieu. On Tue, Aug 26, 2008 at 11:35 PM, Uri Laserson <las...@mi...> wrote: > Hi, > > Is it possible to create tick marks that go outwards (i.e., point towards > the label) rather than inwards? > > Thanks! > Uri > > > -- > Uri Laserson > PhD Candidate, Biomedical Engineering > Harvard Medical School (Genetics) > Massachusetts Institute of Technology (Mathematics) > phone +1 917 742 8019 > las...@mi... > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |