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
(3) |
2
(21) |
3
(16) |
4
(4) |
5
(7) |
|
6
(1) |
7
(2) |
8
(12) |
9
(23) |
10
(6) |
11
(2) |
12
(1) |
|
13
(1) |
14
(4) |
15
(14) |
16
(7) |
17
(15) |
18
(12) |
19
(5) |
|
20
|
21
(1) |
22
(7) |
23
(7) |
24
(6) |
25
(5) |
26
(9) |
|
27
(6) |
28
(4) |
29
(4) |
30
(27) |
|
|
|
|
From: <rom...@ya...> - 2005-11-17 11:17:25
|
Hello, When mpl plots equal values, it produces a line as expected. But if the values are equal C +/- epson, with epson <= 0.001 where C is a constant then the vertical range is presented as (for example) x1e-3-1.999 which is not at all clear. Here's an example (png attached): #! /usr/bin/python from pylab import * x = [0.0,1.0,2.0,3.0,4.0,5.0] y= [-2.0,-2.001,-1.9999,-2.0,-2.0,-2.0] plot(x,y) show() Is there a way to limit the maximum default zoom? Although the example uses pylab I'm really using mpl OO interface (on a linux machine). Thanks, João Luís Silva |
|
From: Jon P. <Jon...@no...> - 2005-11-17 10:58:12
|
Hi there. Has anyone tried using pylab with python24 and numarray (1.4.1)? The following should obviously plot a line 0-10 #-------- import numarray, pylab pylab.plot(numarray.arange(10)) pylab.show() #-------- It does on my system with old python2.3.3 (Numeric or numarray) and with python2.4.1 using Numeric. With the specific combo of py2.4.1 and numarray it gives a flat line of zeros. The problem is the same on all versions of pylab i've tried including the latest 0.85 anyone got a fix? Jon -- Jon Peirce Nottingham University +44 (0)115 8467176 (tel) +44 (0)115 9515324 (fax) http://www.peirce.org.uk/ This message has been checked for viruses but the contents of an attachment may still contain software viruses, which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. |
|
From: G. S. <g....@po...> - 2005-11-17 09:31:51
|
Many thanks for the suggestion. I will try to use the quoted toolkit and packages and then we'll let you know. Best, Nico Il giorno mar, 15/11/2005 alle 09.22 -0800, Chris Barker ha scritto: > > G. Sica wrote: > > One further question. > > I'm trying to construct a particular category of graphs. > > Have selected a GUI toolkit yet? If wxPython is an option, check out OGL > and FloatCanvas. On e or the other of these may be useful. I'd be glad > to answer any questions you have about FloatCanvas. > > -Chris > > > |
|
From: Chris B. <Chr...@no...> - 2005-11-17 00:53:38
|
Sorry I can't help you with your problem, but I can offer an alternate solution: Rather than make the font really big, you could make the figure small, then scale the whole thing up, so that everything is bigger. This could work great for scalable back-ends like EPS. If you need a PNG, you should be able to accomplish it by manipulating the size and the dpi settings. See: http://www.scipy.org/wikis/topical_software/AdjustingImageSize For more info about this. -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no... |
|
From: John H. <jdh...@ac...> - 2005-11-17 00:43:08
|
>>>>> "Chris" == Chris Barker <Chr...@no...> writes:
Chris> The reason is that when pylab has been imported, it is too
Chris> late to change back ends
Mostly. There is an experimental pylab command switch_backends, but
this is not expected to work switching between GUI backends. It could
be used, for example, in an interactive GUI session to make postscript
the default backend when generating a bunch of figures in batch, and
then to switch back to the GUI backend.
JDH
|
|
From: John H. <jdh...@ac...> - 2005-11-17 00:41:38
|
>>>>> "Ryan" == Ryan Krauss <rya...@gm...> writes:
Ryan> I know correctly understand your problem, but I don't know
Ryan> how to fix it. It seems you need a pad setting for the
Ryan> distance from the axis label to the tick mark labels, but I
Ryan> don't see one in the rc file.
There is an Axis property LABELPAD that can be set -- it has not been
exposed to rc yet but should be. Something like
ax.yaxis.LABELPAD = 5
should work for now. Let us know ....
JDH
|
|
From: Chris B. <Chr...@no...> - 2005-11-17 00:26:45
|
Samuel GARCIA wrote:
> I try text() function of pylab that does'nt exist in matplotlib.
> I think it's to much work for me to rewrite functions that are in pylab and not
> in matplotlib.
It may well be too much work for you, but I hope, as a group, we will
some day, get ALL of the pylab functionality into a nice OO interface in
matplotlib. But I'm not one to talk, I haven't contributed anything yet.
> I am a newbie and I don't care to not write programs in pure pytonic style.
> from pylab import * is good for me.
It is a bad habit to get into however. I beleive that strongly. That
being said, pylab was written with this in mind, so go for it.
> I tryed in my code :
> from pylab import *
> rcParams['backends']= 'GTKAgg'
do this instead:
import matplotlib
matplolib.use('GTKAgg')
from pylab import *
# or better: import pylab
The reason is that when pylab has been imported, it is too late to
change back ends
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
|
|
From: Ryan K. <rya...@gm...> - 2005-11-16 20:08:49
|
I know correctly understand your problem, but I don't know how to fix
it. It seems you need a pad setting for the distance from the axis
label to the tick mark labels, but I don't see one in the rc file.
Anyone else?
Ryan
On 11/16/05, Christian David Ott <chr...@gm...> wrote:
> Hi Ryan,
>
> On 11/16/05, Ryan Krauss <rya...@gm...> wrote:
> > I am confused as to what the problem is. Are you saying that your
> > axis label is running into you tick label? Can you post a little
> > piece of a png showing the problem you are trying to solve?
>
> sorry, I don't know how to post a png to the mailinglist. Do I just
> have to attach it to my response? Anyway, the below code generates a
> plot that reproduces my problem. The y-axis label is to close to the
> y-axis tick labels (though not overlapping). I would like to shift the
> y-axis label further away from the y-axis tick labels.
>
> - Christian
>
> -------------
>
> #!/usr/bin/python
> from pylab import *
> from matplotlib import rcParams
>
> plot([1,2,3,4], [1,4,9,16], 'ro')
> xlabel("something",size=3D30)
> ylabel("something else",size=3D30)
> xlabels =3D getp(gca(), 'xticklabels')
> setp(xlabels, size=3D25)
> ylabels =3D getp(gca(), 'yticklabels')
> setp(ylabels, size=3D25)
> savefig("testplot.eps")
>
|
|
From: Christian D. O. <chr...@gm...> - 2005-11-16 17:41:54
|
Hi Ryan,
On 11/16/05, Ryan Krauss <rya...@gm...> wrote:
> I am confused as to what the problem is. Are you saying that your
> axis label is running into you tick label? Can you post a little
> piece of a png showing the problem you are trying to solve?
sorry, I don't know how to post a png to the mailinglist. Do I just
have to attach it to my response? Anyway, the below code generates a
plot that reproduces my problem. The y-axis label is to close to the
y-axis tick labels (though not overlapping). I would like to shift the
y-axis label further away from the y-axis tick labels.
- Christian
-------------
#!/usr/bin/python
from pylab import *
from matplotlib import rcParams
plot([1,2,3,4], [1,4,9,16], 'ro')
xlabel("something",size=3D30)
ylabel("something else",size=3D30)
xlabels =3D getp(gca(), 'xticklabels')
setp(xlabels, size=3D25)
ylabels =3D getp(gca(), 'yticklabels')
setp(ylabels, size=3D25)
savefig("testplot.eps")
|
|
From: Ryan K. <rya...@gm...> - 2005-11-16 17:31:43
|
I am confused as to what the problem is. Are you saying that your axis label is running into you tick label? Can you post a little piece of a png showing the problem you are trying to solve? Ryan On 11/16/05, Christian David Ott <chr...@gm...> wrote: > Hi Eric, > > On 11/16/05, Eric Firing <ef...@ha...> wrote: > > > Insert > > > > rcParams['tick.major.pad'] =3D 12 > > > > as the third line in your script, or change the value in your > > matplotlibrc file. > > thanks. But this merely changes the distance between ticks and tick > labels. The distance between tick labels and axis label stays > constant. To be more precise about what I need (my first e-mail was a > bit ambigous...sorry): I need to change the distance between tick > labels and the axis label. > > Thanks. > > - Christian > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > Register for a JBoss Training Course. Free Certification Exam > for All Training Attendees Through End of 2005. For more info visit: > http://ads.osdn.com/?ad_idv28&alloc_id=16845&opclick > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: Christian D. O. <chr...@gm...> - 2005-11-16 16:52:57
|
Hi Eric, On 11/16/05, Eric Firing <ef...@ha...> wrote: > Insert > > rcParams['tick.major.pad'] =3D 12 > > as the third line in your script, or change the value in your > matplotlibrc file. thanks. But this merely changes the distance between ticks and tick labels. The distance between tick labels and axis label stays constant. To be more precise about what I need (my first e-mail was a bit ambigous...sorry): I need to change the distance between tick labels and the axis label. Thanks. - Christian |
|
From: Samuel G. <sg...@ol...> - 2005-11-16 16:19:05
|
<!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">
Yes I understand the solution I try it, it work but the problem comes
with when I try text() function of pylab that does'nt exist in
matplotlib.<br>
I think it's to much work for me to rewrite functions that are in pylab
and not in matplotlib.<br>
I am a newbie and I don't care to not write programs in pure pytonic
style.<br>
from pylab import * is good for me.<br>
<br>
I solve my first problem by changing in matplotlibrc :<br>
backends : GTKAgg<br>
the mix of TKAgg and GTK (my main windows) did not worked in fact.<br>
<br>
But I don't want to change the matplotlibrc for each user so I want to
do this in the code.<br>
Also in ipython in GTKAgg doesn't work for me.<br>
I tryed in my code :<br>
from pylab import *<br>
rcParams['backends']= 'GTKAgg'<br>
but it failed<br>
<br>
thanks<br>
<br>
sam<br>
<br>
Alan G Isaac a écrit :
<blockquote
cite="mid...@am..."
type="cite">
<pre wrap="">On Tue, 15 Nov 2005, Samuel CIA apparently wrote:
</pre>
<blockquote type="cite">
<pre wrap="">matplotlib seems to be more heavy to use.
</pre>
</blockquote>
<pre wrap=""><!---->
I think you mean "harder".
</pre>
<blockquote type="cite">
<pre wrap="">I don't want figure embeded my gtk main window.
I just a gtk main windows with 3 buttons: plot_this, plot_that, plot_all.
And new figure appairs when I click on it.
It is for users that absolutly does'nt want to deal with script.
I spend my time plotting figure and pylab seems to be easy, quick and elegant.
If I can plot a result in 1 line, I prefer.
So in this context, is pylab a bad choise ?
</pre>
</blockquote>
<pre wrap=""><!---->
Pylab is for interactive use. See
<a class="moz-txt-link-freetext" href="http://matplotlib.sourceforge.net/interactive.html">http://matplotlib.sourceforge.net/interactive.html</a>
for a discussion of the issues.
So if you can create your figures ahead of time and just
load them, that's fine. But if you want to create them
on the fly, you should use Matplotlib's OO functionality.
Maybe the function below will be a bit helpful for
getting started. (Caution: it's a novices effort.)
Alan Isaac
def show_tkagg(figure,title=''):
"""Create a new matplotlib figure manager instance.
"""
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
#_focus = windowing.FocusManager()
window = Tk.Tk()
window.wm_title(title)
canvas = FigureCanvasTkAgg(figure, master=window)
canvas.draw()
canvas.get_tk_widget().pack()
Tk.mainloop()
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
<a class="moz-txt-link-freetext" href="http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click">http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click</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>
<pre class="moz-signature" cols="72">--
Samuel GARCIA
CNRS - UMR5020
Universite Claude Bernard LYON 1
Laboratoire des Neurosciences et Systemes Sensoriels
50, avenue Tony Garnier
69366 LYON Cedex 07
04 37 28 74 64
</pre>
</body>
</html>
|
|
From: Eric F. <ef...@ha...> - 2005-11-16 16:15:33
|
Christian,
Insert
rcParams['tick.major.pad'] = 12
as the third line in your script, or change the value in your
matplotlibrc file.
Eric
> For talks I like to prepare eps figures which I embed in my latex-based
> slides. For slides, huge font sizes are a must, hence I like to use
> large fonts for tick mark labels and axis labels. My problem: For the
> axis labels, matplolib (or the PS backend?) is apparently not
> adjusting (or rather: under-adjusting) the distance between axis and
> axis label.
>
> Is there a way to adjust the distance between an axis and its label?
> If not, then where in the code is the distance calculated, scaled and
> set? I have dug through the code, but could not find it due
> to lack of object-oriented programming experience, I guess.
>
> Here is an example of what I mean. The x-axis labels comes out
> sort of okay, but the y-axis label is to close to the y axis.
>
> #!/usr/bin/python
> from pylab import *
> from matplotlib import rcParams
>
> plot([1,2,3,4], [1,4,9,16], 'ro')
> xlabel("something",size=30)
> ylabel("something else",size=30)
> xlabels = getp(gca(), 'xticklabels')
> setp(xlabels, size=25)
> ylabels = getp(gca(), 'yticklabels')
> setp(ylabels, size=25)
> savefig("testplot.eps")
|
|
From: Christian D. O. <chr...@gm...> - 2005-11-16 09:57:46
|
Hi,
I am a new user of matplotlib (0.82; python 2.3.5). So far I have
used supermongo (sic!) to produce figures for physics journal articles
and talks. I am trying to get up to speed with matplotlib to do the
same kind of plots with an open source package.
For talks I like to prepare eps figures which I embed in my latex-based
slides. For slides, huge font sizes are a must, hence I like to use
large fonts for tick mark labels and axis labels. My problem: For the
axis labels, matplolib (or the PS backend?) is apparently not
adjusting (or rather: under-adjusting) the distance between axis and
axis label.
Is there a way to adjust the distance between an axis and its label?
If not, then where in the code is the distance calculated, scaled and
set? I have dug through the code, but could not find it due
to lack of object-oriented programming experience, I guess.
Here is an example of what I mean. The x-axis labels comes out
sort of okay, but the y-axis label is to close to the y axis.
#!/usr/bin/python
from pylab import *
from matplotlib import rcParams
plot([1,2,3,4], [1,4,9,16], 'ro')
xlabel("something",size=3D30)
ylabel("something else",size=3D30)
xlabels =3D getp(gca(), 'xticklabels')
setp(xlabels, size=3D25)
ylabels =3D getp(gca(), 'yticklabels')
setp(ylabels, size=3D25)
savefig("testplot.eps")
Note that playing around with 'axes' did not help - it has
no influence on the distance between labels and axes.
Help & comments much appreciated! Thanks!
- Christian
|
|
From: Jeff P. <jef...@se...> - 2005-11-15 19:13:52
|
Hello, is there a function like set_ydata() for fill? I am able to animate with the standard p1 = plot() and p1.set_ydata(), but I don't know how to do this with fill(). Thanks! Jeff _____ Jeffrey Thomas Peery SeaMetrics, Inc. Mechanical Engineer Jef...@Se... 253.872.0285 (fax) 253.872.0284 (phone) _____ |
|
From: Andrew S. <str...@as...> - 2005-11-15 17:32:08
|
You can use a combination of axes() to define where you want the image and imshow() to define the image. Use frame_on=False with axes(). You can pass a PIL image directly to imshow(), and that way you won't have to use imread, (although you'd have to use Image.open()). Gerald John M. Manipon wrote: > Hi, > > Sorry...newbie question: > > Is there a simple way to add logo images to the plots produced > by matplotlib? I've attached a sample plot created in IDL > which shows the logo positioning I would like to achieve. > I wasn't able to find any examples that had logos (though > there was a logo.py in the examples tarball that was missing > the .dat file). Would I basically have to read in the > pngs with imread, resize them, do some voodoo with the figure > layout, and finally imshow them? > > Thanks, > > Gerald |
|
From: Chris B. <Chr...@no...> - 2005-11-15 17:23:06
|
G. Sica wrote:
> One further question.
> I'm trying to construct a particular category of graphs.
Have selected a GUI toolkit yet? If wxPython is an option, check out OGL
and FloatCanvas. On e or the other of these may be useful. I'd be glad
to answer any questions you have about FloatCanvas.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
|
|
From: Martin K. <mku...@es...> - 2005-11-15 16:00:04
|
Dear all, an attempt to update from matplotlib-0.71 to matplotlib-0.84 on a solaris 5.8 (GCC-3.3.2, Python 2.4.2) machine failed. The error message is: In file included from src/_na_backend_agg.cpp:24: src/swig_runtime.h: In function `int SWIG_Python_ConvertPtr(PyObject*, void**, swig_type_info*, int)': src/swig_runtime.h:1128: error: `Py_False' undeclared (first use this function) src/swig_runtime.h:1128: error: (Each undeclared identifier is reported only once for each function it appears in.) src/swig_runtime.h: In function `PyObject* SWIG_Python_NewPointerObj(void*, swig_type_info*, int)': src/swig_runtime.h:1236: error: `Py_True' undeclared (first use this function) error: command 'gcc' failed with exit status 1 The aim was just to install the 'agg' and the 'Tkagg' backends, the problems seems to arise in the agg2.3 section (matplotlib-0.71 had agg2.2). I browsed through previous list entries, but this problem seems to be 'new'. Any ideas? Thanks for the help, Martin |
|
From: Alan G I. <ai...@am...> - 2005-11-15 14:34:00
|
On Tue, 15 Nov 2005, Samuel CIA apparently wrote: > matplotlib seems to be more heavy to use. I think you mean "harder". > I don't want figure embeded my gtk main window. > I just a gtk main windows with 3 buttons: plot_this, plot_that, plot_all. > And new figure appairs when I click on it. > It is for users that absolutly does'nt want to deal with script. > I spend my time plotting figure and pylab seems to be easy, quick and elegant. > If I can plot a result in 1 line, I prefer. > So in this context, is pylab a bad choise ? Pylab is for interactive use. See http://matplotlib.sourceforge.net/interactive.html for a discussion of the issues. So if you can create your figures ahead of time and just load them, that's fine. But if you want to create them on the fly, you should use Matplotlib's OO functionality. Maybe the function below will be a bit helpful for getting started. (Caution: it's a novices effort.) Alan Isaac def show_tkagg(figure,title=''): """Create a new matplotlib figure manager instance. """ from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg #_focus = windowing.FocusManager() window = Tk.Tk() window.wm_title(title) canvas = FigureCanvasTkAgg(figure, master=window) canvas.draw() canvas.get_tk_widget().pack() Tk.mainloop() |
|
From: G. S. <g....@po...> - 2005-11-15 13:38:57
|
One further question.
I'm trying to construct a particular category of graphs.
I need to establish not only edges between nodes, but also edges between
edges and nodes.
.-----.
(edge between nodes)
|
.-------|
|
(edge between a node and an edge)
Do you know how can I represent this graphs through python, in
particular using network? Is it possible? Many thanks.
All the best,
nico
|
|
From: John G. <jn...@eu...> - 2005-11-15 13:20:52
|
This might be what you are looking for: https://networkx.lanl.gov/Drawing.html G. Sica wrote: >I'm trying to develop a software in python permitting to construct >graphs. I've one question. Actually this is the "starting point" >question. Do you know how to represent in a graphical way the arrows and >the links between arrows? Furthermore, I will be grateful if you can >inform me about the existence of similar softwares. >Many thanks. >Best, >nico > > > >------------------------------------------------------- >This SF.Net email is sponsored by the JBoss Inc. Get Certified Today >Register for a JBoss Training Course. Free Certification Exam >for All Training Attendees Through End of 2005. For more info visit: >http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click >_______________________________________________ >Matplotlib-users mailing list >Mat...@li... >https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
|
From: G. S. <g....@po...> - 2005-11-15 13:08:32
|
I'm trying to develop a software in python permitting to construct graphs. I've one question. Actually this is the "starting point" question. Do you know how to represent in a graphical way the arrows and the links between arrows? Furthermore, I will be grateful if you can inform me about the existence of similar softwares. Many thanks. Best, nico |
|
From: Samuel G. <sg...@ol...> - 2005-11-15 12:54:21
|
<!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">
<br>
I read the doc of pythonic_matplotlib.py and I think I am the case
where I should use 'from pylab import *'<br>
no ?<br>
<br>
I don't want to manage each win, each toolbar and each canvas.<br>
<br>
I want a gtk interface with no canvas and many independents figures
started by the main window<br>
<br>
sam<br>
<br>
<br>
John Hunter a écrit :
<blockquote cite="mid...@pe..."
type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">"Samuel" == Samuel GARCIA <a class="moz-txt-link-rfc2396E" href="mailto:sg...@ol..."><sg...@ol...></a> writes:
</pre>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<pre wrap=""><!---->
Samuel> I have a problem : I wrote a little GUI with glade, python
Samuel> and pygtk. This GUI produce one or many figures to plot
Samuel> results, depend on what the user click. To plot a new
Samuel> figure, I use from pylab import * an figure(). My GUI is
Samuel> a one windows GUI.
Samuel> The problem is : when 1 figure + the main window is open
Samuel> and I close this figure, the main window also close !
You should not mix pylab with GUI programming. You must use OO
matplotlib instead <a class="moz-txt-link-freetext" href="http://matplotlib.sf.net/faq.html#OO">http://matplotlib.sf.net/faq.html#OO</a>. pylab will
try and manage the figure windows for you, which is causing your
problem.
See examples/embedding_in_gtk*.py and examples/mpl_with_glade.py
Samuel> When my main scipt is run with the ipython console with
Samuel> 'run my_gui.py' , it works. But with 'python my_gui.py',
Samuel> it doesn't work.
This is a quirk resulting from the fact that in "interactive" mode,
which ipython sets, destroying the last window managed by pylab
doesn't result in a main quit
Samuel> What is trick ?
See above :-)
JDH
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
<a class="moz-txt-link-freetext" href="http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click">http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click</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>
<pre class="moz-signature" cols="72">--
Samuel GARCIA
CNRS - UMR5020
Universite Claude Bernard LYON 1
Laboratoire des Neurosciences et Systemes Sensoriels
50, avenue Tony Garnier
69366 LYON Cedex 07
04 37 28 74 64
</pre>
</body>
</html>
|
|
From: Samuel G. <sg...@ol...> - 2005-11-15 09:48:27
|
<!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">
matplotlib seems to be more heavy to use.<br>
<br>
I don't want figure embeded my gtk main window.<br>
<br>
I just a gtk main windows with 3 buttons: plot_this, plot_that,
plot_all.<br>
And new figure appairs when I click on it.<br>
It is for users that absolutly does'nt want to deal with script.<br>
<br>
I spend my time plotting figure and pylab seems to be easy, quick and
elegant.<br>
If I can plot a result in 1 line, I prefer.<br>
<br>
So in this context, is pylab a bad choise ?<br>
<br>
<br>
<br>
John Hunter a écrit :
<blockquote cite="mid...@pe..."
type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">"Samuel" == Samuel GARCIA <a class="moz-txt-link-rfc2396E" href="mailto:sg...@ol..."><sg...@ol...></a> writes:
</pre>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<pre wrap=""><!---->
Samuel> I have a problem : I wrote a little GUI with glade, python
Samuel> and pygtk. This GUI produce one or many figures to plot
Samuel> results, depend on what the user click. To plot a new
Samuel> figure, I use from pylab import * an figure(). My GUI is
Samuel> a one windows GUI.
Samuel> The problem is : when 1 figure + the main window is open
Samuel> and I close this figure, the main window also close !
You should not mix pylab with GUI programming. You must use OO
matplotlib instead <a class="moz-txt-link-freetext" href="http://matplotlib.sf.net/faq.html#OO">http://matplotlib.sf.net/faq.html#OO</a>. pylab will
try and manage the figure windows for you, which is causing your
problem.
See examples/embedding_in_gtk*.py and examples/mpl_with_glade.py
Samuel> When my main scipt is run with the ipython console with
Samuel> 'run my_gui.py' , it works. But with 'python my_gui.py',
Samuel> it doesn't work.
This is a quirk resulting from the fact that in "interactive" mode,
which ipython sets, destroying the last window managed by pylab
doesn't result in a main quit
Samuel> What is trick ?
See above :-)
JDH
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
<a class="moz-txt-link-freetext" href="http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click">http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click</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>
<pre class="moz-signature" cols="72">--
Samuel GARCIA
CNRS - UMR5020
Universite Claude Bernard LYON 1
Laboratoire des Neurosciences et Systemes Sensoriels
50, avenue Tony Garnier
69366 LYON Cedex 07
04 37 28 74 64
</pre>
</body>
</html>
|
|
From: Gerald J. M. M. <Ger...@jp...> - 2005-11-15 07:19:12
|
Hi, Sorry...newbie question: Is there a simple way to add logo images to the plots produced by matplotlib? I've attached a sample plot created in IDL which shows the logo positioning I would like to achieve. I wasn't able to find any examples that had logos (though there was a logo.py in the examples tarball that was missing the .dat file). Would I basically have to read in the pngs with imread, resize them, do some voodoo with the figure layout, and finally imshow them? Thanks, Gerald |