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



Showing 10 results of 10

From: bevan j. <be...@gm...> - 2008年04月14日 22:29:39
Hello,
Firstly I would like to thank the developers of the matplotlib for providing
an excellant tool.
I have managed to get some code up and running. Due to the nature of the
data I would like to have two legends
I would like them positioned within the plot on the 'upper left' and 'upper
centre'. However, when I create a second legend it replaces
the existing one. I have used a figlegend to create the 2nd legend but then
the upper centre is of course outside the plot area.
I hope this makes sense and somebody has a suggesstion for how to acheive
what i want.
Thanks
From: Fernando A. <ab...@gm...> - 2008年04月14日 21:46:31
Dear sourceforge community,
I come from a Matlab environment so I am used to plotting matrices that
contain NaN elements. This is very useful because in some cases one doesn't
have data for the entire matrix. If one tries plotting the data, the NaN
elements won't be plotted.
Is there a similar element type or workaround I could use to get the same
effect?
In the following simple example:
a = [1,2,3,4,5]
b = [6,2,NaN,1,9]
mpylab.plot(a,b)
I would like to get two lines with a gap in between them at element [2].
Thanks for any help you can offer.
Regards,
Fernando
From: Adrian Price-W. <pri...@ma...> - 2008年04月14日 20:29:00
Hello -
I haven't been able to find any useful documentation about semilogy 
and exactly how i can implement it into a Histogram. I'm simply trying 
to create a histogram of a lot of data with a y-axis scaled 
logarithmically. Specifically I am creating a pixel histogram of a 
FITS image...for anyone who cares. Here is the code i've used to 
create the histogram:
#! /usr/bin/env python
import Image
import pyfits
import numpy
import numarray
from pylab import *
#Open each image
Gim = pyfits.open('Gimage.fits')
#Create arrays of the data from each image
Garray = Gim[0].data
onedarray = []
xsize,ysize = Garray.shape
for x in xrange(xsize):
 for y in xrange(ysize):
 if Garray[x,y] >= -0.02:
 if Garray[x,y] <= 0.6:
 onedarray.append(Garray[x,y])
