[ESS] Displaying R plots within an Emacs buffer
Ramon Diaz-Uriarte
rd|@z02 @end|ng |rom gm@||@com
Mon Mar 25 20:58:59 CET 2024
On Mon, 25-March-2024, at 11:21:26, Stephen J Eglen <sje30 using maths.cam.ac.uk> wrote:
>> - I works perfectly for me in two different machines (both running
>> Debian and Emacs 29.2.50)
>
> Thanks for confirming.
>
>> - Maybe I am not understanding
>> https://github.com/sje30/ess-unigd#adjust-to-size-of-buffer--dynamically-update
>> , but resize of image (on changing frame and window sizes) happens
>> automagically for me.
>> - The only minor thing is that, for some reason, the svg is shown in
>> Fundamental mode (if I find-file other svgs, they are shown as images
>> directly); I guess it is something with my setup. revert-buffer solves
>> it.
>
> The code that you have currently just uses the default aspect ratio that
> httpgd() provides, i.e. 720x576 pixels. The images will rescale as you
> change the buffer, but the aspect ratio won't change.
Aha, thanks for the clarification.
>
> I've got it now working locally so that the aspect ratio is the same size
> as the window that you use to view the svg. This I think is more flexible.
Looking forward to that functionality :-)
Best,
R.
--
Ramon Diaz-Uriarte
Department of Biochemistry, Lab B-31
Facultad de Medicina
Universidad Autónoma de Madrid
Arzobispo Morcillo, 4
28029 Madrid
Spain
Phone: +34-91-497-2412
Email: rdiaz02 using gmail.com
r.diaz using uam.es
ramon.diaz using iib.uam.es
https://ligarto.org/rdiaz
More information about the ESS-help
mailing list