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
(2)
2
(13)
3
(13)
4
(11)
5
(15)
6
(16)
7
(1)
8
(2)
9
(1)
10
(16)
11
(19)
12
(8)
13
(20)
14
(9)
15
(2)
16
(9)
17
(29)
18
(14)
19
(13)
20
(10)
21
(1)
22
(3)
23
(4)
24
(26)
25
(11)
26
(11)
27
(8)
28
(4)
29
(2)
30
(10)
31
(17)




Showing results of 315

<< < 1 .. 3 4 5 6 7 .. 13 > >> (Page 5 of 13)
From: John H. <jdh...@ac...> - 2005年05月20日 16:11:37
>>>>> "John" == John Gill <jn...@eu...> writes:
 John> Attached is a patch to the axes code that adds an extra
 John> paramter, linewidths, to the scatter method.
 John> My motivation for this wa I didn't want the black borders
 John> around all the points in my plot.
This is a common wish -- just as a warning, using a linewidth of 0
does not work across backends; for example, I think it fails on PS.
The standard way to do it is to set the edgecolors to be the same as
the facecolors. To support this, I also added a boolean kwarg,
faceted=True and when False, sets the edge colors to be the same as
the facecolor. I also added your linewidth changes.
axes.py revision 1.103 or later ...
Thanks!
JDH
From: John G. <jn...@eu...> - 2005年05月20日 10:21:43
Attachments: legend.patch
Attached is a patch to collections.py and legend.py to make the 
auto-legend stuff smarter.
A couple of caveats.
The new code doesn't makes as much use of C++ -- there might be 
performance issues for plots with large numbers of points, although I 
haven't encountered any.
I don't think any of my tests include plots with LineCollections, so 
there is a reasonable chance that code in _auto_legend_data has not been 
exercised.
Other than that, it seems to do the trick.
John
From: John G. <jn...@eu...> - 2005年05月20日 09:02:44
Attachments: scatter.patch
Attached is a patch to the axes code that adds an extra paramter, 
linewidths, to the scatter method.
My motivation for this wa I didn't want the black borders around all the 
points in my plot.
This allows you to do:
scatter(y, x, c=z, linewidths=(0.0,))
and get some really pretty plots, similar to using pcolor/imshow, but 
works when your points are not neatly aligned in a grid.
John
From: John H. <jdh...@ac...> - 2005年05月20日 02:39:59
>>>>> "Ryan" == Ryan Krauss <rya...@co...> writes:
 Ryan> I have a question about tick formatting. I have a semilogx
 Ryan> plot and if I resize the xticks using locs , labels = xticks
 Ryan> () set(labels , size=ticksize) I like the size and the font,
 Ryan> but the exponents (10^0) run into the axis.
The reasons for are complicated and have to do with an optimization to
make exponential ticking faster, and I won't go into them right now.
Suffice it to say that it is a bug, but there may be a workaround
Do any of the suggestions here help?
 http://matplotlib.sourceforge.net/faq.html#TEXTOVERLAP
Note you can also control the "pad" in points of the offset of the
ticks from the xaxis
 ticks = ax.xaxis.get_major_ticks()
 for tick in ticks:
 tick.set_pad(6)
or if you prefer
 set(ax.xaxis.get_major_ticks(), pad=6)
The default pad is controlled by an rc parameter
 tick.major.pad : 4 # distance to major tick label in points
 tick.minor.pad : 4 # distance to the minor tick label in points
