SourceForge logo
SourceForge logo
Menu

matplotlib-devel — matplotlib developers

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
(1)
Nov
(33)
Dec
(20)
2004 Jan
(7)
Feb
(44)
Mar
(51)
Apr
(43)
May
(43)
Jun
(36)
Jul
(61)
Aug
(44)
Sep
(25)
Oct
(82)
Nov
(97)
Dec
(47)
2005 Jan
(77)
Feb
(143)
Mar
(42)
Apr
(31)
May
(93)
Jun
(93)
Jul
(35)
Aug
(78)
Sep
(56)
Oct
(44)
Nov
(72)
Dec
(75)
2006 Jan
(116)
Feb
(99)
Mar
(181)
Apr
(171)
May
(112)
Jun
(86)
Jul
(91)
Aug
(111)
Sep
(77)
Oct
(72)
Nov
(57)
Dec
(51)
2007 Jan
(64)
Feb
(116)
Mar
(70)
Apr
(74)
May
(53)
Jun
(40)
Jul
(519)
Aug
(151)
Sep
(132)
Oct
(74)
Nov
(282)
Dec
(190)
2008 Jan
(141)
Feb
(67)
Mar
(69)
Apr
(96)
May
(227)
Jun
(404)
Jul
(399)
Aug
(96)
Sep
(120)
Oct
(205)
Nov
(126)
Dec
(261)
2009 Jan
(136)
Feb
(136)
Mar
(119)
Apr
(124)
May
(155)
Jun
(98)
Jul
(136)
Aug
(292)
Sep
(174)
Oct
(126)
Nov
(126)
Dec
(79)
2010 Jan
(109)
Feb
(83)
Mar
(139)
Apr
(91)
May
(79)
Jun
(164)
Jul
(184)
Aug
(146)
Sep
(163)
Oct
(128)
Nov
(70)
Dec
(73)
2011 Jan
(235)
Feb
(165)
Mar
(147)
Apr
(86)
May
(74)
Jun
(118)
Jul
(65)
Aug
(75)
Sep
(162)
Oct
(94)
Nov
(48)
Dec
(44)
2012 Jan
(49)
Feb
(40)
Mar
(88)
Apr
(35)
May
(52)
Jun
(69)
Jul
(90)
Aug
(123)
Sep
(112)
Oct
(120)
Nov
(105)
Dec
(116)
2013 Jan
(76)
Feb
(26)
Mar
(78)
Apr
(43)
May
(61)
Jun
(53)
Jul
(147)
Aug
(85)
Sep
(83)
Oct
(122)
Nov
(18)
Dec
(27)
2014 Jan
(58)
Feb
(25)
Mar
(49)
Apr
(17)
May
(29)
Jun
(39)
Jul
(53)
Aug
(52)
Sep
(35)
Oct
(47)
Nov
(110)
Dec
(27)
2015 Jan
(50)
Feb
(93)
Mar
(96)
Apr
(30)
May
(55)
Jun
(83)
Jul
(44)
Aug
(8)
Sep
(5)
Oct
Nov
(1)
Dec
(1)
2016 Jan
Feb
Mar
(1)
Apr
May
Jun
(2)
Jul
Aug
(3)
Sep
(1)
Oct
(3)
Nov
Dec
2017 Jan
Feb
(5)
Mar
Apr
May
Jun
Jul
(3)
Aug
Sep
(7)
Oct
Nov
Dec
2018 Jan
Feb
Mar
Apr
May
Jun
Jul
(2)
Aug
Sep
Oct
Nov
Dec
S M T W T F S

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



Showing 6 results of 6

From: John H. <jdh...@ac...> - 2005年08月24日 23:16:32
>>>>> "Vinj" == Vinj Vinj <vin...@ya...> writes:
 Vinj> I recently upgraded from 0.8 to 0.83 and now the x labels do
 Vinj> not rotate.
 ...snip...
 Vinj> When I revert back to 0.8 the labels are correctly
 Vinj> displayed. I use the following code for formatting the
 Vinj> xlabels:
Not sure why you are having trouble.
htdocs/screenshots/finance_work2.py is working for me with matplotlib
CVS, 0.83.2 and 0.83
Can you test the finance_work2.py example so at least we're working
with the same code? And since there were a few releases in the 0.83
series, it might help if you post the result of running your code with
the --verbose-helpful example so I know which bugfix release you are
working with. Here's what I get:
peds-pc311:~/python/projects/htdocs/screenshots> python
finance_work2.py -dTkAgg --verbose-helpful
matplotlib data path /usr/share/matplotlib
$HOME=/home/jdhunter
loaded rc file
/home/jdhunter/python/projects/htdocs/screenshots/matplotlibrc
matplotlib version 0.83
verbose.level helpful
interactive is False
platform is linux2
numerix numarray 1.1.1
font search path ['/usr/share/matplotlib']
CONFIGDIR=/home/jdhunter/.matplotlib
loaded ttfcache file /home/jdhunter/.matplotlib/ttffont.cache
backend TkAgg version 8.4
JDH
From: John H. <jdh...@ac...> - 2005年08月24日 23:02:27
>>>>> "Helge" == Helge Avlesen <he...@gm...> writes:
 Helge> Hi, this is a very useful option, similar to that of the
 Helge> "axis image" of matlab. a small wish from me: is it also
 Helge> possible to let the option "freeze" the aspect ratio of the
 Helge> figure(s) in question when the window is resized? this is
 Helge> like the matlab behaviour for "axis image", e.g. when the
 Helge> window is enlarged in such a way that the aspect ratio of
 Helge> the window changes, the aspect ratio of the figure(s)
 Helge> remains the same while the increase.
