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

Showing results of 509

<< < 1 .. 9 10 11 12 13 .. 21 > >> (Page 11 of 21)
From: per f. <per...@gm...> - 2009年07月17日 02:50:09
hi all,
suppose i have am plotting several lines using 'plot', some are dashed
(using '--') and some are ordinary solid lines. i am plotting several solid
and several dashed lines, all in different colors, as in:
for n in num_lines:
 # plot dashed line
 plot(line_x[n], line_y[n], '--', color=line_color[n], label="line %d"
%(n))
 # plot ordinary line in different color
 plot(line_x[n], line_y[n], color=other_line_color[n], label="line %d"
%(n))
 ...
If i plot n lines, i don't want the legend to show n-items, giving a
separate key for each line. rather, i want it to display a legend containing
a label for the dashed lines and a label for the solid lines, as in:
Legend:
[-- line of type A
 - line of type B]
so 2 entries rather than as many entries as i have lines. how can i do this?
finally, how can i make it so the legend does not interfere with the plot?
right now the lines appear "behind" the legend. it'd be great if the legend
could be made to be in the background of the line (i.e. be transparent.)
thank you.
From: Chuck Pepe-R. <cp...@mi...> - 2009年07月16日 23:15:32
Hello Users,
I need some help with formatting a legend for a stacked bar graph. Each bar
is segmented into ~35 categories so my legend ends up being a long mess
overlapping my plot. How can I position my legend outside of the plot and
reduce the spacing and fontsize for the text?
Thanks,
- Chuck
From: Michael D. <md...@st...> - 2009年07月16日 18:25:21
This is caused by an interaction between antialiasing and filled areas 
with perfectly aligned edges. Both Agg and Cairo suffer from this 
"problem". There has been a discussion on the devel a few times about 
ways around it, none of which have really panned out, if I recall 
correctly. Though this isn't a regression, as far as I can tell. 
0.98.5.x produces the same lines as SVN (at least for me).
Sorry I don't have an easy answer to this.
Mike
Jeffrey Fogel wrote:
> Last question, I promise. The new contourf seems to include faint 
> lines for the contours. I would like to remove these, but the 
> docstring doesn't seem to have a kwarg to do so. Do you know how to 
> remove them?
>
> -Jeffrey
>
> On Thu, Jul 16, 2009 at 2:01 PM, Jeffrey Fogel 
> <mat...@je... <mailto:mat...@je...>> wrote:
>
> nevermind, I just re-ran the setup.py script and now it's
> working. Strange, but oh well. The contour plot is also working
> now. Thanks for all your help with this.
>
> -Jeffrey
>
>
> On Thu, Jul 16, 2009 at 1:55 PM, Jeffrey Fogel
> <mat...@je... <mailto:mat...@je...>>
> wrote:
>
> Quick question. I thought the compiling from source went
> smoothly, but when I try "from pylab import *" I get the
> following error:
>
>
> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/dates.py
> in <module>()
> 85 import re, time, math, datetime
> 86
> ---> 87 import pytz
> 88
> 89 # compatability for 2008c and older versions
>
> ImportError: No module named pytz
>
>
> Do you have any idea why? I thought pytz was supposed to be
> included in matplotlib (that's what the setup.py script seems
> to imply). I'm running OS X 10.4.11. Thanks.
>
> -Jeffrey
>
>
> On Thu, Jul 16, 2009 at 1:15 PM, Jeffrey Fogel
> <mat...@je...
> <mailto:mat...@je...>> wrote:
>
> Thanks for looking into it and glad to hear that it was
> fixed. Depending on whether this shows up for the plots
> I'm making for the paper I'm writing, I may hold off on
> compiling from source until the paper is done. Were there
> any other major changes/problems in the svn version?
>
> -Jeffrey
>
>
> On Thu, Jul 16, 2009 at 12:20 PM, Michael Droettboom
> <md...@st... <mailto:md...@st...>> wrote:
>
> It looks like this bug has been fixed on the SVN
> trunk. Unfortunately, these changes were pretty major
> surgery, so they don't easily apply to 0.98.5.x.
> Unfortunately, for the time being, it looks like
> you'll need to wait until the next release, or compile
> matplotlib from SVN yourself. I haven't heard any
> concrete plans about the next release yet.
>
>
> Cheers,
> Mike
>
> Jeffrey Fogel wrote:
>
> I haven't tried that as I didn't realize there was
> an issue there. I'm fairly new to matplotlib and
> am definitely still learning how to use it.
> Thanks for your help with this, I've attached 3
> data files and the test script. Please let me
> know what you find (and feel free to comment on
> the code if there is an easier way to do something).
> -Jeffrey
>
> On Thu, Jul 16, 2009 at 12:00 PM, Michael
> Droettboom <md...@st...
> <mailto:md...@st...> <mailto:md...@st...
> <mailto:md...@st...>>> wrote:
>
> You might be running into one of the path
> simplification bugs in
> the 0.98.x series. Have you tried with the
> rcParam path.simplify
> turned off? If you can sent me a self
> contained script and data
> off-list, I can test this against the SVN
> version to see if this
> has already been addressed.
>
> Cheers,
> Mike
>
> Jeffrey Fogel wrote:
>
> I'm having a strange problem with my
> contour plots and I'm
> hoping someone here will be able to help.
> I had a dataset
> that was plotting fine until I decided I
> wanted to create
> plots with the data mirrored over the
> x-axis. This seems to
> work fine most of the time, but every now
> and then I get a
> plot that seems to just ignore a couple of
> data points when
> creating the contours. I've attached a
> plot of what I mean.
> Looking at the arrays the contour plot is
> created from
> doesn't show any obvious problems (there
> are values there that
> should be plotted). It's very strange, any
> ideas?
>
> matplotlib 0.98.5.2
> numpy 1.2.1
> python 2.5.1
>
> -Jeffrey
> 
> ------------------------------------------------------------------------
>
> 
> ------------------------------------------------------------------------
>
> 
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance
> to win up to 100,000ドル in prizes! For a
> limited time, vendors
> submitting new applications to BlackBerry
> App World(TM) will have
> the opportunity to enter the BlackBerry
> Developer Challenge.
> See full prize details at:
> http://p.sf.net/sfu/Challenge
> 
> ------------------------------------------------------------------------
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> <mailto:Mat...@li...>
> 
> <mailto:Mat...@li...
> <mailto:Mat...@li...>>
>
> 
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
>
> -- Michael Droettboom
> Science Software Branch
> Operations and Engineering Division
> Space Telescope Science Institute
> Operated by AURA for NASA
>
>
>
> -- 
> Michael Droettboom
> Science Software Branch
> Operations and Engineering Division
> Space Telescope Science Institute
> Operated by AURA for NASA
>
>
>
>
>
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Jae-Joon L. <lee...@gm...> - 2009年07月16日 18:24:13
One work around is to call
 self.figure.subplots_adjust()
