Ask Your Question
0

contour plot from python

asked 2022-10-25 18:04:34 -0600

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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2022-11-16 14:32:25 -0600

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.

edit flag offensive delete link more

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 ( 2022-11-16 15:31:56 -0600 )edit

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 ( 2022-11-16 16:33:49 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: 2022-10-25 18:04:34 -0600

Seen: 71 times

Last updated: Nov 16