How to change Temperature Plot Color Map in Icepak (PyAEDT)? #5933
-
I have created a temperature plot in Icepak using PyAEDT and would like to change the color map from "Rainbow" to "Magenta". I found the The section of my code responsible for generating the temperature plot is as follows: temp_folder = r"...\06_ANSYS\Temp" surflist = [i.id for i in icepak.modeler["Heatsink_1"].faces] plot = icepak.post.create_fieldplot_surface(surflist, "Temperature") colormap = ColorMapSettings(map_type="Spectrum", color="Magenta") path = plot.export_image( |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
-
Hi @Elaine904, this is a simple snippet that should achieve what you're looking for:
The issue now is that in native apis there is a typo. Fix here: #5935. Important note: to get folder_settings you need to have your project saved. |
Beta Was this translation helpful? Give feedback.
Hi @Elaine904,
this is a simple snippet that should achieve what you're looking for:
The issue now is that in native apis there is a typo. Fix here: #5935.
In the meantime you can change to other colormaps like "Temperature".
Important note: to get folder_settings you need to have your project saved.