after geometry changed. After this call, the twinx-ed axes will have
the same axes position as the original one.
Another option is to use mpl_toolkits.axes_grid
(http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/overview.html#parasiteaxes).
But the previous solution seems to be much easier for you.
Regards,
-JJ
On Thu, Jul 16, 2009 at 1:16 PM, Tom Vaughan<to...@so...> wrote:
> On Tue, Jun 2, 2009 at 07:33, John Hunter<jd...@gm...> wrote:
>> On Tue, Jun 2, 2009 at 9:03 AM, Tom Vaughan <to...@so...> wrote:
>>> Is it possible to add subplots to a figure if I don't know in advance
>>> how many subplots I need to add?
>>>
>>> What I do now is I call add_subplot like add_subplot(i, 1, i) where i
>>> is 1 initially, and just increases by 1 on each call. This almost
>>> works. Except the first plot takes up the whole figure, the second
>>> plot is placed on top of the bottom half of the first plot, etc. Is
>>> there a way to "resize" the plots when a subplot is added? Or how
>>> would I "re-plot" the previous subplots?
>>
>> See the Axes.change_geometry command
>>
>> http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.SubplotBase.change_geometry
>
> twinx() does not return an axes that contains the change_geometry
> method. How then can I do the equivalent on this axes? Calling twinx()
> again on the original axes after change_geometry() has been called
> does not do the trick. Thanks.
>
> -Tom
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to 100,000ドル in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Gökhan S. <gok...@gm...> - 2009年07月16日 18:10:06
Hello,
I have a little of the topic question. We have a project (
http://sourceforge.net/projects/adpaa/) setup in SF using the CVS.
There when I look at the code submit logs: for instance:
gsever <http://sourceforge.net/users/gsever> committed patchset
219<http://adpaa.cvs.sourceforge.net/viewvc/adpaa/src/>of module src
to the Airborne
Data Processing and Analysis <http://sourceforge.net/projects/adpaa/> CVS
when I click the patchset link it transfers me into the main src folder not
directly to the modified file as in matplotlib's :
heeres <http://sourceforge.net/users/heeres> committed revision
7260<http://matplotlib.svn.sourceforge.net/viewvc/matplotlib?view=rev&revision=7260>to
the
matplotlib <http://sourceforge.net/projects/matplotlib/> SVN repository,
changing 1 files
here revision nicely transfers me into the right place. So that I can follow
changes easily.
Is this an SVN feature or should we enable something somewhere in the
project proterties?
Thank.
-- 
Gökhan
From: Tom V. <to...@so...> - 2009年07月16日 17:39:25
On Tue, Jun 2, 2009 at 07:33, John Hunter<jd...@gm...> wrote:
> On Tue, Jun 2, 2009 at 9:03 AM, Tom Vaughan <to...@so...> wrote:
>> Is it possible to add subplots to a figure if I don't know in advance
>> how many subplots I need to add?
>>
>> What I do now is I call add_subplot like add_subplot(i, 1, i) where i
>> is 1 initially, and just increases by 1 on each call. This almost
>> works. Except the first plot takes up the whole figure, the second
>> plot is placed on top of the bottom half of the first plot, etc. Is
>> there a way to "resize" the plots when a subplot is added? Or how
>> would I "re-plot" the previous subplots?
>
> See the Axes.change_geometry command
>
> http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.SubplotBase.change_geometry
twinx() does not return an axes that contains the change_geometry
method. How then can I do the equivalent on this axes? Calling twinx()
again on the original axes after change_geometry() has been called
does not do the trick. Thanks.
-Tom
From: Michael D. <md...@st...> - 2009年07月16日 16:20:48
It looks like this bug has been fixed on the SVN trunk. Unfortunately, 
these changes were pretty major surgery, so they don't easily apply to 
0.98.5.x. Unfortunately, for the time being, it looks like you'll need 
to wait until the next release, or compile matplotlib from SVN 
yourself. I haven't heard any concrete plans about the next release yet.
Cheers,
Mike
Jeffrey Fogel wrote:
> I haven't tried that as I didn't realize there was an issue there. 
> I'm fairly new to matplotlib and am definitely still learning how to 
> use it. Thanks for your help with this, I've attached 3 data files 
> and the test script. Please let me know what you find (and feel free 
> to comment on the code if there is an easier way to do something). 
>
> -Jeffrey
>
> On Thu, Jul 16, 2009 at 12:00 PM, Michael Droettboom <md...@st... 
> <mailto:md...@st...>> wrote:
>
> You might be running into one of the path simplification bugs in
> the 0.98.x series. Have you tried with the rcParam path.simplify
> turned off? If you can sent me a self contained script and data
> off-list, I can test this against the SVN version to see if this
> has already been addressed.
>
> Cheers,
> Mike
>
> Jeffrey Fogel wrote:
>
> I'm having a strange problem with my contour plots and I'm
> hoping someone here will be able to help. I had a dataset
> that was plotting fine until I decided I wanted to create
> plots with the data mirrored over the x-axis. This seems to
> work fine most of the time, but every now and then I get a
> plot that seems to just ignore a couple of data points when
> creating the contours. I've attached a plot of what I mean.
> Looking at the arrays the contour plot is created from
> doesn't show any obvious problems (there are values there that
> should be plotted). It's very strange, any ideas?
>
> matplotlib 0.98.5.2
> numpy 1.2.1
> python 2.5.1
>
> -Jeffrey
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge This is your chance
> to win up to 100,000ドル in prizes! For a limited time, vendors
> submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge.
> See full prize details at: http://p.sf.net/sfu/Challenge
> ------------------------------------------------------------------------
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> <mailto:Mat...@li...>
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
>
>
> -- 
> Michael Droettboom
> Science Software Branch
> Operations and Engineering Division
> Space Telescope Science Institute
> Operated by AURA for NASA
>
>
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Michael D. <md...@st...> - 2009年07月16日 16:00:14
You might be running into one of the path simplification bugs in the 
0.98.x series. Have you tried with the rcParam path.simplify turned 
off? If you can sent me a self contained script and data off-list, I 
can test this against the SVN version to see if this has already been 
addressed.
Cheers,
Mike
Jeffrey Fogel wrote:
> I'm having a strange problem with my contour plots and I'm hoping 
> someone here will be able to help. I had a dataset that was plotting 
> fine until I decided I wanted to create plots with the data mirrored 
> over the x-axis. This seems to work fine most of the time, but every 
> now and then I get a plot that seems to just ignore a couple of data 
> points when creating the contours. I've attached a plot of what I 
> mean. Looking at the arrays the contour plot is created from doesn't 
> show any obvious problems (there are values there that should be 
> plotted). It's very strange, any ideas?
>
> matplotlib 0.98.5.2
> numpy 1.2.1
> python 2.5.1
>
> -Jeffrey
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge 
> This is your chance to win up to 100,000ドル in prizes! For a limited time, 
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize 
> details at: http://p.sf.net/sfu/Challenge
> ------------------------------------------------------------------------
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Domenico N. <dom...@gm...> - 2009年07月16日 14:55:17
Whenever I try to use autofmt_xdate() on a Figure(), dates on x axis
disappear...I guess this is related with something concerning font
management...
Anyone experienced this kind of issues?
I use most recent versions of matplotlib, numpy, gtk2, pygtk on a Python 2.5
platform (installed via binaries on a window xp machine).
Hi all,
I tried this again with a clean checkout from svn:
svn co
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlibmatplotlib
(checks out revision 7262)
cd matplotlib/release/osx/
unset PKG_CONFIG_PATH
make fetch_deps
cd bdist_mpkg-0.4.3
sudo python setup.py install
cd ..
make dependencies
cd ../..
python setup.py sdist
mv dist/matplotlib-0.98.6svn.tar.gz release/osx/
cd release/osx
<change MPLVERSION=0.98.5.3 to MPLVERSION=0.98.6svn in the Makefile>
make installers
and it fails. Here are the last couple of lines:
g++ -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g
-L/usr/local/lib -L/Library/Frameworks/Python.framework/Versions/4.3.0/lib
-bundle -undefined dynamic_lookup -arch ppc -arch i386
-L/Users/mglerner/src/matplotlib/release/osx/zlib-1.2.3
-L/Users/mglerner/src/matplotlib/release/osx/libpng-1.2.33
-L/Users/mglerner/src/matplotlib/release/osx/freetype-2.3.7 -Os -arch ppc
-arch i386 -I/Users/mglerner/src/matplotlib/release/osx/zlib-1.2.3
-I/Users/mglerner/src/matplotlib/release/osx/libpng-1.2.33
-I/Users/mglerner/src/matplotlib/release/osx/freetype-2.3.7/include
build/temp.macosx-10.3-fat-2.5/src/ft2font.o
build/temp.macosx-10.3-fat-2.5/src/mplutils.o
build/temp.macosx-10.3-fat-2.5/CXX/cxx_extensions.o
build/temp.macosx-10.3-fat-2.5/CXX/cxxsupport.o
build/temp.macosx-10.3-fat-2.5/CXX/IndirectPythonInterface.o
build/temp.macosx-10.3-fat-2.5/CXX/cxxextensions.o -L/usr/local/lib
-L/usr/lib -L/usr/X11R6/lib -lfreetype -lz -lstdc++ -lm -o
build/lib.macosx-10.3-fat-2.5/matplotlib/ft2font.so
ld warning: in
/Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks/Python.framework/Versions/4.3.0/lib/libz.dylib,
file is not of required architecture
ld warning: in
/Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libgcc_s.10.4.dylib, missing
required architecture ppc in file
ld: in
/Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks/Python.framework/Versions/4.3.0/lib/libz.1.dylib,
file is not of required architecture for architecture ppc
collect2: ld returned 1 exit status
lipo: can't open input file:
/var/folders/mr/mrDdnQgUEQWRcRe-wF1uFE+++TI/-Tmp-//ccAjnLEy.out (No such
file or directory)
error: command 'g++' failed with exit status 1
make: *** [installers] Error 1
laptop-36:osx mglerner$
as I mentioned before, I'm not intimately familiar with the OS X build
process, but I'd be happy to provide additional information/testing.
Thanks,
-michael
On Sat, Jul 11, 2009 at 4:31 PM, Michael Lerner <mgl...@gm...> wrote:
>
>
> On Sat, Jul 11, 2009 at 9:05 AM, John Hunter <jd...@gm...> wrote:
>
>>
>> It looks like there is an incompatibility with the freetype supplied
>> in /sw (probably fink supplied). Perhaps it is not configured as a
>> universal binary.
>>
>> You can build mpl from svn the way we do when we make a release, which
>> will automatically fetch and build the dependencies correctly. First
>> see,
>>
>>
>> http://matplotlib.sourceforge.net/faq/installing_faq.html#which-python-for-osx
>>
>> then grab a copy of mpl from svn
>>
>> http://matplotlib.sourceforge.net/faq/installing_faq.html#install-svn
>>
>> and cd into the releases/osx directory and follow the instructions in
>> the README there.
>>
>
> Hi,
>
> I get the same errors when I follow those instructions. I have a very new
> 17" MacBook Pro running 10.5.7. I've installed the Enthought Python
> Distribution. These commands worked correctly:
>
> unset PKG_CONFIG_PATH
> make fetch_deps
> cd bdist_mpkg-0.4.3
> sudo python setup.py install
> cd ..
> make dependencies
> cd ../..
> python setup.py sdist
> mv dist/matplotlib-0.98.6svn.tar.gz release/osx/
> cd release/osx
>
> I then edit the Makefile and change
>
> MPLVERSION=0.98.5.3
>
> to
>
> MPLVERSION=0.98.6svn
>
> but the next command,
>
> make installers
>
> produces the error:
>
> ... < blah blah untarring > ...
>
> ============================================================================
> BUILDING MATPLOTLIB
> matplotlib: 0.98.6svn
> python: 2.5.4 |EPD_Py25 4.3.0| (r254:67916, May 17 2009,
> 20:07:12) [GCC 4.0.1 (Apple Computer, Inc. build
> 5370)]
> platform: darwin
>
> REQUIRED DEPENDENCIES
> numpy: 1.3.0
> freetype2: found, but unknown version (no pkg-config)
>
> OPTIONAL BACKEND DEPENDENCIES
> libpng: found, but unknown version (no pkg-config)
> Tkinter: Tkinter: 67737, Tk: 8.4, Tcl: 8.4
> wxPython: 2.8.7.1
> * WxAgg extension not required for wxPython >= 2.8
> Gtk+: no
> * Building for Gtk+ requires pygtk; you must be
> able
> * to "import gtk" in your build/install environment
> Mac OS X native: yes
> Qt: no
> Qt4: no
> Cairo: no
>
> OPTIONAL DATE/TIMEZONE DEPENDENCIES
> datetime: present, version unknown
> dateutil: matplotlib will provide
> pytz: matplotlib will provide
> adding pytz
>
> OPTIONAL USETEX DEPENDENCIES
> dvipng: no
> ghostscript: /bin/sh: gs: command not found
> latex: no
>
> [Edit setup.cfg to suppress the above messages]
>
> ============================================================================
> pymods ['pylab']
> packages ['matplotlib', 'matplotlib.backends', 'matplotlib.projections',
> 'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid',
> 'matplotlib.sphinxext', 'matplotlib.numerix', 'matplotlib.numerix.mlab', '
> matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra',
> 'matplotlib.numerix.random_array', 'matplotlib.numerix.fft',
> 'matplotlib.delaunay', 'pytz', 'dateutil', 'dateutil/zoneinfo']
> running bdist_mpkg
> installing to build/bdist.macosx-10.3-fat/mpkg
> running build
> running build_py
> creating build
> creating build/lib.macosx-10.3-fat-2.5
> copying lib/pylab.py -> build/lib.macosx-10.3-fat-2.5
> creating build/lib.macosx-10.3-fat-2.5/matplotlib
>
> ... < blah blah, copying > ...
>
> creating build/temp.macosx-10.3-fat-2.5/CXX
> gcc -DNDEBUG -g -O3 -I/tmp/_py/libraries/usr/local/include -Os -arch ppc
> -arch i386 -I/Users/mglerner/src/matplotlib/release/osx/zlib-1.2.3
> -I/Users/mglerner/src/matplotlib/release/osx/libpng-1.2.33
> -I/Users/mglerner/src/matplotlib/release/osx/freetype-2.3.7/include
> -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API
> -I/Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-packages/numpy-1.3.0n1-py2.5-macosx-10.3-fat.egg/numpy/core/include
> -I/usr/local/include -I/usr/include -I/usr/X11R6/include -I.
> -I/Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-packages/numpy-1.3.0n1-py2.5-macosx-10.3-fat.egg/numpy/core/include/freetype2
> -I/usr/local/include/freetype2 -I/usr/include/freetype2
> -I/usr/X11R6/include/freetype2 -I./freetype2
> -I/Library/Frameworks/Python.framework/Versions/4.3.0/include/python2.5 -c
> src/ft2font.cpp -o build/temp.macosx-10.3-fat-2.5/src/ft2font.o
> gcc -DNDEBUG -g -O3 -I/tmp/_py/libraries/usr/local/include -Os -arch ppc
> -arch i386 -I/Users/mglerner/src/matplotlib/release/osx/zlib-1.2.3
> -I/Users/mglerner/src/matplotlib/release/osx/libpng-1.2.33
> -I/Users/mglerner/src/matplotlib/release/osx/freetype-2.3.7/include
> -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API
> -I/Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-packages/numpy-1.3.0n1-py2.5-macosx-10.3-fat.egg/numpy/core/include
> -I/usr/local/include -I/usr/include -I/usr/X11R6/include -I.
> -I/Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-packages/numpy-1.3.0n1-py2.5-macosx-10.3-fat.egg/numpy/core/include/freetype2
> -I/usr/local/include/freetype2 -I/usr/include/freetype2
> -I/usr/X11R6/include/freetype2 -I./freetype2
> -I/Library/Frameworks/Python.framework/Versions/4.3.0/include/python2.5 -c
> src/mplutils.cpp -o build/temp.macosx-10.3-fat-2.5/src/mplutils.o
> gcc -DNDEBUG -g -O3 -I/tmp/_py/libraries/usr/local/include -Os -arch ppc
> -arch i386 -I/Users/mglerner/src/matplotlib/release/osx/zlib-1.2.3
> -I/Users/mglerner/src/matplotlib/release/osx/libpng-1.2.33
> -I/Users/mglerner/src/matplotlib/release/osx/freetype-2.3.7/include
> -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API
> -I/Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-packages/numpy-1.3.0n1-py2.5-macosx-10.3-fat.egg/numpy/core/include
> -I/usr/local/include -I/usr/include -I/usr/X11R6/include -I.
> -I/Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-packages/numpy-1.3.0n1-py2.5-macosx-10.3-fat.egg/numpy/core/include/freetype2
> -I/usr/local/include/freetype2 -I/usr/include/freetype2
> -I/usr/X11R6/include/freetype2 -I./freetype2
> -I/Library/Frameworks/Python.framework/Versions/4.3.0/include/python2.5 -c
> CXX/cxx_extensions.cxx -o
> build/temp.macosx-10.3-fat-2.5/CXX/cxx_extensions.o
> gcc -DNDEBUG -g -O3 -I/tmp/_py/libraries/usr/local/include -Os -arch ppc
> -arch i386 -I/Users/mglerner/src/matplotlib/release/osx/zlib-1.2.3
> -I/Users/mglerner/src/matplotlib/release/osx/libpng-1.2.33
> -I/Users/mglerner/src/matplotlib/release/osx/freetype-2.3.7/include
> -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API
> -I/Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-packages/numpy-1.3.0n1-py2.5-macosx-10.3-fat.egg/numpy/core/include
> -I/usr/local/include -I/usr/include -I/usr/X11R6/include -I.
> -I/Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-packages/numpy-1.3.0n1-py2.5-macosx-10.3-fat.egg/numpy/core/include/freetype2
> -I/usr/local/include/freetype2 -I/usr/include/freetype2
> -I/usr/X11R6/include/freetype2 -I./freetype2
> -I/Library/Frameworks/Python.framework/Versions/4.3.0/include/python2.5 -c
> CXX/cxxsupport.cxx -o build/temp.macosx-10.3-fat-2.5/CXX/cxxsupport.o
> gcc -DNDEBUG -g -O3 -I/tmp/_py/libraries/usr/local/include -Os -arch ppc
> -arch i386 -I/Users/mglerner/src/matplotlib/release/osx/zlib-1.2.3
> -I/Users/mglerner/src/matplotlib/release/osx/libpng-1.2.33
> -I/Users/mglerner/src/matplotlib/release/osx/freetype-2.3.7/include
> -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API
> -I/Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-packages/numpy-1.3.0n1-py2.5-macosx-10.3-fat.egg/numpy/core/include
> -I/usr/local/include -I/usr/include -I/usr/X11R6/include -I.
> -I/Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-packages/numpy-1.3.0n1-py2.5-macosx-10.3-fat.egg/numpy/core/include/freetype2
> -I/usr/local/include/freetype2 -I/usr/include/freetype2
> -I/usr/X11R6/include/freetype2 -I./freetype2
> -I/Library/Frameworks/Python.framework/Versions/4.3.0/include/python2.5 -c
> CXX/IndirectPythonInterface.cxx -o
> build/temp.macosx-10.3-fat-2.5/CXX/IndirectPythonInterface.o
> gcc -DNDEBUG -g -O3 -I/tmp/_py/libraries/usr/local/include -Os -arch ppc
> -arch i386 -I/Users/mglerner/src/matplotlib/release/osx/zlib-1.2.3
> -I/Users/mglerner/src/matplotlib/release/osx/libpng-1.2.33
> -I/Users/mglerner/src/matplotlib/release/osx/freetype-2.3.7/include
> -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API
> -I/Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-packages/numpy-1.3.0n1-py2.5-macosx-10.3-fat.egg/numpy/core/include
> -I/usr/local/include -I/usr/include -I/usr/X11R6/include -I.
> -I/Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-packages/numpy-1.3.0n1-py2.5-macosx-10.3-fat.egg/numpy/core/include/freetype2
> -I/usr/local/include/freetype2 -I/usr/include/freetype2
> -I/usr/X11R6/include/freetype2 -I./freetype2
> -I/Library/Frameworks/Python.framework/Versions/4.3.0/include/python2.5 -c
> CXX/cxxextensions.c -o build/temp.macosx-10.3-fat-2.5/CXX/cxxextensions.o
> g++ -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g
> -L/usr/local/lib -L/Library/Frameworks/Python.framework/Versions/4.3.0/lib
> -bundle -undefined dynamic_lookup -arch ppc -arch i386
> -L/Users/mglerner/src/matplotlib/release/osx/zlib-1.2.3
> -L/Users/mglerner/src/matplotlib/release/osx/libpng-1.2.33
> -L/Users/mglerner/src/matplotlib/release/osx/freetype-2.3.7 -Os -arch ppc
> -arch i386 -I/Users/mglerner/src/matplotlib/release/osx/zlib-1.2.3
> -I/Users/mglerner/src/matplotlib/release/osx/libpng-1.2.33
> -I/Users/mglerner/src/matplotlib/release/osx/freetype-2.3.7/include
> build/temp.macosx-10.3-fat-2.5/src/ft2font.o
> build/temp.macosx-10.3-fat-2.5/src/mplutils.o
> build/temp.macosx-10.3-fat-2.5/CXX/cxx_extensions.o
> build/temp.macosx-10.3-fat-2.5/CXX/cxxsupport.o
> build/temp.macosx-10.3-fat-2.5/CXX/IndirectPythonInterface.o
> build/temp.macosx-10.3-fat-2.5/CXX/cxxextensions.o -L/usr/local/lib
> -L/usr/lib -L/usr/X11R6/lib -lfreetype -lz -lstdc++ -lm -o
> build/lib.macosx-10.3-fat-2.5/matplotlib/ft2font.so
> ld warning: in
> /Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks/Python.framework/Versions/4.3.0/lib/libz.dylib,
> file is not of required architecture
> ld warning: in
> /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libgcc_s.10.4.dylib, missing
> required architecture ppc in file
> ld: in
> /Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks/Python.framework/Versions/4.3.0/lib/libz.1.dylib,
> file is not of required architecture for architecture ppc
> collect2: ld returned 1 exit status
> lipo: can't open input file:
> /var/folders/mr/mrDdnQgUEQWRcRe-wF1uFE+++TI/-Tmp-//ccvdMAI3.out (No such
> file or directory)
> error: command 'g++' failed with exit status 1
> make: *** [installers] Error 1
>
>
> It appears that I have no idea how the OS X build system works, because I'm
> quite surprised by all of the seeming references to 10.3 and 10.4, given
> that I'm running 10.5.
>
> I'd be quite happy to provide further information. I'm happy with the stock
> matplotlib on my system, but I'd like to get this working so I can submit my
> tiny patch to acorr/xcorr.
>
> Thanks,
>
> -michael
>
>
>> JDH
>>
>>
>> ------------------------------------------------------------------------------
>> Enter the BlackBerry Developer Challenge
>> This is your chance to win up to 100,000ドル in prizes! For a limited time,
>> vendors submitting new applications to BlackBerry App World(TM) will have
>> the opportunity to enter the BlackBerry Developer Challenge. See full
>> prize
>> details at: http://p.sf.net/sfu/Challenge
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>
>
>
> --
> Michael Lerner, Ph.D.
> IRTA Postdoctoral Fellow
> Laboratory of Computational Biology NIH/NHLBI
> 5635 Fishers Lane, Room T909, MSC 9314
> Rockville, MD 20852 (UPS/FedEx/Reality)
> Bethesda MD 20892-9314 (USPS)
>
-- 
Michael Lerner, Ph.D.
IRTA Postdoctoral Fellow
Laboratory of Computational Biology NIH/NHLBI
5635 Fishers Lane, Room T909, MSC 9314
Rockville, MD 20852 (UPS/FedEx/Reality)
Bethesda MD 20892-9314 (USPS)
From: Andrei K. <and...@gm...> - 2009年07月16日 14:33:05
Hello
I have a little problem.
On figure I have 2 Axes created by
 fig = plt.figure(figsize = (16, 10), facecolor='w')
 ax1 = fig.add_axes([0, 0, 1, 0.1])
 ax2 = fig.add_axes([0.1, 0.19, 0.8, 0.72], autoscale_on=True)
