# Canvases not displaying in lxplus

**URL:** <https://root-forum.cern.ch/t/canvases-not-displaying-in-lxplus/61724>\
**Category:** ROOT\
**Tags:** graphics, root\
**Created:** [September 19, 2024, 9:21pm UTC](https://root-forum.cern.ch/t/canvases-not-displaying-in-lxplus/61724 "2024-09-19T21:21:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mole.luca](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mole.luca/32/25073_2.png) [@mole.luca](https://root-forum.cern.ch/u/mole.luca)\
**Post date:** [September 19, 2024, 9:21pm UTC](https://root-forum.cern.ch/t/canvases-not-displaying-in-lxplus/61724/1 "2024-09-19T21:21:18Z")

</div>

Hi.  
I am trying to draw some simple canvases in lxplus but nothing gets displayed.  
I access by `ssh -xy` and then load a tree in root and use Draw().  
I get no error, just nothing displayed.  
Thanks for the help.

\_ROOT Version: 6.32.04  
\_Platform: MacOS Sonoma 14.6.1  
_Compiler:_ 11.4.1 20231218

* * *

---

<div class="post-metadata">

**Author:** ![vpadulan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/vpadulan/32/25315_2.png) [@vpadulan](https://root-forum.cern.ch/u/vpadulan)\
**Post date:** [September 19, 2024, 9:33pm UTC](https://root-forum.cern.ch/t/canvases-not-displaying-in-lxplus/61724/2 "2024-09-19T21:33:21Z")

</div>

Dear @mole.luca ,

Thanks for reaching out to the forum!

The issue you are encountering is most probably due to the fact that the flag `-x` passed to ssh is actually disabling X11 forwarding as per the [ssh manual](https://www.man7.org/linux/man-pages/man1/ssh.1.html). I believe what you are looking for is `ssh -Y`. I just tried from my Mac logging to lxplus that way and I was able to see the graphics output from ROOT.

Cheers,  
Vincenzo

---

<div class="post-metadata">

**Author:** ![mole.luca](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mole.luca/32/25073_2.png) [@mole.luca](https://root-forum.cern.ch/u/mole.luca)\
**Post date:** [September 20, 2024, 12:11pm UTC](https://root-forum.cern.ch/t/canvases-not-displaying-in-lxplus/61724/3 "2024-09-20T12:11:30Z")

</div>

Hi @vpadulan.  
Thank you for the suggestion.  
I tried with -Y, but the result is the same, no display.  
Any further insight?  
Thank you

---

<div class="post-metadata">

**Author:** ![vpadulan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/vpadulan/32/25315_2.png) [@vpadulan](https://root-forum.cern.ch/u/vpadulan)\
**Post date:** [September 20, 2024, 12:15pm UTC](https://root-forum.cern.ch/t/canvases-not-displaying-in-lxplus/61724/4 "2024-09-20T12:15:30Z")

</div>

Dear @mole.luca ,

I have exactly your same MacOS version, I am doing

```auto
$: ssh -Y lxplus
# on lxplus
[vpadulan@lxplus9100 ~]$root
   ------------------------------------------------------------------
  | Welcome to ROOT 6.32.04 https://root.cern |
  | (c) 1995-2024, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for linuxx8664gcc on Aug 14 2024, 00:00:00 |
  | From heads/master@tags/v6-32-04 |
  | With g++ (GCC) 11.4.1 20231218 (Red Hat 11.4.1-3) |
  | Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q' |
   ------------------------------------------------------------------

root [0] TH1D h{"h","h", 10, -5, 5};
root [1] h.FillRandom("gaus");
root [2] h.Draw()
Info in <TCanvas::MakeDefCanvas>: created default TCanvas with name c1
root [3]

```

I can see the image properly displayed, here is a screenshot:

 ![Screenshot 2024-09-20 at 14.14.10](https://root-forum.cern.ch/uploads/default/original/3X/5/8/58e436249ae76bfd160a96508a5a3aa596f37b7e.png)

Can you confirm that with the steps above you can see the image?

Cheers,  
Vincenzo

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [September 20, 2024, 1:52pm UTC](https://root-forum.cern.ch/t/canvases-not-displaying-in-lxplus/61724/5 "2024-09-20T13:52:39Z")

</div>

I might be wrong, but I believe you need XQuartz installed on your Mac to display X11 graphics from a remote machine. Maybe that’s what you’re missing?

---

<div class="post-metadata">

**Author:** ![mole.luca](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mole.luca/32/25073_2.png) [@mole.luca](https://root-forum.cern.ch/u/mole.luca)\
**Post date:** [September 20, 2024, 2:19pm UTC](https://root-forum.cern.ch/t/canvases-not-displaying-in-lxplus/61724/6 "2024-09-20T14:19:54Z")

</div>

Thank you @couet and @vpadulan.  
Indeed I was missing XQuartz. It is working fine now.  
Best regards

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [October 4, 2024, 2:20pm UTC](https://root-forum.cern.ch/t/canvases-not-displaying-in-lxplus/61724/7 "2024-10-04T14:20:37Z")

</div>

Closed on October 4, 2024, 2:20pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
