sje30 / ess-unigd

MIT License
12 stars 0 forks source link

v2: refresh does not resize to window #3

Open rdiaz02 opened 5 months ago

rdiaz02 commented 5 months ago

Hi Stephen,

I just tried v2; thanks!!! But essgd-refresh does not seem to resize the plot to window size; from the video, on 4:04 (https://youtu.be/TrwE_80eVTw?t=242), I thought it should

I can reproduce them on Emacs 29.3.50 with these steps:

  1. emacs -Q
  2. M-: (package-initialize) (so I have ESS available)
  3. C-x C-f example.R and execute up to, and including, line hgd(bg="transparent") (for example with ess-eval-buffer-from-beg-to-here, bound to C-c C-up)
  4. M-x load-file ess-websocket.el
  5. On the inferior R process M-x essgd-start
  6. Run the plot examples
  7. Go to the essgd buffer.
  8. r: does not resize plot to window size.
sje30 commented 5 months ago

Thanks Ramon for testing and reporting.

Yes, 'r' should refresh the plot so that it goes back to the server and gets a new image with the correct wid/ht to fill the new window size.

If you have time to help me debug, that would be great. Run the following

(setq essgd-debug t)

and then try resizing the *essgd* buffer a few times and pressing r

If you then go to the *Messages* buffer (C-h E) you should see some output like:

funcall-interactively: Buffer is read-only: #<buffer *essgd*> [2 times]
curl -s ’http://127.0.0.1:56014/plots?token=ROh913Uw’
curl -s ’http://127.0.0.1:56014/plot?index=0&width=656&height=625&token=ROh913Uw’ > /tmp/me.svg
ws frame: "{\"active\":false,\"hsize\":1,\"upid\":5}"
ws frame: "{\"active\":true,\"hsize\":1,\"upid\":5}" [6 times]
ws frame: "{\"active\":false,\"hsize\":1,\"upid\":5}"
ws frame: "{\"active\":true,\"hsize\":1,\"upid\":5}"
curl -s ’http://127.0.0.1:56014/plots?token=ROh913Uw’
curl -s ’http://127.0.0.1:56014/plot?index=0&width=656&height=379&token=ROh913Uw’ > /tmp/me.svg
ws frame: "{\"active\":false,\"hsize\":1,\"upid\":5}"
ws frame: "{\"active\":true,\"hsize\":1,\"upid\":5}" [6 times]
ws frame: "{\"active\":false,\"hsize\":1,\"upid\":5}"
ws frame: "{\"active\":true,\"hsize\":1,\"upid\":5}"
Mark activated
Mark set
adjust-window-trailing-edge: No resizable window above this one [4 times]
curl -s ’http://127.0.0.1:56014/plots?token=ROh913Uw’
curl -s ’http://127.0.0.1:56014/plot?index=0&width=656&height=943&token=ROh913Uw’ > /tmp/me.svg
ws frame: "{\"active\":false,\"hsize\":1,\"upid\":5}"
ws frame: "{\"active\":true,\"hsize\":1,\"upid\":5}" [6 times]
ws frame: "{\"active\":false,\"hsize\":1,\"upid\":5}"

Above is an example of what I got when just moving the mode-line up and down, so the height can be seen to vary but not the width.

Or just paste the output here and I can take a look.

Another couple of things to check.

  1. the latest svg is currently downloaded to /tmp/me.svg -- take a look in there and see if the plot changes size when you refresh. (If you open it in Emacs, you probably see the image, not the raw contents - C-c C-c to get the contents). You are looking for the first clip path:
<clipPath id="c0"><rect x="0.00" y="0.00" width="656.00" height="943.00"/></clipPath>
  1. To rule out httpgd, just try grabbing the image from the command line and varying the height, width by hand (but remember to change the port and token; the example below won't work for you):
curl -s ’http://127.0.0.1:56014/plot?index=0&width=656&height=379&token=ROh913Uw’ > /tmp/me.svg
  1. See what Emacs thinks your current window size is. e.g. in the *essgd* buffer, run the following
M-x eval-expression RET (window-pixel-width) RET
M-x eval-expression RET (window-pixel-height) RET
sje30 commented 5 months ago

I have noticed a subtle issue with font sizing affecting the rescaling on Mac. There might be some oddity going on. What is your system set up?

uname -a
emacs --version

I've been testing this on

$ uname -a
Darwin blur.local 23.4.0 Darwin Kernel Version 23.4.0: Wed Feb 21 21:44:43 PST 2024; root:xnu-10063.101.15~2/RELEASE_ARM64_T6000 arm64
$ emacs --version
GNU Emacs 29.1
sje30 commented 5 months ago

I have noticed a subtle issue with font sizing affecting the rescaling on Mac. There might be some oddity going on.

The problem here is that the window width and height includes the fringe and the modeline.

Fixed in commit 60316e3

sje30 commented 5 months ago

could you try to pull from GitHub and try again?

Note that I've simplified the set up a bit, see v2/example.R

  1. load the ess-websocket.el file
  2. M-x R
  3. M-x essg-start

and then start plotting in R

rdiaz02 commented 5 months ago

Sorry for the delay.

I just tried, and it is still not working: r is not resizing the plot (neither height nor width are adjusted to window size). Answering your questions:

uname -a
Linux Phelsuma 6.5.0-1-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.5.3-1 (2023-09-13) x86_64 GNU/Linux
emacs --version
GNU Emacs 29.3.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.18.0) of 2024-03-26

and the same thing happens with a Lucid build

emacs --version
GNU Emacs 29.3.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.18.0, Xaw scroll bars) of 2024-03-27