There are some text and images on it:
 ...
 drawing on ax1 and ax2
 ...
 ax1.imshow(arr, extent=[0.01, 0.29, 0.1, 0.95])
 ax1.imshow(arr, extent=[0.75, 0.96, 0.5, 0.8])
 ...
My problem - when I plot the figure - ax1 changes it's geometry.
Code:
 print 'ax1:', ax1
 print 'ax2:', ax2
 plt.show()
 print 'ax1:', ax1
 print 'ax2:', ax2
 print 'ax1 position changed during plt.show(). Why???'
Output:
 ax1: Axes(0,0;1x0.1)
 ax2: Axes(0.1,0.19;0.8x0.72)
 ax1: Axes(0.470649,0;0.0587025x0.1)
 ax2: Axes(0.1,0.19;0.8x0.72)
 ax1 position changed during plt.show(). Why???
On resulting plot ax1 has position (0.470649,0;0.0587025x0.1), but 
desired are (0,0;1x0.1).
Could anyone help me, or give an idea, why axes is moved, or give an 
advice, how to resolve this situation.
Thank you
From: Andrei K. <and...@gm...> - 2009年07月16日 14:22:37
Hello
I have a little problem.
On figure I have 2 Axes created by
 fig = plt.figure(figsize = (16, 10), facecolor='w')
 ax1 = fig.add_axes([0, 0, 1, 0.1])
 ax2 = fig.add_axes([0.1, 0.19, 0.8, 0.72], autoscale_on=True)
