# Plot panel copy/cut doesn't work

**URL:** <https://discourse.julialang.org/t/plot-panel-copy-cut-doesnt-work/78251>\
**Category:** VS Code\
**Created:** [March 22, 2022, 2:56am UTC](https://discourse.julialang.org/t/plot-panel-copy-cut-doesnt-work/78251 "2022-03-22T02:56:33Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmsmsgood](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rmsmsgood/32/20544_2.png) [@rmsmsgood](https://discourse.julialang.org/u/rmsmsgood)\
**Post date:** [March 22, 2022, 2:56am UTC](https://discourse.julialang.org/t/plot-panel-copy-cut-doesnt-work/78251/1 "2022-03-22T02:56:33Z")

</div>

![image](https://global.discourse-cdn.com/julialang/original/3X/f/f/ff1f61edc3afc558c730fda34db3554187968daa.png)  
(Right Mouse Click)

I used GR backend above and i need them. Why they doesn’t work? Is this VS code issue?

ps. I don’t get why ‘paste’ exists.

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [March 22, 2022, 9:25am UTC](https://discourse.julialang.org/t/plot-panel-copy-cut-doesnt-work/78251/2 "2022-03-22T09:25:48Z")

</div>

These aren’t expected to work. I’ll take a look at whether we can disable them.

---

<div class="post-metadata">

**Author:** ![jtoda](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jtoda/32/36770_2.png) [@jtoda](https://discourse.julialang.org/u/jtoda)\
**Post date:** [September 1, 2022, 8:41am UTC](https://discourse.julialang.org/t/plot-panel-copy-cut-doesnt-work/78251/3 "2022-09-01T08:41:06Z")

</div>

I wanted this too, but I couldn’t…

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [September 1, 2022, 9:42am UTC](https://discourse.julialang.org/t/plot-panel-copy-cut-doesnt-work/78251/4 "2022-09-01T09:42:26Z")

</div>

There is a copy and save button in the upper right (potentially hidden behind a dropdown menu).

---

<div class="post-metadata">

**Author:** ![rmsmsgood](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rmsmsgood/32/20544_2.png) [@rmsmsgood](https://discourse.julialang.org/u/rmsmsgood)\
**Post date:** [September 2, 2022, 2:11am UTC](https://discourse.julialang.org/t/plot-panel-copy-cut-doesnt-work/78251/5 "2022-09-02T02:11:01Z")

</div>

Of course i know, but how can i copy that to **clipboard**? as far as I know, Save botton requires specific directory and `Julia: Copy Plot` doesn’t work now:

![20220902_110359](https://global.discourse-cdn.com/julialang/original/3X/d/d/ddd571aecfd43ae54b353c9b9f037750304bed48.png)

![20220902_110410](https://global.discourse-cdn.com/julialang/original/3X/b/6/b6110af06f4002e9ea8a1e8a02191a9078ce780c.png)

“Failed to copy plot: Plot pane does not have focus.”

And even if this works, i guess `Ctrl+C` copy is more convenient and fast to do some works. Is it hard to implement?

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [September 2, 2022, 8:04am UTC](https://discourse.julialang.org/t/plot-panel-copy-cut-doesnt-work/78251/6 "2022-09-02T08:04:35Z")

</div>

That usually shouldn’t happen if you click on the plot first. It’s kinda tricky (impossible, imho) to do all the correct focus handling manually.

---

<div class="post-metadata">

**Author:** ![rmsmsgood](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rmsmsgood/32/20544_2.png) [@rmsmsgood](https://discourse.julialang.org/u/rmsmsgood)\
**Post date:** [September 6, 2022, 12:32am UTC](https://discourse.julialang.org/t/plot-panel-copy-cut-doesnt-work/78251/7 "2022-09-06T00:32:58Z")

</div>

Sorry, what does mean “if you click on the plot first”? In my case, i never saw that `Julia: Copy Plot` works. Was there a way to make `Julia: Copy Plot` work? (I understand that proposed feature is tricky. If `Julia: Copy Plot` works, that may be very helpful to me now.)

![Honeycam 2022-09-06 09-36-14](https://global.discourse-cdn.com/julialang/original/3X/4/c/4cadd9f1e77ce938c13486c943fc4f09a129bee4.gif)

↑ In this case, the “Failed to copy plot: Plot pane does not have focus.” doesn’t occur but sitll fail to copy to clipboard. Do i misunderstand about this feature?

my env:

- window 10~11
- julia 1.7.0
- vscode 1.71.0
- vscode julia extension v1.7.6

---

<div class="post-metadata">

**Author:** ![electronsandstuff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/electronsandstuff/32/47006_2.png) [@electronsandstuff](https://discourse.julialang.org/u/electronsandstuff)\
**Post date:** [February 17, 2023, 6:59pm UTC](https://discourse.julialang.org/t/plot-panel-copy-cut-doesnt-work/78251/8 "2023-02-17T18:59:09Z")

</div>

I was coming here to report the same behavior. Even when I click on the plot first and then do ctrl-P → Julia: Copy Plot, I get the error message “Failed to copy plot: Plot pane does not have focus.”

---

<div class="post-metadata">

**Author:** ![alequa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alequa/32/12338_2.png) [@alequa](https://discourse.julialang.org/u/alequa)\
**Post date:** [April 26, 2023, 11:43am UTC](https://discourse.julialang.org/t/plot-panel-copy-cut-doesnt-work/78251/9 "2023-04-26T11:43:20Z")

</div>

> [@pfitzseb](#):
>
> That usually shouldn’t happen if you click on the plot first. It’s kinda tricky (impossible, imho) to do all the correct focus handling manually.

YESSSSSSSS  
It worked so smooth! Thanks, just changed my life.

---

<div class="post-metadata">

**Author:** ![Bienvenue\_Feugang\_Nt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bienvenue_feugang_nt/32/45386_2.png) [@Bienvenue\_Feugang\_Nt](https://discourse.julialang.org/u/Bienvenue_Feugang_Nt)\
**Post date:** [December 16, 2023, 5:26pm UTC](https://discourse.julialang.org/t/plot-panel-copy-cut-doesnt-work/78251/10 "2023-12-16T17:26:20Z")

</div>

Hi, this copy thing works on which version please? for me, I can even select to save but it does not save in a recognizable format

---

<div class="post-metadata">

**Author:** ![Raf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raf/32/3383_2.png) [@Raf](https://discourse.julialang.org/u/Raf)\
**Post date:** [December 18, 2024, 4:09pm UTC](https://discourse.julialang.org/t/plot-panel-copy-cut-doesnt-work/78251/11 "2024-12-18T16:09:21Z")

</div>

This is still broken in late 2024, and clicking first does not work.

This is really unfortunate and makes an easy thing hard

---

<div class="post-metadata">

**Author:** ![Gravlax](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@Gravlax](https://discourse.julialang.org/u/Gravlax)\
**Post date:** [January 24, 2025, 1:30pm UTC](https://discourse.julialang.org/t/plot-panel-copy-cut-doesnt-work/78251/12 "2025-01-24T13:30:42Z")

</div>

This is indeed an annoying problem.

Is there a way to make sure that plots are “in focus” such that the error does not occur? (“Failed to copy plot: Plot pane does not have focus.”)
