It turns out, the problem comes when i use the python in my system (python 
3.9, with PIP).
The plot looks good (all white background) if i use the internal spyder's 
python.

I've tried to update the matplotlib (python 3.9) to match the one in the 
internal spyder's python.
It didn't not help.

Which package do you think i should update/change version?
and how to check all package version in the spyder's internal python? 
currently i can only do "import packagename" and 
print(packagename.__version__).
But not all module can be imported... 

Thank you.

Here is from the python 3.9, pip list:

Package                       Version
----------------------------- -----------
alabaster                     0.7.12
anyio                         3.6.2
appdirs                       1.4.4
argon2-cffi                   21.3.0
argon2-cffi-bindings          21.2.0
arrow                         1.1.0
asteval                       0.9.23
astroid                       2.5.6
asttokens                     2.4.1
async-generator               1.10
atomicwrites                  1.4.0
attrs                         21.1.0
autopep8                      1.5.5
Babel                         2.11.0
backcall                      0.2.0
bcrypt                        3.2.0
beautifulsoup4                4.11.1
binaryornot                   0.4.4
black                         21.5b0
bleach                        3.3.0
brukeropusreader              1.3.4
certifi                       2020.12.5
cffi                          1.14.5
chardet                       4.0.0
charset-normalizer            3.0.1
click                         7.1.2
cloudpickle                   1.6.0
cmasher                       1.6.3
colorama                      0.4.4
colorspacious                 1.1.2
comm                          0.1.4
comtypes                      1.1.14
contourpy                     1.3.0
cookiecutter                  1.7.2
cryptography                  3.4.7
cycler                        0.10.0
debugpy                       1.8.0
decorator                     4.4.2
defusedxml                    0.7.1
diff-match-patch              20200713
docutils                      0.16
e13tools                      0.9.6
entrypoints                   0.3
enum-compat                   0.0.3
exceptiongroup                1.2.0
executing                     2.0.1
fastjsonschema                2.16.2
ffmpeg                        1.4
flake8                        3.8.4
fonttools                     4.54.1
fqdn                          1.5.1
future                        0.18.2
idna                          2.10
imageio                       2.31.1
imagesize                     1.2.0
importlib-metadata            6.0.0
importlib_resources           6.4.5
inflection                    0.5.1
intervaltree                  3.1.0
ipykernel                     6.29.5
ipython                       8.18.1
ipython-genutils              0.2.0
isoduration                   20.11.0
isort                         5.8.0
jedi                          0.17.2
Jinja2                        3.1.2
jinja2-time                   0.2.0
joblib                        1.2.0
json5                         0.9.11
jsonpointer                   2.3
jsonschema                    4.17.3
jupyter_client                7.4.9
jupyter_core                  5.1.3
jupyter-events                0.6.3
jupyter_server                2.1.0
jupyter_server_terminals      0.4.4
jupyterlab                    3.5.2
jupyterlab-pygments           0.1.2
jupyterlab_server             2.19.0
keyring                       23.0.1
kiwisolver                    1.3.1
lazy_loader                   0.2
lazy-object-proxy             1.6.0
lmfit                         1.0.2
lxml                          4.9.2
MarkupSafe                    2.1.2
matplotlib                    3.9.2
matplotlib-inline             0.1.7
mccabe                        0.6.1
mistune                       0.8.4
more-itertools                9.1.0
mpmath                        1.2.1
mycolorpy                     1.5.1
mypy-extensions               0.4.3
nbclassic                     0.4.8
nbclient                      0.5.3
nbconvert                     6.5.4
nbformat                      5.7.3
nest-asyncio                  1.5.5
networkx                      2.8.8
notebook                      6.5.2
notebook_shim                 0.2.2
numpy                         1.23.5
numpydoc                      1.1.0
opencv-python                 4.7.0.68
packaging                     23.0
pandas                        1.2.4
pandocfilters                 1.4.3
paramiko                      2.7.2
parso                         0.7.0
pathspec                      0.8.1
patsy                         0.5.3
pexpect                       4.8.0
pickleshare                   0.7.5
Pillow                        9.4.0
pip                           24.2
pip-review                    1.1.0
platformdirs                  2.6.2
plotly                        5.22.0
pluggy                        0.13.1
poyo                          0.5.0
prometheus-client             0.15.0
prompt-toolkit                3.0.43
psutil                        5.8.0
ptyprocess                    0.7.0
pure-eval                     0.2.2
pyautocad                     0.2.0
pycodestyle                   2.6.0
pycparser                     2.20
pydocstyle                    6.0.0
pyffmpeg                      2.4.2.13
pyflakes                      2.2.0
Pygments                      2.9.0
pylint                        2.8.2
pyls-black                    0.4.6
pyls-spyder                   0.4.0
PyNaCl                        1.4.0
pyparsing                     2.4.7
PyQt5                         5.12.3
PyQt5-sip                     12.8.1
PyQtWebEngine                 5.12.1
pyrsistent                    0.17.3
python-dateutil               2.8.2
python-json-logger            2.0.4
python-jsonrpc-server         0.4.0
python-language-server        0.36.2
python-lsp-jsonrpc            1.0.0
python-lsp-server             1.0.1
python-slugify                5.0.2
pytz                          2021.1
pyueye                        4.95.0
PyWavelets                    1.4.1
pywin32                       300
pywin32-ctypes                0.2.0
pywinpty                      2.0.10
PyYAML                        6.0
pyzmq                         25.0.0
QDarkStyle                    3.0.2
qstylizer                     0.2.0
QtAwesome                     1.0.2
qtconsole                     5.1.0
QtPy                          1.9.0
regex                         2021.4.4
requests                      2.28.2
rfc3339-validator             0.1.4
rfc3986-validator             0.1.1
rope                          0.19.0
scikit-image                  0.21.0
scikit-learn                  1.2.0
scikit-video                  1.1.11
scipy                         1.10.1
seaborn                       0.11.1
Send2Trash                    1.8.0
simdkalman                    1.0.2
six                           1.16.0
sniffio                       1.3.0
snowballstemmer               2.1.0
sortedcontainers              2.3.0
soupsieve                     2.3.2.post1
Sphinx                        3.5.4
sphinxcontrib-applehelp       1.0.2
sphinxcontrib-devhelp         1.0.2
sphinxcontrib-htmlhelp        1.0.3
sphinxcontrib-jsmath          1.0.1
sphinxcontrib-qthelp          1.0.3
sphinxcontrib-serializinghtml 1.1.4
spyder-kernels                3.0.0
stack-data                    0.6.3
statsmodels                   0.13.5
sympy                         1.11.1
tenacity                      8.5.0
terminado                     0.17.1
testpath                      0.4.4
text-unidecode                1.3
textdistance                  4.2.1
threadpoolctl                 3.1.0
three-merge                   0.1.1
tifffile                      2022.10.10
tinycss2                      1.1.0
toml                          0.10.2
tomli                         2.0.1
tornado                       6.2
traitlets                     5.8.1
tsmoothie                     1.0.4
typing_extensions             4.9.0
ujson                         4.0.2
uncertainties                 3.1.5
uri-template                  1.2.0
urllib3                       1.26.4
watchdog                      1.0.2
wcwidth                       0.2.5
webcolors                     1.12
webencodings                  0.5.1
websocket-client              1.4.2
wrapt                         1.12.1
yapf                          0.31.0
zipp                          3.4.1
 