There are some text and images on it:
 ...
 drawing on ax1 and ax2
 ...
 ax1.imshow(arr, extent=[0.01, 0.29, 0.1, 0.95])
 ax1.imshow(arr, extent=[0.75, 0.96, 0.5, 0.8])
 ...
My problem - when I plot the figure - ax1 changes it's geometry.
Code:
 print 'ax1:', ax1
 print 'ax2:', ax2
 plt.show()
 print 'ax1:', ax1
 print 'ax2:', ax2
 print 'ax1 position changed during plt.show(). Why???'
Output:
	ax1: Axes(0,0;1x0.1)
	ax2: Axes(0.1,0.19;0.8x0.72)
	ax1: Axes(0.470649,0;0.0587025x0.1)
	ax2: Axes(0.1,0.19;0.8x0.72)
	ax1 position changed during plt.show(). Why???
On resulting plot ax1 has position (0.470649,0;0.0587025x0.1), but
desired are (0,0;1x0.1).
Could anyone help me, or give an idea, why axes is moved, or give an
advice, how to resolve this situation.
Thank you
From: Andrei K. <and...@gm...> - 2009年07月16日 14:20:58
Hello
I have a little problem.
On figure I have 2 Axes created by
 fig = plt.figure(figsize = (16, 10), facecolor='w')
 ax1 = fig.add_axes([0, 0, 1, 0.1])
 ax2 = fig.add_axes([0.1, 0.19, 0.8, 0.72], autoscale_on=True)
