<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr"><p><span style="padding: 3px 10px; border-radius: 5px; color: #ffffff; font-weight: bold; display: inline-block; background-color: #ff0000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p><p></p>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks a lot&nbsp;<span style="font-family: arial, helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important">Guillaume for your (super quick !) answer !&nbsp;</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: arial, helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: arial, helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important">I tried what you have suggested but did not manage to solve the problem ... So I spent the last 4 hours -_-' trying different things and
 found that the problem was coming from Ubuntu driver. So for the record, I installed the NVIDIA driver and disabled the &quot;nouveau&quot; default driver as indicated here :&nbsp;<a href="https://linuxconfig.org/how-to-install-the-nvidia-drivers-on-ubuntu-18-04-bionic-beaver-linux">https://linuxconfig.org/how-to-install-the-nvidia-drivers-on-ubuntu-18-04-bionic-beaver-linux</a></span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<img size="195875" contenttype="image/png" unselectable="on" tabindex="-1" style="user-select: none; width: 198.549px; height: 186.4px;" data-imgsize="custom" width="198.54934823091247" height="186.40034965034965" data-outlook-trace="F:1|T:1" src="cid:f394ffe9-abb9-493e-b5f0-8310bf7035f4"><br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
For info, my &quot;<span style="font-family: arial, helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important">mne.sys_info()&quot; was :</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: arial, helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important"><span><br>
</span></span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: arial, helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important"><span>
<pre style="box-sizing: border-box; overflow: auto; font-family: monospace; font-size: 14px; display: block; padding: 1px 0px; margin: 0px; word-break: break-all; overflow-wrap: break-word; background-color: rgb(255, 255, 255); border-radius: 0px; text-align: left">Platform:      Linux-5.3.0-53-generic-x86_64-with-debian-buster-sid
Python:        3.7.6 (default, Jan  8 2020, 19:59:22)  [GCC 7.3.0]
Executable:    /home/jacques/anaconda3/bin/python
CPU:           x86_64: 16 cores
Memory:        31.3 GB

mne:           0.20.0
numpy:         1.18.5 {blas=openblas, lapack=openblas}
scipy:         1.4.1
matplotlib:    3.1.3 {backend=module://ipykernel.pylab.backend_inline}

sklearn:       0.22.1
numba:         0.48.0
nibabel:       3.1.0
cupy:          Not found
pandas:        1.0.1
dipy:          Not found
mayavi:        4.7.1 {qt_api=pyqt5, PyQt5=5.15.0}
pyvista:       0.25.3
vtk:           8.1.2</pre>
</span></span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: arial, helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important"><span><br>
</span></span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: arial, helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important"><span>Have a nice weekend !&nbsp;</span></span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: arial, helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important"><span>Jacques.&nbsp;</span></span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: arial, helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important"><br>
</span></div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>De :</b> mne_analysis-bounces@nmr.mgh.harvard.edu &lt;mne_analysis-bounces@nmr.mgh.harvard.edu&gt; de la part de Guillaume Favelier &lt;guillaume.favelier@inria.fr&gt;<br>
<b>Envoyé :</b> mercredi 10 juin 2020 17:34<br>
<b>À :</b> mne analysis &lt;mne_analysis@nmr.mgh.harvard.edu&gt;<br>
<b>Objet :</b> Re: [Mne_analysis] Problem : transparent brain with plot_alignment.</font>
<div>&nbsp;</div>
</div>
<div>
<p><span style="padding:3px 10px; border-radius:5px; color:#ffffff; font-weight:bold; display:inline-block; background-color:#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p>
<p></p>
<div style="font-family:arial,helvetica,sans-serif; font-size:12pt; color:#000000">
<div><style style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style></div>
<div>Hello Jacques,<br>
</div>
<div><br>
</div>
<div>Do you mind sharing the full report?<br>
</div>
<div><br>
</div>
<div>python -c &quot;import mne; mne.sys_info()&quot;<br>
</div>
<div><br>
</div>
<div>We expect more information especially PyQt5, VTK and PyVista.<br>
</div>
<div><br>
</div>
<div>Personally, I think that this kind of transparency issue is not unknown with mayavi</div>
<div>and the origin can range from an incompatibility issue with intel integrated graphic</div>
<div>cards, the gpu driver version or the behaviour of vtk around opacity in general.<br>
</div>
<div><br>
</div>
<div>The easiest way i know to fix this for mayavi is to enable depth peeling:<br>
</div>
<div><br>
</div>
<div>https://github.com/enthought/mayavi/issues/574<br>
</div>
<div><br>
</div>
<div>But this comes at the price of slightly heavier rendering operations.<br>
</div>
<div><br>
</div>
<div>Another option is to change the 3d backend to pyvista before the plot:<br>
</div>
<div><br>
</div>
<div>mne.viz.set_3d_backend(&quot;pyvista&quot;)<br>
</div>
<div><br>
</div>
<div>Hopefully this helps,<br>
</div>
<div><br>
</div>
<div>Guillaume<br>
</div>
<div><br>
</div>
<hr id="x_zwchr">
<div>
<blockquote style="border-left:2px solid #1010FF; margin-left:5px; padding-left:5px; color:#000; font-weight:normal; font-style:normal; text-decoration:none; font-family:Helvetica,Arial,sans-serif; font-size:12pt">
<b>De: </b>&quot;Jacques Pesnot&quot; &lt;jacques.pesnot@hotmail.fr&gt;<br>
<b>À: </b>&quot;mne analysis&quot; &lt;mne_analysis@nmr.mgh.harvard.edu&gt;<br>
<b>Envoyé: </b>Mercredi 10 Juin 2020 12:05:38<br>
<b>Objet: </b>[Mne_analysis] Problem : transparent brain with plot_alignment.<br>
</blockquote>
</div>
<div>
<blockquote style="border-left:2px solid #1010FF; margin-left:5px; padding-left:5px; color:#000; font-weight:normal; font-style:normal; text-decoration:none; font-family:Helvetica,Arial,sans-serif; font-size:12pt">
<p><span style="padding:3px 10px; border-radius:5px; color:#ffffff; font-weight:bold; display:inline-block; background-color:#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p>
<p></p>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi MNE team !</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I have a problem with &quot;mne.viz.plot_alignment&quot;. The function plots a transparent brain, and I don't manage to change the transparency level. The weird thing is that I don't reproduce the ECOG figure from the MNE website.&nbsp;</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt">--&gt; I used the script available on the website here :&nbsp;</span><a href="https://mne.tools/dev/auto_examples/visualization/plot_3d_to_2d.html#sphx-glr-auto-examples-visualization-plot-3d-to-2d-py" id="LPlnk443970" target="_blank" style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt">https://mne.tools/dev/auto_examples/visualization/plot_3d_to_2d.html#sphx-glr-auto-examples-visualization-plot-3d-to-2d-py</a><br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
--&gt; This is what I get :&nbsp;</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<img style="max-width:100%" data-outlook-trace="F:1|T:1" src="cid:c08c09e0-0824-4678-9aba-4e2d453c8d20"><br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
For info :</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
My system is Ubuntu 18.04.4 LTS</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
MNE is 0.20.0</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
mayavi is 4.7.1</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
matplotlib is 3.1.3</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Thanks a lot !</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Jacques.&nbsp;</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<br>
_______________________________________________<br>
Mne_analysis mailing list<br>
Mne_analysis@nmr.mgh.harvard.edu<br>
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis<br>
</blockquote>
</div>
</div>
</div>
</body>
</html>