On the GTK build I

(setq essgd-debug t)

then I resized the window and pressed r several times. This is what the messages buffer shows:

essgd: resize window
curl -s ’http://127.0.0.1:38897/plots?token=d6vBKlmN’
curl -s ’http://127.0.0.1:38897/plot?index=5&width=1877&height=899&token=d6vBKlmN’ > /tmp/me.svg
inside size 1877 x 899 
essgd: resize window
curl -s ’http://127.0.0.1:38897/plots?token=d6vBKlmN’
curl -s ’http://127.0.0.1:38897/plot?index=5&width=1877&height=841&token=d6vBKlmN’ > /tmp/me.svg
inside size 1877 x 841 
essgd: resize window
curl -s ’http://127.0.0.1:38897/plots?token=d6vBKlmN’
curl -s ’http://127.0.0.1:38897/plot?index=5&width=1877&height=797&token=d6vBKlmN’ > /tmp/me.svg
inside size 1877 x 797 
essgd: resize window
curl -s ’http://127.0.0.1:38897/plots?token=d6vBKlmN’
curl -s ’http://127.0.0.1:38897/plot?index=5&width=1877&height=738&token=d6vBKlmN’ > /tmp/me.svg
inside size 1877 x 738 
essgd: resize window
curl -s ’http://127.0.0.1:38897/plots?token=d6vBKlmN’
curl -s ’http://127.0.0.1:38897/plot?index=5&width=1877&height=664&token=d6vBKlmN’ > /tmp/me.svg
inside size 1877 x 664 
essgd: resize window
curl -s ’http://127.0.0.1:38897/plots?token=d6vBKlmN’
curl -s ’http://127.0.0.1:38897/plot?index=5&width=1877&height=648&token=d6vBKlmN’ > /tmp/me.svg
inside size 1877 x 648 
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
curl -s ’http://127.0.0.1:38897/plots?token=d6vBKlmN’
curl -s ’http://127.0.0.1:38897/plot?index=5&width=1877&height=648&token=d6vBKlmN’ > /tmp/me.svg
inside size 1877 x 648 
curl -s ’http://127.0.0.1:38897/plots?token=d6vBKlmN’
curl -s ’http://127.0.0.1:38897/plot?index=5&width=1877&height=648&token=d6vBKlmN’ > /tmp/me.svg
inside size 1877 x 648 

(...)

