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
(8) |
|
2
(2) |
3
(8) |
4
(19) |
5
(19) |
6
(25) |
7
(8) |
8
(1) |
|
9
|
10
(15) |
11
(22) |
12
(8) |
13
(4) |
14
(1) |
15
|
|
16
(1) |
17
(20) |
18
(17) |
19
(13) |
20
(17) |
21
(7) |
22
(5) |
|
23
(6) |
24
(14) |
25
(14) |
26
(18) |
27
(21) |
28
(5) |
29
(9) |
|
30
(6) |
|
|
|
|
|
|
|
From: Charlie M. <cw...@gm...> - 2006-04-07 13:31:40
|
On 4/7/06, Nils Wagner <nw...@ia...> wrote: > I am using the latest svn version of matplotlib > > Python 2.4.1 (#1, Sep 12 2005, 23:33:18) > [GCC 4.0.2 20050901 (prerelease) (SUSE Linux)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> from pylab import * > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "/usr/lib64/python2.4/site-packages/pylab.py", line 1, in ? > from matplotlib.pylab import * > ImportError: No module named pylab I can't reproduce. Does the file "/usr/lib64/python2.4/site-packages/matplotlib/pylab.py" exist for you? |
|
From: Nils W. <nw...@ia...> - 2006-04-07 13:11:00
|
I am using the latest svn version of matplotlib
Python 2.4.1 (#1, Sep 12 2005, 23:33:18)
[GCC 4.0.2 20050901 (prerelease) (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pylab import *
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib64/python2.4/site-packages/pylab.py", line 1, in ?
from matplotlib.pylab import *
ImportError: No module named pylab
This seems to be related to some of the recent changes.
Am I missing something ?
Nils
|
|
From: John H. <jdh...@ac...> - 2006-04-06 20:44:30
|
>>>>> "Jouni" == Jouni K Seppanen <jk...@ik...> writes:
Jouni> "Lei Chen" <che...@gm...> writes:
Jouni> The following seems to work:
Jouni> barh(x,y, color=colours, left=zeros((len(x),)))
Yes, this is a good workaround. The underlying bug is fixed in svn
2267.
Nice colors Lei!
JDH
|
|
From: Jouni K S. <jk...@ik...> - 2006-04-06 20:13:47
|
"Lei Chen" <che...@gm...> writes: > I'm getting an error from barh (Matplotlib version > 0.87.2.win32-py2.4). Could someone tell me how it can be fixed without > fiddling around with matplotlib source?: > > barh(x,y, color=colours) The following seems to work: barh(x,y, color=colours, left=zeros((len(x),))) -- Jouni |
|
From: Lei C. <che...@gm...> - 2006-04-06 18:57:37
|
I'm getting an error from barh (Matplotlib version
0.87.2.win32-py2.4). Could someone tell me how it can be fixed without
fiddling around with matplotlib source?:
from matplotlib import *
colours =3D ['lemonchiffon', 'lightskyblue', 'indianred']
x =3D [170.804, 186.838, 217.725]
y =3D arange(3)+.5 # the bar centers on the y axis
barh(x,y, color=3Dcolours)
yticks(y, ('A', 'B', 'C'))
show()
Traceback (most recent call last):
File "C:\temp\wmaProBarh\wmaProBarh.py", line 9, in ?
barh(x,y, color=3Dcolours)
File "C:\Python24\Lib\site-packages\matplotlib\pylab.py", line 1661, in b=
arh
ret =3D gca().barh(*args, **kwargs)
File "C:\Python24\Lib\site-packages\matplotlib\axes.py", line 1238, in ba=
rh
if (is_string_like(color) or
TypeError: len() of unsized object
--------------
But the scripts works in this case:
from matplotlib import *
colours =3D ['lemonchiffon', 'lightskyblue', 'indianred', 'palegreen']
x =3D [170.804, 186.838, 217.725, 100]
y =3D arange(4)+.5 # the bar centers on the y axis
barh(x,y, color=3Dcolours)
yticks(y, ('A', 'B', 'C', 'D'))
show()
|
|
From: Jouni K S. <jk...@ik...> - 2006-04-06 18:43:15
|
-- Jouni |
|
From: Emmanuel Favre-N. <man...@gm...> - 2006-04-06 17:19:40
|
Le Jeudi 06 Avril 2006 12:21, Emmanuel Favre-Nicolin a =E9crit=A0: > Hi, > > when I use legend() with a scatter plot I obtain an empty legend. A test > script: > > from pylab import figure, load, show,legend,arange > x=3Darange(-2,2.1,0.2) > fig =3D figure() > ax =3D fig.add_subplot(111) > ax.scatter(x,x*x,label=3D"x*x") > ax.legend() > show() > > > If I replace scatter by plot, legend is OK. Follow a test script : > > from pylab import figure, load, show,legend,arange > x=3Darange(-2,2.1,0.2) > fig =3D figure() > ax =3D fig.add_subplot(111) > ax.plot(x,x*x,label=3D"x*x") > ax.legend() > show() > > I'd like to use scatter which produce nice scattered plot and have legend. > What could I do? OK I can use plot with circle, it's fine. I was just wondering if scatter()= =20 should not function like plot()? |
|
From: Emmanuel Favre-N. <man...@gm...> - 2006-04-06 15:11:22
|
Hi, when I use legend() with a scatter plot I obtain an empty legend. A test script: from pylab import figure, load, show,legend,arange x=arange(-2,2.1,0.2) fig = figure() ax = fig.add_subplot(111) ax.scatter(x,x*x,label="x*x") ax.legend() show() If I replace scatter by plot, legend is OK. Follow a test script : from pylab import figure, load, show,legend,arange x=arange(-2,2.1,0.2) fig = figure() ax = fig.add_subplot(111) ax.plot(x,x*x,label="x*x") ax.legend() show() I'd like to use scatter which produce nice scattered plot and have legend. What could I do? Emmanuel |
|
From: Nils W. <nw...@ia...> - 2006-04-06 13:22:03
|
Nils Wagner wrote: > Hi all, > > Is there a simple way to reject the points outside the parametrized > curve ? > I mean I would like to use meshgrid for "arbitrary" shaped domains. > > Any idea would be appreciated. > > Nils > > ------------------------------------------------------------------------ > > from scipy import * > from pylab import plot, show, meshgrid > N = 100 > phi = linspace(0,2*pi,N,endpoint=False) > p = zeros(N, Complex) > q = zeros(N, Complex) > p.real = cos(phi)-0.5*cos(phi)*sin(2*phi) > p.imag = sin(phi)+cos(4*phi)/6 > x=arange(-1.5,1.5,0.1) > y=arange(-1.5,1.5,0.1) > X,Y = meshgrid(x,y) > plot(p.real,p.imag,X,Y,'r.') > show() > Sorry for replying to myself but just now I have found the fill command. Is it somehow possible to extract coordinates from the blue domain (image.png) ? from scipy import * from pylab import plot, show, meshgrid, fill N = 100 phi = linspace(0,2*pi,N,endpoint=False) p = zeros(N, Complex) q = zeros(N, Complex) p.real = cos(phi)-0.5*cos(phi)*sin(2*phi) p.imag = sin(phi)+cos(4*phi)/6 x=arange(-1.5,1.5,0.1) y=arange(-1.5,1.5,0.1) X,Y = meshgrid(x,y) plot(p.real,p.imag,'k-',X,Y,'r.') q = fill(p.real,p.imag) show() Nils |
|
From: Ken M. <mc...@ii...> - 2006-04-06 13:20:33
|
Massimo contacted me off-list to let me know my last email on the
topic was overlooked. For posterity, here's the short and sweet recipe.
class SomeClass(wx.SomeWidget):
def __init__ ...
...
# create the plot panel
self.control = wxmpl.PlotPanel(self, -1)
...
# register to receive WxMpl PointEvents
wxmpl.EVT_POINT(self, self.control.GetId(), self.OnPlotPoint)
...
def OnPlotPoint(self, evt):
print 'POINT'
# the PointEvent object `evt' contains some useful
information...
# the axes that was clicked on
print ' axes =', evt.axes
# matplotlib's X&Y coordinates (not quite the same as
wxPython's)
print ' mpl x =', evt.x
print ' mpl y =', evt.y
# axes' X&Y coordinates (the data value that was clicked on)
print ' data x =', evt.xdata
print ' data y =', evt.ydata
|
|
From: Arne.Bittig <arn...@in...> - 2006-04-06 13:01:51
|
Yes, that is indeed what I was looking for - and it's significantly easier than I expected. Thanks everybody. Arne Ryan Krauss wrote: > My solution and Darren's do nearly the same thing. > > On 4/6/06, Ryan Krauss <rya...@gm...> wrote: > >>Not a problem. Go into your matplotlibrc file and change these lines: >> >># The figure subplot parameters. All dimensions are fraction of the >># figure width or height >>figure.subplot.left : 0.001 # the left side of the subplots of the figure >>figure.subplot.right : 0.999 # the right side of the subplots of the figure >>figure.subplot.bottom : 0.001 # the bottom of the subplots of the figure >>figure.subplot.top : 0.999 >>figure.subplot.wspace : 0.001 # the amount of width reserved for >>blank space between subplots >>figure.subplot.hspace : 0.001 # the amount of height reserved for >>white space between subplots >> >>They control the white space around the frame where the axes go. With >>the above values, I created the attached plot which I think is close >>to what you want. >> >>Ryan >> >>On 4/6/06, Michael V. De Palatis <mde...@ma...> wrote: >> >>>Arne, >>> >>>I don't know about the "real" solution to this problem, but if you >>>want to go the route of "artificially" solving it with an image >>>library for post processing, you can check out Python Imaging Library: >>> >>>http://www.pythonware.com/products/pil/ >>> >>>Mike >>> >>>On Thu, Apr 06, 2006 at 02:36:55PM +0200, Arne.Bittig wrote: >>> >>>>Sorry, maybe I didn't make that clear enough. >>>> >>>>I was talking about a graph as in "graph theory". Since there is no >>>>meaningful way to label the axes, and, in fact, no reason to show them >>>>at all, the white space I was talking about is just where in your >>>>picture there are the labels. So, looking at your example, what I'd like >>>>to have is what's inside the black rectangle, i.e. a png where the blue >>>>curve touches the top and the bottom of the image. >>>> >>>>Arne >>>> >>>>Ryan Krauss wrote: >>>> >>>> >>>>>I don't think this is the default behavior. If I do >>>>> >>>>>t=arange(0,1,0.01) >>>>>y=sin(2*pi*t) >>>>>plot(t,y) >>>>>xlabel('Time (sec)') >>>>>ylabel('Amplitude') >>>>>savefig('test.png') >>>>> >>>>>I get the attached png without the extra border you describe. >>>>> >>>>>Ryan >>>>> >>>>> >>>>>On 4/6/06, Arne.Bittig <arn...@in...> wrote: >>>>> >>>>> >>>>>>Hi, >>>>>> >>>>>>I am using matplotlib to draw graphs. When I try to save a picture >>>>>>(using savefig; usually as png, but at some point I might need eps files >>>>>>as well), the actual graph comprises less than the central 50% of the >>>>>>image, the rest of the image is wasted space. >>>>>> >>>>>>I already tried figure(frameon = False, facecolor = 'w') and box(False) >>>>>>to get rid of the redundant frame, but apparently it did not help (apart >>>>> >>>>>>from removing the black frame, obviously, but what I want is to save >>>>> >>>>>>only what is inside this frame). >>>>>> >>>>>>Any ideas how to do this? If not, does anyone know a python tool that >>>>>>handles pngs and would enable me to crop the picture in a second step? >>>>>> >>>>>>Arne >>>>>> >>>>>> >>>>>>------------------------------------------------------- >>>>>>This SF.Net email is sponsored by xPML, a groundbreaking scripting >>>>>>language >>>>>>that extends applications into web and mobile media. Attend the live >>>>>>webcast >>>>>>and join the prime developer group breaking into this new coding >>>>>>territory! >>>>>>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >>>>>>_______________________________________________ >>>>>>Matplotlib-users mailing list >>>>>>Mat...@li... >>>>>>https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>>>> >>>>> >>>>>------------------------------------------------------------------------ >>>>> >>>> >>>> >>>> >>>>------------------------------------------------------- >>>>This SF.Net email is sponsored by xPML, a groundbreaking scripting >>>>language >>>>that extends applications into web and mobile media. Attend the live >>>>webcast >>>>and join the prime developer group breaking into this new coding >>>>territory! >>>>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >>>>_______________________________________________ >>>>Matplotlib-users mailing list >>>>Mat...@li... >> >>>>https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >>> >>>------------------------------------------------------- >>>This SF.Net email is sponsored by xPML, a groundbreaking scripting language >>>that extends applications into web and mobile media. Attend the live webcast >>>and join the prime developer group breaking into this new coding territory! >>>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >>>_______________________________________________ >>>Matplotlib-users mailing list >>>Mat...@li... >>>https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >> >> >> |
|
From: Ryan K. <rya...@gm...> - 2006-04-06 12:57:30
|
My solution and Darren's do nearly the same thing. On 4/6/06, Ryan Krauss <rya...@gm...> wrote: > Not a problem. Go into your matplotlibrc file and change these lines: > > # The figure subplot parameters. All dimensions are fraction of the > # figure width or height > figure.subplot.left : 0.001 # the left side of the subplots of the figu= re > figure.subplot.right : 0.999 # the right side of the subplots of the f= igure > figure.subplot.bottom : 0.001 # the bottom of the subplots of the figur= e > figure.subplot.top : 0.999 > figure.subplot.wspace : 0.001 # the amount of width reserved for > blank space between subplots > figure.subplot.hspace : 0.001 # the amount of height reserved for > white space between subplots > > They control the white space around the frame where the axes go. With > the above values, I created the attached plot which I think is close > to what you want. > > Ryan > > On 4/6/06, Michael V. De Palatis <mde...@ma...> wrote: > > Arne, > > > > I don't know about the "real" solution to this problem, but if you > > want to go the route of "artificially" solving it with an image > > library for post processing, you can check out Python Imaging Library: > > > > http://www.pythonware.com/products/pil/ > > > > Mike > > > > On Thu, Apr 06, 2006 at 02:36:55PM +0200, Arne.Bittig wrote: > > > Sorry, maybe I didn't make that clear enough. > > > > > > I was talking about a graph as in "graph theory". Since there is no > > > meaningful way to label the axes, and, in fact, no reason to show the= m > > > at all, the white space I was talking about is just where in your > > > picture there are the labels. So, looking at your example, what I'd l= ike > > > to have is what's inside the black rectangle, i.e. a png where the bl= ue > > > curve touches the top and the bottom of the image. > > > > > > Arne > > > > > > Ryan Krauss wrote: > > > > > > >I don't think this is the default behavior. If I do > > > > > > > >t=3Darange(0,1,0.01) > > > >y=3Dsin(2*pi*t) > > > >plot(t,y) > > > >xlabel('Time (sec)') > > > >ylabel('Amplitude') > > > >savefig('test.png') > > > > > > > >I get the attached png without the extra border you describe. > > > > > > > >Ryan > > > > > > > > > > > >On 4/6/06, Arne.Bittig <arn...@in...> wrote= : > > > > > > > >>Hi, > > > >> > > > >>I am using matplotlib to draw graphs. When I try to save a picture > > > >>(using savefig; usually as png, but at some point I might need eps = files > > > >>as well), the actual graph comprises less than the central 50% of t= he > > > >>image, the rest of the image is wasted space. > > > >> > > > >>I already tried figure(frameon =3D False, facecolor =3D 'w') and bo= x(False) > > > >>to get rid of the redundant frame, but apparently it did not help (= apart > > > >>from removing the black frame, obviously, but what I want is to sav= e > > > >>only what is inside this frame). > > > >> > > > >>Any ideas how to do this? If not, does anyone know a python tool th= at > > > >>handles pngs and would enable me to crop the picture in a second st= ep? > > > >> > > > >>Arne > > > >> > > > >> > > > >>------------------------------------------------------- > > > >>This SF.Net email is sponsored by xPML, a groundbreaking scripting > > > >>language > > > >>that extends applications into web and mobile media. Attend the liv= e > > > >>webcast > > > >>and join the prime developer group breaking into this new coding > > > >>territory! > > > >>http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720= &dat=3D121642 > > > >>_______________________________________________ > > > >>Matplotlib-users mailing list > > > >>Mat...@li... > > > >>https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > > > > >> > > > > > > > > > > > >--------------------------------------------------------------------= ---- > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by xPML, a groundbreaking scripting > > > language > > > that extends applications into web and mobile media. Attend the live > > > webcast > > > and join the prime developer group breaking into this new coding > > > territory! > > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&d= at=3D121642 > > > _______________________________________________ > > > Matplotlib-users mailing list > > > Mat...@li... > > > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by xPML, a groundbreaking scripting lang= uage > > that extends applications into web and mobile media. Attend the live we= bcast > > and join the prime developer group breaking into this new coding territ= ory! > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat= =3D121642 > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > > |
|
From: Ryan K. <rya...@gm...> - 2006-04-06 12:54:20
|
Not a problem. Go into your matplotlibrc file and change these lines: # The figure subplot parameters. All dimensions are fraction of the # figure width or height figure.subplot.left : 0.001 # the left side of the subplots of the figure figure.subplot.right : 0.999 # the right side of the subplots of the fig= ure figure.subplot.bottom : 0.001 # the bottom of the subplots of the figure figure.subplot.top : 0.999 figure.subplot.wspace : 0.001 # the amount of width reserved for blank space between subplots figure.subplot.hspace : 0.001 # the amount of height reserved for white space between subplots They control the white space around the frame where the axes go. With the above values, I created the attached plot which I think is close to what you want. Ryan On 4/6/06, Michael V. De Palatis <mde...@ma...> wrote: > Arne, > > I don't know about the "real" solution to this problem, but if you > want to go the route of "artificially" solving it with an image > library for post processing, you can check out Python Imaging Library: > > http://www.pythonware.com/products/pil/ > > Mike > > On Thu, Apr 06, 2006 at 02:36:55PM +0200, Arne.Bittig wrote: > > Sorry, maybe I didn't make that clear enough. > > > > I was talking about a graph as in "graph theory". Since there is no > > meaningful way to label the axes, and, in fact, no reason to show them > > at all, the white space I was talking about is just where in your > > picture there are the labels. So, looking at your example, what I'd lik= e > > to have is what's inside the black rectangle, i.e. a png where the blue > > curve touches the top and the bottom of the image. > > > > Arne > > > > Ryan Krauss wrote: > > > > >I don't think this is the default behavior. If I do > > > > > >t=3Darange(0,1,0.01) > > >y=3Dsin(2*pi*t) > > >plot(t,y) > > >xlabel('Time (sec)') > > >ylabel('Amplitude') > > >savefig('test.png') > > > > > >I get the attached png without the extra border you describe. > > > > > >Ryan > > > > > > > > >On 4/6/06, Arne.Bittig <arn...@in...> wrote: > > > > > >>Hi, > > >> > > >>I am using matplotlib to draw graphs. When I try to save a picture > > >>(using savefig; usually as png, but at some point I might need eps fi= les > > >>as well), the actual graph comprises less than the central 50% of the > > >>image, the rest of the image is wasted space. > > >> > > >>I already tried figure(frameon =3D False, facecolor =3D 'w') and box(= False) > > >>to get rid of the redundant frame, but apparently it did not help (ap= art > > >>from removing the black frame, obviously, but what I want is to save > > >>only what is inside this frame). > > >> > > >>Any ideas how to do this? If not, does anyone know a python tool that > > >>handles pngs and would enable me to crop the picture in a second step= ? > > >> > > >>Arne > > >> > > >> > > >>------------------------------------------------------- > > >>This SF.Net email is sponsored by xPML, a groundbreaking scripting > > >>language > > >>that extends applications into web and mobile media. Attend the live > > >>webcast > > >>and join the prime developer group breaking into this new coding > > >>territory! > > >>http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&d= at=3D121642 > > >>_______________________________________________ > > >>Matplotlib-users mailing list > > >>Mat...@li... > > >>https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > > >> > > > > > > > > >----------------------------------------------------------------------= -- > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by xPML, a groundbreaking scripting > > language > > that extends applications into web and mobile media. Attend the live > > webcast > > and join the prime developer group breaking into this new coding > > territory! > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat= =3D121642 > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting langua= ge > that extends applications into web and mobile media. Attend the live webc= ast > and join the prime developer group breaking into this new coding territor= y! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat= =3D121642 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: Darren D. <dd...@co...> - 2006-04-06 12:48:16
|
On Thursday 06 April 2006 08:36, Arne.Bittig wrote: > Sorry, maybe I didn't make that clear enough. > > I was talking about a graph as in "graph theory". Since there is no > meaningful way to label the axes, and, in fact, no reason to show them > at all, the white space I was talking about is just where in your > picture there are the labels. So, looking at your example, what I'd like > to have is what's inside the black rectangle, i.e. a png where the blue > curve touches the top and the bottom of the image. I think what you want to do is create your axes so they span the entire figure: axes([0,0,1,1]) |
|
From: Michael V. De P. <mde...@ma...> - 2006-04-06 12:41:50
|
Arne, I don't know about the "real" solution to this problem, but if you want to go the route of "artificially" solving it with an image library for post processing, you can check out Python Imaging Library: http://www.pythonware.com/products/pil/ Mike On Thu, Apr 06, 2006 at 02:36:55PM +0200, Arne.Bittig wrote: > Sorry, maybe I didn't make that clear enough. > > I was talking about a graph as in "graph theory". Since there is no > meaningful way to label the axes, and, in fact, no reason to show them > at all, the white space I was talking about is just where in your > picture there are the labels. So, looking at your example, what I'd like > to have is what's inside the black rectangle, i.e. a png where the blue > curve touches the top and the bottom of the image. > > Arne > > Ryan Krauss wrote: > > >I don't think this is the default behavior. If I do > > > >t=arange(0,1,0.01) > >y=sin(2*pi*t) > >plot(t,y) > >xlabel('Time (sec)') > >ylabel('Amplitude') > >savefig('test.png') > > > >I get the attached png without the extra border you describe. > > > >Ryan > > > > > >On 4/6/06, Arne.Bittig <arn...@in...> wrote: > > > >>Hi, > >> > >>I am using matplotlib to draw graphs. When I try to save a picture > >>(using savefig; usually as png, but at some point I might need eps files > >>as well), the actual graph comprises less than the central 50% of the > >>image, the rest of the image is wasted space. > >> > >>I already tried figure(frameon = False, facecolor = 'w') and box(False) > >>to get rid of the redundant frame, but apparently it did not help (apart > >>from removing the black frame, obviously, but what I want is to save > >>only what is inside this frame). > >> > >>Any ideas how to do this? If not, does anyone know a python tool that > >>handles pngs and would enable me to crop the picture in a second step? > >> > >>Arne > >> > >> > >>------------------------------------------------------- > >>This SF.Net email is sponsored by xPML, a groundbreaking scripting > >>language > >>that extends applications into web and mobile media. Attend the live > >>webcast > >>and join the prime developer group breaking into this new coding > >>territory! > >>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > >>_______________________________________________ > >>Matplotlib-users mailing list > >>Mat...@li... > >>https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > >> > > > > > >------------------------------------------------------------------------ > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
From: Arne.Bittig <arn...@in...> - 2006-04-06 12:37:16
|
Sorry, maybe I didn't make that clear enough.
I was talking about a graph as in "graph theory". Since there is no
meaningful way to label the axes, and, in fact, no reason to show them
at all, the white space I was talking about is just where in your
picture there are the labels. So, looking at your example, what I'd like
to have is what's inside the black rectangle, i.e. a png where the blue
curve touches the top and the bottom of the image.
Arne
Ryan Krauss wrote:
> I don't think this is the default behavior. If I do
>
> t=arange(0,1,0.01)
> y=sin(2*pi*t)
> plot(t,y)
> xlabel('Time (sec)')
> ylabel('Amplitude')
> savefig('test.png')
>
> I get the attached png without the extra border you describe.
>
> Ryan
>
>
> On 4/6/06, Arne.Bittig <arn...@in...> wrote:
>
>>Hi,
>>
>>I am using matplotlib to draw graphs. When I try to save a picture
>>(using savefig; usually as png, but at some point I might need eps files
>>as well), the actual graph comprises less than the central 50% of the
>>image, the rest of the image is wasted space.
>>
>>I already tried figure(frameon = False, facecolor = 'w') and box(False)
>>to get rid of the redundant frame, but apparently it did not help (apart
>>from removing the black frame, obviously, but what I want is to save
>>only what is inside this frame).
>>
>>Any ideas how to do this? If not, does anyone know a python tool that
>>handles pngs and would enable me to crop the picture in a second step?
>>
>>Arne
>>
>>
>>-------------------------------------------------------
>>This SF.Net email is sponsored by xPML, a groundbreaking scripting language
>>that extends applications into web and mobile media. Attend the live webcast
>>and join the prime developer group breaking into this new coding territory!
>>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
>>_______________________________________________
>>Matplotlib-users mailing list
>>Mat...@li...
>>https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>>
>
>
> ------------------------------------------------------------------------
>
|
|
From: Ryan K. <rya...@gm...> - 2006-04-06 12:24:14
|
I don't think this is the default behavior. If I do
t=3Darange(0,1,0.01)
y=3Dsin(2*pi*t)
plot(t,y)
xlabel('Time (sec)')
ylabel('Amplitude')
savefig('test.png')
I get the attached png without the extra border you describe.
Ryan
On 4/6/06, Arne.Bittig <arn...@in...> wrote:
> Hi,
>
> I am using matplotlib to draw graphs. When I try to save a picture
> (using savefig; usually as png, but at some point I might need eps files
> as well), the actual graph comprises less than the central 50% of the
> image, the rest of the image is wasted space.
>
> I already tried figure(frameon =3D False, facecolor =3D 'w') and box(Fals=
e)
> to get rid of the redundant frame, but apparently it did not help (apart
> from removing the black frame, obviously, but what I want is to save
> only what is inside this frame).
>
> Any ideas how to do this? If not, does anyone know a python tool that
> handles pngs and would enable me to crop the picture in a second step?
>
> Arne
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting langua=
ge
> that extends applications into web and mobile media. Attend the live webc=
ast
> and join the prime developer group breaking into this new coding territor=
y!
> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat=
=3D121642
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
|
|
From: Arne.Bittig <arn...@in...> - 2006-04-06 12:14:57
|
Hi, I am using matplotlib to draw graphs. When I try to save a picture (using savefig; usually as png, but at some point I might need eps files as well), the actual graph comprises less than the central 50% of the image, the rest of the image is wasted space. I already tried figure(frameon = False, facecolor = 'w') and box(False) to get rid of the redundant frame, but apparently it did not help (apart from removing the black frame, obviously, but what I want is to save only what is inside this frame). Any ideas how to do this? If not, does anyone know a python tool that handles pngs and would enable me to crop the picture in a second step? Arne |
|
From: Nils W. <nw...@ia...> - 2006-04-06 11:18:08
|
Hi all, Is there a simple way to reject the points outside the parametrized curve ? I mean I would like to use meshgrid for "arbitrary" shaped domains. Any idea would be appreciated. Nils |
|
From: Lionel R. <lro...@li...> - 2006-04-06 09:01:46
|
Hi, sorry to ask for that, but I'm not very familiar with matplotlib svn=20 repository, and after going to sourceforge, I have done a "svn co ..." whic= h=20 copy all matplotlib branch in a local directory. Now, what do I do? What=20 files do I have to compile? Thanks PS : I have done a very little script with scipy to compute wind frequencie= s,=20 but if someone know a dedicated module which do that, I could verify my wor= k. Le Mercredi 05 Avril 2006 07:20, John Hunter a =E9crit=A0: > >>>>> "Eric" =3D=3D Eric Firing <ef...@ha...> writes: > > Eric> Polar axis support is embryonic; I don't see an easy way to > Eric> make a polar bar chart. You could make the bar outlines > Eric> using "plot" on a polar axis. > > Although polar support is patchy, it usually can be made to work. Eg, > it already handles most types of objects (text, lines, collections). > I took a look and noticed that it did not draw it's patches, though it > stores them and handles the transformations properly. This is simply > one line sin of omission (which I've fixed in svn), ie I needed to add > the patches to the list of artists being drawn in PolarAxes.draw. > > Here is a little script that shows how to add "rectangles" to polar > plots (requires svn 2258) > > from matplotlib.patches import Rectangle > from matplotlib.axes import PolarSubplot > import matplotlib.cm as cm > from pylab import figure, show, nx > > dtheta =3D nx.pi/8 > r =3D 1 > theta =3D 0 > > fig =3D figure() > ax =3D PolarSubplot(fig, 111) > fig.add_axes(ax) > N =3D 15 > for i in range(N): > frac =3D float(i)/N > rect =3D Rectangle( (theta, 0), dtheta, r, facecolor=3Dcm.jet(frac)) > ax.add_patch(rect) > theta +=3D dtheta > r*=3D1.05 > ax.autoscale_view() > show() > > Although I don't have experience with windrose plots, this can > probably serve as the foundation. The autoscale view functionality is > clearly off, but it mostly works. One can do the same with arbitrary > patches (eg Polygons), as long as you construct vertices where the > x/width attribute is interpreted as radians, and the y/height > attribute is interpreted as radius. > > JDH > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting langua= ge > that extends applications into web and mobile media. Attend the live > webcast and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat= =3D121642 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users =2D-=20 Lionel Roubeyrie - lro...@li... LIMAIR http://www.limair.asso.fr |
|
From: Eric F. <ef...@ha...> - 2006-04-06 02:10:05
|
Darren Dale wrote: > On Wednesday 05 April 2006 9:30 pm, John Hunter wrote: > >>>>>>>"Eric" == Eric Firing <ef...@ha...> writes: >> >> Eric> Now a question: is there a reason why the argument order for >> Eric> polar plotting is (theta, r)? In thinking about polar >> Eric> coordinates, I always think of them in the reverse order (r, >> Eric> theta), and I think this is the way I have always seen polar >> Eric> coordinates in math and physics books. >> >>I can't remember a reason if there was one, and now that I think about >>it your way probably makes more sense. But is it worth breaking >>compatibility? > > > I think (theta, r) makes more sense for polar plotting. Are we plotting > r(theta) or theta(r)? Darren, John, That dawned on me this morning; for line and point plotting, theta is normally the independent variable, so the present order does make sense. Eric |
|
From: Darren D. <dd...@co...> - 2006-04-06 01:49:20
|
On Wednesday 05 April 2006 9:30 pm, John Hunter wrote: > >>>>> "Eric" == Eric Firing <ef...@ha...> writes: > > Eric> Now a question: is there a reason why the argument order for > Eric> polar plotting is (theta, r)? In thinking about polar > Eric> coordinates, I always think of them in the reverse order (r, > Eric> theta), and I think this is the way I have always seen polar > Eric> coordinates in math and physics books. > > I can't remember a reason if there was one, and now that I think about > it your way probably makes more sense. But is it worth breaking > compatibility? I think (theta, r) makes more sense for polar plotting. Are we plotting r(theta) or theta(r)? |
|
From: John H. <jdh...@ac...> - 2006-04-06 01:41:18
|
>>>>> "Christopher" == Christopher Barker <Chr...@no...> writes:
Christopher> I've enclosed and example for drawing what I call a
Christopher> Vector Plot. I'd be glad to clean this up and
Christopher> contribute it if people think it's generally useful.
Looks interesting. You might want to put it on the wiki. Or submit
it as a patch to the collections module with a demo script for the
examples dir.
Thanks!
JDH
|
|
From: John H. <jdh...@ac...> - 2006-04-06 01:38:18
|
>>>>> "James" == James Coughlan <cou...@sk...> writes:
James> Hi, While the savefig() command works fine, I am unable to
James> get anything to appear when I use show(). Instead, the
James> program hangs (until I hit ctrl-C to exit).
James> Here is the verbose output of a simple script, jnk.py:
James> from pylab import * plot([1,2,3]) show()
James> When run from Cygwin, I get the following (below). Similar
James> output is produced when I try other backends. Any advice?
That's odd; I don't have a lot of experience with cygwin (When
marooned on win32, I use mingw but from a DOS shell). You might
consider using ipython in pysh mode as a win32 shell.
Can you launch a plain vanilla tk app from your cygwin environment?
from Tkinter import *
def press_z(event):
print 'You pressed z'
def press_mouse(event):
print 'You pressed mouse-1'
root = Tk()
frame = Frame(root, width=500,height=500)
frame.bind('z', press_z)
frame.bind('<Button-1>', press_mouse)
frame.pack()
root.mainloop()
|
|
From: John H. <jdh...@ac...> - 2006-04-06 01:33:26
|
>>>>> "Eric" == Eric Firing <ef...@ha...> writes:
Eric> Now a question: is there a reason why the argument order for
Eric> polar plotting is (theta, r)? In thinking about polar
Eric> coordinates, I always think of them in the reverse order (r,
Eric> theta), and I think this is the way I have always seen polar
Eric> coordinates in math and physics books.
I can't remember a reason if there was one, and now that I think about
it your way probably makes more sense. But is it worth breaking
compatibility?
JDH
|