Open LeszekRz opened 1 year ago
Hey @LeszekRz, thanks for reporting. You said:
pymoo visualization - PCP figure is not showing up in Spyder, nor in browser. It works ok in VScode
Please post a simple code example that generates such visualization so we can test it ourselves and better understand your problem. Thanks!
Hi,
For example the short codes on pymoo website: https://pymoo.org/customization/mixed.html
Regards Leszek
Wysłane ze smartfona w T-Mobile, sieci największych możliwości. Wysłano z programu Outlook dla systemu Androidhttps://aka.ms/AAb9ysg
From: Carlos Cordoba @.> Sent: Monday, October 9, 2023 5:09:25 PM To: spyder-ide/spyder @.> Cc: LeszekRz @.>; Mention @.> Subject: Re: [spyder-ide/spyder] pymoo visualization PCP not showing up in Spyder (Issue #21406)
Hey @LeszekRzhttps://github.com/LeszekRz, thanks for reporting. You said:
pymoo visualization - PCP figure is not showing up in Spyder, nor in browser. It works ok in VScode
Please post a simple code example that generates such visualization so we can test it ourselves and better understand your problem. Thanks!
— Reply to this email directly, view it on GitHubhttps://github.com/spyder-ide/spyder/issues/21406#issuecomment-1753192353, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3SJX63J4KBX2ME42T2Q433X6QHSLAVCNFSM6AAAAAA5YV4JGOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJTGE4TEMZVGM. You are receiving this because you were mentioned.Message ID: @.***>
Ok, those are Matplotlib plots, which should work fine in Spyder.
Please post a screenshot of what you're seeing after running that code to understand what's happening in your case. And be aware that you can't send images in email responses to issues on Github. Instead, you need to drag and drop your screenshot directly here.
Carlos, I was able to get PCP plots in other exaples on pymoo web site. You are right this is matplotlib wrap up. Please close this case. Thank you Leszek
Wysłane ze smartfona w T-Mobile, sieci największych możliwości. Wysłano z programu Outlook dla systemu Androidhttps://aka.ms/AAb9ysg
From: Carlos Cordoba @.> Sent: Wednesday, October 11, 2023 12:41:15 AM To: spyder-ide/spyder @.> Cc: LeszekRz @.>; Mention @.> Subject: Re: [spyder-ide/spyder] pymoo visualization PCP not showing up in Spyder (Issue #21406)
Ok, those are Matplotlib plots, which should work fine in Spyder.
Please post a screenshot of what you're using after running that code to understand what's happening in your case. And be aware that you can't send images in email responses to issues on Github. Instead, you need to drag and drop your screenshot directly here.
— Reply to this email directly, view it on GitHubhttps://github.com/spyder-ide/spyder/issues/21406#issuecomment-1756371731, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3SJX66AEBP7NURTD5Q2DZTX6XFIXAVCNFSM6AAAAAA5YV4JGOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJWGM3TCNZTGE. You are receiving this because you were mentioned.Message ID: @.***>
Carlos,
Correction: One more thing: I forget to note that the first plot is overwriten by the next one. If there is no next plot, it shows up correctly in the plot panel. Actually, if you have couple of plots invoked by plot.show() then only the last one is showing up, regardless if it is PCP or not. Buffering issue?
Leszek
Wysłane ze smartfona w T-Mobile, sieci największych możliwości. Wysłano z programu Outlook dla systemu Androidhttps://aka.ms/AAb9ysg
From: Leszek Rz @.> Sent: Wednesday, October 11, 2023 10:23:28 AM To: spyder-ide/spyder @.>; spyder-ide/spyder @.> Cc: Mention @.> Subject: Re: [spyder-ide/spyder] pymoo visualization PCP not showing up in Spyder (Issue #21406)
Carlos, I was able to get PCP plots in other exaples on pymoo web site. You are right this is matplotlib wrap up. Please close this case. Thank you Leszek
Wysłane ze smartfona w T-Mobile, sieci największych możliwości. Wysłano z programu Outlook dla systemu Androidhttps://aka.ms/AAb9ysg
From: Carlos Cordoba @.> Sent: Wednesday, October 11, 2023 12:41:15 AM To: spyder-ide/spyder @.> Cc: LeszekRz @.>; Mention @.> Subject: Re: [spyder-ide/spyder] pymoo visualization PCP not showing up in Spyder (Issue #21406)
Ok, those are Matplotlib plots, which should work fine in Spyder.
Please post a screenshot of what you're using after running that code to understand what's happening in your case. And be aware that you can't send images in email responses to issues on Github. Instead, you need to drag and drop your screenshot directly here.
— Reply to this email directly, view it on GitHubhttps://github.com/spyder-ide/spyder/issues/21406#issuecomment-1756371731, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3SJX66AEBP7NURTD5Q2DZTX6XFIXAVCNFSM6AAAAAA5YV4JGOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJWGM3TCNZTGE. You are receiving this because you were mentioned.Message ID: @.***>
Carlos,
Finally, adding plot.reset() after the first plot.show() helped.
Leszek
Wysłane ze smartfona w T-Mobile, sieci największych możliwości. Wysłano z programu Outlook dla systemu Androidhttps://aka.ms/AAb9ysg
From: Leszek Rz @.> Sent: Wednesday, October 11, 2023 10:47:11 AM To: spyder-ide/spyder @.>; spyder-ide/spyder @.> Cc: Mention @.> Subject: Re: [spyder-ide/spyder] pymoo visualization PCP not showing up in Spyder (Issue #21406)
Carlos,
Correction: One more thing: I forget to note that the first plot is overwriten by the next one. If there is no next plot, it shows up correctly in the plot panel. Actually, if you have couple of plots invoked by plot.show() then only the last one is showing up, regardless if it is PCP or not. Buffering issue?
Leszek
Wysłane ze smartfona w T-Mobile, sieci największych możliwości. Wysłano z programu Outlook dla systemu Androidhttps://aka.ms/AAb9ysg
From: Leszek Rz @.> Sent: Wednesday, October 11, 2023 10:23:28 AM To: spyder-ide/spyder @.>; spyder-ide/spyder @.> Cc: Mention @.> Subject: Re: [spyder-ide/spyder] pymoo visualization PCP not showing up in Spyder (Issue #21406)
Carlos, I was able to get PCP plots in other exaples on pymoo web site. You are right this is matplotlib wrap up. Please close this case. Thank you Leszek
Wysłane ze smartfona w T-Mobile, sieci największych możliwości. Wysłano z programu Outlook dla systemu Androidhttps://aka.ms/AAb9ysg
From: Carlos Cordoba @.> Sent: Wednesday, October 11, 2023 12:41:15 AM To: spyder-ide/spyder @.> Cc: LeszekRz @.>; Mention @.> Subject: Re: [spyder-ide/spyder] pymoo visualization PCP not showing up in Spyder (Issue #21406)
Ok, those are Matplotlib plots, which should work fine in Spyder.
Please post a screenshot of what you're using after running that code to understand what's happening in your case. And be aware that you can't send images in email responses to issues on Github. Instead, you need to drag and drop your screenshot directly here.
— Reply to this email directly, view it on GitHubhttps://github.com/spyder-ide/spyder/issues/21406#issuecomment-1756371731, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3SJX66AEBP7NURTD5Q2DZTX6XFIXAVCNFSM6AAAAAA5YV4JGOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJWGM3TCNZTGE. You are receiving this because you were mentioned.Message ID: @.***>
Description
What steps will reproduce the problem?
pymoo visualization - PCP figure is not showing up in Spyder, nor in browser. It works ok in VScode
Versions
Dependencies
Environment
Environment
``` # packages in environment at C:\Apps\Anaconda3\v3_9_7_x64\Local\envs\pymoopt: # # Name Version Build Channel about-time 4.2.1 pyhd8ed1ab_0 conda-forge alabaster 0.7.12 pyhd3eb1b0_0 alive-progress 3.1.4 pyhd8ed1ab_0 conda-forge arrow 1.2.3 py39haa95532_1 astroid 2.14.2 py39haa95532_0 asttokens 2.0.5 pyhd3eb1b0_0 atomicwrites 1.4.0 py_0 attrs 23.1.0 py39haa95532_0 autograd 1.6.2 pyhd8ed1ab_0 conda-forge autopep8 1.6.0 pyhd3eb1b0_1 babel 2.11.0 py39haa95532_0 backcall 0.2.0 pyhd3eb1b0_0 bcrypt 3.2.0 py39h2bbff1b_1 beautifulsoup4 4.12.2 py39haa95532_0 binaryornot 0.4.4 pyhd3eb1b0_1 black 23.3.0 py39haa95532_0 blas 1.0 mkl bleach 4.1.0 pyhd3eb1b0_0 bottleneck 1.3.5 py39h080aedc_0 anaconda brotli 1.1.0 hcfcfb64_1 conda-forge brotli-bin 1.1.0 hcfcfb64_1 conda-forge brotlipy 0.7.0 py39h2bbff1b_1003 ca-certificates 2023.7.22 h56e8100_0 conda-forge certifi 2023.7.22 pyhd8ed1ab_0 conda-forge cffi 1.15.1 py39h2bbff1b_3 chardet 4.0.0 py39haa95532_1003 charset-normalizer 2.0.4 pyhd3eb1b0_0 click 8.0.4 py39haa95532_0 cloudpickle 2.2.1 py39haa95532_0 cma 3.2.2 pyh050c7b8_0 conda-forge colorama 0.4.6 py39haa95532_0 comm 0.1.2 py39haa95532_0 contourpy 1.1.1 py39h1f6ef14_1 conda-forge cookiecutter 1.7.3 pyhd3eb1b0_0 cryptography 41.0.3 py39h3438e0d_0 cycler 0.11.0 pyhd8ed1ab_0 conda-forge debugpy 1.6.7 py39hd77b12b_0 decorator 5.1.1 pyhd3eb1b0_0 defusedxml 0.7.1 pyhd3eb1b0_0 deprecated 1.2.14 pyh1a96a4e_0 conda-forge diff-match-patch 20200713 pyhd3eb1b0_0 dill 0.3.7 pyhd8ed1ab_0 conda-forge docstring-to-markdown 0.11 py39haa95532_0 docutils 0.18.1 py39haa95532_3 entrypoints 0.4 py39haa95532_0 exceptiongroup 1.0.4 py39haa95532_0 executing 0.8.3 pyhd3eb1b0_0 filelock 3.9.0 py39haa95532_0 flake8 6.0.0 py39haa95532_0 fonttools 4.43.0 py39ha55989b_0 conda-forge freetype 2.12.1 ha860e81_0 future 0.18.3 pyhd8ed1ab_0 conda-forge giflib 5.2.1 h8cc25b3_3 glib 2.69.1 h5dc1a3c_2 grapheme 0.6.0 pyhd8ed1ab_0 conda-forge icc_rt 2022.1.0 h6049295_2 icu 58.2 ha925a31_3 idna 3.4 py39haa95532_0 imagesize 1.4.1 py39haa95532_0 importlib-metadata 6.0.0 py39haa95532_0 importlib-resources 6.1.0 pyhd8ed1ab_0 conda-forge importlib_metadata 6.0.0 hd3eb1b0_0 importlib_resources 6.1.0 pyhd8ed1ab_0 conda-forge inflection 0.5.1 py39haa95532_0 intel-openmp 2023.1.0 h59b6b97_46319 intervaltree 3.1.0 pyhd3eb1b0_0 ipykernel 6.25.0 py39h9909e9c_0 ipython 8.15.0 py39haa95532_0 ipython_genutils 0.2.0 pyhd3eb1b0_1 isort 5.9.3 pyhd3eb1b0_0 jaraco.classes 3.2.1 pyhd3eb1b0_0 jedi 0.18.1 py39haa95532_1 jellyfish 1.0.1 py39h36a85e1_0 jinja2 3.1.2 py39haa95532_0 jinja2-time 0.2.0 pyhd3eb1b0_3 jpeg 9e h2bbff1b_1 jsonschema 4.17.3 py39haa95532_0 jupyter_client 8.1.0 py39haa95532_0 jupyter_core 5.3.0 py39haa95532_0 jupyterlab_pygments 0.1.2 py_0 keyring 23.13.1 py39haa95532_0 kiwisolver 1.4.5 py39h1f6ef14_1 conda-forge krb5 1.20.1 h5b6d351_1 lazy-object-proxy 1.6.0 py39h2bbff1b_0 lerc 4.0.0 h63175ca_0 conda-forge libbrotlicommon 1.1.0 hcfcfb64_1 conda-forge libbrotlidec 1.1.0 hcfcfb64_1 conda-forge libbrotlienc 1.1.0 hcfcfb64_1 conda-forge libclang 14.0.6 default_hb5a9fac_1 libclang13 14.0.6 default_h8e68704_1 libdeflate 1.19 hcfcfb64_0 conda-forge libffi 3.4.4 hd77b12b_0 libiconv 1.16 h2bbff1b_2 libpng 1.6.39 h8cc25b3_0 libpq 12.15 hb652d5d_1 libsodium 1.0.18 h62dcd97_0 libspatialindex 1.9.3 h6c2663c_0 libtiff 4.5.0 h8a3f274_0 libuv 1.44.2 h2bbff1b_0 libwebp 1.3.2 hbc33d0d_0 libwebp-base 1.3.2 hcfcfb64_0 conda-forge libxcb 1.15 hcd874cb_0 conda-forge libxml2 2.10.4 h0ad7f3c_1 libxslt 1.1.37 h2bbff1b_1 lxml 4.9.3 py39h09808a7_0 lz4-c 1.9.4 h2bbff1b_0 m2w64-gcc-libgfortran 5.3.0 6 conda-forge m2w64-gcc-libs 5.3.0 7 conda-forge m2w64-gcc-libs-core 5.3.0 7 conda-forge m2w64-gmp 6.1.0 2 conda-forge m2w64-libwinpthread-git 5.0.0.4634.697f757 2 conda-forge markupsafe 2.1.1 py39h2bbff1b_0 matplotlib 3.8.0 py39hcbf5309_1 conda-forge matplotlib-base 3.8.0 py39hf19769e_1 conda-forge matplotlib-inline 0.1.6 py39haa95532_0 mccabe 0.7.0 pyhd3eb1b0_0 mistune 0.8.4 py39h2bbff1b_1000 mkl 2023.1.0 h6b88ed4_46357 mkl-service 2.4.0 py39h2bbff1b_1 mkl_fft 1.3.8 py39h2bbff1b_0 mkl_random 1.2.4 py39h59b6b97_0 more-itertools 8.12.0 pyhd3eb1b0_0 mpmath 1.3.0 py39haa95532_0 msys2-conda-epoch 20160418 1 conda-forge munkres 1.1.4 pyh9f0ad1d_0 conda-forge mypy_extensions 1.0.0 py39haa95532_0 nbclient 0.5.13 py39haa95532_0 nbconvert 6.5.4 py39haa95532_0 nbformat 5.9.2 py39haa95532_0 nest-asyncio 1.5.6 py39haa95532_0 networkx 3.1 py39haa95532_0 numexpr 2.8.4 py39h7b80656_1 numpy 1.26.0 py39h055cbcc_0 numpy-base 1.26.0 py39h65a83cf_0 numpydoc 1.5.0 py39haa95532_0 openssl 1.1.1w hcfcfb64_0 conda-forge packaging 23.2 pyhd8ed1ab_0 conda-forge pandas 1.5.2 py39hf11a4ad_0 anaconda pandocfilters 1.5.0 pyhd3eb1b0_0 paramiko 2.8.1 pyhd3eb1b0_0 parso 0.8.3 pyhd3eb1b0_0 pathspec 0.10.3 py39haa95532_0 pcre 8.45 hd77b12b_0 pexpect 4.8.0 pyhd3eb1b0_3 pickleshare 0.7.5 pyhd3eb1b0_1003 pillow 9.4.0 py39hd77b12b_1 pip 23.2.1 py39haa95532_0 platformdirs 3.10.0 py39haa95532_0 pluggy 1.0.0 py39haa95532_1 ply 3.11 py39haa95532_0 poyo 0.5.0 pyhd3eb1b0_0 prompt-toolkit 3.0.36 py39haa95532_0 psutil 5.9.0 py39h2bbff1b_0 pthread-stubs 0.4 hcd874cb_1001 conda-forge ptyprocess 0.7.0 pyhd3eb1b0_2 pure_eval 0.2.2 pyhd3eb1b0_0 pycodestyle 2.10.0 py39haa95532_0 pycparser 2.21 pyhd3eb1b0_0 pydocstyle 6.3.0 py39haa95532_0 pyflakes 3.0.1 py39haa95532_0 pygments 2.15.1 py39haa95532_1 pylint 2.16.2 py39haa95532_0 pylint-venv 2.3.0 py39haa95532_0 pyls-spyder 0.4.0 pyhd3eb1b0_0 pymoo 0.6.0.1 py39h2ba5b7c_1 conda-forge pynacl 1.5.0 py39h8cc25b3_0 pyopenssl 23.2.0 py39haa95532_0 pyparsing 3.1.1 pyhd8ed1ab_0 conda-forge pyqt 5.15.7 py39hd77b12b_0 pyqt5-sip 12.11.0 py39hd77b12b_0 pyqtwebengine 5.15.7 py39hd77b12b_0 pyrsistent 0.18.0 py39h196d8e1_0 pysocks 1.7.1 py39haa95532_0 python 3.9.7 h6244533_1 python-dateutil 2.8.2 pyhd8ed1ab_0 conda-forge python-fastjsonschema 2.16.2 py39haa95532_0 python-lsp-black 1.2.1 py39haa95532_0 python-lsp-jsonrpc 1.0.0 pyhd3eb1b0_0 python-lsp-server 1.7.2 py39haa95532_0 python-slugify 5.0.2 pyhd3eb1b0_0 python_abi 3.9 2_cp39 conda-forge pytoolconfig 1.2.5 py39haa95532_1 pytorch 2.1.0 py3.9_cpu_0 pytorch pytorch-mutex 1.0 cpu pytorch pytz 2023.3.post1 py39haa95532_0 pywin32 305 py39h2bbff1b_0 pywin32-ctypes 0.2.0 py39haa95532_1000 pyyaml 6.0 py39h2bbff1b_1 pyzmq 25.1.0 py39hd77b12b_0 qdarkstyle 3.0.2 pyhd3eb1b0_0 qstylizer 0.2.2 py39haa95532_0 qt-main 5.15.2 h6072711_9 qt-webengine 5.15.9 h5bd16bc_7 qtawesome 1.2.2 py39haa95532_0 qtconsole 5.4.2 py39haa95532_0 qtpy 2.2.0 py39haa95532_0 qtwebkit 5.212 h2bbfb41_5 requests 2.31.0 py39haa95532_0 rope 1.7.0 py39haa95532_0 rtree 1.0.1 py39h2eaa2aa_0 scipy 1.11.1 py39h309d312_0 setuptools 68.0.0 py39haa95532_0 sip 6.6.2 py39hd77b12b_0 six 1.16.0 pyh6c4a22f_0 conda-forge snowballstemmer 2.2.0 pyhd3eb1b0_0 sortedcontainers 2.4.0 pyhd3eb1b0_0 soupsieve 2.5 py39haa95532_0 sphinx 5.0.2 py39haa95532_0 sphinxcontrib-applehelp 1.0.2 pyhd3eb1b0_0 sphinxcontrib-devhelp 1.0.2 pyhd3eb1b0_0 sphinxcontrib-htmlhelp 2.0.0 pyhd3eb1b0_0 sphinxcontrib-jsmath 1.0.1 pyhd3eb1b0_0 sphinxcontrib-qthelp 1.0.3 pyhd3eb1b0_0 sphinxcontrib-serializinghtml 1.1.5 pyhd3eb1b0_0 spyder 5.4.3 py39haa95532_1 spyder-kernels 2.4.4 py39haa95532_0 sqlite 3.41.2 h2bbff1b_0 stack_data 0.2.0 pyhd3eb1b0_0 sympy 1.11.1 py39haa95532_0 tbb 2021.8.0 h59b6b97_0 text-unidecode 1.3 pyhd3eb1b0_0 textdistance 4.2.1 pyhd3eb1b0_0 three-merge 0.1.1 pyhd3eb1b0_0 tinycss2 1.2.1 py39haa95532_0 tk 8.6.13 hcfcfb64_0 conda-forge toml 0.10.2 pyhd3eb1b0_0 tomli 2.0.1 py39haa95532_0 tomlkit 0.11.1 py39haa95532_0 tornado 6.3.2 py39h2bbff1b_0 traitlets 5.7.1 py39haa95532_0 typing-extensions 4.7.1 py39haa95532_0 typing_extensions 4.7.1 py39haa95532_0 tzdata 2023c h04d1e81_0 ucrt 10.0.22621.0 h57928b3_0 conda-forge ujson 5.4.0 py39hd77b12b_0 unicodedata2 15.1.0 py39ha55989b_0 conda-forge unidecode 1.2.0 pyhd3eb1b0_0 urllib3 1.26.16 py39haa95532_0 vc 14.2 h21ff451_1 vc14_runtime 14.36.32532 hdcecf7f_17 conda-forge vs2015_runtime 14.36.32532 h05e6639_17 conda-forge watchdog 2.1.6 py39haa95532_0 wcwidth 0.2.5 pyhd3eb1b0_0 webencodings 0.5.1 py39haa95532_1 whatthepatch 1.0.2 py39haa95532_0 wheel 0.41.2 py39haa95532_0 win_inet_pton 1.1.0 py39haa95532_0 wrapt 1.15.0 py39ha55989b_1 conda-forge xorg-libxau 1.0.11 hcd874cb_0 conda-forge xorg-libxdmcp 1.1.3 hcd874cb_0 conda-forge xz 5.2.6 h8d14728_0 conda-forge yaml 0.2.5 he774522_0 yapf 0.31.0 pyhd3eb1b0_0 zeromq 4.3.4 hd77b12b_0 zipp 3.17.0 pyhd8ed1ab_0 conda-forge zlib 1.2.13 h8cc25b3_0 zstd 1.5.2 h19a0ad4_0 ```