essgd: resize window
curl -s ’http://127.0.0.1:46347/plots?token=1LGUej14’
curl -s ’http://127.0.0.1:46347/plot?index=5&width=1159&height=640&token=1LGUej14’ > /tmp/me.svg
inside size 1159 x 640 
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
essgd: resize window
curl -s ’http://127.0.0.1:46347/plots?token=1LGUej14’
curl -s ’http://127.0.0.1:46347/plot?index=5&width=1143&height=620&token=1LGUej14’ > /tmp/me.svg
inside size 1143 x 620 
essgd: resize window
curl -s ’http://127.0.0.1:46347/plots?token=1LGUej14’
curl -s ’http://127.0.0.1:46347/plot?index=5&width=1141&height=620&token=1LGUej14’ > /tmp/me.svg
inside size 1141 x 620 
essgd: resize window
curl -s ’http://127.0.0.1:46347/plots?token=1LGUej14’
curl -s ’http://127.0.0.1:46347/plot?index=5&width=1131&height=620&token=1LGUej14’ > /tmp/me.svg
inside size 1131 x 620 
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
essgd: resize window
curl -s ’http://127.0.0.1:46347/plots?token=1LGUej14’
curl -s ’http://127.0.0.1:46347/plot?index=5&width=1121&height=615&token=1LGUej14’ > /tmp/me.svg
inside size 1121 x 615 
Error parsing SVG image: XML parse error: Error domain 1 code 5 on line 58 column 7 of data: Extra content at the end of the document [6 times]
essgd: resize window
curl -s ’http://127.0.0.1:46347/plots?token=1LGUej14’
curl -s ’http://127.0.0.1:46347/plot?index=5&width=1108&height=607&token=1LGUej14’ > /tmp/me.svg
inside size 1108 x 607 

If I do the same thing in the Lucid build Emacs

essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=970&height=458&token=H1FH7ZPh’ > /tmp/me.svg
inside size 970 x 458 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=970&height=497&token=H1FH7ZPh’ > /tmp/me.svg
inside size 970 x 497 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=970&height=550&token=H1FH7ZPh’ > /tmp/me.svg
inside size 970 x 550 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=970&height=572&token=H1FH7ZPh’ > /tmp/me.svg
inside size 970 x 572 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=970&height=604&token=H1FH7ZPh’ > /tmp/me.svg
inside size 970 x 604 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=970&height=635&token=H1FH7ZPh’ > /tmp/me.svg
inside size 970 x 635 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=970&height=655&token=H1FH7ZPh’ > /tmp/me.svg
inside size 970 x 655 
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=970&height=674&token=H1FH7ZPh’ > /tmp/me.svg
inside size 970 x 674 
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=972&height=674&token=H1FH7ZPh’ > /tmp/me.svg
inside size 972 x 674 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=981&height=674&token=H1FH7ZPh’ > /tmp/me.svg
inside size 981 x 674 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1005&height=674&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1005 x 674 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1037&height=674&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1037 x 674 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1080&height=674&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1080 x 674 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1128&height=674&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1128 x 674 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1199&height=674&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1199 x 674 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1205&height=674&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1205 x 674 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1232&height=674&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1232 x 674 
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1232&height=667&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1232 x 667 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1232&height=596&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1232 x 596 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1232&height=571&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1232 x 571 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1232&height=558&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1232 x 558 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1232&height=544&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1232 x 544 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1232&height=529&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1232 x 529 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1232&height=520&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1232 x 520 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1232&height=510&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1232 x 510 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1232&height=500&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1232 x 500 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1232&height=488&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1232 x 488 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1232&height=471&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1232 x 471 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1232&height=454&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1232 x 454 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1232&height=443&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1232 x 443 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1232&height=442&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1232 x 442 
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1227&height=442&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1227 x 442 
Error parsing SVG image: XML parse error: Input file is too short [3 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1190&height=442&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1190 x 442 
Error parsing SVG image: XML parse error: Input file is too short [3 times]
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1164&height=442&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1164 x 442 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1113&height=442&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1113 x 442 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1087&height=442&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1087 x 442 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1061&height=442&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1061 x 442 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1048&height=442&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1048 x 442 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1046&height=442&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1046 x 442 
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1046&height=442&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1046 x 442 
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1046&height=442&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1046 x 442 

(...)

Error parsing SVG image: XML parse error: Error domain 1 code 5 on line 58 column 7 of data: Extra content at the end of the document [6 times]
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1430&height=526&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1430 x 526 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1374&height=501&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1374 x 501 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1348&height=501&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1348 x 501 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1335&height=492&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1335 x 492 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1312&height=492&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1312 x 492 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1260&height=451&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1260 x 451 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1234&height=451&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1234 x 451 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1234&height=449&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1234 x 449 

So in both cases there are instance of height varying when width is fixed, and width varying when height is fixed. (I was resizing by dragging either from the horizontal or vertical sides, so I guess this makes sense). But there are some cases where both change simultaneously: I was dragging from the corner.

rdiaz02 commented 5 months ago

Sorry for the delay.

I just tried, and it is still not working: r is not resizing the plot (neither height nor width are adjusted to window size). Answering your questions:

uname -a
Linux Phelsuma 6.5.0-1-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.5.3-1 (2023-09-13) x86_64 GNU/Linux
emacs --version
GNU Emacs 29.3.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.18.0) of 2024-03-26

