Re: [Matplotlib-users] Links in pdf

2009-11-30 Thread Jouni K . Seppänen
Michael Droettboom  writes:

> Just a note when implementing this feature (I'm too busy at the moment 
> as well) -- the SVG backend already supports hyperlinks, so if possible 
> the PDF support should piggyback on its public API (get_url/set_url).

Yes, for URL links the API should look similar, but I think for
multimedia we need a richer API. PDF has support for embedding sound
files in various formats since version 1.2, and (very complicated
looking) support for general multimedia since version 1.5.

-- 
Jouni K. Seppänen
http://www.iki.fi/jks


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Links in pdf

2009-11-30 Thread Michael Droettboom
Just a note when implementing this feature (I'm too busy at the moment 
as well) -- the SVG backend already supports hyperlinks, so if possible 
the PDF support should piggyback on its public API (get_url/set_url).

Mike

On 11/28/2009 11:09 AM, Fabricio Silva wrote:
> Le samedi 28 novembre 2009 à 17:04 +0200, Jouni K. Seppänen a écrit :
>
>>> More specifically, I have a figure with a bunch of nicely-formatted
>>> subplots and I embed this figure in a beamer presentation. I wish I
>>> could play the associated sound when I click on one of the subplots in
>>> Beamer (running a shell command).
>>>
>> Beamer comes with a package called multimedia, and I think it allows you
>> to achieve something much like this -- see the \sound and
>> \hyperlinksound macros. It might be difficult to make the hyperlink be
>> exactly some subplot, but perhaps you could use e.g. speaker icons as
>> link anchors and place them in suitable locations.
>>  
> I have the second solution by now. But I hope I will succeed to make a
> clickable area match to each subplot, probably using tikz to set the
> size of the area.
>
>
>


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Links in pdf

2009-11-28 Thread Fabricio Silva
Le samedi 28 novembre 2009 à 17:04 +0200, Jouni K. Seppänen a écrit :
> > More specifically, I have a figure with a bunch of nicely-formatted
> > subplots and I embed this figure in a beamer presentation. I wish I
> > could play the associated sound when I click on one of the subplots in
> > Beamer (running a shell command).
> 
> Beamer comes with a package called multimedia, and I think it allows you
> to achieve something much like this -- see the \sound and
> \hyperlinksound macros. It might be difficult to make the hyperlink be
> exactly some subplot, but perhaps you could use e.g. speaker icons as
> link anchors and place them in suitable locations.

I have the second solution by now. But I hope I will succeed to make a
clickable area match to each subplot, probably using tikz to set the
size of the area.


-- 
Fabrice Silva
Laboratory of Mechanics and Acoustics (CNRS, UPR 7051)


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Links in pdf

2009-11-28 Thread Jouni K . Seppänen
Fabricio Silva  writes:

> I wish I could save include links in exported pdf file. Tell me whether
> it is possible to have a pdf file containing matplotlib plots on which I
> could click to run actions, in the same manner that pdf files can
> include clickable URL...

This is not possible with the current pdf backend. I imagine it would
not be too difficult to implement, but I am way too busy at work to do
it any time soon.

> More specifically, I have a figure with a bunch of nicely-formatted
> subplots and I embed this figure in a beamer presentation. I wish I
> could play the associated sound when I click on one of the subplots in
> Beamer (running a shell command).

Beamer comes with a package called multimedia, and I think it allows you
to achieve something much like this -- see the \sound and
\hyperlinksound macros. It might be difficult to make the hyperlink be
exactly some subplot, but perhaps you could use e.g. speaker icons as
link anchors and place them in suitable locations.

-- 
Jouni K. Seppänen
http://www.iki.fi/jks


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Links in pdf

2009-11-28 Thread Fabricio Silva
Hi folks
I know it is possible to handle events in the figure canvas to interact
with plots and components of the figure, to even run shell commands,
etc...
I wish I could save include links in exported pdf file. Tell me whether
it is possible to have a pdf file containing matplotlib plots on which I
could click to run actions, in the same manner that pdf files can
include clickable URL...

More specifically, I have a figure with a bunch of nicely-formatted
subplots and I embed this figure in a beamer presentation. I wish I
could play the associated sound when I click on one of the subplots in
Beamer (running a shell command).

-- 
Fabrice Silva
Laboratory of Mechanics and Acoustics (CNRS, UPR 7051)


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users