Author Topic: Customization of colormap and colorbar  (Read 7002 times)

aortizb

  • New Member
  • *
  • Posts: 7
    • Personal webpage
Customization of colormap and colorbar
« on: January 12, 2024, 09:32:22 AM »
Can the FEAP's colormap be changed?
Can the number of colors in FEAP's colorbar be changed? The default is twelve colors. Can this number be increased or even make it "infinite" so that to have a continuous contour plot?

Best,
Alejandro.
---
Alejandro Ortiz-Bernardin

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1160
Re: Customization of colormap and colorbar
« Reply #1 on: January 12, 2024, 10:15:01 AM »
FEAP always plots a discrete number of colors so that the boundaries between colors have precise meaning.  You can edit the code to have more colors; edit [unix/windows]/pppcol.f then unix/x11u.c or windows/pltdos.f, etc.  This is a quite invasive process.  I would suggest using the paraview output command PVIE.  You can then open the data in paraview and will have easy, quick, access to infinite shading options.

aortizb

  • New Member
  • *
  • Posts: 7
    • Personal webpage
Re: Customization of colormap and colorbar
« Reply #2 on: January 12, 2024, 01:19:23 PM »
Ok, I understand. How about the colormap? In a FEAP pv version I have, the colormap is going from white to red, but in FEAP 8.6 it is from red to purple. Is this something that can be easily customized, or do I also need to edit the source code?
---
Alejandro Ortiz-Bernardin

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1160
Re: Customization of colormap and colorbar
« Reply #3 on: January 12, 2024, 02:43:00 PM »
The map can be edited but only in the source code unix/x11u.c for linux based machines and windows/pltdos.f for windows.