cbook.get_sample_data() and custom sample_data location

Hello,
for the Debian package, we install sample_data directory in a custom
location, /usr/share/matplotlib/sample_data/ .

Pre-1.2.0 we could specify the examples.directory rcParam, but now
that parameter has been removed.

If we want to keep shipping sample_data in /usr/share/matplotlib/ , it
seems the only solution is to patch cbook.get_sample_data() to set

root = '/usr/share/matplotlib/'

Is that correct or is there another solution i'm not seeing?

Regards,

···

--
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

Hi all again,

Hello,
for the Debian package, we install sample_data directory in a custom
location, /usr/share/matplotlib/sample_data/ .

Pre-1.2.0 we could specify the examples.directory rcParam, but now
that parameter has been removed.

If we want to keep shipping sample_data in /usr/share/matplotlib/ , it
seems the only solution is to patch cbook.get_sample_data() to set

root = '/usr/share/matplotlib/'

Just hardcoding the path made the doc compilation failing to provide
the images for examples using get_sample_data() because it refers to a
directory still not populated (it will be at install time, not build
time). So i brought it up to

We can keep discussing it there.

Cheers,

···

On Fri, Nov 9, 2012 at 11:53 PM, Sandro Tosi <morph@...12...> wrote:
--
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi