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


Showing 6 results of 6

From: PGM <pgm...@gm...> - 2006年08月25日 21:00:29
Hola,
Use the SVN version, it works pretty OK with 1.0b2
From: Flavio C. <fcc...@gm...> - 2006年08月25日 20:52:28
hi
which is the latest version of numpy supported by matplotlib?
I recently updated to numpy 1.0b2 and I cant import pylab anymore.
part of the problem is this code of numerix.__init__.py:
elif which[0] =3D=3D "numpy":
 try:
 import numpy.oldnumeric as numpy
 from numpy.oldnumeric import *
 except ImportError:
 import numpy
 from numpy import *
 from _sp_imports import nx, infinity
 from _sp_imports import UInt8, UInt16, UInt32
 Matrix =3D matrix
matrix is no longer present on numpy.oldnumeric, so... it breaks....
any hints?
--=20
Fl=E1vio Code=E7o Coelho
registered Linux user # 386432
---------------------------
"Laws are like sausages. It's better not to see them being made."
Otto von Bismark
From: Derek H. <dh...@cs...> - 2006年08月25日 09:14:23
 Jouni=20
Wow! A guru at work... this solves all my current problems;
your insights and comments are most appreciated!
To return to my first post - matplotlib aims to make simple things
simple - I would argue that the way tickmarks are currently dealt
with is NOT simple & it would be great to see some simplifications
or additions to the interface to deal with the issues raised in this
thread (for example, by aligning their behaviour and properties to=20
other, similar, chart properties).
Thanks again,
Derek
>>> Jouni K Sepp=E4nen <jk...@ik...> 2006年08月23日 08:52 AM >>>
[Again copying to matplotlib-users; maybe the main developers can=20=20
comment on whether these shortcomings in the getp/setp interface=20=20
should be fixed.]
Hi Derek,
> It does seem as those these settings affect the top and bottom of=20=20
> the graph - I was wondering if it was possible to show tickmarks=20=20
> along the bottom edge but not the top edge?
I don't think that's directly supported. Here's a hacky way to do it:
 lines =3D getp(gca(), 'xticklines')
 toplines =3D [ l for l in lines if getp(l, 'ydata') =3D=3D (1,) ]
 setp(toplines, visible=3DFalse)
How I came up with this: I knew that I wanted to make some of the=20=20
xticklines invisible, so I looked at the list of line objects for=20=20
clues as to what differs between them. They seem to have xdata and=20=20
ydata properties, and ydata is (0,) for half of the lines and (1,)=20=20
for the other half, so it looks like it is the vertical position in=20=20
axis coordinates. (xdata seems to be in data coordinates.)
> And the other property I do not see on the list is the one that=20=20
> shows whether a tick goes "into" the graph or just "out" - in the=20=20
> prc file, there is a line:
> xtick.direction : in # direction: in or out
> but there is no "direction' property?
You're right, there is no obvious property to control this. Here's an=20=20
even hackier way to do this (and one that doesn't look very future-=20
proof):
 for l in getp(gca(), 'xticklines'):
 setp(l, 'marker', 5-getp(l, 'marker'))
The line objects have a marker property, which is 2 for some markers=20=20
and 3 for the others... so I guessed that one of them means upwards=20=20
and the other downwards, and checked this guess by flipping the=20=20
xtick.direction parameter and looking again. So subtracting the=20=20
marker from 5 flips the direction.
I wonder how this is done in Matlab?
> label: any string
>
> which shows me that the Yaxis has a label - in this case a
> string - but I do not see how one can set the font properties
> for the Yaxis label as it is not Text object??
I think you cannot do this with setp alone. Use the ylabel command:
 ylabel('foo bar', fontsize=3D18)
--=20
Jouni
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easi=
er
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642=20
_______________________________________________
Matplotlib-users mailing list
Mat...@li...=20
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
--=20
This message is subject to the CSIR's copyright, terms and conditions and
e-mail legal notice. Views expressed herein do not necessarily represent the
views of the CSIR.
=20
CSIR E-mail Legal Notice
http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html=20
=20
CSIR Copyright, Terms and Conditions
http://mail.csir.co.za/CSIR_Copyright.html=20
=20
For electronic copies of the CSIR Copyright, Terms and Conditions and the C=
SIR
Legal Notice send a blank message with REQUEST LEGAL in the subject line to
Cal...@cs....
This message has been scanned for viruses and dangerous content by MailScan=
ner,=20
and is believed to be clean.
From: Eric F. <ef...@ha...> - 2006年08月25日 07:55:42
Jordan Dawe wrote:
> So I have a contourf plot and I am resetting the ylims so as to only 
> display a subset of the full contourf plot. Is there anyway to set norm 
> and the colorbar so they take their colormapping settings using the data 
> currently on display? By which I mean: the full dataset has a range of 
> 260-320. The reset axes limits display a region that only has values 
> between 280-310. I'd like the colormap to extend over this range of 
> values automatically, without having to set vmin=280, vmax=310. Any way 
> to do that?
Jordan,
I don't think so; and although I have not thought hard about it, my 
impression is that adding this capability would take a lot of work and 
redesign. I expect that in most cases what you describe would not be 
the desired behavior, so it would have to be a non-default option.
Eric
From: Michael F. <mp...@be...> - 2006年08月25日 02:16:37
Hi all,
Sometime in the past couple months, there's been a change in SVN that's 
causing me problems when trying to hide tick labels. I think the problem is 
related to the get_xticklabels()/get_yticklabels() methods of the Axes class, 
in that they only return a list consisting of a single tick label no matter 
how many there should be. I'm encountering this problem in SVN rev. 2706.
Here is some example code:
from pylab import *
# set up a plot
x = arange(5)
ax = subplot(111)
ax.plot(x, x)
# hide the first tick label on the x axis
xtl = ax.get_xticklabels()
xtl[0].set_visible(False)
print len(xtl)
ax.set_xlabel('foo')
show()
For me, no x tick labels are drawn, and the length of xtl is one instead of 
the expected 9. 
Can anyone reproduce this?
Mike
From: Jordan D. <jd...@eo...> - 2006年08月25日 00:13:15
So I have a contourf plot and I am resetting the ylims so as to only 
display a subset of the full contourf plot. Is there anyway to set norm 
and the colorbar so they take their colormapping settings using the data 
currently on display? By which I mean: the full dataset has a range of 
260-320. The reset axes limits display a region that only has values 
between 280-310. I'd like the colormap to extend over this range of 
values automatically, without having to set vmin=280, vmax=310. Any way 
to do that?
Jordan

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