SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

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)



Showing 14 results of 14

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 2005年11月15日, 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 &eacute;crit&nbsp;:
<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...">&lt;sg...@ol...&gt;</a> writes:
 </pre>
 </blockquote>
 </blockquote>
 </blockquote>
 </blockquote>
 </blockquote>
 <pre wrap=""><!---->
 Samuel&gt; I have a problem : I wrote a little GUI with glade, python
 Samuel&gt; and pygtk. This GUI produce one or many figures to plot
 Samuel&gt; results, depend on what the user click. To plot a new
 Samuel&gt; figure, I use from pylab import * an figure(). My GUI is
 Samuel&gt; a one windows GUI.
 Samuel&gt; The problem is : when 1 figure + the main window is open
 Samuel&gt; 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&gt; When my main scipt is run with the ipython console with
 Samuel&gt; 'run my_gui.py' , it works. But with 'python my_gui.py',
 Samuel&gt; 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&gt; 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&amp;alloc_id=16845&amp;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 &eacute;crit&nbsp;:
<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...">&lt;sg...@ol...&gt;</a> writes:
 </pre>
 </blockquote>
 </blockquote>
 </blockquote>
 </blockquote>
 </blockquote>
 <pre wrap=""><!---->
 Samuel&gt; I have a problem : I wrote a little GUI with glade, python
 Samuel&gt; and pygtk. This GUI produce one or many figures to plot
 Samuel&gt; results, depend on what the user click. To plot a new
 Samuel&gt; figure, I use from pylab import * an figure(). My GUI is
 Samuel&gt; a one windows GUI.
 Samuel&gt; The problem is : when 1 figure + the main window is open
 Samuel&gt; 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&gt; When my main scipt is run with the ipython console with
 Samuel&gt; 'run my_gui.py' , it works. But with 'python my_gui.py',
 Samuel&gt; 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&gt; 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&amp;alloc_id=16845&amp;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
Attachments: swhk_jmean.png
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: Gerald J. M. M. <Ger...@jp...> - 2005年11月15日 07:05:34
Attachments: swhk_jmean.png
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: John H. <jdh...@ac...> - 2005年11月15日 02:21:00
>>>>> "Humufr" == Humufr <hu...@ya...> writes:
 Humufr> Hello, I would like if there are an easy way
 Humufr> to define new type points (like a star or other
 Humufr> symbols). I would like to know if there are something
 Humufr> similar to this function who comes from supermongo.
 Humufr> http://www.astro.princeton.edu/~rhl/sm/sm.html#SYN57
The best way now is just to add it to lines.py and submit a patch.
With a little work, we could make this extensible, especially along
the lines of recent work my Martin Richter.
JDH
From: John H. <jdh...@ac...> - 2005年11月15日 02:20:16
>>>>> "Samuel" == Samuel GARCIA <sg...@ol...> writes:
 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 http://matplotlib.sf.net/faq.html#OO. 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

Showing 14 results of 14

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /