SourceForge logo
SourceForge logo
Menu

matplotlib-devel — matplotlib developers

You can subscribe to this list here.

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



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

Showing 13 results of 13

From: Eric F. <ef...@ha...> - 2008年10月21日 22:01:47
John Hunter wrote:
> On Tue, Oct 21, 2008 at 12:52 PM, Eric Firing <ef...@ha...> wrote:
>> I did svn up on Sphinx, deleted mpl doc/build, and tried to rebuild the
>> docs. The Latex is failing with output ending in
>>
>> ) (/usr/share/texmf-texlive/tex/latex/graphics/graphicx.sty
>> (/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty
>> (/usr/share/texmf-texlive/tex/latex/graphics/trig.sty)
>> (/etc/texmf/tex/latex/config/graphics.cfg)))
>> (/usr/share/texmf-texlive/tex/plain/misc/pdfcolor.tex)
>> ! Extra \fi.
>> l.62 \fi\fi
>>
>>
>> Is anyone else getting this? Is there something else I need to clean
>> out in order to make it work now?
> 
> Try again, and make sure you reinstall mpl from HEAD? There were a
> couple of bugs in the matplotlib.mlab.cohere math string that was
> causing an error on my box
> 
> C_{xy} = \\frac{|P_{xy}|^2}{P_{xx}P_{yy}}
> 
> It looks like I forgot to commit the change (now in r6289).
I did a build and install of mpl from a clean checkout, went to the doc 
subdir, and ran "python make.py". It failed in exactly the same place 
as before (but took quite a while to get there).
Sphinx is installed as Sphinx-0.5dev_20081020-py2.5.egg.
The line Latex is complaining about is in sphinx.sty. I found that by 
typing "E" after the Latex "?" output; I could never have figured it out 
from the actual Latex output preceding the "?".
Changing the \fi\fi to \fi fixes it, at least with respect to building 
mpl docs.
I filed it as bug 4166.
Eric
From: David H. <dav...@gm...> - 2008年10月21日 18:00:19
On Tue, Oct 21, 2008 at 3:31 AM, Manuel Metz <mm...@as...> wrote:
> David Huard wrote:
>> On Mon, Oct 20, 2008 at 10:19 AM, John Hunter <jd...@gm...> wrote:
>>> On Mon, Oct 20, 2008 at 9:01 AM, David Huard <dav...@gm...> wrote:
>>>
>>>> I would oppose any change to histogram calling convention that does not
>>>> fix a critical bug. I agree that using a built-in name as an argument is
>>>> a bug, but I believe it is the lesser evil compared to asking users to
>>>> change their code
>>>> again.
>>
>> It may not have been clear enough, but let me clarify that I was
>> opposing a change to numpy.histogram, not meddling in matplotlib's
>> hist.
>
> David,
>
> the only thing is that *if* we change the keyword in matplotlib, we
> should change it to the same keyword that will (probably) be in numpy.
>
> Put it the other way: I think it would be good to agree on a new keyword
> ("binrange", "cliprange", ...) and then change it gently in both
> projects, numpy and matplotlib, as John suggested (or alternatively
> leave the keyword as is, and use the arange workaround, but I personally
> don't like this idea).
>
> Cheers,
> Manuel
>
Hi Manuel, John and Eric,
What was the time line you had in mind for the change ?
My main concern is to avoid antagonizing the folks who were annoyed by
the semantic change to histogram. Some of them might not be happy to
go back and make another change to histogram in their code so soon
after having dealt with the `new` keyword, even if you are gentle
about it.
My second concern is to avoid breaking the interface in a minor
release. This would mean waiting for NumPy 2.0 before completely
removing the range argument.
David
>> Cheers,
>> David
>>
>>> I think in this case we have to change it, but we can do it gently.
>>> Ie, for a release cycle, if we detect "range" in the kwarg case, we'll
>>> set the correct kwarg, eg "binrange", issue a warning, but not raise
>>> an error. That way users can fairly easily change their code w/o
>>> breakage. Whoever does the deprecation should note the date and
>>> version of the deprecation warning, so we will know when enough time
>>> and releases have passed to remove range entirely.
>>>
>>> JDH
>>>
>>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
From: John H. <jd...@gm...> - 2008年10月21日 18:00:00
On Tue, Oct 21, 2008 at 12:52 PM, Eric Firing <ef...@ha...> wrote:
> I did svn up on Sphinx, deleted mpl doc/build, and tried to rebuild the
> docs. The Latex is failing with output ending in
>
> ) (/usr/share/texmf-texlive/tex/latex/graphics/graphicx.sty
> (/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty
> (/usr/share/texmf-texlive/tex/latex/graphics/trig.sty)
> (/etc/texmf/tex/latex/config/graphics.cfg)))
> (/usr/share/texmf-texlive/tex/plain/misc/pdfcolor.tex)
> ! Extra \fi.
> l.62 \fi\fi
>
>
> Is anyone else getting this? Is there something else I need to clean
> out in order to make it work now?
Try again, and make sure you reinstall mpl from HEAD? There were a
couple of bugs in the matplotlib.mlab.cohere math string that was
causing an error on my box
 C_{xy} = \\frac{|P_{xy}|^2}{P_{xx}P_{yy}}
 It looks like I forgot to commit the change (now in r6289).
