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



Showing results of 33

1 2 > >> (Page 1 of 2)
From: Darren D. <dsd...@gm...> - 2008年12月12日 22:01:52
On Fri, Dec 12, 2008 at 3:55 PM, Michael Droettboom <md...@st...> wrote:
> <snip>
>
> Darren Dale wrote:
>
>>
>> And I forgot that because mathtext used to be an all-or-nothing
>> enterprise, there was no reason to escape the $ in regular text. Once you
>> made it possible to embed mathtext in a regular string, I think it would
>> have been better in the long run to require \,ドル but the powerful financial
>> interests and their fat-cat lobbyists won the day.
>>
> lol ... I'm ready for my payout now... :)
>
>>
>> What I would prefer is to raise a deprecation warning when an odd number
>> of dollar signs are encountered, giving people time to learn to escape their
>> $ and modify their code. I wonder how disruptive this would be to people
>> using mpl for finance? If that is unacceptable, I guess the best solution is
>> as you propose, but maybe usetex should issue a warning that it has modified
>> the string rather than strictly interpret it.
>>
> That sounds like a good solution going forward.
>
>>
>> Do you know if there are any other inconsistencies between the
>> text/mathtext markup and latex?
>>
>> Doh! That's actually a very illuminating question... One which, had I
> thought of it earlier, I might have never thought of dealing with $ at
> all... ;)
>
> Basically anything that is meaningful markup in TeX would have to be
> escaped for usetex, but not for regular text. In that sense, $ is just one
> of many. Think of "{brackets}", for instance. You get "{brackets}" with
> regular text, and "brackets" with usetex. I'm sure the list of these things
> is fairly long.
What else is there that is likely to cause problems going from mpltext to
usetex? math: \( \). displaymath (which is not supported in mathtext and
strongly discouraged in usetex): \[ \], $$ $$ . \( \) are probably so rarely
used in regular text that they could be made to mean the same thing in
mathtext as they do in usetex. displaymath could raise an error in both
usetex and mathtext. ^ and _ render in regular text but raises an error
outside of mathmode with usetex (my installation of texlive actually
attempts to do the right thing and insert the missing mathmode characters in
the case of ^ and _.) %. ~ (nonbreaking space). #. Unicode? Ugh.
> We don't want to start implicitly escaping those for usetex. All this
> supports the theory that perhaps the gap between regular text and usetex is
> too wide to reasonably bridge.
>
> While originally this morning thought "let's just fix the inconsistencies",
> I'm now leaning to just adding a note to the docs that "regular text and
> usetex is fundamentally incompatible in a lot of ways" and leaving it at
> that.
>
I think it would be worth stating in the docs that # $ % & ~ _ ^ \ { } \( \)
\[ \] have special meaning in latex but not in regular mpl text, so buyer
beware. It might be nice if mpl regular text rendered the escaped version of
all these characters the same way latex does, that would make it easier to
go from text to usetex.
Speaking of implicitly doing the right thing, last night I was in the middle
of working through a difficult bug when Windows Vista *kicked me out without
asking or issuing a warning*, installed updates, and rebooted. I'm still
mumbling under my breath about it. Friggin jerks.
From: Michael D. <md...@st...> - 2008年12月12日 20:55:36
<snip>
Darren Dale wrote:
>
> And I forgot that because mathtext used to be an all-or-nothing 
> enterprise, there was no reason to escape the $ in regular text. Once 
> you made it possible to embed mathtext in a regular string, I think it 
> would have been better in the long run to require \,ドル but the powerful 
> financial interests and their fat-cat lobbyists won the day.
lol ... I'm ready for my payout now... :)
> 
>
> What I would prefer is to raise a deprecation warning when an odd 
> number of dollar signs are encountered, giving people time to learn to 
> escape their $ and modify their code. I wonder how disruptive this 
> would be to people using mpl for finance? If that is unacceptable, I 
> guess the best solution is as you propose, but maybe usetex should 
> issue a warning that it has modified the string rather than strictly 
> interpret it.
That sounds like a good solution going forward.
>
> Do you know if there are any other inconsistencies between the 
> text/mathtext markup and latex?
>
Doh! That's actually a very illuminating question... One which, had I 
thought of it earlier, I might have never thought of dealing with $ at 
all... ;)
Basically anything that is meaningful markup in TeX would have to be 
escaped for usetex, but not for regular text. In that sense, $ is just 
one of many. Think of "{brackets}", for instance. You get "{brackets}" 
with regular text, and "brackets" with usetex. I'm sure the list of 
these things is fairly long. We don't want to start implicitly escaping 
those for usetex. All this supports the theory that perhaps the gap 
between regular text and usetex is too wide to reasonably bridge.
While originally this morning thought "let's just fix the 
inconsistencies", I'm now leaning to just adding a note to the docs that 
"regular text and usetex is fundamentally incompatible in a lot of ways" 
and leaving it at that.
Mike
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: John H. <jd...@gm...> - 2008年12月12日 20:49:08
On Fri, Dec 12, 2008 at 2:41 PM, Darren Dale <dsd...@gm...> wrote:
> What I would prefer is to raise a deprecation warning when an odd number of
> dollar signs are encountered, giving people time to learn to escape their $
> and modify their code. I wonder how disruptive this would be to people using
> mpl for finance?
Well, we used to need lots of dollar signs, but with the market crash
and credit crunch, we will probably get by with fewer going forward
<wink>
This is fine with me -- I suspect it is a very rare corner case.
JDH
From: Darren D. <dsd...@gm...> - 2008年12月12日 20:42:03
On Fri, Dec 12, 2008 at 2:22 PM, Michael Droettboom <md...@st...> wrote:
> Darren Dale wrote:
>
>> On Fri, Dec 12, 2008 at 1:06 PM, Michael Droettboom <md...@st...<mailto:
>> md...@st...>> wrote:
>>
>> Darren Dale wrote:
>>
>> On Fri, Dec 12, 2008 at 9:46 AM, Michael Droettboom
>> <md...@st... <mailto:md...@st...>
>> <mailto:md...@st... <mailto:md...@st...>>> wrote:
>>
>> Manuel Metz wrote:
>> > Michael Droettboom wrote:
>> >
>> >> There was a discussion on this list around a year ago about
>> this. The
>> >> concern was that not rendering $ as $ would break
>> (matplotlib)
>> backward
>> >> compatibility with scripts that don't care about math at all
>> but use a
>> >> lot of dollar signs (e.g. financial plots). This is one
>> of the few
>> >> places where we deliberately broke usetex compatibility in
>> favour of
>> >> matplotlib compatibility.
>> >>
>> >> That said, it's probably a bug that the escaped dollar
>> sign in
>> non-math
>> >> context is not rendered as a dollar sign.
>> >>
>> >> As a workaround "$\$%1.2f$" works with usetex on or off,
>> with the
>> >> proviso that it uses math- rather than text-rendering
>> for the
>> numbers.
>> >>
>> >> Mike
>> >>
>> >
>> > In that case I suggest to note this somewhere in the docs
>> (and User
>> > Guide) with three exclamation marks (or is it ???).
>> >
>> So there's really two sub-bugs here:
>>
>> 1) '\8ドル' gives '\8ドル' in mathtext (well, actually it gets
>> sent verbatim
>> to the non-math text renderer, which is a bug). This,
>> IMHO, is a
>> "must-fix".
>>
>> 2) '8ドル' gives '8ドル' in mathtext and an error in usetex.
>> This could be
>> solved in two ways:
>>
>> a) document the difference
>> b) make '8ドル' give '8ドル' in usetex as well
>>
>> I realise b) is technically making usetex accept a string
>> that is not
>> normally valid TeX -- but it's not like a user would ever enter
>> '8ドル' and
>> *want* to get a TeX error back. And usetex strings aren't
>> perfectly TeX
>> anyway.
>>
>> Personally, I'm leaning toward b), because it requires less
>> mental
>> effort for the user turning usetex on/off. And it doesn't
>> force us to
>> backtrack on the idea of supporting "100ドル.00" easily.
>>
>> But before I commit -- any feedback?
>>
>> I opposed to b). If we go that route, we can look forward to
>> advertising usetex as "a latex backend, with familiar,
>> standard latex markup, except when it isnt."
>>
>> It's not as bad as that. '\8ドル' will still work as in LaTeX as it
>> always has and as a LaTeX expert would expect it to. All I'm
>> proposing is that '8ドル', which is currently a LaTeX syntax error,
>> will behave as it does when usetex is turned off. So it's not
>> breaking anything that's already valid.
>>
>> It's a question of which pain is worse, I guess.
>>
>> The deeper question is -- should usetex even strive to have any
>> compatibility with standard text? If not, then I can see your point.
>>
>>
>> http://matplotlib.sourceforge.net/users/mathtext.html advertises \$ as
>> markup for $.
>>
> That's always worked and still worked -- that's not the bug at hand.
>
>> I think it was unwise to accept $ for $ in mathtext in the first place,
>> since mathtext uses tex markup anyway.
>>
> I'm not proposing that at all. I think we're running into a
> misunderstanding about what I mean by "mathtext" and the scope of the
> proposed change. By mathtext, I mean "the text between a pair of $ $ when
> usetex is off". mathtext aims to be TeX-compatible (for a subset). Regular
> text does not (and in fact has no markup whatsoever). That last point, I
> believe, is the root of this problem and why reconciling usetex with
> non-usetex may be a losing battle, as you're starting to convince me.
> usetex is simply not the same thing as regular matplotlib text.
>
> I'll clarify anyway -- but I'm starting to think that unless there is
> someone doing financial plots with usetex that is dying for this feature,
> I'll just leave it.
>
> The bug at hand deals with regular text, not math text. There has been a
> test in the non-usetex code path for a long time to determine if there is
> any math in the string (by looking for an even number of non-escaped $) and
> allow the simple monetary case to work without needing to escape the $.
Right. I'm not criticizing the work you did on mathtext, which I think is
amazing and could not have done myself. And I forgot that because mathtext
used to be an all-or-nothing enterprise, there was no reason to escape the $
in regular text. Once you made it possible to embed mathtext in a regular
string, I think it would have been better in the long run to require \,ドル but
the powerful financial interests and their fat-cat lobbyists won the day.
> It used to be impossible to interleave math and regular text in the same
> string and I needed a way to add support for interleaving without breaking
> existing usage, and without requiring an explicit flag saying "my string has
> math". It's not perfect -- if you want to have math *and* use a dollar
> sign, you still have to know what you're doing and do some sort of escaping.
> But it's served well for over a year.
>
Thanks for reminding me, I forgot the context.
>
> The question, then, is whether to bring those smarts over to usetex, and
> whether any sort of usetex/non-usetex consistency is a goal.
>
>>
>> If we went with b), how sure are you that you can identify when a dollar
>> sign is intended and when mathmode is intended? Does "$A-100ドル+B*200ドル$" mean
>> $(A-100+200B) or A-100+200 or ..., I know this is an unlikely example, I'm
>> just trying to think of the unintended consequences of circumventing one of
>> the least buggy pieces of software in existence (I mean tex, not latex).
>>
>> It means [A-]100+B*[200] (where the contents in brackets is math,
> otherwise text), just like in TeX. An example where there is ambiguity is
> when you have an odd number, such as "$A-100ドル+B$". In TeX, that's a syntax
> error, but with my proposed change (and in non-usetex already) it would
> render as "$A-100ドル+B$". So at best, it's a "does the right thing", and at
> worst is a "silent fail", depending on your perspective.
>
> Hope that clears things up.
>
What I would prefer is to raise a deprecation warning when an odd number of
dollar signs are encountered, giving people time to learn to escape their $
and modify their code. I wonder how disruptive this would be to people using
mpl for finance? If that is unacceptable, I guess the best solution is as
you propose, but maybe usetex should issue a warning that it has modified
the string rather than strictly interpret it.
Do you know if there are any other inconsistencies between the text/mathtext
markup and latex?
From: Neal B. <ndb...@gm...> - 2008年12月12日 19:40:00
sudo easy_install -U matplotlib
Searching for matplotlib
Reading http://pypi.python.org/simple/matplotlib/
Reading http://matplotlib.sourceforge.net
Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194
Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474
Reading http://sourceforge.net/project/showfiles.php?group_id=80706
Best match: matplotlib 0.98.5
Downloading http://downloads.sourceforge.net/matplotlib/matplotlib-0.98.5.tar.gz?modtime=1229034572&big_mirror=0
Processing matplotlib-0.98.5.tar.gz
Running matplotlib-0.98.5/setup.py -q bdist_egg --dist-dir /tmp/easy_install-CC1jw7/matplotlib-0.98.5/egg-dist-tmp-NSNvcC
============================================================================
BUILDING MATPLOTLIB
 matplotlib: 0.98.5
 python: 2.5.2 (r252:60911, Sep 30 2008, 15:42:03) [GCC
 4.3.2 20080917 (Red Hat 4.3.2-4)]
 platform: linux2
