First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
0

contour plot from python

asked Oct 26 '2

anonymous user

Anonymous

Hi there,

Is there any way for drawing a contour plot for a grid by a python in psse? I tried by the following code but I don't know how could I get the output, for example, a contour plot of the grid as a pdf file.

psspy.enablediagcontour(1,1,1,4,1, 100., 4.0, 1.0, 1.25, 0.75)

I would be thankful if anyone can share with me any similar experience.

1 answer

Sort by ยป oldest newest most voted
0

answered Nov 16 '2

Berwin gravatar image

Hello, This command will enable the contour plot in the SLD and you can also change the contour setting using the python code. Once it's done you can print the SLD page to get the contour included in the pdf file.

link

Comments

I would appreciate it if you could share with me a python code for getting the contour included in a pdf file.

sobhanB gravatar imagesobhanB (Nov 16 '2)

psspy.enablediagcontour(1,1,1,4,1, 100., 4.0, 1.0, 1.25, 0.75) psspy.changediagcontour(1,1,1,4,1, 100., 4.0, 1.0, 1.25, 0.75) psspy.printdiagfile(r"""Foxit PDF Editor Printer""",1,1) Please replace " Foxit PDF Editor Printer" with your default pdf veiwer to save it

Berwin gravatar imageBerwin (Nov 16 '2)

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: Oct 26 '2

Seen: 252 times

Last updated: Nov 16 '22