orange3 icon indicating copy to clipboard operation
orange3 copied to clipboard

Exporting plot to currently open ppt

Open VesnaT opened this issue 5 years ago • 15 comments

  • Exporting to currently open ppt Applicability: General. Importance: Low, but it was very pleasant to use on Spotfire. (KH)
    • JD: This is very platform specific

VesnaT avatar Jul 06 '20 06:07 VesnaT

Supposedly CTRL+C CTRL+V-ing in a widget copies the plot. This should be tested by someone else too.

irgolic avatar Jul 17 '20 07:07 irgolic

@thocevar for Windows, @lanzagar for Linux?

ajdapretnar avatar Jul 24 '20 09:07 ajdapretnar

I tried all widgets in our Visualization section on Windows. Almost all of them work.

  • Distributions: background in the widget changes from gray to white on Ctrl-C.
  • Venn Diagram: the copied image has white background, while the widget has gray.
  • Pythagorean Forest: Ctrl-C doesn't work.
  • CN2 Rule Viewer: Ctrl-C doesn't work (it's a table not an image).

thocevar avatar Jul 24 '20 10:07 thocevar

Similar on linux. Scatter plot also has (unnecessary) bottom and right borders when I paste the image

lanzagar avatar Jul 24 '20 10:07 lanzagar

I think white/gray background is actually expected. I assume images have transparent background, with the image being on gray in Distributions and Venn by chance. @janezd Correct me if I am wrong.

ajdapretnar avatar Jul 24 '20 10:07 ajdapretnar

That the copied image has a different background is not so problematic. But the case in Distributions, where pressing Ctrl-C changes the look of the widget is a bug (even if pretty harmless).

lanzagar avatar Jul 24 '20 10:07 lanzagar

Is Mac OS going to be supported too?

On Fri, Jul 24, 2020 at 12:09 PM Tomaz Hocevar [email protected] wrote:

I tried all widgets in our Visualization section on Windows. Almost all of them work.

  • Distributions: background in the widget changes from gray to white on Ctrl-C.
  • Venn Diagram: the copied image has white background, while the widget has gray.
  • Pythagorean Forest: Ctrl-C doesn't work.
  • CN2 Rule Viewer: Ctrl-C doesn't work (it's a table not an image).

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/biolab/orange3/issues/4883#issuecomment-663467080, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQDIGW2J5K3Q3XSIMSRHC3R5FMW7ANCNFSM4ORIS6GA .

borondics avatar Jul 24 '20 10:07 borondics

@borondics I have asked for Win and Linux just because I have already tested on Mac and it works. :) However, I assume these bugs are present regardless of the platform.

ajdapretnar avatar Jul 24 '20 11:07 ajdapretnar

Ajda, you are right indeed it works. For whatever reason I had to restart my Power Point and it worked fine. :D

On Fri, Jul 24, 2020 at 1:11 PM Ajda [email protected] wrote:

@borondics https://github.com/borondics I have asked for Win and Linux just because I have already tested on Mac and it works. :) However, I assume these bugs are present regardless of the platform.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/biolab/orange3/issues/4883#issuecomment-663488454, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQDIGUEFT4JOVC7K5TSHBDR5FT5ZANCNFSM4ORIS6GA .

borondics avatar Jul 24 '20 11:07 borondics

Perhaps a 'Copy plot' button should be added to the status bar?

irgolic avatar Jul 24 '20 12:07 irgolic

I would be cautious with extending the status bar. It is growing rapidly and some widgets can't handle many more options below.

Also, I don't think it is really needed. Anyone can simply save an image on a computer and use it in ppt. A shortcut is just a welcome feature and it is intuitive.

ajdapretnar avatar Jul 24 '20 12:07 ajdapretnar

Would it be possible to somehow match the Copy/Paste image resolution to the screen resolution? Or at least increase it so that the Copy/Paste image becomes better quality? What I really like is of course that it is only the graph that Copy/Paste gives and that the last number on the axis is also fully captured, while it is not visible in the window.

Here is what I am getting on a Mac with Retina screen.

Copy/Paste Resolution: 913x691 image

Screen Capture tool of OS X (let's ignore that the whole widget window is on the picture) Resolution: 2024x1668 image

borondics avatar Jul 24 '20 13:07 borondics

I can't seem to export data easily to an excel - or power point. it's so easy to import - impossible to export - why do I get pickle files...?! I just want excel, or png/jpeg.

richardharrishk avatar Mar 07 '21 10:03 richardharrishk

I confirm: on Retina screen, the image is captured with non-Retina resolution, i.e. it shows 72 ppi instead of 144 ppi. @markotoplak, @ales-erjavec, do you know how to fix this?

janezd avatar Oct 22 '21 10:10 janezd

Attempted fixes for retina are in https://github.com/biolab/orange-widget-base/pull/208.

It appears, though, that macOs clipboard does not know the actual dpi of image data and always assumes 72 dpi. Copied images will have the full resolution but will appear too large.

janezd avatar Jul 17 '22 15:07 janezd

Fixed via https://github.com/biolab/orange-widget-base/pull/208.

janezd avatar Mar 30 '23 14:03 janezd