There are some text and images on it:
 ...
 drawing on ax1 and ax2
 ...
 ax1.imshow(arr, extent=[0.01, 0.29, 0.1, 0.95])
 ax1.imshow(arr, extent=[0.75, 0.96, 0.5, 0.8])
 ...
My problem - when I plot the figure - ax1 changes it's geometry.
Code:
 print 'ax1:', ax1
 print 'ax2:', ax2
 plt.show()
 print 'ax1:', ax1
 print 'ax2:', ax2
 print 'ax1 position changed during plt.show(). Why???'
Output:
	ax1: Axes(0,0;1x0.1)
	ax2: Axes(0.1,0.19;0.8x0.72)
	ax1: Axes(0.470649,0;0.0587025x0.1)
	ax2: Axes(0.1,0.19;0.8x0.72)
	ax1 position changed during plt.show(). Why???
On resulting plot ax1 has position (0.470649,0;0.0587025x0.1), but 
desired are (0,0;1x0.1).
Could anyone help me, or give an idea, why axes is moved, or give an 
advice, how to resolve this situation.
Thank you
From: Johann Cohen-T. <co...@lp...> - 2009年07月16日 11:40:48
Attachments: test.py
hi there, I stumbled into yet another problem, see script attached. Now 
there are 10 pixels and 10 label values on each axis, but I get only 
half the ticks, and as a result half the labels get discarded... How can 
I specify the number of ticks it uses?
Note that I could use plt.pcolor(np.array(EMINS),np.array(ROIS),d) and 
at least the labelling would be correct, but the pixels are now more or 
less wide depending on the interval between values, which was not 
intended....
thanks a lot in advance for your help,
Johann
Johann Cohen-Tanugi wrote:
> Hello, how can I center axis tick labels, so that the labels ends up at 
> the center between 2 ticks.
>
> thanks in advance,
> Johann
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge 
> This is your chance to win up to 100,000ドル in prizes! For a limited time, 
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize 
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
From: Domenico N. <dom...@gm...> - 2009年07月16日 11:27:55
Hi all,
I've installed environment following this installation instructions:
http://matplotlib.sourceforge.net/users/installing.html
I had already installed GTK 2 and PyGTK the day before (the most recent
versions) and then installed last version of numpy, matplotlib and ipython.
Everything was ok but when I tried a sample script I've found out that the
module _backend_gdk was missing.
The script failed on this import:
from matplotlib.backends.backend_gtk import FigureCanvasGTK as FigureCanvas
due a missing module that backend_gdk (imported by backend_gtk) tries to
import.
The missing module is _backend_gdk.
I commented that import statement (used to import pixbuf_get_pixels_array)
and the sample script run without any problems.
However, I guess that I need _backend_gdk module and something went wrong
during installation.
Can you help me in solving this issue? I did a googling but it seems that
few others have this problem (since most of users use linux, perhaps) and no
solution was reported.
Thanks in advance!
PS: python version is 2.5 so I installed all py2.5 of libs above.
-- 
DN
From: Jack S. <jac...@gm...> - 2009年07月15日 23:44:05
Thanks JJ, I'll give that a shot. The problem with making them invisible is
they take up a lot of unnecessary overhead in my vector graphics program
that already runs ridicuslow :)
On Wed, Jul 15, 2009 at 11:58 AM, Jae-Joon Lee <lee...@gm...> wrote:
>
> http://matplotlib.sourceforge.net/api/pyplot_api.html?highlight=errorbar#matplotlib.pyplot.errorbar
>
> As described in the doc, the errorbar command creates lines and line
> collections, where the errorbars are created as line collections.
> Axes.collections contains the list of collection artist that belong to
> the axes hence this is the place.
>
> However, I don't think manipulating Axes.collections (and the return
> value of get_lines() ) in this way is a good idea. All the artist
> added to an axes has "remove" method. When called, the artist remove
> itself from the axes it belongs.
>
> I'm not sure what your intention is, but if you want to temporarily
> remove some artists from the axes, it would be easier to make them
> simply invisible. Otherwise, I recommend you to use the remove method.
>
> Regards,
>
> -JJ
>
>
>
> On Tue, Jul 14, 2009 at 6:13 PM, Jack Sankey<jac...@gm...> wrote:
> > Hello,
> > I'm writing a script that removes data from plots by looping over
> > axes.get_lines(), removing data, then using axes.set_lines(). It works
> quite
> > well, but when it's a plot with error bars, the vertical part of the
> error
> > bar is not disappearing.
> > I'm assuming the vertical part is a vline or something and so should not
> be
> > with the other lines. Where does this data get stuck? :)
> > Thanks!
> > Jack
> >
> ------------------------------------------------------------------------------
> > Enter the BlackBerry Developer Challenge
> > This is your chance to win up to 100,000ドル in prizes! For a limited time,
> > vendors submitting new applications to BlackBerry App World(TM) will have
> > the opportunity to enter the BlackBerry Developer Challenge. See full
> prize
> > details at: http://p.sf.net/sfu/Challenge
> > _______________________________________________
> > Matplotlib-users mailing list
> > Mat...@li...
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >
> >
>
From: Chloe L. <ch...@na...> - 2009年07月15日 23:00:38
Experimenting in ipython (run ipython --pylab) is excellent for this; 
not only do you see results promptly, but
help(pylab)
lists, for instance, the functions xlim and ylim, with which you can 
get and set any of the four axis limits.
&C
On Jul 15, 2009, at 3:54 PM, Dr. Phillip M. Feldman wrote:
>
> One can set axis limits via a command like the following:
>
> pyplot.axis([0 10 0 1])
>
> But, there are situations where I'd like to set limits only for the 
> y-axis,
> leaving the x-axis alone, or vice versa, or set a lower limit for 
> the y-axis
> but leave the upper limit alone. Is there a clean way of doing 
> this? (I
> have not been able to find anything relevant in the Matplotlib Users 
> Guide).
> -- 
> View this message in context: http://www.nabble.com/setting-axis-limits-tp24507383p24507383.html
> Sent from the matplotlib - users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to 100,000ドル in prizes! For a limited 
> time,
> vendors submitting new applications to BlackBerry App World(TM) will 
> have
> the opportunity to enter the BlackBerry Developer Challenge. See 
> full prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Chloe Lewis
Graduate student, Amundson Lab
Division of Ecosystem Sciences, ESPM
University of California, Berkeley
137 Mulford Hall - #3114
Berkeley, CA 94720-3114
ch...@na...
From: Pierre GM <pgm...@gm...> - 2009年07月15日 22:58:42
On Jul 15, 2009, at 6:54 PM, Dr. Phillip M. Feldman wrote:
> leaving the x-axis alone, or vice versa, or set a lower limit for 
> the y-axis
> but leave the upper limit alone. Is there a clean way of doing 
> this? (I
> have not been able to find anything relevant in the Matplotlib Users 
> Guide).
Please check set_xlim and set_ylim.
From: Dr. P. M. F. <pfe...@ve...> - 2009年07月15日 22:54:25
One can set axis limits via a command like the following:
pyplot.axis([0 10 0 1])
But, there are situations where I'd like to set limits only for the y-axis,
leaving the x-axis alone, or vice versa, or set a lower limit for the y-axis
but leave the upper limit alone. Is there a clean way of doing this? (I
have not been able to find anything relevant in the Matplotlib Users Guide).
-- 
View this message in context: http://www.nabble.com/setting-axis-limits-tp24507383p24507383.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Damon M. <dam...@gm...> - 2009年07月15日 22:08:13
Hi Phillip,
Don't you need to call
pyplot.show()
at the end of the script?
Regards,
--Damon
On 15 Jul 2009, at 22:58, Dr. Phillip M. Feldman wrote:
>
> I'm a newbie to matplotlib. When I try to generate a simple plot, 
> nothing
> happens. Any advice will be appreciated. Here's my code:
>
> from numpy import *
> from matplotlib import *
>
> x= arange(0,10.,0.1)
> y= x**1.5 - 0.25*x**2
>
> pyplot.figure(figsize=(9, 6), dpi=120)
> pyplot.plot(x, y)
> -- 
> View this message in context: http://www.nabble.com/invisible-plot-tp24506682p24506682.html
> Sent from the matplotlib - users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to 100,000ドル in prizes! For a limited 
> time,
> vendors submitting new applications to BlackBerry App World(TM) will 
> have
> the opportunity to enter the BlackBerry Developer Challenge. See 
> full prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Alan G I. <ala...@gm...> - 2009年07月15日 22:08:07
On 7/15/2009 5:58 PM Dr. Phillip M. Feldman apparently wrote:
> I'm a newbie to matplotlib. When I try to generate a simple plot, nothing 
> happens. Any advice will be appreciated. Here's my code:
> from numpy import * 
> from matplotlib import * 
> x= arange(0,10.,0.1)
> y= x**1.5 - 0.25*x**2 
> pyplot.figure(figsize=(9, 6), dpi=120)
> pyplot.plot(x, y)
Hmm, I don't think you copied that quite right.
Anyway::
 import numpy as np
 from matplotlib import pyplot as plt
 x= np.arange(0,10.,0.1)
 y= x**1.5 - 0.25*x**2
 fig = plt.figure(figsize=(9, 6), dpi=120)
 myplot = plt.plot(x, y)
 plt.show()