REQUIRED DEPENDENCIES
 numpy: 1.2.0
 freetype2: 9.18.3
OPTIONAL BACKEND DEPENDENCIES
 libpng: 1.2.33
 Tkinter: Tkinter: 50704, Tk: 8.5, Tcl: 8.5
 * Guessing the library and include directories for
 * Tcl and Tk because the tclConfig.sh and
 * tkConfig.sh could not be found and/or parsed.
 wxPython: 2.8.9.1
 * WxAgg extension not required for wxPython >= 2.8
 Gtk+: gtk+: 2.14.4, glib: 2.18.3, pygtk: 2.13.0,
 pygobject: 2.15.4
 Mac OS X native: no
 Qt: Qt: 3.3.8, PyQt: 3.17.4
 Qt4: Qt: 4.4.1, PyQt4: 4.4.3
 Cairo: 1.4.12
OPTIONAL DATE/TIMEZONE DEPENDENCIES
 datetime: present, version unknown
 dateutil: 1.4
 pytz: 2006p
OPTIONAL USETEX DEPENDENCIES
 dvipng: 1.11
 ghostscript: 8.63
 latex: 3.141592
EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
 configobj: 4.5.2
 enthought.traits: no
[Edit setup.cfg to suppress the above messages]
============================================================================
error: lib/matplotlib/mpl-data/matplotlib.conf.template: No such file or directory
Exception exceptions.OSError: (2, 'No such file or directory', 'src/image.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0x7fc85b3c51b8>> ignored
Exception exceptions.OSError: (2, 'No such file or directory', 'src/path.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0x7fc85b3c4638>> ignored
Exception exceptions.OSError: (2, 'No such file or directory', 'src/backend_gdk.c') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0x7fc85978c7a0>> ignored
Exception exceptions.OSError: (2, 'No such file or directory', 'src/backend_agg.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0x7fc85b3c4fc8>> ignored
From: Michael D. <md...@st...> - 2008年12月12日 19:22:58
Thanks. These are really helpful pointers. For me, this is the one 
missing piece that would help me use git full-time, particularly with 
the way matplotlib and other projects I work on are laid out in SVN. So 
I'm pretty motivated to figure this out.
I'll certainly share any findings in this regard.
Cheers,
Mike
Andrew Straw wrote:
> Hi Mike,
>
> I have not imported the branches. ( IIRC, this was there were several
> that weren't MPL but other parts of the repo such as py4science,
> toolkits and so on). It may be possible to add just the 0.98.5
> maintenance branch without the others, but I won't have a chance
> immediately to play around with that.
>
> To add all the branches to your git repo, you might be able to add
> something like "branches = branches/*:refs/remotes/branches/*" to the
> [svn-remote "svn"] section of .git/config and re-do "git svn fetch"...
> This will grab all the branches over all svn history, which will, I
> think, pull in py4science and toolkits branches... And I guess the
> download time from svn will be extremely long... In that case it's
> probably better to rsync from sourceforge's server to a local disk and
> do the git svn checkout that way making a whole new git repo.
>
> It may be worth attempting to talk to some real git/svn gurus at this
> point about tracking (only one or a couple) svn branches with git
> branches. So far, I've only dealt with the trunk in my git/svn
> interoperation experience.
>
> -Andrew
>
> Michael Droettboom wrote:
> 
>> Thanks. I've incorporated your docs into the developer documentation.
>>
>> My next experiment will be to see if I can track the 0.98.5 maintenance 
>> branch with git. SVN tags/* show up as available remote branches, but 
>> not branches/*, which leaves me a bit stumped? If you've done this and 
>> there's a quick answer, let me know, otherwise I'll do a little digging 
>> to see if it's possible.
>>
>> Mike
>>
>> Andrew Straw wrote:
>> 
>>> Hi Michael,
>>>
>>> The main issue is that we can't use git "normally" because the main
>>> history will be kept with svn. Thus, there's going to be a lot of
>>> history rewriting going on through the rebase command. (These
>>> complications are obviously not the ideal scenario for git newbies...)
>>> Rather than answer your questions directly, I'll walk you through how I
>>> do things. (This is not tried on the MPL svn repo, but some a private
>>> svn repo. I don't see any fundamental differences, though. So this
>>> should work.)
>>>
>>> (Hopefully this will be cut-and-pasteable ReST, which could go in the
>>> docs somewhere):
>>>
>>> Making a git feature branch and committing to svn trunk
>>> -------------------------------------------------------
>>>
>>> Start with a virgin tree in sync with the svn trunk on the git branch
>>> "master"::
>>>
>>> git checkout master
>>> git svn rebase
>>>
>>> To create a new, local branch called "whizbang-branch"::
>>>
>>> git checkout -b whizbang-branch
>>>
>>> Do make commits to the local branch::
>>>
>>> # hack on a bunch of files
>>> git add bunch of files
>>> git commit -m "modified a bunch of files"
>>> # repeat this as necessary
>>>
>>> Now, go back to the master branch and append the history of your branch
>>> to the master branch, which will end up as the svn trunk::
>>>
>>> git checkout master
>>> git svn rebase # Ensure we have most recent svn
>>> git rebase whizbang-branch # Append whizbang changes to master branch
>>> git svn dcommit -n # Check that this will apply to svn
>>> git svn dcommit # Actually apply to svn
>>>
>>> Finally, you may want to continue working on your whizbang-branch, so
>>> rebase it to the new master::
>>>
>>> git checkout whizbang-branch
>>> git rebase master
>>>
>>> Michael Droettboom wrote:
>>> 
>>> 
>>>> This is mostly for Andrew Straw, but thought anyone else experimenting
>>>> with git may be interested. I'm going through some real newbie pains
>>>> here, and I don't think what I'm doing is all that advanced.
>>>>
>>>> So, I've had a local git repository cloned from github (as per Andrew's
>>>> instructions), made a branch, started hacking, all is well. Now, I
>>>> would like to update my master branch from SVN to get some of the recent
>>>> changes others have been making.
>>>>
>>>> Following the instructions in the FAQ,
>>>>
>>>> git svn rebase
>>>>
>>>> actually results in a number of conflicts in files I didn't touch. I
>>>> shouldn't have to resolve this conflicts, right? 'git status' shows no
>>>> local changes, nothing staged -- nothing that should conflict.
>>>>
>>>> It turns out, if I do
>>>>
>>>> git pull
>>>>
>>>> then,
>>>>
>>>> git svn rebase
>>>>
>>>> all is well.
>>>>
>>>> Any idea why? Should I add that to the instructions in the FAQ?
>>>>
>>>> Now, here's where I'm really stumped. I finished my experimental
>>>> branch, and I would like to commit it back to SVN.
>>>>
>>>> This is what I did, with comments preceded by '#'
>>>>
>>>> # Go back to the master branch
>>>> 
>>>> 
>>>>> git checkout master
>>>>> 
>>>>> 
>>>> # Merge in experimental
>>>> 
>>>> 
>>>>> git merge experimental
>>>>> 
>>>>> 
>>>> # Ok -- looks good: experimental new feature is integrated, there were
>>>> no conflicts
>>>> # However...
>>>> 
>>>> 
>>>>> git svn dcommit
>>>>> 
>>>>> 
>>>> Committing to
>>>> https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib
>>>> ...
>>>> Merge conflict during commit: File or directory
>>>> 'doc/users/whats_new.rst' is out of date; try updating: resource out of
>>>> date; try updating at /home/mdroe/usr/libexec/git-core//git-svn line 467
>>>> # 1) I didn't change that file, why should I care
>>>> # 2) I don't know who to update it
>>>> 
>>>> 
>>>>> git pull
>>>>> 
>>>>> 
>>>> Already up-to-date.
>>>> 
>>>> 
>>>>> git svn rebase
>>>>> 
>>>>> 
>>>> First, rewinding head to replay your work on top of it...
>>>> Applying: more doc adds
>>>> /home/mdroe/builds/matplotlib.git/.git/rebase-apply/patch:14: trailing
>>>> whitespace.
>>>> a lot of new features and bug-fixes. warning: 1 line adds whitespace
>>>> errors.
>>>> Applying: added some docs for linestyles and markers
>>>> Applying: Remove trailing whitespace.
>>>> Applying: figure/subplot and font_manager bugfixes
>>>> Applying: added support for xlwt in exceltools
>>>> Applying: fixed a typo in whats_new_98_4_legend.py
>>>> Applying: fixed typo in Line2D.set_marker doc.
>>>> Applying: /matplotlib/__init__.py: catch OSError when calling subprocess.
>>>> Applying: more doc adds
>>>> /home/mdroe/builds/matplotlib.git/.git/rebase-apply/patch:14: trailing
>>>> whitespace.
>>>> a lot of new features and bug-fixes. error: patch failed:
>>>> doc/users/whats_new.rst:10
>>>> error: doc/users/whats_new.rst: patch does not apply
>>>> Using index info to reconstruct a base tree...
>>>> <stdin>:14: trailing whitespace.
>>>> a lot of new features and bug-fixes. warning: 1 line adds whitespace
>>>> errors.
>>>> Falling back to patching base and 3-way merge...
>>>> No changes -- Patch already applied.
>>>> Applying: added some docs for linestyles and markers
>>>> error: patch failed: doc/devel/coding_guide.rst:62
>>>> error: doc/devel/coding_guide.rst: patch does not apply
>>>> error: patch failed: doc/matplotlibrc:43
>>>> error: doc/matplotlibrc: patch does not apply
>>>> error: patch failed: doc/pyplots/whats_new_98_4_legend.py:4
>>>> error: doc/pyplots/whats_new_98_4_legend.py: patch does not apply
>>>> error: patch failed: lib/matplotlib/lines.py:313
>>>> error: lib/matplotlib/lines.py: patch does not apply
>>>> Using index info to reconstruct a base tree...
>>>> Falling back to patching base and 3-way merge...
>>>> Auto-merged doc/pyplots/whats_new_98_4_legend.py
>>>> CONFLICT (content): Merge conflict in doc/pyplots/whats_new_98_4_legend.py
>>>> Auto-merged lib/matplotlib/lines.py
>>>> Failed to merge in the changes.
>>>> Patch failed at 0010.
>>>>
>>>> When you have resolved this problem run "git rebase --continue".
>>>> If you would prefer to skip this patch, instead run "git rebase --skip".
>>>> To restore the original branch and stop rebasing run "git rebase --abort".
>>>>
>>>> rebase refs/remotes/trunk: command returned error: 1
>>>> # Ok, I'm back to merging files that don't conflict with my changes! # I
>>>> shouldn't have to do that, right?
>>>> # And FYI:
>>>> 
>>>> 
>>>>> git status
>>>>> 
>>>>> 
>>>> doc/pyplots/whats_new_98_4_legend.py: needs merge
>>>> # Not currently on any branch.
>>>> # Changes to be committed:
>>>> # (use "git reset HEAD <file>..." to unstage)
>>>> #
>>>> # modified: lib/matplotlib/lines.py
>>>> #
>>>> # Changed but not updated:
>>>> # (use "git add <file>..." to update what will be committed)
>>>> #
>>>> # unmerged: doc/pyplots/whats_new_98_4_legend.py
>>>> #
>>>> # Untracked files:
>>>> # (use "git add <file>..." to include in what will be committed)
>>>> #
>>>> # lib/matplotlib/mpl-data/matplotlib.conf
>>>> # lib/matplotlib/mpl-data/matplotlibrc
>>>> # setupext.pyc
>>>> # src/backend_agg.cpp~
>>>>
>>>> Now I feel stuck. How do I "undo" the merge from experimental to master?
>>>>
>>>> Sorry if these are obvious questions, but I think I've followed the
>>>> git-svn instructions -- I must have made a mistake somewhere along the
>>>> way, but I'm not sure how to debug and/or fix it.
>>>>
>>>> Mike
>>>> 
>>>> 
>>> 
>>> 
>> ------------------------------------------------------------------------------
>> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
>> The future of the web can't happen without you. Join us at MIX09 to help
>> pave the way to the Next Web now. Learn more and register at
>> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
>> _______________________________________________
>> 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: Michael D. <md...@st...> - 2008年12月12日 19:22:28
Darren Dale wrote:
> On Fri, Dec 12, 2008 at 1:06 PM, Michael Droettboom <md...@st... 
> <mailto:md...@st...>> wrote:
>
> Darren Dale wrote:
>
> On Fri, Dec 12, 2008 at 9:46 AM, Michael Droettboom
> <md...@st... <mailto:md...@st...>
> <mailto:md...@st... <mailto:md...@st...>>> wrote:
>
> Manuel Metz wrote:
> > Michael Droettboom wrote:
> >
> >> There was a discussion on this list around a year ago about
> this. The
> >> concern was that not rendering $ as $ would break
> (matplotlib)
> backward
> >> compatibility with scripts that don't care about math at all
> but use a
> >> lot of dollar signs (e.g. financial plots). This is one
> of the few
> >> places where we deliberately broke usetex compatibility in
> favour of
> >> matplotlib compatibility.
> >>
> >> That said, it's probably a bug that the escaped dollar
> sign in
> non-math
> >> context is not rendered as a dollar sign.
> >>
> >> As a workaround "$\$%1.2f$" works with usetex on or off,
> with the
> >> proviso that it uses math- rather than text-rendering
> for the
> numbers.
> >>
> >> Mike
> >>
> >
> > In that case I suggest to note this somewhere in the docs
> (and User
> > Guide) with three exclamation marks (or is it ???).
> >
> So there's really two sub-bugs here:
>
> 1) '\8ドル' gives '\8ドル' in mathtext (well, actually it gets
> sent verbatim
> to the non-math text renderer, which is a bug). This,
> IMHO, is a
> "must-fix".
>
> 2) '8ドル' gives '8ドル' in mathtext and an error in usetex.
> This could be
> solved in two ways:
>
> a) document the difference
> b) make '8ドル' give '8ドル' in usetex as well
>
> I realise b) is technically making usetex accept a string
> that is not
> normally valid TeX -- but it's not like a user would ever enter
> '8ドル' and
> *want* to get a TeX error back. And usetex strings aren't
> perfectly TeX
> anyway.
>
> Personally, I'm leaning toward b), because it requires less
> mental
> effort for the user turning usetex on/off. And it doesn't
> force us to
> backtrack on the idea of supporting "100ドル.00" easily.
>
> But before I commit -- any feedback?
>
> I opposed to b). If we go that route, we can look forward to
> advertising usetex as "a latex backend, with familiar,
> standard latex markup, except when it isnt."
>
> It's not as bad as that. '\8ドル' will still work as in LaTeX as it
> always has and as a LaTeX expert would expect it to. All I'm
> proposing is that '8ドル', which is currently a LaTeX syntax error,
> will behave as it does when usetex is turned off. So it's not
> breaking anything that's already valid.
>
> It's a question of which pain is worse, I guess.
>
> The deeper question is -- should usetex even strive to have any
> compatibility with standard text? If not, then I can see your point.
>
>
> http://matplotlib.sourceforge.net/users/mathtext.html advertises \$ as 
> markup for $.
That's always worked and still worked -- that's not the bug at hand. 
> I think it was unwise to accept $ for $ in mathtext in the first 
> place, since mathtext uses tex markup anyway.
I'm not proposing that at all. I think we're running into a 
misunderstanding about what I mean by "mathtext" and the scope of the 
proposed change. By mathtext, I mean "the text between a pair of $ $ 
when usetex is off". mathtext aims to be TeX-compatible (for a 
subset). Regular text does not (and in fact has no markup whatsoever). 
That last point, I believe, is the root of this problem and why 
reconciling usetex with non-usetex may be a losing battle, as you're 
starting to convince me. usetex is simply not the same thing as regular 
matplotlib text.
I'll clarify anyway -- but I'm starting to think that unless there is 
someone doing financial plots with usetex that is dying for this 
feature, I'll just leave it.
The bug at hand deals with regular text, not math text. There has been 
a test in the non-usetex code path for a long time to determine if there 
is any math in the string (by looking for an even number of non-escaped 
$) and allow the simple monetary case to work without needing to escape 
the $. It used to be impossible to interleave math and regular text in 
the same string and I needed a way to add support for interleaving 
without breaking existing usage, and without requiring an explicit flag 
saying "my string has math". It's not perfect -- if you want to have 
math *and* use a dollar sign, you still have to know what you're doing 
and do some sort of escaping. But it's served well for over a year.
The question, then, is whether to bring those smarts over to usetex, and 
whether any sort of usetex/non-usetex consistency is a goal.
>
> If we went with b), how sure are you that you can identify when a 
> dollar sign is intended and when mathmode is intended? Does 
> "$A-100ドル+B*200ドル$" mean $(A-100+200B) or A-100+200 or ..., I know this 
> is an unlikely example, I'm just trying to think of the unintended 
> consequences of circumventing one of the least buggy pieces of 
> software in existence (I mean tex, not latex).
>
It means [A-]100+B*[200] (where the contents in brackets is math, 
otherwise text), just like in TeX. An example where there is ambiguity 
is when you have an odd number, such as "$A-100ドル+B$". In TeX, that's a 
syntax error, but with my proposed change (and in non-usetex already) it 
would render as "$A-100ドル+B$". So at best, it's a "does the right 
thing", and at worst is a "silent fail", depending on your perspective.
Hope that clears things up.
Mike
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Andrew S. <str...@as...> - 2008年12月12日 18:44:54
Hi Mike,
I have not imported the branches. ( IIRC, this was there were several
that weren't MPL but other parts of the repo such as py4science,
toolkits and so on). It may be possible to add just the 0.98.5
maintenance branch without the others, but I won't have a chance
immediately to play around with that.
To add all the branches to your git repo, you might be able to add
something like "branches = branches/*:refs/remotes/branches/*" to the
[svn-remote "svn"] section of .git/config and re-do "git svn fetch"...
This will grab all the branches over all svn history, which will, I
think, pull in py4science and toolkits branches... And I guess the
download time from svn will be extremely long... In that case it's
probably better to rsync from sourceforge's server to a local disk and
do the git svn checkout that way making a whole new git repo.
It may be worth attempting to talk to some real git/svn gurus at this
point about tracking (only one or a couple) svn branches with git
branches. So far, I've only dealt with the trunk in my git/svn
interoperation experience.
-Andrew
Michael Droettboom wrote:
> Thanks. I've incorporated your docs into the developer documentation.
> 
> My next experiment will be to see if I can track the 0.98.5 maintenance 
> branch with git. SVN tags/* show up as available remote branches, but 
> not branches/*, which leaves me a bit stumped? If you've done this and 
> there's a quick answer, let me know, otherwise I'll do a little digging 
> to see if it's possible.
> 
> Mike
> 
> Andrew Straw wrote:
>> Hi Michael,
>>
>> The main issue is that we can't use git "normally" because the main
>> history will be kept with svn. Thus, there's going to be a lot of
>> history rewriting going on through the rebase command. (These
>> complications are obviously not the ideal scenario for git newbies...)
>> Rather than answer your questions directly, I'll walk you through how I
>> do things. (This is not tried on the MPL svn repo, but some a private
>> svn repo. I don't see any fundamental differences, though. So this
>> should work.)
>>
>> (Hopefully this will be cut-and-pasteable ReST, which could go in the
>> docs somewhere):
>>
>> Making a git feature branch and committing to svn trunk
>> -------------------------------------------------------
>>
>> Start with a virgin tree in sync with the svn trunk on the git branch
>> "master"::
>>
>> git checkout master
>> git svn rebase
>>
>> To create a new, local branch called "whizbang-branch"::
>>
>> git checkout -b whizbang-branch
>>
>> Do make commits to the local branch::
>>
>> # hack on a bunch of files
>> git add bunch of files
>> git commit -m "modified a bunch of files"
>> # repeat this as necessary
>>
>> Now, go back to the master branch and append the history of your branch
>> to the master branch, which will end up as the svn trunk::
>>
>> git checkout master
>> git svn rebase # Ensure we have most recent svn
>> git rebase whizbang-branch # Append whizbang changes to master branch
>> git svn dcommit -n # Check that this will apply to svn
>> git svn dcommit # Actually apply to svn
>>
>> Finally, you may want to continue working on your whizbang-branch, so
>> rebase it to the new master::
>>
>> git checkout whizbang-branch
>> git rebase master
>>
>> Michael Droettboom wrote:
>> 
>>> This is mostly for Andrew Straw, but thought anyone else experimenting
>>> with git may be interested. I'm going through some real newbie pains
>>> here, and I don't think what I'm doing is all that advanced.
>>>
>>> So, I've had a local git repository cloned from github (as per Andrew's
>>> instructions), made a branch, started hacking, all is well. Now, I
>>> would like to update my master branch from SVN to get some of the recent
>>> changes others have been making.
>>>
>>> Following the instructions in the FAQ,
>>>
>>> git svn rebase
>>>
>>> actually results in a number of conflicts in files I didn't touch. I
>>> shouldn't have to resolve this conflicts, right? 'git status' shows no
>>> local changes, nothing staged -- nothing that should conflict.
>>>
>>> It turns out, if I do
>>>
>>> git pull
>>>
>>> then,
>>>
>>> git svn rebase
>>>
>>> all is well.
>>>
>>> Any idea why? Should I add that to the instructions in the FAQ?
>>>
>>> Now, here's where I'm really stumped. I finished my experimental
>>> branch, and I would like to commit it back to SVN.
>>>
>>> This is what I did, with comments preceded by '#'
>>>
>>> # Go back to the master branch
>>> 
>>>> git checkout master
>>>> 
>>> # Merge in experimental
>>> 
>>>> git merge experimental
>>>> 
>>> # Ok -- looks good: experimental new feature is integrated, there were
>>> no conflicts
>>> # However...
>>> 
>>>> git svn dcommit
>>>> 
>>> Committing to
>>> https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib
>>> ...
>>> Merge conflict during commit: File or directory
>>> 'doc/users/whats_new.rst' is out of date; try updating: resource out of
>>> date; try updating at /home/mdroe/usr/libexec/git-core//git-svn line 467
>>> # 1) I didn't change that file, why should I care
>>> # 2) I don't know who to update it
>>> 
>>>> git pull
>>>> 
>>> Already up-to-date.
>>> 
>>>> git svn rebase
>>>> 
>>> First, rewinding head to replay your work on top of it...
>>> Applying: more doc adds
>>> /home/mdroe/builds/matplotlib.git/.git/rebase-apply/patch:14: trailing
>>> whitespace.
>>> a lot of new features and bug-fixes. warning: 1 line adds whitespace
>>> errors.
>>> Applying: added some docs for linestyles and markers
>>> Applying: Remove trailing whitespace.
>>> Applying: figure/subplot and font_manager bugfixes
>>> Applying: added support for xlwt in exceltools
>>> Applying: fixed a typo in whats_new_98_4_legend.py
>>> Applying: fixed typo in Line2D.set_marker doc.
>>> Applying: /matplotlib/__init__.py: catch OSError when calling subprocess.
>>> Applying: more doc adds
>>> /home/mdroe/builds/matplotlib.git/.git/rebase-apply/patch:14: trailing
>>> whitespace.
>>> a lot of new features and bug-fixes. error: patch failed:
>>> doc/users/whats_new.rst:10
>>> error: doc/users/whats_new.rst: patch does not apply
>>> Using index info to reconstruct a base tree...
>>> <stdin>:14: trailing whitespace.
>>> a lot of new features and bug-fixes. warning: 1 line adds whitespace
>>> errors.
>>> Falling back to patching base and 3-way merge...
>>> No changes -- Patch already applied.
>>> Applying: added some docs for linestyles and markers
>>> error: patch failed: doc/devel/coding_guide.rst:62
>>> error: doc/devel/coding_guide.rst: patch does not apply
>>> error: patch failed: doc/matplotlibrc:43
>>> error: doc/matplotlibrc: patch does not apply
>>> error: patch failed: doc/pyplots/whats_new_98_4_legend.py:4
>>> error: doc/pyplots/whats_new_98_4_legend.py: patch does not apply
>>> error: patch failed: lib/matplotlib/lines.py:313
>>> error: lib/matplotlib/lines.py: patch does not apply
>>> Using index info to reconstruct a base tree...
>>> Falling back to patching base and 3-way merge...
>>> Auto-merged doc/pyplots/whats_new_98_4_legend.py
>>> CONFLICT (content): Merge conflict in doc/pyplots/whats_new_98_4_legend.py
>>> Auto-merged lib/matplotlib/lines.py
>>> Failed to merge in the changes.
>>> Patch failed at 0010.
>>>
>>> When you have resolved this problem run "git rebase --continue".
>>> If you would prefer to skip this patch, instead run "git rebase --skip".
>>> To restore the original branch and stop rebasing run "git rebase --abort".
>>>
>>> rebase refs/remotes/trunk: command returned error: 1
>>> # Ok, I'm back to merging files that don't conflict with my changes! # I
>>> shouldn't have to do that, right?
>>> # And FYI:
>>> 
>>>> git status
>>>> 
>>> doc/pyplots/whats_new_98_4_legend.py: needs merge
>>> # Not currently on any branch.
>>> # Changes to be committed:
>>> # (use "git reset HEAD <file>..." to unstage)
>>> #
>>> # modified: lib/matplotlib/lines.py
>>> #
>>> # Changed but not updated:
>>> # (use "git add <file>..." to update what will be committed)
>>> #
>>> # unmerged: doc/pyplots/whats_new_98_4_legend.py
>>> #
>>> # Untracked files:
>>> # (use "git add <file>..." to include in what will be committed)
>>> #
>>> # lib/matplotlib/mpl-data/matplotlib.conf
>>> # lib/matplotlib/mpl-data/matplotlibrc
>>> # setupext.pyc
>>> # src/backend_agg.cpp~
>>>
>>> Now I feel stuck. How do I "undo" the merge from experimental to master?
>>>
>>> Sorry if these are obvious questions, but I think I've followed the
>>> git-svn instructions -- I must have made a mistake somewhere along the
>>> way, but I'm not sure how to debug and/or fix it.
>>>
>>> Mike
>>> 
>> 
> 
> 
> ------------------------------------------------------------------------------
> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
> The future of the web can't happen without you. Join us at MIX09 to help
> pave the way to the Next Web now. Learn more and register at
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
From: Darren D. <dsd...@gm...> - 2008年12月12日 18:38:26
On Fri, Dec 12, 2008 at 1:06 PM, Michael Droettboom <md...@st...> wrote:
> Darren Dale wrote:
>
> On Fri, Dec 12, 2008 at 9:46 AM, Michael Droettboom <md...@st...<mailto:
>> md...@st...>> wrote:
>>
>> Manuel Metz wrote:
>> > Michael Droettboom wrote:
>> >
>> >> There was a discussion on this list around a year ago about
>> this. The
>> >> concern was that not rendering $ as $ would break (matplotlib)
>> backward
>> >> compatibility with scripts that don't care about math at all
>> but use a
>> >> lot of dollar signs (e.g. financial plots). This is one of the few
>> >> places where we deliberately broke usetex compatibility in
>> favour of
>> >> matplotlib compatibility.
>> >>
>> >> That said, it's probably a bug that the escaped dollar sign in
>> non-math
>> >> context is not rendered as a dollar sign.
>> >>
>> >> As a workaround "$\$%1.2f$" works with usetex on or off, with the
>> >> proviso that it uses math- rather than text-rendering for the
>> numbers.
>> >>
>> >> Mike
>> >>
>> >
>> > In that case I suggest to note this somewhere in the docs (and User
>> > Guide) with three exclamation marks (or is it ???).
>> >
>> So there's really two sub-bugs here:
>>
>> 1) '\8ドル' gives '\8ドル' in mathtext (well, actually it gets sent verbatim
>> to the non-math text renderer, which is a bug). This, IMHO, is a
>> "must-fix".
>>
>> 2) '8ドル' gives '8ドル' in mathtext and an error in usetex. This could be
>> solved in two ways:
>>
>> a) document the difference
>> b) make '8ドル' give '8ドル' in usetex as well
>>
>> I realise b) is technically making usetex accept a string that is not
>> normally valid TeX -- but it's not like a user would ever enter
>> '8ドル' and
>> *want* to get a TeX error back. And usetex strings aren't
>> perfectly TeX
>> anyway.
>>
>> Personally, I'm leaning toward b), because it requires less mental
>> effort for the user turning usetex on/off. And it doesn't force us to
>> backtrack on the idea of supporting "100ドル.00" easily.
>>
>> But before I commit -- any feedback?
>>
>> I opposed to b). If we go that route, we can look forward to advertising
>> usetex as "a latex backend, with familiar, standard latex markup, except
>> when it isnt."
>>
> It's not as bad as that. '\8ドル' will still work as in LaTeX as it always
> has and as a LaTeX expert would expect it to. All I'm proposing is that
> '8ドル', which is currently a LaTeX syntax error, will behave as it does when
> usetex is turned off. So it's not breaking anything that's already valid.
>
> It's a question of which pain is worse, I guess.
>
> The deeper question is -- should usetex even strive to have any
> compatibility with standard text? If not, then I can see your point.
>
http://matplotlib.sourceforge.net/users/mathtext.html advertises \$ as
markup for $. I think it was unwise to accept $ for $ in mathtext in the
first place, since mathtext uses tex markup anyway.
If we went with b), how sure are you that you can identify when a dollar
sign is intended and when mathmode is intended? Does "$A-100ドル+B*200ドル$" mean
$(A-100+200B) or A-100+200 or ..., I know this is an unlikely example, I'm
just trying to think of the unintended consequences of circumventing one of
the least buggy pieces of software in existence (I mean tex, not latex).
From: Michael D. <md...@st...> - 2008年12月12日 18:06:32
Darren Dale wrote:
> On Fri, Dec 12, 2008 at 9:46 AM, Michael Droettboom <md...@st... 
> <mailto:md...@st...>> wrote:
>
> Manuel Metz wrote:
> > Michael Droettboom wrote:
> >
> >> There was a discussion on this list around a year ago about
> this. The
> >> concern was that not rendering $ as $ would break (matplotlib)
> backward
> >> compatibility with scripts that don't care about math at all
> but use a
> >> lot of dollar signs (e.g. financial plots). This is one of the few
> >> places where we deliberately broke usetex compatibility in
> favour of
> >> matplotlib compatibility.
> >>
> >> That said, it's probably a bug that the escaped dollar sign in
> non-math
> >> context is not rendered as a dollar sign.
> >>
> >> As a workaround "$\$%1.2f$" works with usetex on or off, with the
> >> proviso that it uses math- rather than text-rendering for the
> numbers.
> >>
> >> Mike
> >>
> >
> > In that case I suggest to note this somewhere in the docs (and User
> > Guide) with three exclamation marks (or is it ???).
> >
> So there's really two sub-bugs here:
>
> 1) '\8ドル' gives '\8ドル' in mathtext (well, actually it gets sent verbatim
> to the non-math text renderer, which is a bug). This, IMHO, is a
> "must-fix".
>
> 2) '8ドル' gives '8ドル' in mathtext and an error in usetex. This could be
> solved in two ways:
>
> a) document the difference
> b) make '8ドル' give '8ドル' in usetex as well
>
> I realise b) is technically making usetex accept a string that is not
> normally valid TeX -- but it's not like a user would ever enter
> '8ドル' and
> *want* to get a TeX error back. And usetex strings aren't
> perfectly TeX
> anyway.
>
> Personally, I'm leaning toward b), because it requires less mental
> effort for the user turning usetex on/off. And it doesn't force us to
> backtrack on the idea of supporting "100ドル.00" easily.
>
> But before I commit -- any feedback?
>
> 
> I opposed to b). If we go that route, we can look forward to 
> advertising usetex as "a latex backend, with familiar, standard latex 
> markup, except when it isnt."
It's not as bad as that. '\8ドル' will still work as in LaTeX as it always 
has and as a LaTeX expert would expect it to. All I'm proposing is that 
'8ドル', which is currently a LaTeX syntax error, will behave as it does 
when usetex is turned off. So it's not breaking anything that's already 
valid.
It's a question of which pain is worse, I guess.
The deeper question is -- should usetex even strive to have any 
compatibility with standard text? If not, then I can see your point.
Mike
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Gregor T. <gre...@gm...> - 2008年12月12日 18:01:28
Attachments: scatter.diff
I found that in scatter plots the alpha values given by individual 
entries in the color list are ignored. Here an example that shows 
different combinations of color and alpha arguments:
x = [1,2,3]
y = array([1,1,1])
c = [[1,0,0, 0.0],
 [1,0,0, 0.5],
 [1,0,0, 1.0]]
scatter(x, y, s = 200, c = 'r')
scatter(x, y + 1, s = 200, c = c)
scatter(x, y + 2, s = 200, c = c, alpha = 0.5)
scatter(x, y + 3, s = 200, c = 'g', alpha = 0.5)
Looking at the source in axes.py/scatter I found that replacing the 
default value for the alpha keyword argument in the function header of 
scatter from alpha=1.0 to alpha=None fixes this problem. Additionally, I 
had to replace
collection.set_alpha(alpha)
by
if alpha is not None:
 collection.set_alpha(alpha)
See also the attached diff file.
 
Gregor
From: Darren D. <dsd...@gm...> - 2008年12月12日 16:49:54
On Fri, Dec 12, 2008 at 9:46 AM, Michael Droettboom <md...@st...> wrote:
> Manuel Metz wrote:
> > Michael Droettboom wrote:
> >
> >> There was a discussion on this list around a year ago about this. The
> >> concern was that not rendering $ as $ would break (matplotlib) backward
> >> compatibility with scripts that don't care about math at all but use a
> >> lot of dollar signs (e.g. financial plots). This is one of the few
> >> places where we deliberately broke usetex compatibility in favour of
> >> matplotlib compatibility.
> >>
> >> That said, it's probably a bug that the escaped dollar sign in non-math
> >> context is not rendered as a dollar sign.
> >>
> >> As a workaround "$\$%1.2f$" works with usetex on or off, with the
> >> proviso that it uses math- rather than text-rendering for the numbers.
> >>
> >> Mike
> >>
> >
> > In that case I suggest to note this somewhere in the docs (and User
> > Guide) with three exclamation marks (or is it ???).
> >
> So there's really two sub-bugs here:
>
> 1) '\8ドル' gives '\8ドル' in mathtext (well, actually it gets sent verbatim
> to the non-math text renderer, which is a bug). This, IMHO, is a
> "must-fix".
>
> 2) '8ドル' gives '8ドル' in mathtext and an error in usetex. This could be
> solved in two ways:
>
> a) document the difference
> b) make '8ドル' give '8ドル' in usetex as well
>
> I realise b) is technically making usetex accept a string that is not
> normally valid TeX -- but it's not like a user would ever enter '8ドル' and
> *want* to get a TeX error back. And usetex strings aren't perfectly TeX
> anyway.
>
> Personally, I'm leaning toward b), because it requires less mental
> effort for the user turning usetex on/off. And it doesn't force us to
> backtrack on the idea of supporting "100ドル.00" easily.
>
> But before I commit -- any feedback?
>
I opposed to b). If we go that route, we can look forward to advertising
usetex as "a latex backend, with familiar, standard latex markup, except
when it isnt."
Darren
From: Michael D. <md...@st...> - 2008年12月12日 15:48:55
We have just released a new version of matplotlib, available for download at
 
https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194&release_id=646644
It is a simple bugfix release to fix a number of critical bugs found in 
0.98.4.
These "what's new" release notes, with graphs and links, are available 
in html at
 http://matplotlib.sourceforge.net/users/whats_new.html
Thanks to Charlie Moad for testing and preparing the source release,
including binaries for OS X and Windows for python 2.4 and 2.5 (2.6
and 3.0 will not be available until numpy is available on those
releases). Thanks to the many developers who contributed to this
release, with contributions from Jae-Joon Lee, Michael Droettboom,
Ryan May, Eric Firing, Manuel Metz, Jouni K. Seppaenen, Jeff Whitaker,
Darren Dale, David Kaplan, Michiel de Hoon and many others who
submitted patches
What's new in 0.98.5
==============================
It's only been a matter of days since 0.98.4, but there were a number of 
critical bugs that warranted a new release.
2008年12月11日 Use subprocess.Popen instead of os.popen in dviread
 (Windows problem reported by Jorgen Stenarson) - JKS
2008年12月10日 Added Michael's font_manager fix and Jae-Joon's
 figure/subplot fix. Bumped version number to 0.98.5 - JDH
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Manuel M. <mm...@as...> - 2008年12月12日 14:56:45
Michael Droettboom wrote:
> Manuel Metz wrote:
>> Michael Droettboom wrote:
>> 
>>> There was a discussion on this list around a year ago about this. The
>>> concern was that not rendering $ as $ would break (matplotlib) backward
>>> compatibility with scripts that don't care about math at all but use a
>>> lot of dollar signs (e.g. financial plots). This is one of the few
>>> places where we deliberately broke usetex compatibility in favour of
>>> matplotlib compatibility.
>>>
>>> That said, it's probably a bug that the escaped dollar sign in non-math
>>> context is not rendered as a dollar sign.
>>>
>>> As a workaround "$\$%1.2f$" works with usetex on or off, with the
>>> proviso that it uses math- rather than text-rendering for the numbers.
>>>
>>> Mike
>>> 
>>
>> In that case I suggest to note this somewhere in the docs (and User
>> Guide) with three exclamation marks (or is it ???).
>> 
> So there's really two sub-bugs here:
> 
> 1) '\8ドル' gives '\8ドル' in mathtext (well, actually it gets sent verbatim
> to the non-math text renderer, which is a bug). This, IMHO, is a
> "must-fix".
> 
> 2) '8ドル' gives '8ドル' in mathtext and an error in usetex. This could be
> solved in two ways:
> 
> a) document the difference
> b) make '8ドル' give '8ドル' in usetex as well
> 
> I realise b) is technically making usetex accept a string that is not
> normally valid TeX -- but it's not like a user would ever enter '8ドル' and
> *want* to get a TeX error back. And usetex strings aren't perfectly TeX
> anyway.
> 
> Personally, I'm leaning toward b), because it requires less mental
> effort for the user turning usetex on/off. And it doesn't force us to
> backtrack on the idea of supporting "100ドル.00" easily.
+1 + docs of this behavior
> But before I commit -- any feedback?
> 
> Mike
> 
From: Michael D. <md...@st...> - 2008年12月12日 14:46:08
Manuel Metz wrote:
> Michael Droettboom wrote:
> 
>> There was a discussion on this list around a year ago about this. The
>> concern was that not rendering $ as $ would break (matplotlib) backward
>> compatibility with scripts that don't care about math at all but use a
>> lot of dollar signs (e.g. financial plots). This is one of the few
>> places where we deliberately broke usetex compatibility in favour of
>> matplotlib compatibility.
>>
>> That said, it's probably a bug that the escaped dollar sign in non-math
>> context is not rendered as a dollar sign.
>>
>> As a workaround "$\$%1.2f$" works with usetex on or off, with the
>> proviso that it uses math- rather than text-rendering for the numbers.
>>
>> Mike
>> 
>
> In that case I suggest to note this somewhere in the docs (and User
> Guide) with three exclamation marks (or is it ???).
> 
So there's really two sub-bugs here:
1) '\8ドル' gives '\8ドル' in mathtext (well, actually it gets sent verbatim 
to the non-math text renderer, which is a bug). This, IMHO, is a 
"must-fix".
2) '8ドル' gives '8ドル' in mathtext and an error in usetex. This could be 
solved in two ways:
a) document the difference
b) make '8ドル' give '8ドル' in usetex as well
I realise b) is technically making usetex accept a string that is not 
normally valid TeX -- but it's not like a user would ever enter '8ドル' and 
*want* to get a TeX error back. And usetex strings aren't perfectly TeX 
anyway.
Personally, I'm leaning toward b), because it requires less mental 
effort for the user turning usetex on/off. And it doesn't force us to 
backtrack on the idea of supporting "100ドル.00" easily.
But before I commit -- any feedback?
Mike
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Manuel M. <mm...@as...> - 2008年12月12日 14:14:43
Michael Droettboom wrote:
> Well, if it's any consolation -- I just finished setting up the
> maintenance branch for 0.98.5, so there's a place for this fix to go... ;)
>
Okay, I just applied a patch to the 0.98.5 maintenance branch. Checked
it with numpy 1.2.1 and 1.3.0.dev6139. Both work fine.
mm
> 
> Manuel Metz wrote:
>> Manuel Metz wrote:
>> 
>>> Jae-Joon Lee wrote:
>>> 
>>>> I just committed the change. Although the change is trivial, I didn't
>>>> tested it in the numpy 1.2 or the svn version.
>>>> 
>>> Aaaargh, with numpy 1.2.1 this produces a warning !!! Very unlucky,
>>> since 0.98.5 is released...
>>> 
>>
>> See here: http://projects.scipy.org/scipy/numpy/ticket/797
>>
>> "08/05/08 10:47:34 changed by dhuard
>>
>> For version 1.2, I set new=None by default, which triggers the new
>> semantics and prints a warning. Setting new to True will trigger the
>> new semantics but won't print a warning. Done in r5611."
>>
>>
>> 
>>>> -JJ
>>>>
>>>>
>>>> On Sun, Dec 7, 2008 at 3:24 PM, John Hunter <jd...@gm...> wrote:
>>>> 
>>>>> I think the version check is a good idea, so people won't get the
>>>>> annoying
>>>>> warning. Could you add this?
>>>>>
>>>>> Sent from my iPhone
>>>>>
>>>>> On Dec 7, 2008, at 2:22 PM, "Jae-Joon Lee" <lee...@gm...>
>>>>> wrote:
>>>>>
>>>>> 
>>>>>> I'm currently using numpy 1.1.1 and np.histogram behave differently
>>>>>> depending on the "new" value.
>>>>>> ubuntu interpid and debian sid has numpy 1.1.1.1 and I presume that
>>>>>> this different behavior is still there.
>>>>>> So, as far as we're going to support numpy 1.1 and later, we may
>>>>>> better not to drop the "new" silently.
>>>>>> We may check the version number of the numpy in the hist() function,
>>>>>> and call np.histogram() accordingly.
>>>>>>
>>>>>> -JJ
>>>>>>
>>>>>>
>>>>>> On Sat, Dec 6, 2008 at 4:33 PM, John Hunter <jd...@gm...>
>>>>>> wrote:
>>>>>> 
>>>>>>> Axes.hist calls np.histogram with the "new" kwarg, which triggers a
>>>>>>> deprecation warning with svn numpy. Anyone have an opinion on
>>>>>>> whether
>>>>>>> this kwarg should be included in the upcoming mpl release?
>>>>>>>
>>>>>>> JDH
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>>
>>>>>>> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
>>>>>>> Nevada.
>>>>>>> The future of the web can't happen without you. Join us at MIX09
>>>>>>> to help
>>>>>>> pave the way to the Next Web now. Learn more and register at
>>>>>>>
>>>>>>> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Matplotlib-devel mailing list
>>>>>>> Mat...@li...
>>>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>>>>>>
>>>>>>> 
>>>> ------------------------------------------------------------------------------
>>>>
>>>> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
>>>> Nevada.
>>>> The future of the web can't happen without you. Join us at MIX09 to
>>>> help
>>>> pave the way to the Next Web now. Learn more and register at
>>>> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
>>>>
>>>> _______________________________________________
>>>> Matplotlib-devel mailing list
>>>> Mat...@li...
>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>>> 
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
>>> Nevada.
>>> The future of the web can't happen without you. Join us at MIX09 to
>>> help
>>> pave the way to the Next Web now. Learn more and register at
>>> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
>>>
>>> _______________________________________________
>>> Matplotlib-devel mailing list
>>> Mat...@li...
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>> 
>>
>> ------------------------------------------------------------------------------
>>
>> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
>> Nevada.
>> The future of the web can't happen without you. Join us at MIX09 to help
>> pave the way to the Next Web now. Learn more and register at
>> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
>>
>> _______________________________________________
>> Matplotlib-devel mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>> 
From: Manuel M. <mm...@as...> - 2008年12月12日 14:09:08
Michael Droettboom wrote:
> There was a discussion on this list around a year ago about this. The
> concern was that not rendering $ as $ would break (matplotlib) backward
> compatibility with scripts that don't care about math at all but use a
> lot of dollar signs (e.g. financial plots). This is one of the few
> places where we deliberately broke usetex compatibility in favour of
> matplotlib compatibility.
> 
> That said, it's probably a bug that the escaped dollar sign in non-math
> context is not rendered as a dollar sign.
> 
> As a workaround "$\$%1.2f$" works with usetex on or off, with the
> proviso that it uses math- rather than text-rendering for the numbers.
> 
> Mike
In that case I suggest to note this somewhere in the docs (and User
Guide) with three exclamation marks (or is it ???).
Manuel
> Manuel Metz wrote:
>> I just noted that mathtext and LaTeX rendering behave differently
>> when using a single "$" character in a text string. This happened to
>> me when looking at the dollar_ticks example from the docs because I
>> use LaTeX rendering by default. The problem is here:
>>
>> formatter = ticker.FormatStrFormatter('$%1.2f')
>>
>> MathText interprets this as a single "$" character, whereas LaTeX
>> interprets this as starting character of a math expression (and I get
>> an error), i.e. I have to write "\1ドル.2f" instead, which then, however,
>> is interpreted by MathText as "\$" ... :-(
>>
>> Shouldn't these two behave equally here?
>>
>> mm
From: Michael D. <md...@st...> - 2008年12月12日 14:04:25
Darren Dale wrote:
>
>
> On Wed, Dec 10, 2008 at 11:10 PM, John Hunter <jd...@gm... 
> <mailto:jd...@gm...>> wrote:
>
>
>
> On Wed, Dec 10, 2008 at 9:20 PM, Darren Dale <dsd...@gm...
> <mailto:dsd...@gm...>> wrote:
>
> There has been a report at the bugtracker complaining that
> matplotlib is overwriting an existing installation of
> configobj. I had a look at the code and thought the bug report
> must be a mistake or windows specific, but I just saw similar
> behavior on my linux system.
>
>
> Ignoring for a minute the question of whether we can/should flush
> configobj/traits, it sounds like the real problem is that
> setup.cfg is not working like we expect it to. And that is
> something that should be fixed if is broken. If mpl is installing
> configobj or traits even if we are telling it not to via
> setup.cfg, then we have a problem. This is worth knowing, since
> the last mpl release was broken vis-a-vis the default backend on
> win32, which *could* be explained by a broken setup.cfg.
>
>
> I would like to simply remove configobj and traits from our
> repository. They are only used by the long-neglected
> experimental traited config package, which is only of interest
> to developers who can easily install them as external
> dependencies. Is it ok to remove them? If so, should it be
> done on all the branches?
>
> [...]
>
>
> You can remove them from the trunk. They should remain on the
> 0.91 branch as is (with any known bugs fixed and merged) since
> that is the point of the branch (stability for those who cannot
> upgrade -- in principle someone might be depending on the traited
> config, in practice unlikely).
>
>
> I just removed them from the trunk, but not the 0.91 or 0.98.5 
> branches. I was going to add a note to the API_CHANGES log, was it 
> removed?
API_CHANGES was moved to doc/api/api_changes.rst so it gets 
automatically put up on the website.
Cheers,
Mike
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Darren D. <dsd...@gm...> - 2008年12月12日 13:41:34
On Wed, Dec 10, 2008 at 11:10 PM, John Hunter <jd...@gm...> wrote:
>
>
> On Wed, Dec 10, 2008 at 9:20 PM, Darren Dale <dsd...@gm...> wrote:
>
>> There has been a report at the bugtracker complaining that matplotlib is
>> overwriting an existing installation of configobj. I had a look at the code
>> and thought the bug report must be a mistake or windows specific, but I just
>> saw similar behavior on my linux system.
>
>
> Ignoring for a minute the question of whether we can/should flush
> configobj/traits, it sounds like the real problem is that setup.cfg is not
> working like we expect it to. And that is something that should be fixed if
> is broken. If mpl is installing configobj or traits even if we are telling
> it not to via setup.cfg, then we have a problem. This is worth knowing,
> since the last mpl release was broken vis-a-vis the default backend on
> win32, which *could* be explained by a broken setup.cfg.
>
>
> I would like to simply remove configobj and traits from our repository.
>> They are only used by the long-neglected experimental traited config
>> package, which is only of interest to developers who can easily install them
>> as external dependencies. Is it ok to remove them? If so, should it be done
>> on all the branches?
>>
> [...]
>
> You can remove them from the trunk. They should remain on the 0.91 branch
> as is (with any known bugs fixed and merged) since that is the point of the
> branch (stability for those who cannot upgrade -- in principle someone might
> be depending on the traited config, in practice unlikely).
>
I just removed them from the trunk, but not the 0.91 or 0.98.5 branches. I
was going to add a note to the API_CHANGES log, was it removed?
From: Michael D. <md...@st...> - 2008年12月12日 13:41:04
Thanks. I've incorporated your docs into the developer documentation.
My next experiment will be to see if I can track the 0.98.5 maintenance 
branch with git. SVN tags/* show up as available remote branches, but 
not branches/*, which leaves me a bit stumped? If you've done this and 
there's a quick answer, let me know, otherwise I'll do a little digging 
to see if it's possible.
Mike
Andrew Straw wrote:
> Hi Michael,
>
> The main issue is that we can't use git "normally" because the main
> history will be kept with svn. Thus, there's going to be a lot of
> history rewriting going on through the rebase command. (These
> complications are obviously not the ideal scenario for git newbies...)
> Rather than answer your questions directly, I'll walk you through how I
> do things. (This is not tried on the MPL svn repo, but some a private
> svn repo. I don't see any fundamental differences, though. So this
> should work.)
>
> (Hopefully this will be cut-and-pasteable ReST, which could go in the
> docs somewhere):
>
> Making a git feature branch and committing to svn trunk
> -------------------------------------------------------
>
> Start with a virgin tree in sync with the svn trunk on the git branch
> "master"::
>
> git checkout master
> git svn rebase
>
> To create a new, local branch called "whizbang-branch"::
>
> git checkout -b whizbang-branch
>
> Do make commits to the local branch::
>
> # hack on a bunch of files
> git add bunch of files
> git commit -m "modified a bunch of files"
> # repeat this as necessary
>
> Now, go back to the master branch and append the history of your branch
> to the master branch, which will end up as the svn trunk::
>
> git checkout master
> git svn rebase # Ensure we have most recent svn
> git rebase whizbang-branch # Append whizbang changes to master branch
> git svn dcommit -n # Check that this will apply to svn
> git svn dcommit # Actually apply to svn
>
> Finally, you may want to continue working on your whizbang-branch, so
> rebase it to the new master::
>
> git checkout whizbang-branch
> git rebase master
>
> Michael Droettboom wrote:
> 
>> This is mostly for Andrew Straw, but thought anyone else experimenting
>> with git may be interested. I'm going through some real newbie pains
>> here, and I don't think what I'm doing is all that advanced.
>>
>> So, I've had a local git repository cloned from github (as per Andrew's
>> instructions), made a branch, started hacking, all is well. Now, I
>> would like to update my master branch from SVN to get some of the recent
>> changes others have been making.
>>
>> Following the instructions in the FAQ,
>>
>> git svn rebase
>>
>> actually results in a number of conflicts in files I didn't touch. I
>> shouldn't have to resolve this conflicts, right? 'git status' shows no
>> local changes, nothing staged -- nothing that should conflict.
>>
>> It turns out, if I do
>>
>> git pull
>>
>> then,
>>
>> git svn rebase
>>
>> all is well.
>>
>> Any idea why? Should I add that to the instructions in the FAQ?
>>
>> Now, here's where I'm really stumped. I finished my experimental
>> branch, and I would like to commit it back to SVN.
>>
>> This is what I did, with comments preceded by '#'
>>
>> # Go back to the master branch
>> 
>>> git checkout master
>>> 
>> # Merge in experimental
>> 
>>> git merge experimental
>>> 
>> # Ok -- looks good: experimental new feature is integrated, there were
>> no conflicts
>> # However...
>> 
>>> git svn dcommit
>>> 
>> Committing to
>> https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib
>> ...
>> Merge conflict during commit: File or directory
>> 'doc/users/whats_new.rst' is out of date; try updating: resource out of
>> date; try updating at /home/mdroe/usr/libexec/git-core//git-svn line 467
>> # 1) I didn't change that file, why should I care
>> # 2) I don't know who to update it
>> 
>>> git pull
>>> 
>> Already up-to-date.
>> 
>>> git svn rebase
>>> 
>> First, rewinding head to replay your work on top of it...
>> Applying: more doc adds
>> /home/mdroe/builds/matplotlib.git/.git/rebase-apply/patch:14: trailing
>> whitespace.
>> a lot of new features and bug-fixes. warning: 1 line adds whitespace
>> errors.
>> Applying: added some docs for linestyles and markers
>> Applying: Remove trailing whitespace.
>> Applying: figure/subplot and font_manager bugfixes
>> Applying: added support for xlwt in exceltools
>> Applying: fixed a typo in whats_new_98_4_legend.py
>> Applying: fixed typo in Line2D.set_marker doc.
>> Applying: /matplotlib/__init__.py: catch OSError when calling subprocess.
>> Applying: more doc adds
>> /home/mdroe/builds/matplotlib.git/.git/rebase-apply/patch:14: trailing
>> whitespace.
>> a lot of new features and bug-fixes. error: patch failed:
>> doc/users/whats_new.rst:10
>> error: doc/users/whats_new.rst: patch does not apply
>> Using index info to reconstruct a base tree...
>> <stdin>:14: trailing whitespace.
>> a lot of new features and bug-fixes. warning: 1 line adds whitespace
>> errors.
>> Falling back to patching base and 3-way merge...
>> No changes -- Patch already applied.
>> Applying: added some docs for linestyles and markers
>> error: patch failed: doc/devel/coding_guide.rst:62
>> error: doc/devel/coding_guide.rst: patch does not apply
>> error: patch failed: doc/matplotlibrc:43
>> error: doc/matplotlibrc: patch does not apply
>> error: patch failed: doc/pyplots/whats_new_98_4_legend.py:4
>> error: doc/pyplots/whats_new_98_4_legend.py: patch does not apply
>> error: patch failed: lib/matplotlib/lines.py:313
>> error: lib/matplotlib/lines.py: patch does not apply
>> Using index info to reconstruct a base tree...
>> Falling back to patching base and 3-way merge...
>> Auto-merged doc/pyplots/whats_new_98_4_legend.py
>> CONFLICT (content): Merge conflict in doc/pyplots/whats_new_98_4_legend.py
>> Auto-merged lib/matplotlib/lines.py
>> Failed to merge in the changes.
>> Patch failed at 0010.
>>
>> When you have resolved this problem run "git rebase --continue".
>> If you would prefer to skip this patch, instead run "git rebase --skip".
>> To restore the original branch and stop rebasing run "git rebase --abort".
>>
>> rebase refs/remotes/trunk: command returned error: 1
>> # Ok, I'm back to merging files that don't conflict with my changes! # I
>> shouldn't have to do that, right?
>> # And FYI:
>> 
>>> git status
>>> 
>> doc/pyplots/whats_new_98_4_legend.py: needs merge
>> # Not currently on any branch.
>> # Changes to be committed:
>> # (use "git reset HEAD <file>..." to unstage)
>> #
>> # modified: lib/matplotlib/lines.py
>> #
>> # Changed but not updated:
>> # (use "git add <file>..." to update what will be committed)
>> #
>> # unmerged: doc/pyplots/whats_new_98_4_legend.py
>> #
>> # Untracked files:
>> # (use "git add <file>..." to include in what will be committed)
>> #
>> # lib/matplotlib/mpl-data/matplotlib.conf
>> # lib/matplotlib/mpl-data/matplotlibrc
>> # setupext.pyc
>> # src/backend_agg.cpp~
>>
>> Now I feel stuck. How do I "undo" the merge from experimental to master?
>>
>> Sorry if these are obvious questions, but I think I've followed the
>> git-svn instructions -- I must have made a mistake somewhere along the
>> way, but I'm not sure how to debug and/or fix it.
>>
>> Mike
>> 
>
> 
From: Michael D. <md...@st...> - 2008年12月12日 13:35:07
Done.
I also cleaned up the svnmerge docs in doc/devel/coding_guide.rst
What we don't currently have is a way to merge fixes from 0.91.x to 
0.98.5. It's been a long time since 0.91.x has seen any love, so I'm 
not too concerned. Just be aware of it -- bug fixes on 0.91.x may need 
to be manually brought in to 0.98.5 if applicable.
Mike
John Hunter wrote:
> Michael,
>
> Will you create the branch and set up the svn merge properties?
>
> Thanks Charlie,
> JDH
>
> Sent from my iPhone
>
> On Dec 11, 2008, at 7:35 PM, "Charlie Moad" <cw...@gm...> wrote:
>
>> 0.98.5 source and bins are posted. Please try them out. John can
>> announce at his convenience.
>>
>> - Charlie
>>
>> On Thu, Dec 11, 2008 at 12:15 PM, John Hunter <jd...@gm...> wrote:
>>> On Thu, Dec 11, 2008 at 8:25 AM, Michael Droettboom 
>>> <md...@st...> wrote:
>>>
>>>>> And I'll try and get the maintenance branch right next time :-)
>>>>
>>>> All of the above sounds good to me.
>>>
>>> I will be traveling to my conference starting at noon, so will be in
>>> sporadic, light email contact for the next few days. Charlie will
>>> look at fixing the builds tonight -- everyone else, please do what you
>>> can if something comes up because I would love to have a good set of
>>> binaries on line by the time my talk starts at noon tomorrow:
>>>
>>> http://mloss.org/workshop/nips08/
>>>
>>> JDH
>>>
From: Michael D. <md...@st...> - 2008年12月12日 13:20:53
Well, if it's any consolation -- I just finished setting up the 
maintenance branch for 0.98.5, so there's a place for this fix to go... ;)
Mike
Manuel Metz wrote:
> Manuel Metz wrote:
> 
>> Jae-Joon Lee wrote:
>> 
>>> I just committed the change. Although the change is trivial, I didn't
>>> tested it in the numpy 1.2 or the svn version.
>>> 
>> Aaaargh, with numpy 1.2.1 this produces a warning !!! Very unlucky,
>> since 0.98.5 is released...
>> 
>
> See here: http://projects.scipy.org/scipy/numpy/ticket/797
>
> "08/05/08 10:47:34 changed by dhuard
>
> For version 1.2, I set new=None by default, which triggers the new
> semantics and prints a warning. Setting new to True will trigger the
> new semantics but won't print a warning. Done in r5611."
>
>
> 
>>> -JJ
>>>
>>>
>>> On Sun, Dec 7, 2008 at 3:24 PM, John Hunter <jd...@gm...> wrote:
>>> 
>>>> I think the version check is a good idea, so people won't get the annoying
>>>> warning. Could you add this?
>>>>
>>>> Sent from my iPhone
>>>>
>>>> On Dec 7, 2008, at 2:22 PM, "Jae-Joon Lee" <lee...@gm...> wrote:
>>>>
>>>> 
>>>>> I'm currently using numpy 1.1.1 and np.histogram behave differently
>>>>> depending on the "new" value.
>>>>> ubuntu interpid and debian sid has numpy 1.1.1.1 and I presume that
>>>>> this different behavior is still there.
>>>>> So, as far as we're going to support numpy 1.1 and later, we may
>>>>> better not to drop the "new" silently.
>>>>> We may check the version number of the numpy in the hist() function,
>>>>> and call np.histogram() accordingly.
>>>>>
>>>>> -JJ
>>>>>
>>>>>
>>>>> On Sat, Dec 6, 2008 at 4:33 PM, John Hunter <jd...@gm...> wrote:
>>>>> 
>>>>>> Axes.hist calls np.histogram with the "new" kwarg, which triggers a
>>>>>> deprecation warning with svn numpy. Anyone have an opinion on whether
>>>>>> this kwarg should be included in the upcoming mpl release?
>>>>>>
>>>>>> JDH
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
>>>>>> Nevada.
>>>>>> The future of the web can't happen without you. Join us at MIX09 to help
>>>>>> pave the way to the Next Web now. Learn more and register at
>>>>>>
>>>>>> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
>>>>>> _______________________________________________
>>>>>> Matplotlib-devel mailing list
>>>>>> Mat...@li...
>>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>>>>>
>>>>>> 
>>> ------------------------------------------------------------------------------
>>> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
>>> The future of the web can't happen without you. Join us at MIX09 to help
>>> pave the way to the Next Web now. Learn more and register at
>>> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
>>> _______________________________________________
>>> Matplotlib-devel mailing list
>>> Mat...@li...
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>> 
>>
>> ------------------------------------------------------------------------------
>> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
>> The future of the web can't happen without you. Join us at MIX09 to help
>> pave the way to the Next Web now. Learn more and register at
>> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
>> _______________________________________________
>> Matplotlib-devel mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>> 
>
> ------------------------------------------------------------------------------
> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
> The future of the web can't happen without you. Join us at MIX09 to help
> pave the way to the Next Web now. Learn more and register at
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
> 
From: Manuel M. <mm...@as...> - 2008年12月12日 13:17:27
Manuel Metz wrote:
> Jae-Joon Lee wrote:
>> I just committed the change. Although the change is trivial, I didn't
>> tested it in the numpy 1.2 or the svn version.
> 
> Aaaargh, with numpy 1.2.1 this produces a warning !!! Very unlucky,
> since 0.98.5 is released...
See here: http://projects.scipy.org/scipy/numpy/ticket/797
"08/05/08 10:47:34 changed by dhuard
 For version 1.2, I set new=None by default, which triggers the new
 semantics and prints a warning. Setting new to True will trigger the
 new semantics but won't print a warning. Done in r5611."
> 
>> -JJ
>>
>>
>> On Sun, Dec 7, 2008 at 3:24 PM, John Hunter <jd...@gm...> wrote:
>>> I think the version check is a good idea, so people won't get the annoying
>>> warning. Could you add this?
>>>
>>> Sent from my iPhone
>>>
>>> On Dec 7, 2008, at 2:22 PM, "Jae-Joon Lee" <lee...@gm...> wrote:
>>>
>>>> I'm currently using numpy 1.1.1 and np.histogram behave differently
>>>> depending on the "new" value.
>>>> ubuntu interpid and debian sid has numpy 1.1.1.1 and I presume that
>>>> this different behavior is still there.
>>>> So, as far as we're going to support numpy 1.1 and later, we may
>>>> better not to drop the "new" silently.
>>>> We may check the version number of the numpy in the hist() function,
>>>> and call np.histogram() accordingly.
>>>>
>>>> -JJ
>>>>
>>>>
>>>> On Sat, Dec 6, 2008 at 4:33 PM, John Hunter <jd...@gm...> wrote:
>>>>> Axes.hist calls np.histogram with the "new" kwarg, which triggers a
>>>>> deprecation warning with svn numpy. Anyone have an opinion on whether
>>>>> this kwarg should be included in the upcoming mpl release?
>>>>>
>>>>> JDH
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
>>>>> Nevada.
>>>>> The future of the web can't happen without you. Join us at MIX09 to help
>>>>> pave the way to the Next Web now. Learn more and register at
>>>>>
>>>>> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
>>>>> _______________________________________________
>>>>> Matplotlib-devel mailing list
>>>>> Mat...@li...
>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>>>>
>> ------------------------------------------------------------------------------
>> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
>> The future of the web can't happen without you. Join us at MIX09 to help
>> pave the way to the Next Web now. Learn more and register at
>> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
>> _______________________________________________
>> Matplotlib-devel mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
> 
> 
> 
> ------------------------------------------------------------------------------
> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
> The future of the web can't happen without you. Join us at MIX09 to help
> pave the way to the Next Web now. Learn more and register at
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
From: Manuel M. <mm...@as...> - 2008年12月12日 13:06:07
Jae-Joon Lee wrote:
> I just committed the change. Although the change is trivial, I didn't
> tested it in the numpy 1.2 or the svn version.
Aaaargh, with numpy 1.2.1 this produces a warning !!! Very unlucky,
since 0.98.5 is released...
> -JJ
> 
> 
> On Sun, Dec 7, 2008 at 3:24 PM, John Hunter <jd...@gm...> wrote:
>> I think the version check is a good idea, so people won't get the annoying
>> warning. Could you add this?
>>
>> Sent from my iPhone
>>
>> On Dec 7, 2008, at 2:22 PM, "Jae-Joon Lee" <lee...@gm...> wrote:
>>
>>> I'm currently using numpy 1.1.1 and np.histogram behave differently
>>> depending on the "new" value.
>>> ubuntu interpid and debian sid has numpy 1.1.1.1 and I presume that
>>> this different behavior is still there.
>>> So, as far as we're going to support numpy 1.1 and later, we may
>>> better not to drop the "new" silently.
>>> We may check the version number of the numpy in the hist() function,
>>> and call np.histogram() accordingly.
>>>
>>> -JJ
>>>
>>>
>>> On Sat, Dec 6, 2008 at 4:33 PM, John Hunter <jd...@gm...> wrote:
>>>> Axes.hist calls np.histogram with the "new" kwarg, which triggers a
>>>> deprecation warning with svn numpy. Anyone have an opinion on whether
>>>> this kwarg should be included in the upcoming mpl release?
>>>>
>>>> JDH
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
>>>> Nevada.
>>>> The future of the web can't happen without you. Join us at MIX09 to help
>>>> pave the way to the Next Web now. Learn more and register at
>>>>
>>>> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
>>>> _______________________________________________
>>>> Matplotlib-devel mailing list
>>>> Mat...@li...
>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>>>
> 
> ------------------------------------------------------------------------------
> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
> The future of the web can't happen without you. Join us at MIX09 to help
> pave the way to the Next Web now. Learn more and register at
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
From: Michael D. <md...@st...> - 2008年12月12日 12:43:10
There was a discussion on this list around a year ago about this. The 
concern was that not rendering $ as $ would break (matplotlib) backward 
compatibility with scripts that don't care about math at all but use a 
lot of dollar signs (e.g. financial plots). This is one of the few 
places where we deliberately broke usetex compatibility in favour of 
matplotlib compatibility.
That said, it's probably a bug that the escaped dollar sign in non-math 
context is not rendered as a dollar sign.
As a workaround "$\$%1.2f$" works with usetex on or off, with the 
proviso that it uses math- rather than text-rendering for the numbers.
Mike
Manuel Metz wrote:
> I just noted that mathtext and LaTeX rendering behave differently 
> when using a single "$" character in a text string. This happened to 
> me when looking at the dollar_ticks example from the docs because I 
> use LaTeX rendering by default. The problem is here:
>
> formatter = ticker.FormatStrFormatter('$%1.2f')
>
> MathText interprets this as a single "$" character, whereas LaTeX 
> interprets this as starting character of a math expression (and I get 
> an error), i.e. I have to write "\1ドル.2f" instead, which then, however, 
> is interpreted by MathText as "\$" ... :-(
>
> Shouldn't these two behave equally here?
>
> mm

Showing results of 33

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