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





Showing 5 results of 5

From: Michael D. <md...@st...> - 2009年11月06日 20:26:40
This is a good suggestion.
I've committed your patch (with a slight modification so it works with 
the STIX fonts also) in SVN r7944 and r7645.
Thanks, and more patches always welcome!
Mike
Sean Arms wrote:
> Greetings,
>
> I've been checking out the code in lib/matplotlib/mathtext.py with the
> hope of adding support for a "widebar". I have something that works,
> although unlike \widetilde and \widehat, I can only find one glyph and
> it's in cmr10. I've attached a patch that adds \widebar support using
> svn rev 7943 if anyone is interested!
>
> Cheers!
>
> Sean Arms
> University of Oklahoma
> School of Meteorology
> PhD Candidate
>
> Index: lib/matplotlib/mathtext.py
> ===================================================================
> --- lib/matplotlib/mathtext.py (revision 7943)
> +++ lib/matplotlib/mathtext.py (working copy)
> @@ -769,6 +769,7 @@
> ('ex', '\x64')],
> r'\widetilde': [('rm', '\x7e'), ('ex', '\x65'), ('ex', '\x66'),
> ('ex', '\x67')],
> + r'\widebar' : [('rm', '\xB9')],
> r'<' : [('cal', 'h'), ('ex', 'D')],
> r'>' : [('cal', 'i'), ('ex', 'E')]
> }
> @@ -2481,7 +2482,7 @@
> r'overleftarrow' : r'\leftarrow'
> }
>
> - _wide_accents = set(r"widehat widetilde".split())
> + _wide_accents = set(r"widehat widetilde widebar".split())
>
> def accent(self, s, loc, toks):
> assert(len(toks)==1)
> 
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> ------------------------------------------------------------------------
>
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
> 
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Darren D. <dsd...@gm...> - 2009年11月06日 19:03:37
On Wed, Nov 4, 2009 at 5:29 PM, Pierre Raybaut <co...@py...> wrote:
> A simpler fix would be:
>
>    class FigureWindow(QtGui.QMainWindow):
>      def __init__(self):
>        super(FigureWindow, self).__init__()
>
>      def closeEvent(self, event):
>        super(FigureWindow, self).closeEvent(event)
>        self.emit(QtCore.SIGNAL('destroyed()'))
>
> and replacing QtGui.QMainWindow by FigureWindow in FigureManagerQT.
I am pretty sure this is not caused by matplotlib, but rather a
regression in PyQt4 that will be fixed in the next release. There is a
post on the PyQt mailing list titled "Regressions on destruction of
objects?" and a note in the development snapshots changelog. If I try
your example with PyQt4-4.5.4, it works fine, but it crashes with
4.6.1. I will revisit the issue once PyQt4-4.7 is released.
Darren
From: Sean A. <les...@gm...> - 2009年11月06日 18:48:43
Attachments: mathtext_widebar.patch
Greetings,
I've been checking out the code in lib/matplotlib/mathtext.py with the
hope of adding support for a "widebar". I have something that works,
although unlike \widetilde and \widehat, I can only find one glyph and
it's in cmr10. I've attached a patch that adds \widebar support using
svn rev 7943 if anyone is interested!
Cheers!
Sean Arms
University of Oklahoma
School of Meteorology
PhD Candidate
Index: lib/matplotlib/mathtext.py
===================================================================
--- lib/matplotlib/mathtext.py (revision 7943)
+++ lib/matplotlib/mathtext.py (working copy)
@@ -769,6 +769,7 @@
 ('ex', '\x64')],
 r'\widetilde': [('rm', '\x7e'), ('ex', '\x65'), ('ex', '\x66'),
 ('ex', '\x67')],
+ r'\widebar' : [('rm', '\xB9')],
 r'<' : [('cal', 'h'), ('ex', 'D')],
 r'>' : [('cal', 'i'), ('ex', 'E')]
 }
@@ -2481,7 +2482,7 @@
 r'overleftarrow' : r'\leftarrow'
 }
- _wide_accents = set(r"widehat widetilde".split())
+ _wide_accents = set(r"widehat widetilde widebar".split())
 def accent(self, s, loc, toks):
 assert(len(toks)==1)