Alan Isaac
From: Eric F. <ef...@ha...> - 2009年07月15日 22:05:20
Dr. Phillip M. Feldman wrote:
> I'm a newbie to matplotlib. When I try to generate a simple plot, nothing
> happens. Any advice will be appreciated. Here's my code:
> 
> from numpy import *
> from matplotlib import *
> 
> x= arange(0,10.,0.1)
> y= x**1.5 - 0.25*x**2
> 
> pyplot.figure(figsize=(9, 6), dpi=120)
> pyplot.plot(x, y)
pyplot.show()
Or run inside "ipython -pylab".
Eric
From: Ryan M. <rm...@gm...> - 2009年07月15日 22:04:20
On Wed, Jul 15, 2009 at 4:58 PM, Dr. Phillip M. Feldman <
pfe...@ve...> wrote:
>
> I'm a newbie to matplotlib. When I try to generate a simple plot, nothing
> happens. Any advice will be appreciated. Here's my code:
>
> from numpy import *
> from matplotlib import *
>
> x= arange(0,10.,0.1)
> y= x**1.5 - 0.25*x**2
>
> pyplot.figure(figsize=(9, 6), dpi=120)
> pyplot.plot(x, y)
Add this to the end of the script (after all the plotting):
 pyplot.show()
Ryan
-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
From: Robert K. <rob...@gm...> - 2009年07月15日 22:03:39
On 2009年07月15日 16:58, Dr. Phillip M. Feldman wrote:
> I'm a newbie to matplotlib. When I try to generate a simple plot, nothing
> happens. Any advice will be appreciated. Here's my code:
>
> from numpy import *
> from matplotlib import *
>
> x= arange(0,10.,0.1)
> y= x**1.5 - 0.25*x**2
>
> pyplot.figure(figsize=(9, 6), dpi=120)
> pyplot.plot(x, y)
pyplot.show()
-- 
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
 -- Umberto Eco
From: Dr. P. M. F. <pfe...@ve...> - 2009年07月15日 21:58:15
I'm a newbie to matplotlib. When I try to generate a simple plot, nothing
happens. Any advice will be appreciated. Here's my code:
from numpy import *
from matplotlib import *
x= arange(0,10.,0.1)
y= x**1.5 - 0.25*x**2
pyplot.figure(figsize=(9, 6), dpi=120)
pyplot.plot(x, y)
-- 
View this message in context: http://www.nabble.com/invisible-plot-tp24506682p24506682.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
9 messages has been excluded from this view by a project administrator.

Showing results of 509

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