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

Showing results of 72

<< < 1 2 3 (Page 3 of 3)
From: Ben G. <bg...@gm...> - 2010年12月09日 22:04:50
On 2010年12月09日 16:44:37 -0500, Ben Gamari <bg...@gm...> wrote:
> rcdefaults()'s implementation appears to implement the latter, updating
> rcParams from rcParamsDefault in rcsetup.py, which appears to describe
> the factory default values. Perhaps we should
> rcParamsDefault.update(rcParams) after loading matplotlibrc?
> 
As expected, doing the update of rcParamsDefault proposed above (patch
below) allows the examples.download setting to persist throughout the
documentation build. It seems like either the documentation build
process or rcParamsDefault has been badly broken for a very long
time. Is rcParamsDefault really supposed to be the factory defaults or
is this just a bug? If the former, we will need to introduce a variant
of matplotlib.rcdefaults() to reset the configuration to that specified
in matplotlibrc.
- Ben
diff --git a/lib/matplotlib/__init__.py b/lib/matplotlib/__init__.py
--- a/lib/matplotlib/__init__.py
+++ b/lib/matplotlib/__init__.py
@@ -764,13 +772,13 @@ Please do not ask for support with these customizations active.
 # this is the instance used by the matplotlib classes
 rcParams = rc_params()
-
-rcParamsDefault = RcParams([ (key, default) for key, (default, converter) in \
- defaultParams.iteritems() ])
-
 rcParams['ps.usedistiller'] = checkdep_ps_distiller(rcParams['ps.usedistiller'])
 rcParams['text.usetex'] = checkdep_usetex(rcParams['text.usetex'])