and the same thing happens with a Lucid build

emacs --version
GNU Emacs 29.3.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.18.0, Xaw scroll bars) of 2024-03-27

On the GTK build I

(setq essgd-debug t)

then I resized the window and pressed r several times. This is what the messages buffer shows:

essgd: resize window
curl -s ’http://127.0.0.1:38897/plots?token=d6vBKlmN’
curl -s ’http://127.0.0.1:38897/plot?index=5&width=1877&height=899&token=d6vBKlmN’ > /tmp/me.svg
inside size 1877 x 899 
essgd: resize window
curl -s ’http://127.0.0.1:38897/plots?token=d6vBKlmN’
curl -s ’http://127.0.0.1:38897/plot?index=5&width=1877&height=841&token=d6vBKlmN’ > /tmp/me.svg
inside size 1877 x 841 
essgd: resize window
curl -s ’http://127.0.0.1:38897/plots?token=d6vBKlmN’
curl -s ’http://127.0.0.1:38897/plot?index=5&width=1877&height=797&token=d6vBKlmN’ > /tmp/me.svg
inside size 1877 x 797 
essgd: resize window
curl -s ’http://127.0.0.1:38897/plots?token=d6vBKlmN’
curl -s ’http://127.0.0.1:38897/plot?index=5&width=1877&height=738&token=d6vBKlmN’ > /tmp/me.svg
inside size 1877 x 738 
essgd: resize window
curl -s ’http://127.0.0.1:38897/plots?token=d6vBKlmN’
curl -s ’http://127.0.0.1:38897/plot?index=5&width=1877&height=664&token=d6vBKlmN’ > /tmp/me.svg
inside size 1877 x 664 
essgd: resize window
curl -s ’http://127.0.0.1:38897/plots?token=d6vBKlmN’
curl -s ’http://127.0.0.1:38897/plot?index=5&width=1877&height=648&token=d6vBKlmN’ > /tmp/me.svg
inside size 1877 x 648 
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
curl -s ’http://127.0.0.1:38897/plots?token=d6vBKlmN’
curl -s ’http://127.0.0.1:38897/plot?index=5&width=1877&height=648&token=d6vBKlmN’ > /tmp/me.svg
inside size 1877 x 648 
curl -s ’http://127.0.0.1:38897/plots?token=d6vBKlmN’
curl -s ’http://127.0.0.1:38897/plot?index=5&width=1877&height=648&token=d6vBKlmN’ > /tmp/me.svg
inside size 1877 x 648 

(...)

essgd: resize window
curl -s ’http://127.0.0.1:46347/plots?token=1LGUej14’
curl -s ’http://127.0.0.1:46347/plot?index=5&width=1159&height=640&token=1LGUej14’ > /tmp/me.svg
inside size 1159 x 640 
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
essgd: resize window
curl -s ’http://127.0.0.1:46347/plots?token=1LGUej14’
curl -s ’http://127.0.0.1:46347/plot?index=5&width=1143&height=620&token=1LGUej14’ > /tmp/me.svg
inside size 1143 x 620 
essgd: resize window
curl -s ’http://127.0.0.1:46347/plots?token=1LGUej14’
curl -s ’http://127.0.0.1:46347/plot?index=5&width=1141&height=620&token=1LGUej14’ > /tmp/me.svg
inside size 1141 x 620 
essgd: resize window
curl -s ’http://127.0.0.1:46347/plots?token=1LGUej14’
curl -s ’http://127.0.0.1:46347/plot?index=5&width=1131&height=620&token=1LGUej14’ > /tmp/me.svg
inside size 1131 x 620 
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
essgd: resize window
curl -s ’http://127.0.0.1:46347/plots?token=1LGUej14’
curl -s ’http://127.0.0.1:46347/plot?index=5&width=1121&height=615&token=1LGUej14’ > /tmp/me.svg
inside size 1121 x 615 
Error parsing SVG image: XML parse error: Error domain 1 code 5 on line 58 column 7 of data: Extra content at the end of the document [6 times]
essgd: resize window
curl -s ’http://127.0.0.1:46347/plots?token=1LGUej14’
curl -s ’http://127.0.0.1:46347/plot?index=5&width=1108&height=607&token=1LGUej14’ > /tmp/me.svg
inside size 1108 x 607 

