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





Showing results of 292

<< < 1 .. 10 11 12 (Page 12 of 12)
From: Chris B. <Chr...@no...> - 2005年10月03日 16:45:03
Vedpathak, Rameshwari IN BLR SISL wrote:
> Hello,
> 
> As mentioned in the
> site(http://matplotlib.sourceforge.net/matplotlib.pylab.html#-savefig)
> dpi is the resolution in dots per inch.
> When we change dpi the size of the figure gets changed. But we want the
> resolution to be changed and not the figure size.
> 
> Can anyone give more information on 'dpi' parameter.
READ THIS MAILING LIST! AND THE WIKI!
There was just a discussion about this on this list last week, which 
resulted in this post to the Wiki:
http://www.scipy.org/wikis/topical_software/AdjustingImageSize
Please feel free to improve that Wiki page, or if something is unclear, 
or doesn't work, post a question here about it.
-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: Stephen W. <ste...@cs...> - 2005年10月03日 15:27:36
Chris Fonnesbeck wrote:
>I think there is more to it than that. There are all sorts of
>dependencies on either Numeric or numarray that need to be addressed.
>Try installing matplotlib without either Numeric or numarray -- I dont
>think you will get very far.
> 
>
Ah, good point. It would be good to begin work on this, but IMHO the 
new scipy_core has a bit to go before it is ready for prime time. 
Someone just pointed out on the numpy list, for example, that it 
presently does not include masked arrays, a capability I use often and 
support for which was painstakingly added to Matplotlib over the last 
year or so.
From: Ted D. <ted...@jp...> - 2005年10月03日 15:02:57
Rameshwari,
I think everyone else has given you enough pointers on increasing the 
resolution of your plots, I just thought I'd chime in w/ more info on JPEG.
JPEG is lossy compression format - it throws away information. PNG is a 
loss-less compression format - it does not throw away information. Since 
both formats start from the same raster image, you cannot increase your 
picture quality by changing formats, only by changing the original 
raster. In particular, JPEG is a terrible format for plots. It was 
designed to compress pictures and it cannot deal well with rapid changes in 
color in a image (like a black line on a white background).
Most JPEG compressed plots will show artifacts around all of the lines so 
instead of seeing the pixels (for a black line on a white background) like 
this:
 white, white, white, black, white, white, white
In a JPEG image, you would see:
 white, grey, grey, black, grey, grey, white
As others have already indicates, you can increase your DPI through various 
means or switch to PS (which uses vector based drawing commands instead of 
a set of pixels).
Ted
At 05:38 AM 10/3/2005, Vedpathak, Rameshwari IN BLR SISL wrote:
>Hello,
>
>We are using matplotlib version 0.8 (matplotlib-0.80.win32-py2.2.exe).
>
>The plots are saved as .png, but we feel the quality of this picture is 
>not so good. (not good resolution supported).
>Is there anyway by which we can improve the picture quality? Say like by 
>using .jpeg.
>
>We tried to save the plot as .jpeg as mentioned on the site 
>(<http://matplotlib.sourceforge.net/matplotlib.pylab.html#-savefig>http://matplotlib.sourceforge.net/matplotlib.pylab.html#-savefig) 
>, but we get error "IOError: Do not know know to handle extension *.jpeg...."
>Does it mean that matplotlib 0.8 does not support jpeg format?
>
>If anyone has an idea about this then please do let us know.
>
>Thanks in advance
>
>Best Regards,
>Rameshwari
Ted Drain Jet Propulsion Laboratory ted...@jp... 
From: Kilian H. <hag...@eg...> - 2005年10月03日 14:36:38
Hi there,
I have some data whose x values supposed to be centered around 0. So I'd like 
to position the y-axis at x=0, but centered in the plot (e.g. -1<=x<=1).
I'm a matplotlib newbie (from what I've seen so far it rocks btw), but as it 
stands it seems impossible to do this with the axes() command. On the goals 
page I came across "Detachable axis from main axes box and customizable 
tickline locations" which seems to aim for functionality which could do this.
So, my question is: Can I center my y-axis in current versions of matplotlib 
(am currently using 0.80-r1 on gentoo) and if so, how? If not, what's the 
implementation status of this new feature?
Thanks.
-- 
Kilian Hagemann
Climate Systems Analysis Group
University of Cape Town
Republic of South Africa
Tel(w): ++27 21 650 2748
From: Kilian H. <ki...@la...> - 2005年10月03日 14:36:14
Hi there,
I have some data whose x values supposed to be centered around 0. So I'd like 
to position the y-axis at x=0, but centered in the plot (e.g. -1<=x<=1).
I'm a matplotlib newbie (from what I've seen so far it rocks btw), but as it 
stands it seems impossible to do this with the axes() command. On the goals 
page I came across "Detachable axis from main axes box and customizable 
tickline locations" which seems to aim for functionality which could do this.
So, my question is: Can I center my y-axis in current versions of matplotlib 
(am currently using 0.80-r1 on gentoo) and if so, how? If not, what's the 
implementation status of this new feature?
Thanks.
-- 
Kilian Hagemann
5 Myburgh Close
Ruyteplaats Estate
7806 Hout Bay
Tel(w): (021) 650 2748
Tel(m): 082 768 9830
Tel(h): (021) 685 7206
From: Sascha <sas...@gm...> - 2005年10月03日 13:23:55
Try changing the resolution to a value of 300 or 600 dpi. This should =
give you very high quality figures when using the Agg backend. The =
standard is 80 which is ok for screen display but for printing purposes =
you should use a higher value. See =
http://matplotlib.sourceforge.net/matplotlib.pylab.html#-figure (dpi =
keyword argument).
 ----- Original Message -----=20
 From: Vedpathak, Rameshwari IN BLR SISL=20
 To: mat...@li...=20
 Sent: Monday, October 03, 2005 2:38 PM
 Subject: [Matplotlib-users] picture quality of the figures
 Hello,
 We are using matplotlib version 0.8 (matplotlib-0.80.win32-py2.2.exe).
 The plots are saved as .png, but we feel the quality of this picture =