On Monday, September 30, 2024 at 2:58:59 PM UTC+2 Tetuko Kurniawan wrote:

> Hi all,
>
> Today, i updated to spyder 6.0.1 on Win 10, from version 5.x.x.
>
> All is working well, except the inline plot (PNG format) looks not as 
> usual.
> The part outside the plot is transparent.
> Such that, it's hard to read.
> Before update, it wasn't like that, and i always use dark mode as before. 
>
> See attachment/below:
> [image: Automatic_backend2.png]
>
> code to reproduce:
> from matplotlib import pyplot as plt
> A=[1,2,3,4,5]
> B=[1,2,3,4,5]
> fig, ax = plt.subplots(figsize=(4, 3), dpi=300)  #the figsize and dpi 
> doesn't matter
> ax.plot(A,B)
>
> version:
> * Spyder version: 6.0.1  (standalone)
> * Python version: 3.11.9 64-bit
> * Qt version: 5.15.8
> * PyQt5 version: 5.15.9
> * Operating System: Windows-10-10.0.19045-SP0
>
> I think transparent plot is correct, but usually spyder display it with 
> white background for all part of the plot, such that we can read what's on 
> the axis, as in v5.x.x. 
>
> is it a bug? Thank you.
>
> Best regards,
> Tetuko
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to spyderlib+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/spyderlib/3140787f-252d-4240-a7f7-e8642ffd85c0n%40googlegroups.com.

Reply via email to