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





Showing 6 results of 6

From: Jeff M. <jm...@cl...> - 2009年11月06日 17:23:31
Is there a way to show the first and last tick label on 3D plots?
From: John H. <jd...@gm...> - 2009年11月06日 15:06:10
On Thu, Nov 5, 2009 at 9:09 PM, Alan Jackson <al...@aj...> wrote:
> Trying to get a colleague to start using python, he ran into trouble,
> getting an error exit whenever he tried to fire up
> ipython -pylab
>
Thanks Alan, I committed a fix to svn HEAD which should prevent this
crash, with the following comment:
 # some afm files have floats where we are expecting ints -- there is
 # probably a better way to handle this (support floats, round rather
 # than truncate). But I don't know what the best approach is now and
 # this change to _to_int should at least prevent mpl from crashing on
 # these JDH (2009年11月06日)
 def _to_int(x):
 return int(float(x))
If other devs know the best way to handle this, please patch as necessary.
From: Tim B. <tim...@ma...> - 2009年11月06日 12:00:40
> Tim: I don't have 10.6 yet, so I've never tried building there. I 
> suspect that it's a 32/64 bit library mismatch problem. Since I 
> believe OSX builds stuff 64 bit by default on OS X, my guess is you 
> are using a 32 bit python, perhaps macpython? If so, perhaps 
> building geos with CFLAGS="-m32" will fix it. Or, it could be that 
> you have a 64 bit python and the lib was built 32 bit.
>
> Maybe someone else with experience with 10.6 will chime in, I'm 
> really just shooting in the dark here..
>
Thanks Jeff and Eric,
Problem is now (mostly) solved.
I was using 32bit Python 2.6.3 on OS X 10.5 - simply a python.org 
installation. A couple of days ago, with a bit of free time, I 
upgraded to OS X 10.6. Generally pretty smooth, but I suspect some of 
my Python changes got crushed as I had pointed /usr/bin/python* to my 
2.6.3 install. After your emails, I checked and yes on 10.6, the 
compiler defaults to 64bit. So:
cd geos-2.2.3
export CFLAGS="-m32"
export GEOS_DIR=/usr/local
./configure --prefix=$GEOS_DIR
make
sudo make install
Another complete build but unfortunately same library reference problem.
So....decided to go down the MacPorts path. Many automated downloads 
later, I now have a successful Basemap install (yay!)
Many thanks to the folks who have contributed to MacPorts and 
interestingly geos 3.1.1 is installed.
Only present worry is that wxWidgets port is not building on 10.6 - 
yet to resolve that.
And FYI, to check whether you have a 64bit Python install:
192-168-1-3:basemap-0.99.4 tim$ python
Python 2.6.4 (r264:75706, Nov 6 2009, 18:14:21)
[GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> import sys; print sys.maxint
9223372036854775807
if you get a smaller number, you have a 32bit interpreter
P.S. Should simpletest.py not be called 'hello_world.py' :-)
Tim Burgess
From: Jeff B. <jef...@gm...> - 2009年11月06日 08:22:07
For the first question, try ax.view_init(elev, azim)
Kevin Dunn-2 wrote:
> 
> Thanks for a great library and excellent documentation.
> 
> I'm using mpl_toolkits.mplot3d.Axes3D (version 0.99.0) to generate a 3D
> scatter plot and the web examples have been very useful so far. But I
> have
> these questions to which I can't find answers in the mailing lists or the
> website:
> 
> a) can you programmatically set the viewing angle (azimuth and elevation)?
> I noticed the ax.get_proj() function, but was hoping there would be an
> ax.set_proj(elev=..., az=....) function also.
> b) can you set all 6 sides of the bounding box to show up, instead of 3,
> but
> set their faces to be transparent (of course!)
> 
> Thanks,
> Kevin
> 
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9&#45;12, 2009. Register
> now&#33;
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
> 
-- 
View this message in context: http://old.nabble.com/3d-plots%3A-set-view-angle-%28azimuth-and-elevation%29-tp25527048p26228256.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Tom L. <le...@ih...> - 2009年11月06日 07:14:04
Hi.
I would like to introduce my usage of Matplotlib...
"
Gridspy provides you with an interactive view of resource usage in your 
building. It gives you hard data on your consumption patterns and helps 
you to make informed decisions.
...
The Gridspy allows you to access and monitor your consumption patterns 
in real-time using a standard web browser on your PC, laptop or mobile 
phone. The data is presented in high resolution and updated each second 
as you watch. The moment a light is turned on in your house, you can see 
the change on your Gridspy dashboard from across the room or across the 
planet.
"
We use Matplotlib to prepare graphs in PNG format that form an essential 
part of our dashboard here (it loads nice and fast, trust me):
http://your.gridspy.co.nz/powertech/
The blog discusses our Python Twisted backend, and other stuff:
http://blog.gridspy.co.nz/
Finally you can follow my progress as I take this product to market on 
twitter:
http://www.twitter.com/gridspy/
It has been a fantastic system to work with, and it was easy to generate 
beautiful and meaningful graphs. Thanks to everyone who has made this 
possible!
What is everyone else working on?
-Tom
From: Alan J. <al...@aj...> - 2009年11月06日 04:07:18
Trying to get a colleague to start using python, he ran into trouble,
getting an error exit whenever he tried to fire up
ipython -pylab
After much searching, he figured it out... it appears that a small patch may be
in order. Here is his note :
> I found it: I have a font installed in my personal fonts 
> directory that has non-integral sides for the "bounding box" 
> of the font.
> 
> Fortunately, it seems like once I move my ~/.fonts 
> directory "off to the side" and then run
> 
> ipython -pylab
> 
> then some of that configuration info must be cached, since I 
> am able to move my .fonts file back and still have my ipython 
> -pylab come up.
> 
> The offending line is in the return statement below
> 
> #Convert string the a python type
> _to_int = int
> _to_float = float
> _to_str = str
> 
> def _to_list_of_ints(s):
> s = s.replace(',', ' ')
> return [_to_int(val) for val in s.split()]
> 
> and I think a fix would be along the lines of Alan's remark:
> 
> return [_to_int(_to_float(val)) for val in s.split()]
> 
> This is in the file
> 
> /glb/apps/sss/epd/2.5.4.2.30201/lib/python2.5/site-packages/ma
> tplotlib-0.98.5.2n1-py2.5-linux-x86_64.egg/matplotlib/afm.py
> 
> Anyway, it works for me.
-- 
-----------------------------------------------------------------------
| Alan K. Jackson | To see a World in a Grain of Sand |
| al...@aj... | And a Heaven in a Wild Flower, |
| www.ajackson.org | Hold Infinity in the palm of your hand |
| Houston, Texas | And Eternity in an hour. - Blake |
-----------------------------------------------------------------------

Showing 6 results of 6

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