is not so good. (not good resolution supported).
 Is there anyway by which we can improve the picture quality? Say like =
by using .jpeg.=20
 We tried to save the plot as .jpeg as mentioned on the site =
(http://matplotlib.sourceforge.net/matplotlib.pylab.html#-savefig) , =
but we get error "IOError: Do not know know to handle extension =
*.jpeg...."
 Does it mean that matplotlib 0.8 does not support jpeg format?
 If anyone has an idea about this then please do let us know.
 Thanks in advance
 Best Regards,
 Rameshwari
From: John H. <jdh...@ac...> - 2005年10月03日 13:16:33
>>>>> "Vedpathak," == Vedpathak, Rameshwari IN BLR SISL <Ram...@si...> writes:
 Vedpathak> Hello, As mentioned in the
 Vedpathak> site(http://matplotlib.sourceforge.net/matplotlib.pylab.html#-savefig)
 Vedpathak> dpi is the resolution in dots per inch. When we
 Vedpathak> change dpi the size of the figure gets changed. But we
 Vedpathak> want the resolution to be changed and not the figure
 Vedpathak> size.
 
 Vedpathak> Can anyone give more information on 'dpi' parameter.
 
The figure size in pixels is width*dpi by height*dpi. png is a raster
format which means it stores the information in a pixel buffer. You
cannot get higher resolution without changing the figure size in
pixels. If you want a higher resolution picture, set the dpi to a
higher number.
Alternatively, as others have suggested, use a vector output like PS
or SVG.
JPEG will not give you a better picture quality -- usually it will be
worse for lines and such.
JDH
 
From: Favre-Nicolin V. <vi...@us...> - 2005年10月03日 12:48:31
> We are using matplotlib version 0.8 (matplotlib-0.80.win32-py2.2.exe).
>
> The plots are saved as .png, but we feel the quality of this picture is
> not so good. (not good resolution supported).
> Is there anyway by which we can improve the picture quality? Say like by
> using .jpeg.
 Jpeg is will not be better- it is also a compressed format.
 A better quality can be obtained with postscript (*.ps) or encapsulated=20
postscript (*.eps)
> We tried to save the plot as .jpeg as mentioned on the site
> (http://matplotlib.sourceforge.net/matplotlib.pylab.html#-savefig) ,
> but we get error "IOError: Do not know know to handle extension
> *.jpeg...."
> Does it mean that matplotlib 0.8 does not support jpeg format?
 Try with .jpg, not .jpeg
	Vincent
=2D-=20
Vincent Favre-Nicolin
Universit=E9 Joseph Fourier
http://v.favrenicolin.free.fr
ObjCryst & Fox : http://objcryst.sourceforge.net
From: Vedpathak, R. IN B. S. <Ram...@si...> - 2005年10月03日 12:47:30
Hello,
=20
As mentioned in the
site(http://matplotlib.sourceforge.net/matplotlib.pylab.html#-savefig)
dpi is the resolution in dots per inch.
When we change dpi the size of the figure gets changed. But we want the
resolution to be changed and not the figure size.
=20
Can anyone give more information on 'dpi' parameter.
=20
Thanks in advance
=20
Best Regards,
Rameshwari
=20
=20
From: Vedpathak, R. IN B. S. <Ram...@si...> - 2005年10月03日 12:39:32
Hello,
=20
We are using matplotlib version 0.8 (matplotlib-0.80.win32-py2.2.exe).
=20
The plots are saved as .png, but we feel the quality of this picture is
not so good. (not good resolution supported).
Is there anyway by which we can improve the picture quality? Say like by
using .jpeg.=20
=20
We tried to save the plot as .jpeg as mentioned on the site
(http://matplotlib.sourceforge.net/matplotlib.pylab.html#-savefig) ,
but we get error "IOError: Do not know know to handle extension
*.jpeg...."
Does it mean that matplotlib 0.8 does not support jpeg format?
=20
If anyone has an idea about this then please do let us know.
=20
Thanks in advance
=20
Best Regards,
Rameshwari
From: Chris F. <fon...@gm...> - 2005年10月03日 03:44:04
> Date: 2005年10月01日 18:11:00 -0700
> From: Stephen Walton <ste...@cs...>
> CC: mat...@li...
> Subject: Re: [Matplotlib-users] matplotlib and scipy_core
>
> Chris Fonnesbeck wrote:
>
> >Any idea how easy it will be to use matplotlib with scipy_core?
> >
> At the moment it looks trivial. I have matplotlib 0.84 and "new scipy"
> installed and did:
>
> ipython -pylab
> import scipy as S
> x=3DS.arange(10)
> plot(x,x**2)
>
> and got a plot.
>
I think there is more to it than that. There are all sorts of
dependencies on either Numeric or numarray that need to be addressed.
Try installing matplotlib without either Numeric or numarray -- I dont
think you will get very far.
C.
From: Ted D. <ted...@jp...> - 2005年10月03日 03:09:04
Attachments: polarbug.png
FYI: Here's a sample script for the bug report (if I understand what you're 
trying to do).
Add the following line to the polar_demo.py right before show:
ax.set_rmax( .8 )
And then you get the attached picture. It looks like the polar axis 
doesn't respond to changes in the maximum radial value to display (even 
though the axis implements the set_rmax method just for that).
Ted
At 12:38 PM 9/30/2005, Stephen Boulet wrote:
>
>
>Thanks for the response.
>
>I have a plot that has a maximum magnitude of about 0.2. I'd like to set the
>radius of the plot circle to 1.
>
>Stephen
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by:
>Power Architecture Resource Center: Free content, downloads, discussions,
>and more. http://solutions.newsforge.com/ibmarch.tmpl
>_______________________________________________
>Matplotlib-users mailing list
>Mat...@li...
>https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Stephen W. <ste...@cs...> - 2005年10月02日 23:33:44
Chris Fonnesbeck wrote:
>Any idea how easy it will be to use matplotlib with scipy_core?
>
At the moment it looks trivial. I have matplotlib 0.84 and "new scipy" 
installed and did:
ipython -pylab
import scipy as S
x=S.arange(10)
plot(x,x**2)
and got a plot.
From: Chris B. <Chr...@no...> - 2005年10月02日 20:51:37
One more thought:
John Hunter wrote:
> However, AFAIK, MPL does not have a way to set
> Chris> the pixel size directly.
> 
> It does now. In 0.84 I added a canvas.resize(w,h) in pixels. So far
> this has only been implemented in GTK*.
What about with savefig()? As long as we can set ppi there, it would be 
nice to set a pixel size of the Figure as well.
-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: Stephen B. <st...@th...> - 2005年10月02日 20:46:15
 
 > >>>>> "Stephen" == Stephen Boulet <stephen@th...> writes:
 > 
 > Stephen> Is there a way to set the size of a polar plot (similar
 > Stephen> to the axis argument to the plot command for a
 > Stephen> rectangular plot)? Thanks.
 > 
 > Hmmm. I do not believe the plot command takes an axis argument.
 > 
 > Do you mean the "axes" and "subplot" commands which are used to set
 > the size of the Axes that contains the plot? If so, just pass 
 > polar=True to them, as in
 > 
 > subplot(111, polar=True)
 > axes([0.2, 0.2, 0.7, 0.7], polar=True)
 > 
 > I am updating the axes doc string.
 > 
 > API users, note that the same applies to fig.add_axes and
 > fig.add_subplot.
 > 
 > JDH
Thanks for the response.
I have a plot that has a maximum magnitude of about 0.2. I'd like to set the
radius of the plot circle to 1. 
Stephen
From: Chris B. <Chr...@no...> - 2005年10月02日 16:21:17
Chris Barker wrote:
> I think I'll update my demo and maybe post it to the Wiki.
Done.
http://www.scipy.org/wikis/topical_software/AdjustingImageSize
-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...
Hello, I am having trouble because the transparency doesn't work when
you specify a marker color and type:
This transparency works:
Plot([1,2,3,4], alpha=0.1)
This transparency doesn't work:
Plot([1,2,3,4], 'ro', alpha=0.1)
I know this bug has already been posted. I was wondering if there is a
way to get around it? ... or was wondering when it might be fixed? 
Thanks again for the help!
Jeff
1 message has been excluded from this view by a project administrator.

Showing results of 292

<< < 1 .. 10 11 12 (Page 12 of 12)
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 によって変換されたページ (->オリジナル) /