Hey Helge,
This would be useful, but is nontrivial. To make it work, matplotlib
needs to expose the "resize event" across backends so that the Axes
code can connect to it and update itself during the resize. Please
file a support request on the sf site at
http://sourceforge.net/tracker/?group_id=80706&atid=560721
Thanks,
JDH
From: John H. <jdh...@ac...> - 2005年08月24日 17:25:07
>>>>> "Jeff" == Jeff Whitaker <js...@fa...> writes:
 Jeff> Here's a patch against 0.83.2 that modifies colorbar to use
 Jeff> contourf instead of imshow (so that only those colors used
 Jeff> by contourf are shown on the colorbar). It also adds a few
 Jeff> keyword options to colorbar to 1) allow for linear spacing
 Jeff> of colors on the colorbar (even if the contour levels are
 Jeff> not linear), and 2) draw lines on the colorbar between the
 Jeff> individual colors. Eric and Jim: I think you have both been
 Jeff> hacking on colorbar, perhaps we could merge your changes
 Jeff> into this patch? Otherwise, if no one has any objections,
 Jeff> I'll commit this to CVS later this week.
I haven't tested this but I did read over it and have one minor
comment
I tend to avoid catching all exceptions as in
+ try:
+ # mappable image is from contourf
+ clevs = array(mappable.levels.tolist() + [mappable.level_upper])
+ iscontourf = True
+ except:
+ # from imshow or pcolor.
+ iscontourf = False
+ norm = mappable.norm
+ if norm.vmin is None or norm.vmax is None:
+ mappable.autoscale()
+ cmin = norm.vmin
+ cmax = norm.vmax
+ clevs = linspace(cmin, cmax, cmap.N)
because they can lead to hard to track bugs. I suggest either
catching an AttributeError or testing explicitly for ContourMappable,
eg
if isinstance(mappable, ContourMappable):
 # do something
elif isinstance(mappable, ScalarMappable):
 # do something else
else:
 Raise TypeError("don't know how to handle type %s"%type(mappable))
Thanks,
JDH
From: Jeff W. <js...@fa...> - 2005年08月24日 17:11:46
Here's a patch against 0.83.2 that modifies colorbar to use contourf 
instead of imshow (so that only those colors used by contourf are shown 
on the colorbar). It also adds a few keyword options to colorbar to 1) 
allow for linear spacing of colors on the colorbar (even if the contour 
levels are not linear), and 2) draw lines on the colorbar between the 
individual colors. 
Eric and Jim: I think you have both been hacking on colorbar, perhaps 
we could merge your changes into this patch? Otherwise, if no one has 
any objections, I'll commit this to CVS later this week.
Attached also is a test script to exercise the new colorbar features. 
The default behavior should be the same as before.
-Jeff
-- 
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/CDC R/CDC1 Email : Jef...@no...
325 Broadway Office : Skaggs Research Cntr 1D-124
Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
From: Fernando P. <Fer...@co...> - 2005年08月24日 16:43:32
Charles Moad wrote:
> 	I still get an even more random segfault when using the ipython -pylab option. 
> Here is about the closest thing I can do to reproduce (most of the time).
> 
> plot(rand(100))
> f = get_current_fig_manager()
> f.canvas.get_width_height()
> s = f.canvas.tostring_rgb()
> f.canvas.<tab>Segmentation fault
> 
> Here is more verbosity if it helps.
What backend are you using? Can you try with different ones (ipython -pylab 
adapts automatically, just change your default backend in your 
~/.matplotlib/matplotlibrc file). What version of matplotlib are you using?
Here's what I get, using matplotlib 0.83.2 (official release):
- TkAgg, QtAgg, WXAgg: no problem, can't reproduce your crash, works normally.
- GTKAgg: instant crash on my box (even before getting to where it crashes for 
you):
In [1]: plot(rand(100))
---------------------------------------------------------------------------
exceptions.SystemError Traceback (most recent 
call last)
SystemError: Objects/moduleobject.c:48: bad argument to internal function
Segmentation fault
I won't worry about this one, as it may be that I screwed something up in the 
build, and I don't use GTK ever anyway.
But knowing what backends trigger your crash will help narrow things down.
Cheers,
f
From: Charles M. <cm...@in...> - 2005年08月24日 16:03:35
	I still get an even more random segfault when using the ipython -pylab option. 
 Here is about the closest thing I can do to reproduce (most of the time).
plot(rand(100))
f = get_current_fig_manager()
f.canvas.get_width_height()
s = f.canvas.tostring_rgb()
f.canvas.<tab>Segmentation fault
Here is more verbosity if it helps.
.....
In [4]:f.canvas.get_width_height
------>f.canvas.get_width_height()
Out[4]:(640, 480)
In [5]:f.canvas.
Display all 294 possibilities? (y or n) <typed "n">
In [5]:f.canvas.to
f.canvas.tostring_argb f.canvas.tostring_rgb
In [5]:s = f.canvas.tostring_rgb()
In [6]:f.canvas.Segmentation fault
Thanks,
	Charlie

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