PDFgetx3 plotdata problem

56 views
Skip to first unread message

Changhao Zhao

unread,
Nov 9, 2025, 7:05:04 AMNov 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 AMNov 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 AMNov 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 AMNov 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

Kenny Marshall

unread,
Nov 27, 2025, 9:19:01 AM (7 days ago) Nov 27
to diffpy-users
Hello  Changhao,
I have a GUI that runs on top of pdfgetx3, which plots the data out and allows you to adjust parameters interactively. Maybe it would be useful for you? Would recommend python 3.10 . Should be good with the most recent version of matplotlib.

https://github.com/msujas/pdfgetx3_gui/ (clone or download, then install from there (pip install -e .), or pip install pdfgetx3gui). Then run pdfgetx3gui in the command line.

Kenny
Reply all
Reply to author
Forward
0 new messages