If I do the same thing in the Lucid build Emacs

essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=970&height=458&token=H1FH7ZPh’ > /tmp/me.svg
inside size 970 x 458 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=970&height=497&token=H1FH7ZPh’ > /tmp/me.svg
inside size 970 x 497 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=970&height=550&token=H1FH7ZPh’ > /tmp/me.svg
inside size 970 x 550 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=970&height=572&token=H1FH7ZPh’ > /tmp/me.svg
inside size 970 x 572 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=970&height=604&token=H1FH7ZPh’ > /tmp/me.svg
inside size 970 x 604 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=970&height=635&token=H1FH7ZPh’ > /tmp/me.svg
inside size 970 x 635 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=970&height=655&token=H1FH7ZPh’ > /tmp/me.svg
inside size 970 x 655 
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=970&height=674&token=H1FH7ZPh’ > /tmp/me.svg
inside size 970 x 674 
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=972&height=674&token=H1FH7ZPh’ > /tmp/me.svg
inside size 972 x 674 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=981&height=674&token=H1FH7ZPh’ > /tmp/me.svg
inside size 981 x 674 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1005&height=674&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1005 x 674 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1037&height=674&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1037 x 674 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1080&height=674&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1080 x 674 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1128&height=674&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1128 x 674 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1199&height=674&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1199 x 674 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1205&height=674&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1205 x 674 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1232&height=674&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1232 x 674 
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1232&height=667&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1232 x 667 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1232&height=596&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1232 x 596 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1232&height=571&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1232 x 571 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1232&height=558&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1232 x 558 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1232&height=544&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1232 x 544 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1232&height=529&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1232 x 529 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1232&height=520&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1232 x 520 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1232&height=510&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1232 x 510 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1232&height=500&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1232 x 500 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1232&height=488&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1232 x 488 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1232&height=471&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1232 x 471 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1232&height=454&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1232 x 454 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1232&height=443&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1232 x 443 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1232&height=442&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1232 x 442 
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1227&height=442&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1227 x 442 
Error parsing SVG image: XML parse error: Input file is too short [3 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1190&height=442&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1190 x 442 
Error parsing SVG image: XML parse error: Input file is too short [3 times]
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1164&height=442&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1164 x 442 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1113&height=442&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1113 x 442 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1087&height=442&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1087 x 442 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1061&height=442&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1061 x 442 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1048&height=442&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1048 x 442 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1046&height=442&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1046 x 442 
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}" [5 times]
ws frame: "{\"active\":false,\"hsize\":6,\"upid\":29}"
ws frame: "{\"active\":true,\"hsize\":6,\"upid\":29}"
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1046&height=442&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1046 x 442 
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1046&height=442&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1046 x 442 

(...)

Error parsing SVG image: XML parse error: Error domain 1 code 5 on line 58 column 7 of data: Extra content at the end of the document [6 times]
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1430&height=526&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1430 x 526 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1374&height=501&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1374 x 501 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1348&height=501&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1348 x 501 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1335&height=492&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1335 x 492 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1312&height=492&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1312 x 492 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1260&height=451&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1260 x 451 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1234&height=451&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1234 x 451 
essgd: resize window
curl -s ’http://127.0.0.1:33125/plots?token=H1FH7ZPh’
curl -s ’http://127.0.0.1:33125/plot?index=5&width=1234&height=449&token=H1FH7ZPh’ > /tmp/me.svg
inside size 1234 x 449 

