From mboxrd@z Thu Jan 1 00:00:00 1970 From: "numbchild@gmail.com" Subject: How to auto insert inline image link for org-plot/gnuplot result plot? Date: Sun, 18 Jun 2017 13:55:28 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a1146fb7c33604c055235acac" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34614) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMTBq-0005cU-7e for emacs-orgmode@gnu.org; Sun, 18 Jun 2017 01:56:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMTBp-0002Be-4X for emacs-orgmode@gnu.org; Sun, 18 Jun 2017 01:56:02 -0400 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]:38149) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dMTBo-0002B7-Qy for emacs-orgmode@gnu.org; Sun, 18 Jun 2017 01:56:01 -0400 Received: by mail-wm0-x22e.google.com with SMTP id u195so38201796wmd.1 for ; Sat, 17 Jun 2017 22:56:00 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Org-mode --001a1146fb7c33604c055235acac Content-Type: text/plain; charset="UTF-8" I want to auto insert inline image for `org-plot/gnuplot` result plot below the table. Like this: ```org #+PLOT: title:"Citas" ind:1 deps:(3) type:2d with:histograms set:"yrange [0:]" | Sede | Max cites | H-index | |-----------+-----------+---------| | Chile | 257.72 | 21.39 | | Leeds | 165.77 | 19.68 | | Sao Paolo | 71.00 | 11.50 | | Stockholm | 134.19 | 14.33 | | Morelia | 257.56 | 17.67 | Press =[C-c " g]= on upper table to generate gnuplot plot image (*NOTE*: the generated plot image is in currently working directory). #+ATTR_ORG: :width 250 #+ATTR_LATEX: :width 2.5in #+ATTR_HTML: :width 250px [[file:org-plot.png]] ``` I have an idea, add an advice on `org-plot/gnuplot` with a user helper function to inser the inline image link. This advice need to: - locate point below the table. - get the `org-plot/gnuplot` result plot image link. - insert inline image link. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ --001a1146fb7c33604c055235acac Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I want to auto insert inline image for `org-pl= ot/gnuplot` result plot below the table. Like this:

```org
#+PLOT: title:"Cita= s" ind:1 deps:(3) type:2d with:histograms set:"yrange [0:]"<= /font>
| Sede =C2=A0 =C2=A0 =C2=A0| Max cites | H-index |
|-----------= +-----------+---------|
| Chile =C2=A0 =C2=A0 | =C2=A0 =C2=A0257.72 |= =C2=A0 21.39 |
| Leeds =C2=A0 =C2=A0 | =C2=A0 =C2=A0165.77 | =C2=A0 = 19.68 |
| Sao Paolo | =C2=A0 =C2=A0 71.00 | =C2=A0 11.50 |
| St= ockholm | =C2=A0 =C2=A0134.19 | =C2=A0 14.33 |
| Morelia =C2=A0 | =C2= =A0 =C2=A0257.56 | =C2=A0 17.67 |
=
Press =3D[C-c " g]= =3D on upper table to generate gnuplot plot image (*NOTE*: the
=
genera= ted plot image is in currently working directory).

#+ATT= R_ORG: :width 250
#+ATTR_LATEX: :width 2.5in
#+ATTR_HTML: :wi= dth 250px
[[file:org-plot.png]]
```

I have an idea, add an advice on `org-plot= /gnuplot` with a user helper function to inser the inline image link.
=
This advice = need to:
= - locate point below the table.
- get the `org-plot/gnuplot` result plot image lin= k.
- in= sert inline image link.

[stardiviner]=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <Hack this wor= ld!>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 GPG key ID: 47C32433
IRC(freeenode= ): stardiviner =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Twitter:=C2=A0 @numb= child
Key fingerprint =3D 9BAA 92BC CDDD B9EF 3B36=C2=A0 CB99 B8C4 B8E5 = 47C3 2433
Blog: http://stardiviner.github.io/
--001a1146fb7c33604c055235acac--