JDH
From: Eric F. <ef...@ha...> - 2008年10月21日 17:52:24
I did svn up on Sphinx, deleted mpl doc/build, and tried to rebuild the 
docs. The Latex is failing with output ending in
) (/usr/share/texmf-texlive/tex/latex/graphics/graphicx.sty
(/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty
(/usr/share/texmf-texlive/tex/latex/graphics/trig.sty)
(/etc/texmf/tex/latex/config/graphics.cfg)))
(/usr/share/texmf-texlive/tex/plain/misc/pdfcolor.tex)
! Extra \fi.
l.62 \fi\fi
Is anyone else getting this? Is there something else I need to clean 
out in order to make it work now?
Thanks.
Eric
From: Eric F. <ef...@ha...> - 2008年10月21日 17:45:52
jd...@us... wrote:
> Revision: 6288
> http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6288&view=rev
> Author: jdh2358
> Date: 2008年10月21日 15:26:22 +0000 (2008年10月21日)
> 
> Log Message:
> -----------
> restored the support for multiple pyplots that I broke earlier
>
> def set_xlim(self, xmin=None, xmax=None, emit=True, **kwargs):
> """
> @@ -1944,7 +1944,7 @@
> """
> Get the y-axis range [*ymin*, *ymax*]
> """
> - return self.viewLim.intervaly
> + return tuple(self.viewLim.intervaly)
John,
It might be worth adding a comment in the code as to why a tuple is 
needed here.
Eric
From: jason_h <had...@ym...> - 2008年10月21日 15:04:16
John Hunter-4 wrote:
> 
> _validate_standard_backends = ValidateInStrings('backend',
> all_backends, ignorecase=True)
> def validate_backend(s):
> if s.startswith('module://'): return s
> else: return _validate_standard_backends(s)
> 
> 
> Should work...
> 
Thanks. Now matplotlib.use('module://...') works.
(The -d option still doesn't, but I don't need it.)
Jason
-- 
View this message in context: http://www.nabble.com/How-to-add-a-new-backend--tp20089848p20092273.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.
From: John H. <jd...@gm...> - 2008年10月21日 14:40:25
On Tue, Oct 21, 2008 at 9:14 AM, jason_h <had...@ym...> wrote:
> Unfortunately that doesn't work for me. I get a "ValueError: Unrecognized
> backend string "module://mybackend"" in rcsetup.py. Any other suggestions?
> Matplotlib ist version 0.98.3.
Hmm, strangely, the rcsetup function was reverted and as you note, is
broken, I just fixed it in svn to respect the flag, and tested with
the use directive and -d, both of which worked for me. If you don't
want to update to svn HEAD, you can edit rcsetup.py on your system and
replace::
 validate_backend = ValidateInStrings('backend', all_backends,
ignorecase=True)
with::
 _validate_standard_backends = ValidateInStrings('backend',
all_backends, ignorecase=True)
 def validate_backend(s):
 if s.startswith('module://'): return s
 else: return _validate_standard_backends(s)
Should work...
JDH
From: jason_h <had...@ym...> - 2008年10月21日 14:14:52
John Hunter-4 wrote:
> 
> On Tue, Oct 21, 2008 at 8:40 AM, John Hunter <jd...@gm...> wrote:
> import matplotlib
> matplotlib.use('module://my_backend')
> 
Unfortunately that doesn't work for me. I get a "ValueError: Unrecognized
backend string "module://mybackend"" in rcsetup.py. Any other suggestions?
Matplotlib ist version 0.98.3.
Here is the output:
$ python
Python 2.5.1 (r251:54863, Mar 7 2008, 03:41:45) 
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
>>> matplotlib.use("module://mybackend")
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "/usr/lib/python2.5/site-packages/matplotlib/__init__.py", line 809,
in use
 rcParams['backend'] = name
 File "/usr/lib/python2.5/site-packages/matplotlib/__init__.py", line 588,
in __setitem__
 cval = self.validate[key](val)
 File "/usr/lib/python2.5/site-packages/matplotlib/rcsetup.py", line 49, in
__call__
 % (self.key, s, self.valid.values()))
ValueError: Unrecognized backend string "module://mybackend": valid strings
are ['ps', 'Qt4Agg', 'FltkAgg', 'GTKAgg', 'agg', 'cairo', 'GTK', 'GTKCairo',
'WXAgg', 'TkAgg', 'QtAgg', 'svg', 'pdf', 'CocoaAgg', 'emf', 'gdk',
'template', 'WX']
>>>
Neither does the -d option work. "python --help" says:
...
-d : debug output from parser (also PYTHONDEBUG=x)
...
How is this option related to plotting backends?
Thanks
Jason
-- 
View this message in context: http://www.nabble.com/How-to-add-a-new-backend--tp20089848p20091178.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.
From: John H. <jd...@gm...> - 2008年10月21日 13:43:03
On Tue, Oct 21, 2008 at 8:40 AM, John Hunter <jd...@gm...> wrote:
> If you set the backend to "module://my_backend" where my_backend.py is
> a backend in your PYTHONPATH, matplotlib will load it and use it.
And yes, I forgot to mention, "use" works as well
 import matplotlib
 matplotlib.use('module://my_backend')
and the syntax for the -d flag was wrong in my last email (it is
"module://" not "file://"), it should read::
 > python simple_ploy.py -d module://my_backend
JDH
From: John H. <jd...@gm...> - 2008年10月21日 13:40:44
On Tue, Oct 21, 2008 at 8:04 AM, jason_h <had...@ym...> wrote:
>
> Hello,
> we want to add a new backend for some specific XML format.
>
> Can I find somewhere a sort of How-To documentation about the required
> steps?
>
> In particular I want to avoid modifying the matplotlib installation which
> resides in system directories which not every user has access to. Is it
> possible to extend the backend base class to a full backend implementation
> located below my home directory, and then have matplotlib use this backend?
>
> How would I tell matplotlib about my new class, and how do I prepare things
> so that a simple
> matplotlib.use('MyXML')
> will plot in our file format?
If you set the backend to "module://my_backend" where my_backend.py is
a backend in your PYTHONPATH, matplotlib will load it and use it.
You can also use the -d flag, eg
 > python simple_ploy.py -d file://my_backend
Let us know how it goes!
JDH
From: jason_h <had...@ym...> - 2008年10月21日 13:04:59
Hello,
we want to add a new backend for some specific XML format.
Can I find somewhere a sort of How-To documentation about the required
steps?
In particular I want to avoid modifying the matplotlib installation which
resides in system directories which not every user has access to. Is it
possible to extend the backend base class to a full backend implementation
located below my home directory, and then have matplotlib use this backend?
How would I tell matplotlib about my new class, and how do I prepare things
so that a simple
matplotlib.use('MyXML')
will plot in our file format?
Thanks
Jason
-- 
View this message in context: http://www.nabble.com/How-to-add-a-new-backend--tp20089848p20089848.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.
From: Mark B. <ma...@gm...> - 2008年10月21日 10:13:54
Hello list (especially Erik, who can fix this I hope) -
I have had problems with shared axes, especially when one of the axis has an
aspect ratio that is set 'equal'. It has been discussed on the list before
(mostly with Erik Firing), but it hasn't been fixed yet. What I want to do
is have two plots. The top plot has an aspect ratio that is 'equal'. The
idea is to have a contour plot in the top figure, while the bottom figure
gives a cross-sectional picture of what I am plotting. This used to work
well (quite some time ago), including zooming and such. But now I cannot
plot it at all, let alone zoom.
My first problem is when I add a subplot with a shared x-axis, it changes
the limits on the original x-axis. That seems to be a bug:
ax1 = subplot(211)
plot([1,2,3]) # Now the limits of the x-axis go from 0 to 2.
subplot(212,sharex=ax1) # Now the limits of both x-axis go from 0 to 1.
After all, the new subplot shares the axis with the existing subplot, so why
doesn't it copy the axis limits from that subplot?
But the bigger problem occurs when I want the aspect ratio of one of the
first axis to be 'equal'.
ax1 = subplot(211,aspect='equal')
plot([1,2,3])
subplot(212,sharex=ax1)
The second subplot is added, but the length of the graph is not the same as
for the first subplot. It also resets the xlimits to go from 0 to 1, as
before, which means the first subplot becomes unreadable (it still enforces
'equal' in the first subplot by changing the limits of the y-axis). When I
now change the limits on the x-axis, the aspect ratio is not equal anymore
ax1.set_xlim(0,2)
draw()
Thanks for your help. I am willing to help in testing any changes.
Best regards, Mark
From: Manuel M. <mm...@as...> - 2008年10月21日 07:31:49
David Huard wrote:
> On Mon, Oct 20, 2008 at 10:19 AM, John Hunter <jd...@gm...> wrote:
>> On Mon, Oct 20, 2008 at 9:01 AM, David Huard <dav...@gm...> wrote:
>>
>>> I would oppose any change to histogram calling convention that does not
>>> fix a critical bug. I agree that using a built-in name as an argument is
>>> a bug, but I believe it is the lesser evil compared to asking users to
>>> change their code
>>> again.
> 
> It may not have been clear enough, but let me clarify that I was
> opposing a change to numpy.histogram, not meddling in matplotlib's
> hist.
David,
 the only thing is that *if* we change the keyword in matplotlib, we 
should change it to the same keyword that will (probably) be in numpy.
Put it the other way: I think it would be good to agree on a new keyword 
("binrange", "cliprange", ...) and then change it gently in both 
projects, numpy and matplotlib, as John suggested (or alternatively 
leave the keyword as is, and use the arange workaround, but I personally 
don't like this idea).
Cheers,
 Manuel
> Cheers,
> David
> 
>> I think in this case we have to change it, but we can do it gently.
>> Ie, for a release cycle, if we detect "range" in the kwarg case, we'll
>> set the correct kwarg, eg "binrange", issue a warning, but not raise
>> an error. That way users can fairly easily change their code w/o
>> breakage. Whoever does the deprecation should note the date and
>> version of the deprecation warning, so we will know when enough time
>> and releases have passed to remove range entirely.
>>
>> JDH
>>
> 

Showing 13 results of 13

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