See http://matplotlib.sf.net/.matplotlibrc
JDH
From: Ryan K. <rya...@co...> - 2005年05月20日 02:00:37
I have a question about tick formatting. I have a semilogx plot and if 
I resize the xticks using
locs , labels = xticks ()
set(labels , size=ticksize)
I like the size and the font, but the exponents (10^0) run into the axis.
If I size them using
xticks([1,10],[r'10ドル^0$',r'10ドル^1$'],size=ticksize,family='sans=serif')
I can get the position right (i.e. not running into the axis), but I 
have to set the ticks manually and I can't seem to get away from a math 
font I don't really like.
Is there a better way to do this?
Thanks,
Ryan
From: Fernando P. <Fer...@co...> - 2005年05月20日 01:14:30
Ryan Krauss wrote:
> Looking at the code, it seems like SystemExit is raised any time the png doesn't 
> already exist.
> I am running these lines inside ipython, if that matters. Something about my 
> system doesn't like the SystemExit being raised.
yes, it's an annoyance of ipython whenever you run anything with a SystemExit 
in it. The .14 release of ipython has a new -e switch to ignore exit calls, 
so you don't get all that noise (use 'run -e fooscript').
If you feel adventurous, I put yesterday a release candidate here:
http://ipython.scipy.org/dist/testing/
Let me know of any problems you encounter though, I'd like this to really fix 
all known glitches for a while so I can concentrate only on new development.
Best,
f
From: Ryan K. <rya...@co...> - 2005年05月20日 00:41:31
<!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">
Thanks again John.&nbsp; The newest texmanager.py worked great.<br>
<br>
John Hunter wrote:
<blockquote cite="mid...@pe..."
 type="cite">
 <blockquote type="cite">
 <blockquote type="cite">
 <blockquote type="cite">
 <blockquote type="cite">
 <blockquote type="cite">
 <pre wrap="">"Ryan" == Ryan Krauss <a class="moz-txt-link-rfc2396E" href="mailto:gt...@ma...">&lt;gt...@ma...&gt;</a> writes:
 </pre>
 </blockquote>
 </blockquote>
 </blockquote>
 </blockquote>
 </blockquote>
 <pre wrap=""><!---->
 Ryan&gt; I would like to use Matplotlib for automatically generating
 Ryan&gt; reports in HTML. I would like to do this without having to
 Ryan&gt; use latex first and the convert from there (it would be much
 Ryan&gt; faster to make my own HTML directly and I don't need lots of
 Ryan&gt; complicated features yet). Has anyone already done this who
 Ryan&gt; is willing to share code with me?
 Ryan&gt; One thing I need to do that would make this work really well
 Ryan&gt; is to generate little PNG's of symbols and formulas to use
 Ryan&gt; in line with text in the HTML (sort of how LaTeX2HTML
 Ryan&gt; handles using $\theta$ in line. Is there a way to use the
 Ryan&gt; TeX rendering system used on figures to make little PNG's
 Ryan&gt; with just TeX expressions on them (i.e. theta.png)?
TeX/LaTeX plus dvipng is really the right way to solve this problem.
Coincidentally, I have been working to incorporate tex into
backend_agg via dvipng (and into backend_ps via psfrag) and matplotlib
has a tex manager class
So if you don't mind installing tex and dvipng (on my Ubuntu system is
is simply 
 &gt; sudo apt-get install dvipng
then you can use the matplotlib texmanager class to handle the system
calls, cacheing results it's seen before and so on
 &gt;&gt;&gt; from matplotlib.texmanager import TexManager
 &gt;&gt;&gt; m = TexManager()
 &gt;&gt;&gt; pngfile = m.make_png("\TeX\ is Number $e^{-i\pi}$!", dpi=100)
 &gt;&gt;&gt; print pngfile
 /home/jdhunter/.tex.cache/5b723d2ea8d0f15af94ec585aece1582_100.png
You need to make sure you have texmanager revision 1.2 from CVS (or
later). 
Of course if you are on a platform where TeX is not easily installed,
this won't help much. In that case, you can use matplotlib to create
the math images for you, but I would use the mathtext parser directly
rather than the whole figure / axes api.
Let me know if you still want/need to use mpl for this and I'll give
you some pointers.
JDH
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
<a class="moz-txt-link-freetext" href="http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click">http://ads.osdn.com/?ad_id=7412&amp;alloc_id=16344&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>
</body>
</html>
From: Ryan K. <rya...@co...> - 2005年05月19日 23:28:26
<!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">
<div class="moz-text-html" lang="x-western"> Thanks for the quick and
helpful response John.&nbsp; I seem to more or less
up and running.&nbsp; Two things though.&nbsp; The first time I run the commands
in your e-mail I get an error, but the files seems to be created
correctly.<br>
In [7]: m = TexManager()<br>
<br>
In [8]: pngfile = m.make_png("\TeX\ is Number $e^{-i\pi}$!", dpi=100)<br>
This is TeX, Version 3.14159 (Web2C 7.4.5)<br>
(/home/ryan/.tex.cache/5b723d2ea8d0f15af94ec585aece1582.tex [1] )<br>
Output written on 5b723d2ea8d0f15af94ec585aece1582.dvi (1 page, 384
bytes).<br>
Transcript written on 5b723d2ea8d0f15af94ec585aece1582.log.<br>
This is dvipng 1.5 Copyright 2002-2005 Jan-&#65533;e Larsson<br>
[1]<br>
---------------------------------------------------------------------------<br>
exceptions.SystemExit&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Traceback (most
recent call last)<br>
<br>
/home/ryan/research/varying_amp_05_09_05/&lt;console&gt;<br>
<br>
/usr/lib/python2.3/site-packages/matplotlib/texmanager.py in
make_png(self, tex, dpi, force)<br>
&nbsp;&nbsp;&nbsp;&nbsp; 69&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if force or not os.path.exists(pngfile):<br>
&nbsp;&nbsp;&nbsp;&nbsp; 70&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; os.system(command)<br>
---&gt; 71&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; raise SystemExit<br>
&nbsp;&nbsp;&nbsp;&nbsp; 72&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return pngfile<br>
&nbsp;&nbsp;&nbsp;&nbsp; 73<br>
<br>
SystemExit:<br>
Use Ctrl-D (i.e. EOF) to exit. Use %Exit or %Quit to exit without
confirmation.<br>
<br>
In [9]: pngfile = m.make_png("\TeX\ is Number $e^{-i\pi}$!", dpi=100)<br>
<br>
In [10]:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
<br>
<br>
<br>
Looking at the code, it seems like SystemExit is raised any time the
png doesn't already exist.<br>
I am running these lines inside ipython, if that matters.&nbsp; Something
about my system doesn't like the SystemExit being raised.<br>
<br>
My second question is this.&nbsp; I am running Linux here at home and the
install of dvipng went really smooth.&nbsp; Is there a windows port of
dvipng?&nbsp; I may need to use windows at school.<br>
<br>
Thanks,<br>
<br>
Ryan<br>
<br>
John Hunter wrote:
<blockquote cite="mid...@pe..."
 type="cite">
 <blockquote type="cite">
 <blockquote type="cite">
 <blockquote type="cite">
 <blockquote type="cite">
 <blockquote type="cite">
 <pre wrap="">"Ryan" == Ryan Krauss <a
 class="moz-txt-link-rfc2396E" href="mailto:gt...@ma...">&lt;gt...@ma...&gt;</a> writes:
 </pre>
 </blockquote>
 </blockquote>
 </blockquote>
 </blockquote>
 </blockquote>
 <pre wrap=""><!---->
 Ryan&gt; I would like to use Matplotlib for automatically generating
 Ryan&gt; reports in HTML. I would like to do this without having to
 Ryan&gt; use latex first and the convert from there (it would be much
 Ryan&gt; faster to make my own HTML directly and I don't need lots of
 Ryan&gt; complicated features yet). Has anyone already done this who
 Ryan&gt; is willing to share code with me?
 Ryan&gt; One thing I need to do that would make this work really well
 Ryan&gt; is to generate little PNG's of symbols and formulas to use
 Ryan&gt; in line with text in the HTML (sort of how LaTeX2HTML
 Ryan&gt; handles using $\theta$ in line. Is there a way to use the
 Ryan&gt; TeX rendering system used on figures to make little PNG's
 Ryan&gt; with just TeX expressions on them (i.e. theta.png)?
TeX/LaTeX plus dvipng is really the right way to solve this problem.
Coincidentally, I have been working to incorporate tex into
backend_agg via dvipng (and into backend_ps via psfrag) and matplotlib
has a tex manager class
So if you don't mind installing tex and dvipng (on my Ubuntu system is
is simply 
 &gt; sudo apt-get install dvipng
then you can use the matplotlib texmanager class to handle the system
calls, cacheing results it's seen before and so on
 &gt;&gt;&gt; from matplotlib.texmanager import TexManager
 &gt;&gt;&gt; m = TexManager()
 &gt;&gt;&gt; pngfile = m.make_png("\TeX\ is Number $e^{-i\pi}$!", dpi=100)
 &gt;&gt;&gt; print pngfile
 /home/jdhunter/.tex.cache/5b723d2ea8d0f15af94ec585aece1582_100.png
You need to make sure you have texmanager revision 1.2 from CVS (or
later). 
Of course if you are on a platform where TeX is not easily installed,
this won't help much. In that case, you can use matplotlib to create
the math images for you, but I would use the mathtext parser directly
rather than the whole figure / axes api.
Let me know if you still want/need to use mpl for this and I'll give
you some pointers.
JDH
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
<a class="moz-txt-link-freetext"
 href="http://ads.osdn.com/?ad_id=7412&amp;alloc_id=16344&amp;op=click">http://ads.osdn.com/?ad_id=7412&amp;alloc_id=16344&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>
</div>
</body>
</html>
From: John H. <jdh...@ac...> - 2005年05月19日 22:14:08
>>>>> "Ryan" == Ryan Krauss <gt...@ma...> writes:
 Ryan> I would like to use Matplotlib for automatically generating
 Ryan> reports in HTML. I would like to do this without having to
 Ryan> use latex first and the convert from there (it would be much
 Ryan> faster to make my own HTML directly and I don't need lots of
 Ryan> complicated features yet). Has anyone already done this who
 Ryan> is willing to share code with me?
 Ryan> One thing I need to do that would make this work really well
 Ryan> is to generate little PNG's of symbols and formulas to use
 Ryan> in line with text in the HTML (sort of how LaTeX2HTML
 Ryan> handles using $\theta$ in line. Is there a way to use the
 Ryan> TeX rendering system used on figures to make little PNG's
 Ryan> with just TeX expressions on them (i.e. theta.png)?
TeX/LaTeX plus dvipng is really the right way to solve this problem.
Coincidentally, I have been working to incorporate tex into
backend_agg via dvipng (and into backend_ps via psfrag) and matplotlib
has a tex manager class
So if you don't mind installing tex and dvipng (on my Ubuntu system is
is simply 
 > sudo apt-get install dvipng
then you can use the matplotlib texmanager class to handle the system
calls, cacheing results it's seen before and so on
 >>> from matplotlib.texmanager import TexManager
 >>> m = TexManager()
 >>> pngfile = m.make_png("\TeX\ is Number $e^{-i\pi}$!", dpi=100)
 >>> print pngfile
 /home/jdhunter/.tex.cache/5b723d2ea8d0f15af94ec585aece1582_100.png
You need to make sure you have texmanager revision 1.2 from CVS (or
later). 
Of course if you are on a platform where TeX is not easily installed,
this won't help much. In that case, you can use matplotlib to create
the math images for you, but I would use the mathtext parser directly
rather than the whole figure / axes api.
Let me know if you still want/need to use mpl for this and I'll give
you some pointers.
JDH
From: Ryan K. <rya...@co...> - 2005年05月19日 21:58:55
<!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">
<div class="moz-text-flowed"
 style="font-family: -moz-fixed; font-size: 12px;" lang="x-western">I
would like to use Matplotlib for automatically generating reports in
HTML.&nbsp; I would like to do this without having to use latex first and
the convert from there (it would be much faster to make&nbsp; my own HTML
directly and I don't need lots of complicated features yet).&nbsp; Has
anyone already done this who is willing to share code with me?
<br>
<br>
One thing I need to do that would make this work really well is to
generate little PNG's of symbols and formulas to use in line with text
in the HTML (sort of how LaTeX2HTML handles using $\theta$ in line.&nbsp; Is
there a way to use the TeX rendering system used on figures to make
little PNG's with just TeX expressions on them (i.e. theta.png)?
<br>
<br>
Thanks,
<br>
<br>
Ryan
<br>
<br>
</div>
</body>
</html>
From: Ryan K. <gt...@ma...> - 2005年05月19日 21:55:42
I would like to use Matplotlib for automatically generating reports in 
HTML. I would like to do this without having to use latex first and the 
convert from there (it would be much faster to make my own HTML 
directly and I don't need lots of complicated features yet). Has anyone 
already done this who is willing to share code with me?
One thing I need to do that would make this work really well is to 
generate little PNG's of symbols and formulas to use in line with text 
in the HTML (sort of how LaTeX2HTML handles using $\theta$ in line. Is 
there a way to use the TeX rendering system used on figures to make 
little PNG's with just TeX expressions on them (i.e. theta.png)?
Thanks,
Ryan
From: Travis B. <td...@fa...> - 2005年05月19日 21:44:20
I use Irfanview for Win32 image stuff.
You can easily batch convert a ton of images to most any format.
I like png, but if you need a gif Irfanview can make that easily enough.
Travis
On 2005年5月19日 12:23:57 -0600, "Fernando Perez"
<Fer...@co...> said:
> Stephanie Wilson wrote:
> > Is there a way to represent graphs from matplotlib in the GIF orPDF form?
> 
> matplotlib doesn't directly generate gif/pdf, but it does generate png (a
> good 
> gif replacement) and eps. In a *nix environment, you can use the convert 
> utility (command line) to make a gif out of a pdf if you really need a
> gif, 
> and either convert also for png->pdf, or epstopdf for eps->pdf.
> 
> I'm sure that similar utilities exist for win32 (you don't specify your 
> platform), but convert is part of ImageMagick, which you can install for
> win32 
> if you need it.
> 
> Regards,
> 
> f
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by Oracle Space Sweepstakes
> Want to be the first software developer in space?
> Enter now for the Oracle Space Sweepstakes!
> http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
-- 
 Travis Brady
 td...@fa...
From: Chris B. <Chr...@no...> - 2005年05月19日 21:32:49
Fernando Perez wrote:
> I'd also suggest removing from all example code 'from pylab import *' 
> statements. 
Here here! (hear hear?). I'd really like to see all those "import *"'s 
go away.
One way to get there is to add much of the functionality of pylab to the 
OO interface. I really wish I had the time to write an OO-pylab, I think 
it would be really great, even for interactive use.
-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: Matt N. <new...@ca...> - 2005年05月19日 20:39:35
Jeff -- Post a small script that breaks and let us know versions 
of python, matplotlib, and wxPython and which OS your using.
--Matt
From: Jeff P. <jef...@se...> - 2005年05月19日 20:33:03
Hello, I am running a wxpython application and I am using matplotlib to
plot some data. It seems that when I plot a graph, then close it and
plot another graph my program crashes. The error is "This application
has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information." 
 
Do I need to close a graph in a special way before I open another one?
Any suggestions? Thanks.
 
Jeff
From: Jeff W. <js...@fa...> - 2005年05月19日 18:37:08
Stephanie Wilson wrote:
>Is there a way to represent graphs from matplotlib in the GIF orPDF form?
>
>Thanks
>Stephanie Wilson
>
> 
>
On a mac, you can save the plot as eps, then open it with Preview.app 
("open foo.eps" on the command line, or just double click on it in the 
finder). You can then save it as pdf from Preview.
-Jeff
-- 
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/CDC R/CDC1 Email : Jef...@no...
325 Broadway Office : Skaggs Research Cntr 1D-124
Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
From: Fernando P. <Fer...@co...> - 2005年05月19日 18:31:12
Fernando Perez wrote:
> Stephanie Wilson wrote:
> 
>>Is there a way to represent graphs from matplotlib in the GIF orPDF form?
> 
> 
> matplotlib doesn't directly generate gif/pdf, but it does generate png (a good 
> gif replacement) and eps. In a *nix environment, you can use the convert 
> utility (command line) to make a gif out of a pdf if you really need a gif, 
 ^^^
 READ: png
sorry for the typo (you can also do it from a pdf, but it's more common to do 
'convert foo.png foo.gif', and that's what I was trying to say)
f
From: Fernando P. <Fer...@co...> - 2005年05月19日 18:24:10
Stephanie Wilson wrote:
> Is there a way to represent graphs from matplotlib in the GIF orPDF form?
matplotlib doesn't directly generate gif/pdf, but it does generate png (a good 
gif replacement) and eps. In a *nix environment, you can use the convert 
utility (command line) to make a gif out of a pdf if you really need a gif, 
and either convert also for png->pdf, or epstopdf for eps->pdf.
I'm sure that similar utilities exist for win32 (you don't specify your 
platform), but convert is part of ImageMagick, which you can install for win32 
if you need it.
Regards,
f
From: Stephanie W. <Ste...@co...> - 2005年05月19日 17:41:21
Is there a way to represent graphs from matplotlib in the GIF orPDF form?
Thanks
Stephanie Wilson
From: Igor C. <igo...@gm...> - 2005年05月19日 12:38:03
John:
We are using Python and Matplotlib in our current autonomous vehicle
entry ( http://pegasusbridge.blogspot.com/ ) into the DARPA Grand
Challenge race and this for several reasons:
- Python is close to pseudo-code and the learning curve for newcomers
into the team as well as veterans is very smooth.
- Python is providing glue and libraries for all kinds of needs
expressed within the project (so far)
- Matplotlib is helping us debug IMU, GPS other sensors readings while
collecting data. We used Octave but people want to "stay" within
Python to see the data near real time. There is something to say also
about the fact that with Matplotlib, you don't have to "learn" a new
language even though learning Matlab is trivial for instance.
- for the moment, Python is fast enough on Windows but we do not feel
we would be losing too much sleep having to switch to a different OS
or having to create modules that are specifically faster in C. Using
the Windows OS helps in debugging the programs since our team is very
distributed geographically and they generally use Windows on their
laptops.
We don't know how far we will go but with a team so small we could not
have made it without Python this far.
Igor.
--=20
Igor Carron, Ph.D.
Pegasus Team, DARPA Grand Challenge 2005: http://pegasusbridge.blogspot.com=
/
From: Humufr <hu...@ya...> - 2005年05月18日 20:17:28
Derrick Snowden wrote:
> John Hunter wrote:
>
>>>>>>> "Derrick" == Derrick Snowden <Der...@no...> writes:
>>>>>>> 
>>>>>>
>> Derrick> This brings me to my last question. Has anyone out there
>> Derrick> had any problems with the sourceforge cvs?
>> Or you might ask "has anyone not had problems...." :-)
>>
>> I uploaded a snapshot of my local tree to
>>
>> http://matplotlib.sf.net/matplotlib-0.81alpha.tar.gz
>>
>> JDH
>>
>> 
>>
> Thanks, this seems to have fixed all the problems when using Numeric. 
> The following is the error I get when using numarray...NOTE that the 
> error occurs when I close the plot. The plot is generated on the screen.
>
> [snowden@doris Python]$ python p_hb_example.py --numarray
> loaded rc file /home/snowden/.matplotlibrc
> matplotlib version 0.81alpha
> verbose.level helpful
> interactive is False
> platform is linux2
> numerix numarray 1.3.1
> font search path ['/usr/share/matplotlib']
> loaded ttfcache file /home/snowden/.ttffont.cache
> matplotlib data path /usr/share/matplotlib
> backend GTKAgg version 2.2.0
> /usr/lib/python2.3/site-packages/numarray/numarraycore.py:368: 
> UserWarning: __array__ returned non-NumArray instance
> _warnings.warn("__array__ returned non-NumArray instance")
> Traceback (most recent call last):
> File "p_hb_example.py", line 60, in ?
> pylab.plot(dtnum,v3)
> File "/usr/lib/python2.3/site-packages/matplotlib/pylab.py", line 
> 1945, in plot
> ret = gca().plot(*args, **kwargs)
> File "/usr/lib/python2.3/site-packages/matplotlib/axes.py", line 
> 2490, in plot
> for line in self._get_lines(*args, **kwargs):
> File "/usr/lib/python2.3/site-packages/matplotlib/axes.py", line 272, 
> in _grab_next_args
> yield self._plot_2_args(remaining, **kwargs)
> File "/usr/lib/python2.3/site-packages/matplotlib/axes.py", line 222, 
> in _plot_2_args
> assert(iterable(y))
> AssertionError
I have a problem after the change made by John to pass to agg23. I have 
to delete the build directory and the matplotlib directory in 
site-package and the cvs version is working fine. In other hand I have a 
segmentation fault when I tried to use mpl.
my 2 cents,
 N.
From: Benyang T. <ben...@jp...> - 2005年05月18日 19:46:53
I am current using Matplotlib in several projects, including a project of 
autonomous rough terrain vehicles, a project predicting California coastal 
winds, and a project that organizes earth science data from several NASA 
satellites. Matplotlib is very flexible and versatile, and has a well 
designed foundation. It is the best graphics package I have used in my 20 
years of research career. John Hunter and his army of volunteers did an 
excellent job developing Matplotlib in such a short time. But the software 
needs to be developed further to expand the capabilities. Money invested on 
developing Matplotlib will be well spent, and eventually will save the 
funding agencies because the scientists will not have to buy the expensive 
commercial softwares like Matlab and IDL.
I have heard several very positive comments on Matplotlib from our JPL Python 
community.
On Wednesday 18 May 2005 10:44 am, John Hunter wrote:
> If you are using python for high performance or scientific computing,
> could I ask you to send me a blurb (one or two sentences) on what you
> are using it for and if you have any publications or references
> related to this work (the refs don't have to be specifically about the
> python stuff) please include them (extra points for bibtex).
>
> I am writing some grant text justifying python in scientific computing
> and would like to have a range of examples across disciplines to
> provide.
>
> If I could get these today or tomorrow that would be very helpful!
> Please send these to me off list.
>
> Thanks!
> JDH
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by Oracle Space Sweepstakes
> Want to be the first software developer in space?
> Enter now for the Oracle Space Sweepstakes!
> http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
-- 
Benyang Tang, Ph.D.
tel: (818)354-0327, email: benyang.tang _at_ jpl.nasa.gov
Machine Learning Systems Group ---- http://ml.jpl.nasa.gov
M/S 126-347, Jet Propulsion Laboratory
4800 Oak Grove Drive, Pasadena, CA 91109, USA
From: Derrick S. <Der...@no...> - 2005年05月18日 19:10:54
John Hunter wrote:
>>>>>>"Derrick" == Derrick Snowden <Der...@no...> writes:
>>>>>> 
>>>>>>
> Derrick> This brings me to my last question. Has anyone out there
> Derrick> had any problems with the sourceforge cvs? 
>
>Or you might ask "has anyone not had problems...." :-)
>
>I uploaded a snapshot of my local tree to
>
> http://matplotlib.sf.net/matplotlib-0.81alpha.tar.gz
>
>JDH
>
> 
>
Thanks, this seems to have fixed all the problems when using Numeric. 
The following is the error I get when using numarray...NOTE that the 
error occurs when I close the plot. The plot is generated on the screen.
[snowden@doris Python]$ python p_hb_example.py --numarray
loaded rc file /home/snowden/.matplotlibrc
matplotlib version 0.81alpha
verbose.level helpful
interactive is False
platform is linux2
numerix numarray 1.3.1
font search path ['/usr/share/matplotlib']
loaded ttfcache file /home/snowden/.ttffont.cache
matplotlib data path /usr/share/matplotlib
backend GTKAgg version 2.2.0
/usr/lib/python2.3/site-packages/numarray/numarraycore.py:368: 
UserWarning: __array__ returned non-NumArray instance
 _warnings.warn("__array__ returned non-NumArray instance")
Traceback (most recent call last):
 File "p_hb_example.py", line 60, in ?
 pylab.plot(dtnum,v3)
 File "/usr/lib/python2.3/site-packages/matplotlib/pylab.py", line 
1945, in plot
 ret = gca().plot(*args, **kwargs)
 File "/usr/lib/python2.3/site-packages/matplotlib/axes.py", line 2490, 
in plot
 for line in self._get_lines(*args, **kwargs):
 File "/usr/lib/python2.3/site-packages/matplotlib/axes.py", line 272, 
in _grab_next_args
 yield self._plot_2_args(remaining, **kwargs)
 File "/usr/lib/python2.3/site-packages/matplotlib/axes.py", line 222, 
in _plot_2_args
 assert(iterable(y))
AssertionError
From: John H. <jdh...@ac...> - 2005年05月18日 17:45:32
If you are using python for high performance or scientific computing,
could I ask you to send me a blurb (one or two sentences) on what you
are using it for and if you have any publications or references
related to this work (the refs don't have to be specifically about the
python stuff) please include them (extra points for bibtex).
I am writing some grant text justifying python in scientific computing
and would like to have a range of examples across disciplines to
provide. 
If I could get these today or tomorrow that would be very helpful!
Please send these to me off list.
Thanks!
JDH
From: John H. <jdh...@ac...> - 2005年05月18日 17:37:56
>>>>> "Derrick" == Derrick Snowden <Der...@no...> writes:
 Derrick> This brings me to my last question. Has anyone out there
 Derrick> had any problems with the sourceforge cvs? 
Or you might ask "has anyone not had problems...." :-)
I uploaded a snapshot of my local tree to
 http://matplotlib.sf.net/matplotlib-0.81alpha.tar.gz
JDH
5 messages has been excluded from this view by a project administrator.

Showing results of 315

<< < 1 .. 3 4 5 6 7 .. 13 > >> (Page 5 of 13)
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 によって変換されたページ (->オリジナル) /