Help with Reading and Plotting .pl4 Files Using Dislin in Python

26 views
Skip to first unread message

Abreha Asgedom

unread,
Apr 27, 2025, 8:43:00 PMApr 27
to dislin-users

Dear Dislin Team,

I have a .pl4 file generated from ATP-EMTP software that I would like to analyze and plot using Dislin. Since Dislin is a powerful tool for plotting, I would like to take advantage of its features.
I have successfully installed Dislin on Ubuntu and configured it with Python. However, I am not sure which classes or functions in Dislin can help me read and plot a .pl4 file.
I would appreciate any guidance or suggestions you could provide.

Thank you very much for your support.

Best regards,
Abraham

Helmut Michels

unread,
Apr 28, 2025, 10:04:36 AMApr 28
to dislin-users
Dear Abraham,

sorry, there is no way for reading .pl4 files with Dislin. These files seem to be very special. I could not find
any documentation of the file format. To use .pl4 files with Dislin you have to extract the data from the files,
but I don't know how to do it.

With best regards,

Helmut

Ian Lilly

unread,
Apr 28, 2025, 4:32:07 PMApr 28
to dislin...@googlegroups.com

Abraham,

See this: https://filext.com/file-extension/PL4


it states that you need access to the software used to create the file to be able to read it as apparently there's no documentation (public) describing it.

Regards,


Ian

Ian Lilly (GMAIL)
ianj...@gmail.com
AU: +61 4 22 84 15 11
   

--
You received this message because you are subscribed to the Google Groups "dislin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dislin-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dislin-users/4bc6c085-04e9-4a5e-a3ca-97053b0ccc97n%40googlegroups.com.

Loo X

unread,
Apr 29, 2025, 9:46:14 AMApr 29
to dislin...@googlegroups.com

Abreha Asgedom

unread,
Apr 29, 2025, 10:40:21 AMApr 29
to dislin-users
Thanks Helmut, Ian and all for your active responses. In windows PlotXY can plot .pl4 file;  in Linux, I will try the one you suggested (readPL4) and plot it with dislin after reading/parsing.

Abraham 

oph

unread,
Oct 19, 2025, 7:40:30 PMOct 19
to dislin-users

Dear Abreha Asgedom,


I am a developer of ATP-EMTP and author of the gtpplot graphing program, which has been using DISLIN for many years.


.pl4 files support different formats as specified in the “startup” file.

The internal structure of binary formats (C-like, PISA, etc.) is not freely available.


You can try the ASCII formats (values in columns separated by spaces), which are easy to interpret, since everything is in plain text.


There is a format defined in FMTPL4 that can be adjusted with F10.5, for example, or with wide10, which is simpler. The 10 I wrote is an example; you can use another value.


The only problem with these ASCII or text formats is that they require a little more ATP execution time.


I suppose you can modify the startup to create the format you can handle.


Best regards,


OPH. 2025-10-19 20:38 UTC-3

oph

unread,
Oct 19, 2025, 8:21:33 PMOct 19
to dislin-users
Dear Abreha Asgedom.

I you need only to process .pl4 files in Linux, you can try gtpplot for Linux. It reads all the ATP .pl4 formats and make plots and some calculation with data.
gtpplot can save the data in a simple csv file that can be opened by Excel or Libre Office or you program in Python. Gtpplot, as ATP-EMTP, is a cost-free program.

Regards

OPH. 2025-10-19 21:21 UTC-3
El martes, 29 de abril de 2025 a las 11:40:21 UTC-3, Abreha Asgedom escribió:
Reply all
Reply to author
Forward
0 new messages