PDFgetx3 plotdata problem

7 views
Skip to first unread message

Changhao Zhao

unread,
Nov 9, 2025, 7:05:04 AM (2 days ago) Nov 9
to diffpy-users
Dear all,

I am an old user of PDFgetX3. I met a problem with the latest version (v2.2.1). The installation and PDF conversion went well, but when I tried to plot the data using "plotdata" command, a white window popped out with no response. I tried it on another PC but encountered the same problem. It seems to be due to version conflict between Python and matplotlib according to my searching results online. So I tried to adjust the versions of python and matplotlib but the problem remains. 

I am installing and running PDFgetX3 with Anaconda. The matplotlib can work when I manually created some datapoints and plotted them out using some Python commands. But it crushed when I used plotdata in PDFgetX3. 

I would much appreciate if anyone can help.

Thanks,
Changhao

Tianxiang Chen

unread,
Nov 9, 2025, 7:54:26 AM (2 days ago) Nov 9
to diffpy...@googlegroups.com
Dear Changhao,

1. Downgrade PDFgetX3 to version 2.1.0—it runs smoothly under Python 3.7.
2. Stay in your current environment and type three lines manually in IPython:
In [1]: import matplotlib.pyplot as plt
In [2]: tuneconfig()
In [3]: plt.show(block=True)
The plot window will open normally and stay responsive.

Best regards,
Tianxiang

Changhao Zhao <blk...@gmail.com> 于2025年11月9日周日 20:05写道:
--
You received this message because you are subscribed to the Google Groups "diffpy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to diffpy-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/diffpy-users/a8125ccd-0501-46c0-86cd-08a1d0c5b19fn%40googlegroups.com.

Simon J. L. Billinge

unread,
Nov 9, 2025, 8:00:43 AM (2 days ago) Nov 9
to diffpy-users
Thanks for the question and the response.

I think that you don't have to downgrade pdfgetx3, but you do have to downgrade matplotlib in your current environment.

But we will push out a new version of getx3 shortly that hopefully can address this problem.  @changhang, please could you tell us the version of everything that you have installed in your conda environment as well as the platform?  There is no need to spam everyone here here with it, please send it directly to me.

S

Changhao Zhao

unread,
Nov 10, 2025, 7:00:26 AM (yesterday) Nov 10
to diffpy...@googlegroups.com
Dear Tianxiang,

Thanks for your response. Your solution works!
But it seems each time I run pdfgetx3, I need to run "matplotlib.pyplot.show(block=True)" in iPython. Any solution to fix this permanently?

Thanks,
Changhao

Reply all
Reply to author
Forward
0 new messages