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




Showing 10 results of 10

From: Jeremy L. <jl...@in...> - 2009年06月08日 19:46:52
I want to let matplotlib control where the tick marks go, but I want to 
scale the value of the tick labels. For example,
if my matrix has a 100 columns the tick marks might be [0,25,50,100]. I 
want to scale these tick labels by some value say .01 so that the 
corresponding tick labels would be [0,.25,.5,1].
Now say I zoom in on the image so that the xaxis limits are (0,50). Lets 
suppose the tick marks are now [0,10,20,30,40,50]
Then in this case the tick labels should be
[0,.1,.2,.3,.4,.5]
So how do I go about creating a custom formatter?
Thanks
Jeremy
Michael Droettboom wrote:
> What are you setting the x ticklabels to? If you want to control how 
> the numbers are displayed, you can create a custom formatter (which is 
> basically a function to convert a floating-point number to a string). 
> If you want to control the number of ticks across the axis, you can make 
> a custom ticker.
>
> If you can describe what your end goal is, I'm happy to describe the 
> above options in more detail.
>
> Cheers,
> Mike
>
> Jeremy Lewi wrote:
> 
>> Hi,
>> I'm using imshow to make an image of a 2-d matrix. I use 
>> set_xticklabels to adjust the x-axis labels. The problem is that when I 
>> then zoom in on the plot, the axis labels are not adjusted 
>> appropriately. Does anyone suggestions on how I can fix this?
>>
>> Thanks
>> Jeremy
>>
>> ------------------------------------------------------------------------------
>> Crystal Reports - New Free Runtime and 30 Day Trial
>> Check out the new simplified licensing option that enables unlimited
>> royalty-free distribution of the report engine for externally facing 
>> server and web deployment.
>> http://p.sf.net/sfu/businessobjects
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>> 
>> 
>
> 
From: John H. <jd...@gm...> - 2009年06月08日 19:43:52
On Mon, Jun 8, 2009 at 2:14 PM, Gökhan SEVER<gok...@gm...> wrote:
> Hello,
>
> How do you add you automatically check-out new added files from matplotlib
> trunk? Is there a specific svn command for this?
Check out svn as indicated here::
 http://matplotlib.sourceforge.net/faq/installing_faq.html#install-from-svn
Once you have a checkout, you can get updates with ::
 > svn up
JDH
From: Michael D. <md...@st...> - 2009年06月08日 19:24:22
What are you setting the x ticklabels to? If you want to control how 
the numbers are displayed, you can create a custom formatter (which is 
basically a function to convert a floating-point number to a string). 
If you want to control the number of ticks across the axis, you can make 
a custom ticker.
If you can describe what your end goal is, I'm happy to describe the 
above options in more detail.
Cheers,
Mike
Jeremy Lewi wrote:
> Hi,
> I'm using imshow to make an image of a 2-d matrix. I use 
> set_xticklabels to adjust the x-axis labels. The problem is that when I 
> then zoom in on the plot, the axis labels are not adjusted 
> appropriately. Does anyone suggestions on how I can fix this?
>
> Thanks
> Jeremy
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing 
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> 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: Gökhan S. <gok...@gm...> - 2009年06月08日 19:22:08
On Mon, Jun 8, 2009 at 2:16 PM, John Hunter <jd...@gm...> wrote:
> On Mon, Jun 8, 2009 at 2:14 PM, Gökhan SEVER<gok...@gm...> wrote:
> > Hello,
> >
> > How do you add you automatically check-out new added files from
> matplotlib
> > trunk? Is there a specific svn command for this?
>
>
> Check out svn as indicated here::
>
>
> http://matplotlib.sourceforge.net/faq/installing_faq.html#install-from-svn
>
> Once you have a checkout, you can get updates with ::
>
> > svn up
>
> JDH
>
I need to issue a "python setup.py install" after each svn up, right?
From: Gökhan S. <gok...@gm...> - 2009年06月08日 19:14:23
Hello,
How do you add you automatically check-out new added files from matplotlib
trunk? Is there a specific svn command for this?
Another question: For example IPython has uses bzr and when I issue bzr
branch lp:ipython command I grab the latest development branch. I do a
development installation quoting from IPython documentation:
"Some users want to be able to follow the development branch as it changes.
If you have setuptools installed, this is easy. Simply replace the last step
by:
$ python setupegg.py develop
and one more step:
This creates links in the right places and installs the command line script
to the appropriate places. Then, if you want to update your IPython at any
time, just do:
$ bzr pull
No duplicated folders and bzr pulls the changes for me.
Could this be possible with matplotlib's VCS system?
Thank you
Gökhan
From: Jeremy L. <jl...@in...> - 2009年06月08日 19:10:00
Hi,
 I'm using imshow to make an image of a 2-d matrix. I use 