So in both cases there are instance of height varying when width is fixed, and width varying when height is fixed. (I was resizing by dragging either from the horizontal or vertical sides, so I guess this makes sense). But there are some cases where both change simultaneously: I was dragging from the corner.


Another couple of things to check.

  1. the latest svg is currently downloaded to (...)

Doing C-c C-c on image (after opening it from Dired on /tmp): I resize the window, press r and check at the first line of clipPath: yes the width and height of the image have changed. (Verified in both the GTK and Lucid builds).

  1. just try grabbing the image from the command line So, from the latest call in Messages that shows
    curl -s ’http://127.0.0.1:46347/plot?index=5&width=968&height=941&token=1LGUej14’ > /tmp/me.svg

I copy that into an vterm window and set width and heigth to 100 and 200, respectively

ramon@Phelsuma:~/tmp$ curl -s ’http://127.0.0.1:46347/plot?index=5&width=100&height=200&token=1LGUej14’ > /tmp/me.svg
  1. See what Emacs thinks (...). in the essgd buffer, run the following
M-x eval-expression RET (window-pixel-width) RET
1000 (#o1750, #x3e8)

M-x eval-expression RET (window-pixel-height) RET
966 (#o1706, #x3c6)

If I repeat that in a Lucid build emacs, where I had

curl -s ’http://127.0.0.1:33125/plot?index=5&width=727&height=572&token=H1FH7ZPh’

And manually set to

curl -s ’http://127.0.0.1:33125/plot?index=5&width=100&height=200&token=H1FH7ZPh’ > /tmp/me.svg

This is what emacs things

M-x eval-expression RET (window-pixel-width) RET
759

M-x eval-expression RET (window-pixel-height) RET
597
sje30 commented 5 months ago

Hmm...

thanks for sending that.

So, it looks like the disk svg is being resized as per the current size of the essgd buffer, but the redisplay is not happening.

It could be an issue on linux (I've tested only on Mac); let me try it out on linux later and get back to you.

rdiaz02 commented 4 months ago

Resizing now works fine (I am using https://github.com/sje30/essgd); thanks!

But figures are chopped (i.e, the bottom and right parts are cut) in some monitors. On further exploration, this is related to my monitor DPI settings. It is my monitor, not anything in my Emacs config, since I am checking with emacs -Q.

Pieces of evidence:

Note that I am issuing all the DPI changes by changing Xft.dpi and xrandr --dpi. I am not touching anything in Emacs itself.

I do not understand why 0.75, but then I don't I really now anything about these issues :confounded: . I just enjoy the larger monitor :sweat_smile: .

I wonder if this is some rare thing I am doing or if these DPI changes are widespread with HDPI displays.

Edit: In case anyone else experiences this, and while a better solution is found, I've modified essgd-show-plot-n and have this kludge that works in my specific settings:

(myscale (if (> (my-dpi) 130) 0.76 1))
(wid (* (- right left) myscale))
(ht  (* (- bottom top) myscale))

in lines 183-185. ~my-dpi is from https://emacs.stackexchange.com/a/36074 (though a better solution might be to read the DPI from Xft.dpi and/or values reported by xrandr?)~ my-dpi is a silly function that I use that gives me 96 or 140 depending on the width of the monitor ((fourth ( second (frame-monitor-attributes)))).

sje30 commented 4 months ago

great that the redisplay is now working.

Re: the scale factor issue, this is new to me. I did hit a problem a week ago that the bottom and right of the plot was chopped off too. I thought that was because my code was measuring the total height and width of the window, which included things like the modeline. It looks like you are using the new code now that uses the window-body-pixel-edges which only measures the usable size of the buffer.

(window-body-pixel-edges (get-buffer-window essgd-buffer)

I can take a look on my linux machine with scaling in place to see if there is anything funky going on.

rdiaz02 commented 4 months ago

It looks like you are using the new code now that uses the window-body-pixel-edges which only measures the usable size of the buffer.

(window-body-pixel-edges (get-buffer-window essgd-buffer)

Yes, that is the code I am using.

I can take a look on my linux machine with scaling in place to see if there is anything funky going on.

Great, thanks!