g_hist = hist(onedarray,bins=100)
axis([-0.05,0.65,1,90000])
xlabel('Pixel Number')
ylabel('How Many of Each Pixel')
savefig('test_histPANDA.png')
show()
thanks!!
-Adrian
From: Joshua L. <dis...@gm...> - 2008年04月14日 19:34:14
Try "from pylab import *" before using the plot function.
Josh
On Tue, Apr 8, 2008 at 4:28 PM, Nathanael Berestycki
<nbe...@gm...> wrote:
> Hi all,
>
> I am trying to setup matplotbib on my computer (which is unfortunately
> running on windows) and for some reason, it doesn't seem to be working. I
> believe I have downloaded everything I should have downloaded (Python 2.5,
> numpy, ipython, lpng1226, zlib, gtk, and I'm probably forgetting a few other
> things that I did download), yet when I open Ipython and plot the
> recommended example
>
> plot([1,2,3])
>
> all I get is the error "NameError: name 'plot' is not defined".
> Possibly, the things I downloaded did not go to the right directories. Does
> anybody know if this matters, and if yes, where should the files be located?
> Part of the problem also is that my computer skills are low, so I don't
> understand many of the terms used (such as "backends", for instance - what
> is it?).
>
> I would really appreciate it if somebody could tell me what I should try to
> do or point me to a step-by-step guide ! (I would really, really love to be
> able to plot data I generate on Python...)
>
> Many thanks in advance for your help,
> Nathanael
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save 100ドル.
> Use priority code J8TL2D2.
>
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
From: Alexandre Z. <ale...@gm...> - 2008年04月14日 18:02:16
Nathanael,
I don't use windows, but on linux I have to load matplotlib first and after
type show()
from pylab import *
plot([1,2,3])
show()
have you done it?
Alexandre
2008年4月8日, Nathanael Berestycki <nbe...@gm...>:
>
> Hi all,
>
> I am trying to setup matplotbib on my computer (which is unfortunately
> running on windows) and for some reason, it doesn't seem to be working. I
> believe I have downloaded everything I should have downloaded (Python 2.5,
> numpy, ipython, lpng1226, zlib, gtk, and I'm probably forgetting a few other
> things that I did download), yet when I open Ipython and plot the
> recommended example
>
> plot([1,2,3])
>
> all I get is the error "NameError: name 'plot' is not defined".
> Possibly, the things I downloaded did not go to the right directories.
> Does anybody know if this matters, and if yes, where should the files be
> located? Part of the problem also is that my computer skills are low, so I
> don't understand many of the terms used (such as "backends", for instance -
> what is it?).
>
> I would really appreciate it if somebody could tell me what I should try
> to do or point me to a step-by-step guide ! (I would really, really love to
> be able to plot data I generate on Python...)
>
> Many thanks in advance for your help,
> Nathanael
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save 100ドル.
> Use priority code J8TL2D2.
>
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
From: Michael D. <md...@st...> - 2008年04月14日 14:37:17
Perhaps I misunderstand the question. How is this question specific to 
matplotlib and not remote login in general?
If you need an SSH client for Windows, I use putty, and it works pretty 
well. If you need X11 remoting or something, I've used Cygwin, and I 
know others have had success with X-Ming. Does that answer your question?
Mike
sa6113 wrote:
> No one to help me ??
>
>
> sa6113 wrote:
> 
>> what options we have for performing ssh (actually scp) on Windows and
>> Linux from Python.
>> Note that Linux has builtin ssh/scp, hence, pexpect should be a simple
>> option, but to the best
>> of my knowledge Windows does not anything. I would like to see a list of
>> options on this. 
>>
>> Would you please help me ?
>>
>>
>> 
>
> 
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: sa6113 <s.p...@gm...> - 2008年04月14日 07:04:50
No one to help me ??
sa6113 wrote:
> 
> what options we have for performing ssh (actually scp) on Windows and
> Linux from Python.
> Note that Linux has builtin ssh/scp, hence, pexpect should be a simple
> option, but to the best
> of my knowledge Windows does not anything. I would like to see a list of
> options on this. 
> 
> Would you please help me ?
> 
> 
-- 
View this message in context: http://www.nabble.com/ssh-options-tp16646647p16671478.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Gideon S. <gr...@co...> - 2008年04月14日 01:29:11
Yea, I've been using 4.0 compilers along with the Apple installation 
of Python. I'll try out your suggestions.
-gideon
On Apr 13, 2008, at 8:41 PM, Joshua Lippai wrote:
> I know I had some matplotlib trouble in terms of compiling on OS X
> Leopard before I changed the Makefile inside
>
> /Library/Frameworks/Python.framework/Versions/Current/lib/python2.5/ 
> config/
>
> If you're on an Intel Mac, try downloading the beta Apple GCC 4.2 from
> http://developer.apple.com and alter the Makefile so that CC and CXX
> are set to /usr/bin/gcc-4.2 and /usr/bin/g++-4.2 respectively. Also
> remove the flag "-arch ppc" from both the BASEFLAGS and LDFLAGS
> sections, and remove "-Wno-long-double" flag from the BASEFLAGS
> section.
>
> This assumes you're using the MacPython installation of Python and not
> the standard one provided by Apple. I personally wouldn't recommend
> using the standard Apple installation because a lot of modules assume
> you have the Python Framework in /Library/Frameworks/ due to that
> being the de facto standard set by MacPython and ActiveState Python.
> In addition, the MacPython instalation provides Python 2.5.2, not just
> 2.5.1.
>
> Matplotlib aside, you might want to make sure you installed the
> Unicode version of wxWidgets, and reinstall it if necessary.
>
> Josh
>
> On Sun, Apr 13, 2008 at 3:12 PM, Gideon Simpson 
> <gr...@co...> wrote:
>> I don't see any error when I run python setup.py build for 
>> matplotlib. It
>> seems to identify everything it needs.
>> -gideon
>>
>>
>>
>> On Apr 13, 2008, at 10:35 AM, Joshua Lippai wrote:
>>
>>
>>> Are you sure you built pylab correctly? See if you can find 
>>> something
>>> suspicious in the build dialog. I had this error once a long time 
>>> ago,
>>> but at some point since then a rebuild of everything fixed it. In 
>>> the
>>> mean time, using savefig will still work even if the GUI button
>>> doesn't.
>>>
>>> Josh
>>>
>>> On Sat, Apr 12, 2008 at 11:41 AM, Gideon Simpson <gr...@co... 
>>> >
>> wrote:
>>>
>>>> For some reason when trying to save in PNG format on OS X 
>>>> 10.5.2, a
>>>> window pops up with the error:
>>>>
>>>> Matplotlib backend_wx error
>>>> cannot return std::string from Unicode object
>>>>
>>>>
>>>> This is with the simple scipy demo at
>> http://www.scipy.org/Cookbook/OptimizationDemo1
>>>>
>>>>
>>>> Gideon Simpson
>>>> Department of Applied Physics & Applied Mathematics
>>>> Columbia University
>>>> gr...@co...
>>>>
>>>>
>>>>
>> -------------------------------------------------------------------------
>>>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>>>> Don't miss this year's exciting event. There's still time to save 
>>>> 100ドル.
>>>> Use priority code J8TL2D2.
>>>>
>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>>>> _______________________________________________
>>>> Matplotlib-users mailing list
>>>> Mat...@li...
>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>
>>>>
>>>
>>
>>
From: Joshua L. <dis...@gm...> - 2008年04月14日 00:42:35
wxPython, rather.
Josh
On Sun, Apr 13, 2008 at 5:41 PM, Joshua Lippai <dis...@gm...> wrote:
> I know I had some matplotlib trouble in terms of compiling on OS X
> Leopard before I changed the Makefile inside
>
> /Library/Frameworks/Python.framework/Versions/Current/lib/python2.5/config/
>
> If you're on an Intel Mac, try downloading the beta Apple GCC 4.2 from
> http://developer.apple.com and alter the Makefile so that CC and CXX
> are set to /usr/bin/gcc-4.2 and /usr/bin/g++-4.2 respectively. Also
> remove the flag "-arch ppc" from both the BASEFLAGS and LDFLAGS
> sections, and remove "-Wno-long-double" flag from the BASEFLAGS
> section.
>
> This assumes you're using the MacPython installation of Python and not
> the standard one provided by Apple. I personally wouldn't recommend
> using the standard Apple installation because a lot of modules assume
> you have the Python Framework in /Library/Frameworks/ due to that
> being the de facto standard set by MacPython and ActiveState Python.
> In addition, the MacPython instalation provides Python 2.5.2, not just
> 2.5.1.
>
> Matplotlib aside, you might want to make sure you installed the
> Unicode version of wxWidgets, and reinstall it if necessary.
>
> Josh
>
>
>
> On Sun, Apr 13, 2008 at 3:12 PM, Gideon Simpson <gr...@co...> wrote:
> > I don't see any error when I run python setup.py build for matplotlib. It
> > seems to identify everything it needs.
> > -gideon
> >
> >
> >
> > On Apr 13, 2008, at 10:35 AM, Joshua Lippai wrote:
> >
> >
> > > Are you sure you built pylab correctly? See if you can find something
> > > suspicious in the build dialog. I had this error once a long time ago,
> > > but at some point since then a rebuild of everything fixed it. In the
> > > mean time, using savefig will still work even if the GUI button
> > > doesn't.
> > >
> > > Josh
> > >
> > > On Sat, Apr 12, 2008 at 11:41 AM, Gideon Simpson <gr...@co...>
> > wrote:
> > >
> > > > For some reason when trying to save in PNG format on OS X 10.5.2, a
> > > > window pops up with the error:
> > > >
> > > > Matplotlib backend_wx error
> > > > cannot return std::string from Unicode object
> > > >
> > > >
> > > > This is with the simple scipy demo at
> > http://www.scipy.org/Cookbook/OptimizationDemo1
> > > >
> > > >
> > > > Gideon Simpson
> > > > Department of Applied Physics & Applied Mathematics
> > > > Columbia University
> > > > gr...@co...
> > > >
> > > >
> > > >
> > -------------------------------------------------------------------------
> > > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> > > > Don't miss this year's exciting event. There's still time to save 100ドル.
> > > > Use priority code J8TL2D2.
> > > >
> > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> > > > _______________________________________________
> > > > Matplotlib-users mailing list
> > > > Mat...@li...
> > > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> > > >
> > > >
> > >
> >
> >
>
From: Joshua L. <dis...@gm...> - 2008年04月14日 00:41:47
I know I had some matplotlib trouble in terms of compiling on OS X
Leopard before I changed the Makefile inside
/Library/Frameworks/Python.framework/Versions/Current/lib/python2.5/config/
If you're on an Intel Mac, try downloading the beta Apple GCC 4.2 from
http://developer.apple.com and alter the Makefile so that CC and CXX
are set to /usr/bin/gcc-4.2 and /usr/bin/g++-4.2 respectively. Also
remove the flag "-arch ppc" from both the BASEFLAGS and LDFLAGS
sections, and remove "-Wno-long-double" flag from the BASEFLAGS
section.
This assumes you're using the MacPython installation of Python and not
the standard one provided by Apple. I personally wouldn't recommend
using the standard Apple installation because a lot of modules assume
you have the Python Framework in /Library/Frameworks/ due to that
being the de facto standard set by MacPython and ActiveState Python.
In addition, the MacPython instalation provides Python 2.5.2, not just
2.5.1.
Matplotlib aside, you might want to make sure you installed the
Unicode version of wxWidgets, and reinstall it if necessary.
Josh
On Sun, Apr 13, 2008 at 3:12 PM, Gideon Simpson <gr...@co...> wrote:
> I don't see any error when I run python setup.py build for matplotlib. It
> seems to identify everything it needs.
> -gideon
>
>
>
> On Apr 13, 2008, at 10:35 AM, Joshua Lippai wrote:
>
>
> > Are you sure you built pylab correctly? See if you can find something
> > suspicious in the build dialog. I had this error once a long time ago,
> > but at some point since then a rebuild of everything fixed it. In the
> > mean time, using savefig will still work even if the GUI button
> > doesn't.
> >
> > Josh
> >
> > On Sat, Apr 12, 2008 at 11:41 AM, Gideon Simpson <gr...@co...>
> wrote:
> >
> > > For some reason when trying to save in PNG format on OS X 10.5.2, a
> > > window pops up with the error:
> > >
> > > Matplotlib backend_wx error
> > > cannot return std::string from Unicode object
> > >
> > >
> > > This is with the simple scipy demo at
> http://www.scipy.org/Cookbook/OptimizationDemo1
> > >
> > >
> > > Gideon Simpson
> > > Department of Applied Physics & Applied Mathematics
> > > Columbia University
> > > gr...@co...
> > >
> > >
> > >
> -------------------------------------------------------------------------
> > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> > > Don't miss this year's exciting event. There's still time to save 100ドル.
> > > Use priority code J8TL2D2.
> > >
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> > > _______________________________________________
> > > Matplotlib-users mailing list
> > > Mat...@li...
> > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> > >
> > >
> >
>
>

Showing 10 results of 10

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 によって変換されたページ (->オリジナル) /