set_xticklabels to adjust the x-axis labels. The problem is that when I 
then zoom in on the plot, the axis labels are not adjusted 
appropriately. Does anyone suggestions on how I can fix this?
Thanks
Jeremy
From: green63 <mag...@vo...> - 2009年06月08日 18:06:27
I ve a problem with the use of griddata.
I have a grid of x,y with value z. the grid have 4500 points
I would like to have a rigular grid of 1500 points.
I try the function zi = griddata(x,y,z,xi,yi)
but I have an error "too many indices". I don't understant why!!!
x,y,z,xi and yi are numpy array with 1 column.
Sorry for my bad english!!
Thanks
Josh Lawrence-2 wrote:
> 
> Greetings all,
> 
> In using the function griddata in mlab.py, I think I have found a bug. 
> The following line in mlab.py errors for me.
> I supply it an xi and yi that have shape (N,1). I have surface data, 
> but I only care about the variation in one direction. In mlab, when it 
> gets to this line (2956 in svn revision 7040):
> 
> if min(xo[1:]-xo[0:-1]) < 0 or min(yo[1:]-yo[0:-1]) < 0:
> raise ValueError, 'output grid defined by xi,yi must be 
> monotone increasing'
> 
> the result is an error. That is, I get the following:
> 
> ValueError: min() arg is an empty sequence
> 
> A couple of things. First, if I make my variation in x to be 2 points 
> (x = 0 for the case I'm interested in--so I just have both values of x 
> be zero), I do not get this error and I believe the result works. So, 
> it seems that there should be some handling of the case that there are 
> only 1 point in either x or y direction.
> 
> Second, is it better to use the builtin python function min, or should 
> numpy.min be used instead?
> 
> Cheers,
> 
> Josh Lawrence
> Ph.D. Student
> Clemson University
> 
> 
> ------------------------------------------------------------------------------
> Stay on top of everything new and different, both inside and 
> around Java (TM) technology - register by April 22, and save
> 200ドル on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
> 300 plus technical and hands-on sessions. Register today. 
> Use priority code J9JMT32. http://p.sf.net/sfu/p
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
> 
-- 
View this message in context: http://www.nabble.com/Griddata-tp23083610p23929245.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Sebastian B. <web...@th...> - 2009年06月08日 07:19:53
Attachments: signature.asc
Esmail wrote:
> ...
> By the way, any idea how different the MayaVi interface is? I understand that
> matplotlib doesn't do 3D plots and I may want to plot some.
> ...
Hey Esmail,
there was the possibility for 3D plots in matplotlib:
http://www.scipy.org/Cookbook/Matplotlib/mplot3D
however, the mayavi "mlab" interface was designed explicitly to be as
simple as pylab.
http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/mlab.html
have fun 3D plotting,
sebastian.
From: Esmail <eb...@ho...> - 2009年06月08日 03:10:11
Brian Blais wrote:
> On Jun 4, 2009, at 19:48 , Esmail wrote:
> 
>> Someone recently generously shared this code with me on the python
> 
> since I was the one to share this with you, I might be able to answer a 
> couple questions. :)
Hi Brian,
(sorry for the tardy reply)
I was grateful for the code example, I didn't want to bother you with
more questions.
>> .. these sort of things I
>> am curious to learn about before I see them in code for the first
>> time.
>>
> 
> actually, that's how I learned most of it...by seeing it in code at some 
> point. :)
Yes, that is very instructive - though a nice narrative/tutorial would
be good too. I'll have to see if I can find a copy of the book locally for
me to look through.
> hope this helps,
It sure does, thanks again,
Esmail
From: Esmail <eb...@ho...> - 2009年06月08日 03:05:34
John Hunter wrote:
> On Thu, Jun 4, 2009 at 6:48 PM, Esmail <eb...@ho...> wrote:
>> Hi,
>>
>> Beginning Python Visualization: Crafting Visual Transformation Scripts
>> by Shai Vaingast
>> http://www.amazon.com/Beginning-Python-Visualization-Transformation-Professionals/dp/1430218436/ref=sr_1_1?ie=UTF8&s=books&qid=1244158389&sr=8-1
>>
>>
>> Has anyone seen/read this book? I am looking for a good
>> hardcopy reference for matplotlib and associated tools.
>>
>> While the gallery on the matplotlib site is a good way to learn, I
>> would like a reference guide that I could easily print out or
>> a tutorial of sorts, or possibly this book.
Hi John,
(sorry for the tardy reply)
> Have you tried the official docs? While they are not complete, they do
> cover a number of things you mention that you have not seen before
> (ion, draw, tutorial, etc.)
> 
> HTML: http://matplotlib.sourceforge.net/users/index.html
> PDF: http://matplotlib.sf.net/Matplotlib.pdf
Thanks for these links, I don't have a problem looking up stuff once
I see it used (like I did once I examined the sample code), but the
problem is unless I see it used, I really don't know that it's available :-)
I guess looking over the various APIs will help.
> The book you refer to was recently reviewed on slashdot, BTW
> 
> http://books.slashdot.org/article.pl?sid=09/05/27/1327255&from=rss
> 
> I've browsed some chapters on Amazon, and it looks well done, but have
> not read it myself.
I read the ./ review, and there was a post on the general python mailing list
too - it looks promising. I'll have to see if I can find a copy to browse it
myself. I've really been impressed with this software (usually I'm a big fan
of gnuplot).
By the way, any idea how different the MayaVi interface is? I understand that
matplotlib doesn't do 3D plots and I may want to plot some.
Thanks again,
Esmail
1 message has been excluded from this view by a project administrator.

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