+rcParamsDefault = RcParams([ (key, default) for key, (default, converter) in \
+ defaultParams.iteritems() ])
+rcParamsDefault.update(rcParams)
+
 def rc(group, **kwargs):
 """
 Set the current rc params. Group is the grouping for the rc, eg.
From: Jouni K. S. <jk...@ik...> - 2010年12月09日 21:55:38
Ben Gamari <bg...@gm...> writes:
> It seems that matplotlib's sphinx extension calls
> matplotlib.rcdefaults() after rendering each figure, thus resetting
> examples.download to True (as set in rcsetup.py).
Right, and it sets figure.figsize after it. I guess you will want to set
examples.download in the same function.
> The documentation claims that this function will "Restore the default rc
> params - the ones that were created at matplotlib load time."
> rcdefaults()'s implementation appears to implement the latter, updating
> rcParams from rcParamsDefault in rcsetup.py, which appears to describe
> the factory default values. Perhaps we should
> rcParamsDefault.update(rcParams) after loading matplotlibrc?
I think you're better off modifying the sphinx extension. rcdefaults has
a useful purpose, and the extension is trying to use it for that
purpose: to avoid having the user's configuration mess up the
documentation. If you were to update rcParamsDefault with the
matplotlibrc parameters, you might accidentally change the example
output.
-- 
Jouni K. Seppänen
http://www.iki.fi/jks
From: Ben G. <bg...@gm...> - 2010年12月09日 21:44:46
On 2010年12月09日 15:42:18 -0500, Ben Gamari <bg...@gm...> wrote:
> To try identifying where this happens I have tried putting some debug
> output in RcParams.__setitem__(). Unfortunately this doesn't show anyone
> setting examples.download after the initial loading of matplotlibrc. Any
> ideas how/where this might get overridden?
> 
Found it!
It seems that matplotlib's sphinx extension calls
matplotlib.rcdefaults() after rendering each figure, thus resetting
examples.download to True (as set in rcsetup.py).
The documentation claims that this function will "Restore the default rc
params - the ones that were created at matplotlib load time." Despite
the apparent attempt at clarification in this docstring, it's still not
clear what the "default rc params" actually are. Is this supposed to be
the parameters loaded from matplotlibrc (which seems to be what the
sphinx extension expects) or the factory default values?
rcdefaults()'s implementation appears to implement the latter, updating
rcParams from rcParamsDefault in rcsetup.py, which appears to describe
the factory default values. Perhaps we should
rcParamsDefault.update(rcParams) after loading matplotlibrc?
- Ben
From: Uri L. <las...@mi...> - 2010年12月09日 21:05:40
This patch is for make.osx. Note it also changes the python version to 2.7.
https://gist.github.com/735337
Uri
...................................................................................
Uri Laserson
Graduate Student, Biomedical Engineering
Harvard-MIT Division of Health Sciences and Technology
M +1 917 742 8019
las...@mi...
From: Ben G. <bg...@gm...> - 2010年12月09日 20:42:28
On Thu, 9 Dec 2010 14:09:41 -0600, John Hunter <jd...@gm...> wrote:
> On Thu, Dec 9, 2010 at 1:52 PM, Ben Gamari <bg...@gm...> wrote:
> 
> > Any idea why my debugging messages are ineffective? Or, even better, any
> > idea why setting the examples.download in doc/matplotlibrc isn't being
> > reflected in rc_params? I'll examine this more closely in about 30
> > minutes once I make it to the office.
> 
> I am not sure. Perhaps it is working but in the confusion you never
> had everything set right at the same time. Try setting in
> doc/matplotlibrc
> 
> examples.download : False
> examples.directory : somedir/relative/to/doc
>
Already done.
 
> Then flush the sphinx build directory and try again. Perhaps stick
> some debug print in matplotlib.matplotlib_fname and
> cbook.get_sample_data and let us know.
I have already done this. This is how I know that rc_examples.download
is set to True in get_sample_data(). It turns out the debugging messages
I made reference to in my last message were being output and I just
missed them in the noise. Right after matplotlib is initialized with
matplotlib.rc_params() it seems that rcParams['examples.download'] is
set to False as expected. By the time execution makes it to
get_sample_data(), however, this value has somehow been set to True.
To try identifying where this happens I have tried putting some debug
output in RcParams.__setitem__(). Unfortunately this doesn't show anyone
setting examples.download after the initial loading of matplotlibrc. Any
ideas how/where this might get overridden?
- Ben
From: John H. <jd...@gm...> - 2010年12月09日 20:10:07
On Thu, Dec 9, 2010 at 1:52 PM, Ben Gamari <bg...@gm...> wrote:
> Any idea why my debugging messages are ineffective? Or, even better, any
> idea why setting the examples.download in doc/matplotlibrc isn't being
> reflected in rc_params? I'll examine this more closely in about 30
> minutes once I make it to the office.
I am not sure. Perhaps it is working but in the confusion you never
had everything set right at the same time. Try setting in
doc/matplotlibrc
 examples.download : False
 examples.directory : somedir/relative/to/doc
Then flush the sphinx build directory and try again. Perhaps stick
some debug print in matplotlib.matplotlib_fname and
cbook.get_sample_data and let us know.
Good luck!
JDH
From: Ben G. <bg...@gm...> - 2010年12月09日 19:52:37
On Thu, 9 Dec 2010 13:39:41 -0600, John Hunter <jd...@gm...> wrote:
> On Thu, Dec 9, 2010 at 1:12 PM, Ben Gamari <bg...@gm...> wrote:
> 
> > It seems that this may have been broken from the beginning. After
> > noticing that my changes were not taking effect, I added some debug
> > output and found that sphinx was changing the current working directory
> > (every example gets built with its own directory being the working
> > directory). I fail to see how doc/matplotlibrc could be currently used
> > given most examples are not built from doc/.
> 
> Well, the matplotlibrc file is checked for when the python process is
> started, and the current directory when matplotlib is imported is
> used. Since we launch the build process in the doc directory next to
> make.py, doc is the current working directory when the plot directive
> extension is imported and this is used to build the examples. So it
> is not the directory that the example is in that is important, but the
> current directory when matplotlib is imported.
> 
Ahh, so matplotlib is not reimported with every example? I was under the
impression sphinx operated more like make (1 process per target). I
suppose that explains it then.
> On import the matplotlib.rc_params function is called to set
> matplotlib.rcParams. The rc_params function in turn calls
> matplotlib_fname, which does the following search
> 
Any idea why my debugging messages are ineffective? Or, even better, any
idea why setting the examples.download in doc/matplotlibrc isn't being
reflected in rc_params? I'll examine this more closely in about 30
minutes once I make it to the office.
Cheers,
- Ben
From: John H. <jd...@gm...> - 2010年12月09日 19:40:07
On Thu, Dec 9, 2010 at 1:12 PM, Ben Gamari <bg...@gm...> wrote:
> It seems that this may have been broken from the beginning. After
> noticing that my changes were not taking effect, I added some debug
> output and found that sphinx was changing the current working directory
> (every example gets built with its own directory being the working
> directory). I fail to see how doc/matplotlibrc could be currently used
> given most examples are not built from doc/.
Well, the matplotlibrc file is checked for when the python process is
started, and the current directory when matplotlib is imported is
used. Since we launch the build process in the doc directory next to
make.py, doc is the current working directory when the plot directive
extension is imported and this is used to build the examples. So it
is not the directory that the example is in that is important, but the
current directory when matplotlib is imported.
On import the matplotlib.rc_params function is called to set
matplotlib.rcParams. The rc_params function in turn calls
matplotlib_fname, which does the following search
 * current working dir
 * environ var MATPLOTLIBRC
 * HOME/.matplotlib/matplotlibrc
 * MATPLOTLIBDATA/matplotlibrc
Hope this helps!
JDH
From: Ben G. <bg...@gm...> - 2010年12月09日 19:12:59
On Thu, 9 Dec 2010 12:57:49 -0600, John Hunter <jd...@gm...> wrote:
> On Thu, Dec 9, 2010 at 12:34 PM, Ben Gamari <bg...@gm...> wrote:
> 
> > Regardless, after making the necessary changes to use absolute paths
> > (after painfully realizing that the MATPLOTLIB environment variable
> > expects the directory of the desired matplotlibrc, not the file path;
> > documentation would have been nice here) the configuration is _still_
> > having no effect. While matplotlib.matplotlib_fname() seems to be
> > reporting the correct matplotlibrc path, examples.download is still True
> > despite setting this to False in the file.
> 
> Sorry to be joining this a bit late. Why do you need to set the
> MATPLOTLIBRC variable. The file doc/matplotlibrc is used by the doc
> build process, so if you patch in your changes there, you should be
> good.
It seems that this may have been broken from the beginning. After
noticing that my changes were not taking effect, I added some debug
output and found that sphinx was changing the current working directory
(every example gets built with its own directory being the working
directory). I fail to see how doc/matplotlibrc could be currently used
given most examples are not built from doc/.
> and these are picked up at build time since the rest table formatting
> of the API docs depends on the latter setting.
> 
Are you certain this configuration isn't leaking in from some other
source?
> And yes, the relative paths in sphinx doc builds are a major headache.
Are you referring to the fact that sphinx's above-mentioned chdir
behavior?
Cheers,
- Ben
From: John H. <jd...@gm...> - 2010年12月09日 18:58:15
On Thu, Dec 9, 2010 at 12:34 PM, Ben Gamari <bg...@gm...> wrote:
> Regardless, after making the necessary changes to use absolute paths
> (after painfully realizing that the MATPLOTLIB environment variable
> expects the directory of the desired matplotlibrc, not the file path;
> documentation would have been nice here) the configuration is _still_
> having no effect. While matplotlib.matplotlib_fname() seems to be
> reporting the correct matplotlibrc path, examples.download is still True
> despite setting this to False in the file.
Sorry to be joining this a bit late. Why do you need to set the
MATPLOTLIBRC variable. The file doc/matplotlibrc is used by the doc
build process, so if you patch in your changes there, you should be
good. Specifically, we set the parameters
 backend : Agg
 docstring.hardcopy : True
and these are picked up at build time since the rest table formatting
of the API docs depends on the latter setting.
And yes, the relative paths in sphinx doc builds are a major headache.
 Sorry you are having so much trouble. We struggled mightily against
them in trying to get the plot directive working. In my experience,
setting relative paths with respect to the doc root (where conf.py
lives) works in most cases.
From: Ben G. <bg...@gm...> - 2010年12月09日 18:35:06
On 2010年12月09日 20:00:39 +0200, Jouni K. Seppänen <jk...@ik...> wrote:
> Ben Gamari <bg...@gm...> writes:
> 
> > An absolute path is necesary because the current working directory
> > changes for each example.
> 
> Oh, right, the examples are in a lot of different subdirectories.
> 
Precisely, this is the problem.
Regardless, after making the necessary changes to use absolute paths
(after painfully realizing that the MATPLOTLIB environment variable
expects the directory of the desired matplotlibrc, not the file path;
documentation would have been nice here) the configuration is _still_
having no effect. While matplotlib.matplotlib_fname() seems to be
reporting the correct matplotlibrc path, examples.download is still True
despite setting this to False in the file.
I've placed a debug message writing to sys.stderr at the beginning of
matplotlib.rc_params(), but unfortunately I have seen no output from
it. Considering the rest of my debugging output works just fine, I'm
quite confused. Is this function not invoked?
Cheers,
- Ben
From: Jouni K. S. <jk...@ik...> - 2010年12月09日 18:01:08
Ben Gamari <bg...@gm...> writes:
> An absolute path is necesary because the current working directory
> changes for each example.
Oh, right, the examples are in a lot of different subdirectories.
> I'm very confused how you found that specifying a relative path in
> download.path worked. If the cwd changes as seen above then the
> documentation was entirely correct in claiming an absolute path is
> necessary.
I just tested that the relative path works fine by making the path
relative and trying cbook.get_sample_data; it's just not much use if
your current working directory keeps changing.
-- 
Jouni K. Seppänen
http://www.iki.fi/jks
From: Ben G. <bg...@gm...> - 2010年12月09日 17:55:56
On 2010年12月09日 18:37:34 +0200, Jouni K. Seppänen <jk...@ik...> wrote:
> Ben Gamari <bga...@gm...> writes:
> 
> > That being said, I've tracked down the reason for the configuration in
> > doc/matplotlibrc not being used. It seems that sphinx runs the examples
> > in their current directory (I suppose this is to be expected).
> >
> > It seems that there is a (as far as I can tell undocumented, please fix
> > this) MATPLOTLIBRC environment variable which can be used to override
> > the location of the matplotlibrc used. This could be useful in
> > specifying the matplotlibrc used during the documentation build process
> > but unfortunately this would require an absolute path which, again,
> > complicates the packaging (i.e. I don't know the best way to accomplish
> > this). Suggestions?
> 
> I don't see why the path must be absolute, though I haven't tried. Is
> there some problem having a different global matplotlibrc
> $HOME/.matplotlib/matplotlibrc or $MATPLOTLIBDATA/matplotlibrc,
> possibly setting $HOME or $MATPLOTLIBDATA from your build script?
An absolute path is necesary because the current working directory
changes for each example. To check this I added,
 import sys
 sys.stderr.write('SAMPLE cwd=%s\n'%os.getcwd())
 sys.stderr.write('SAMPLE matplotlibrc=%s\n'%matplotlib.matplotlib_fname())
to the beginning of cbook.get_sample_data(). During the documentation
build I then saw output like,
reading sources... [ 12%] examples/api/date_demo
SAMPLE cwd=/home/bgamari/trees/matplotlib/matplotlib-1.0.1/examples/api
SAMPLE matplotlibrc=/home/bgamari/.matplotlib/matplotlibrc
reading sources... [ 12%] examples/api/date_index_formatter
SAMPLE cwd=/home/bgamari/trees/matplotlib/matplotlib-1.0.1/examples/api
SAMPLE matplotlibrc=/home/bgamari/.matplotlib/matplotlibrc
I suppose the only way around this is to patch the absolute path into
doc/matplotlibrc with sed, and then invoke doc/make.py with
MATPLOTLIBRC="$(CURDIR)/doc/matplotlibrc". I'm very confused how you
found that specifying a relative path in download.path worked. If the
cwd changes as seen above then the documentation was entirely correct in
claiming an absolute path is necessary. I really do wish there as a way
to prevent spinx from changing the cwd.
- Ben
From: Jouni K. S. <jk...@ik...> - 2010年12月09日 16:38:03
Ben Gamari <bga...@gm...> writes:
> That being said, I've tracked down the reason for the configuration in
> doc/matplotlibrc not being used. It seems that sphinx runs the examples
> in their current directory (I suppose this is to be expected).
>
> It seems that there is a (as far as I can tell undocumented, please fix
> this) MATPLOTLIBRC environment variable which can be used to override
> the location of the matplotlibrc used. This could be useful in
> specifying the matplotlibrc used during the documentation build process
> but unfortunately this would require an absolute path which, again,
> complicates the packaging (i.e. I don't know the best way to accomplish
> this). Suggestions?
I don't see why the path must be absolute, though I haven't tried. Is
there some problem having a different global matplotlibrc
$HOME/.matplotlib/matplotlibrc or $MATPLOTLIBDATA/matplotlibrc,
possibly setting $HOME or $MATPLOTLIBDATA from your build script?
-- 
Jouni K. Seppänen
http://www.iki.fi/jks
From: Ben G. <bga...@gm...> - 2010年12月08日 20:16:40
Sorry to the Benjamin Drung, Scott Kitterman, and Sandro Tosi for not
including you in this thread earlier. I am trying to bring the
matplotlib 1.0.1 packaging into compliance with the debian packaging
requirements.
Unfortunately, matplotlib now includes out-of-tree sample data which is
downloaded during the documentation build process. To avoid this we need
to override a setting in matplotlibrc during the documentation build and
package these data in a separate source tarball. Most of this work has
been done (see my PPA[1]) but unfortunately the configuration changes
are non-trivial.
On Sun, 5 Dec 2010 17:16:44 -0600, John Hunter <jd...@gm...> wrote:
> On Sun, Dec 5, 2010 at 3:14 PM, Ben Gamari <bga...@gm...> wrote:
> >> I am not intimately familiar with the doc build system, but the way that
> >> the "html" function in make.py copies matplotlibrc from mpl-data to
> >> _static, I suspect that it is trying to ensure that that particular file
> >> is used.
> >>
> > Anyone else have further guidance?
> 
> No, that is there so that the link from the customizing page
> 
> http://matplotlib.sourceforge.net/users/customizing.html
> 
> to the "download matplotlibrc" link
> 
> http://matplotlib.sourceforge.net/_static/matplotlibrc
> 
> works and gives an update matplotlibrc. It is not used in the doc
> build to customize the settings of the docs. The files in _static are
> just copied up to the web server but can be linked to from withing
> rest.
> 
I'm glad to hear that this file isn't used. This should make packaging
much easier.
That being said, I've tracked down the reason for the configuration in
doc/matplotlibrc not being used. It seems that sphinx runs the examples
in their current directory (I suppose this is to be expected).
It seems that there is a (as far as I can tell undocumented, please fix
this) MATPLOTLIBRC environment variable which can be used to override
the location of the matplotlibrc used. This could be useful in
specifying the matplotlibrc used during the documentation build process
but unfortunately this would require an absolute path which, again,
complicates the packaging (i.e. I don't know the best way to accomplish
this). Suggestions?
Thanks,
- Ben
[1] https://launchpad.net/~bgamari/+archive/matplotlib-unofficial
From: Uri L. <las...@mi...> - 2010年12月08日 16:36:44
This command in the make.osx file:
python2.7 -c 'import urllib; urllib.urlretrieve("
http://sourceforge.net/projects/libpng/files/libpng-stable/1.2.39/libpng-1.2.39.tar.gz/download",
"libpng-1.2.39.tar.gz")'
returns a bunch of html.
I'm not sure what the new URL is, but it should be a simple fix.
...................................................................................
Uri Laserson
Graduate Student, Biomedical Engineering
Harvard-MIT Division of Health Sciences and Technology
M +1 917 742 8019
las...@mi...
From: John H. <jd...@gm...> - 2010年12月05日 23:17:10
On Sun, Dec 5, 2010 at 3:14 PM, Ben Gamari <bga...@gm...> wrote:
>> I am not intimately familiar with the doc build system, but the way that
>> the "html" function in make.py copies matplotlibrc from mpl-data to
>> _static, I suspect that it is trying to ensure that that particular file
>> is used.
>>
> Anyone else have further guidance?
No, that is there so that the link from the customizing page
 http://matplotlib.sourceforge.net/users/customizing.html
to the "download matplotlibrc" link
 http://matplotlib.sourceforge.net/_static/matplotlibrc
works and gives an update matplotlibrc. It is not used in the doc
build to customize the settings of the docs. The files in _static are
just copied up to the web server but can be linked to from withing
rest.
JDH
From: Ben G. <bga...@gm...> - 2010年12月05日 21:14:39
On 2010年12月05日 23:03:02 +0200, Jouni K. Seppänen <jk...@ik...> wrote:
> Ben Gamari <bga...@gm...>
> writes:
> 
> > In practice, however, I have run into a few issues. First, the comment
> > regarding examples.directory indicates that this path must be
> > absolute. Is this really true? 
> 
> The comment is wrong: a relative path will work (I just tried this).
> 
Awesome. Perhaps this should be corrected in the tree so it doesn't look
like I'm blatantly violating the documentation?
> > Secondly, it seems that the doc/matplotlibrc file is completely
> > ignored.
> 
> I am not intimately familiar with the doc build system, but the way that
> the "html" function in make.py copies matplotlibrc from mpl-data to
> _static, I suspect that it is trying to ensure that that particular file
> is used.
>
Anyone else have further guidance?
- Ben
From: Ben G. <bg...@gm...> - 2010年12月05日 21:14:22
On 2010年12月05日 23:03:02 +0200, Jouni K. Seppänen <jk...@ik...> wrote:
> Ben Gamari <bga...@gm...>
> writes:
> 
> > In practice, however, I have run into a few issues. First, the comment
> > regarding examples.directory indicates that this path must be
> > absolute. Is this really true? 
> 
> The comment is wrong: a relative path will work (I just tried this).
> 
Awesome. Perhaps this should be corrected in the tree so it doesn't look
like I'm blatantly violating the documentation?
> > Secondly, it seems that the doc/matplotlibrc file is completely
> > ignored.
> 
> I am not intimately familiar with the doc build system, but the way that
> the "html" function in make.py copies matplotlibrc from mpl-data to
> _static, I suspect that it is trying to ensure that that particular file
> is used.
>
Anyone else have further guidance?
- Ben
From: Jouni K. S. <jk...@ik...> - 2010年12月05日 21:03:31
Ben Gamari <bga...@gm...>
writes:
> In practice, however, I have run into a few issues. First, the comment
> regarding examples.directory indicates that this path must be
> absolute. Is this really true? 
The comment is wrong: a relative path will work (I just tried this).
> Secondly, it seems that the doc/matplotlibrc file is completely
> ignored.
I am not intimately familiar with the doc build system, but the way that
the "html" function in make.py copies matplotlibrc from mpl-data to
_static, I suspect that it is trying to ensure that that particular file
is used.
-- 
Jouni K. Seppänen
http://www.iki.fi/jks
From: Ben G. <bga...@gm...> - 2010年12月05日 20:49:45
On Mon, 8 Nov 2010 14:01:26 -0600, John Hunter <jd...@gm...> wrote:
> I will try and get to the release ASAP and set the sample_data up this way...
> 
Any news on this? A release would be very nice. I did the bulk of the
work[1] to get the debian packaging working with the 1.0 series but I
can't really do much else until there is an actual release to work
against.
- Ben
[1] https://launchpad.net/~bgamari/+archive/matplotlib-unofficial
 Although this isn't quite working yet. More about this in another
 thread.
From: Ben G. <bga...@gm...> - 2010年12月05日 20:19:13
This weekend I put a bit of time into bringing the Debian packaging[1]
for the matplotlib 1.0 series up to date.
In the tree it seems there is a matplotlibrc in the /doc
directory. Judging from the documentation, it looks like matplotlib will
first use a matplotlibrc in the current directory. This works very well
for the case of packaging for Debian, since I can simply override the
examples.* options here to avoid downloading the samples while building
the documentation.
In practice, however, I have run into a few issues. First, the comment
regarding examples.directory indicates that this path must be
absolute. Is this really true? For obvious reasons we don't know the
absolute path of the samples until we actually build the package. I
suppose an 'echo' in the packaging makefile could dynamically patch this
path in, but a relative path would be far simpler.
Secondly, it seems that the doc/matplotlibrc file is completely ignored.
When I tried building with "examples.directory=../sampledata", I still
saw multiple failed download attempts in the package build log. Indeed,
even putting an invalid line in doc/matplotlibrc doesn't result in an
error.
For the record, the documentation build process is invoked with,
 cd doc ; MATPLOTLIBDATA=../lib/matplotlib/mpl-data/ \
 PYTHONPATH=../build/lib.$(PY_PLATFORM)-$(DEFPY) ./make.py --small all
Any suggestions would be greatly appreciated.
- Ben
[1] https://launchpad.net/~bgamari/+archive/matplotlib-unofficial
1 message has been excluded from this view by a project administrator.

Showing results of 72

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