From: Darren D. <dsd...@gm...> - 2009年11月06日 14:16:45
Hi Pierre,
Thanks for the report. I'll have a look as soon as I get a chance.
Darren
On Wed, Nov 4, 2009 at 5:29 PM, Pierre Raybaut <co...@py...> wrote:
> A simpler fix would be:
>
>    class FigureWindow(QtGui.QMainWindow):
>      def __init__(self):
>        super(FigureWindow, self).__init__()
>
>      def closeEvent(self, event):
>        super(FigureWindow, self).closeEvent(event)
>        self.emit(QtCore.SIGNAL('destroyed()'))
>
> and replacing QtGui.QMainWindow by FigureWindow in FigureManagerQT.
>
> Pierre
>
> Pierre Raybaut a écrit :
>> Hi,
>>
>> Some Spyder users have reported a critical bug occuring with
>> matplotlib 0.99's Qt4 backend and PyQt4 v4.6 (e.g. in Ubuntu Karmic).
>>
>>
>> Here is the traceback after calling 'plot([])', closing figure and
>> calling again 'plot([])' (e.g. in an IPython session with options
>> --pylab and --q4thread):
>>
>> Traceback (most recent call last):
>> File "/home/rick/Temp/untitled0.py", line 9, in <module>
>>  show()
>> File "/usr/lib/pymodules/python2.6/matplotlib/backends/backend_qt4.py",
>> line 63, in show
>>  manager.window.show()
>> RuntimeError: underlying C/C++ object has been deleted
>>
>>
>> I found out that the 'destroyed()' signal (connected in class
>> FigureManagerQT) is never emitted when figure is closed.
>> As a consequence, SIP is not very happy when trying to draw a deleted
>> object...
>>
>> I made the following changes to make it work:
>>
>> # New class to clarify code in FigureManagerQT
>> class FigureWindow(QtGui.QMainWindow):
>>  def __init__(self, num, canvas, close_callback):
>>    super(FigureWindow, self).__init__()
>>    self.close_callback = close_callback
>>    self.setAttribute(QtCore.Qt.WA_DeleteOnClose)
>>    self.setWindowTitle("Figure %d" % num)
>>    image = os.path.join(matplotlib.rcParams['datapath'],
>>               'images', 'matplotlib.png')
>>    self.setWindowIcon(QtGui.QIcon(image))
>>    self._destroying = False
>>    self.setCentralWidget(canvas)
>>    if matplotlib.is_interactive():
>>      self.show()
>>      def closeEvent(self, event):
>>    super(FigureWindow, self).closeEvent(event)
>>    self.close_callback()
>>
>> class FigureManagerQT( FigureManagerBase ):
>>  """
>>  Public attributes
>>
>>  canvas   : The FigureCanvas instance
>>  num     : The Figure number
>>  toolbar   : The qt.QToolBar
>>  window   : The qt.QMainWindow
>>  """
>>
>>  def __init__( self, canvas, num ):
>>    if DEBUG: print 'FigureManagerQT.%s' % fn_name()
>>    FigureManagerBase.__init__( self, canvas, num )
>>    self.canvas = canvas
>>
>>    # Give the keyboard focus to the figure instead of the manager
>>    self.canvas.setFocusPolicy( QtCore.Qt.ClickFocus )
>>    self.canvas.setFocus()
>>
>>    self.window = FigureWindow(num, self.canvas, self._widgetclosed)
>>    self.toolbar = self._get_toolbar(self.canvas, self.window)
>>    self.window.addToolBar(self.toolbar)
>>    QtCore.QObject.connect(self.toolbar, QtCore.SIGNAL("message"),
>>                self.window.statusBar().showMessage)
>> # [...]
>>
>> And we may now remove the "QtCore.QObject.disconnect" for the no
>> longer existing signal 'destroyed()' in method 'FigureManagerQT.
>> destroy'.
>>
>> HTH
>>
>> Cheers,
>> Pierre
>>
>>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
On Tue, Nov 3, 2009 at 11:28 AM, Fernando Perez <fpe...@gm...> wrote:
> if you reside in the San Francisco Bay Area, you may be interested in
> a meeting we'll be having tomorrow November 4 (2-4 pm), as part of our
> regular py4science meeting series. Guido van Rossum, the creator of
> the Python language, will visit for a session where we will first do a
> very rapid overview of a number of scientific projects that use Python
> (in a lightning talk format) and then we will have an open discussion
> with Guido with hopefully interesting questions going in both
> directions. The meeting is open to all, bring your questions!
Video of the event:
http://www.archive.org/details/ucb_py4science_2009_11_04_Guido_van_Rossum
Slides: http://fperez.org/py4science/2009_guido_ucb/index.html
A few blog posts about it:
- Guido: http://neopythonic.blogspot.com/2009/11/python-in-scientific-world.html
- Jarrod: http://jarrodmillman.blogspot.com/2009/11/visit-from-guido-van-rossum.html
- Matthew: http://nipyworld.blogspot.com/2009/11/guido-van-rossum-talks-about-python-3.html
- Me: http://fdoperez.blogspot.com/2009/11/guido-van-rossum-at-uc-berkeleys.html
Attendance was excellent (standing room only, and I saw some people
leave because it was too full). Many thanks to all the presenters!
Cheers,
f

Showing 5 results of 5

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