Color
Helper class to deal with color (support matplotlib defined colors).
To define a color (RGB defined or darkblue color from matplotlib CCS4 color):
from PyGeoStudio import Color
rgb_color = Color([156,35,76]) #RGB color
darkblue_color = Color("darkblue") #matplotlib CSS4 color
To assign a color to a material nammed mat:
mat["Color"] = darkblue_color
Detail of Color class:
- class PyGeoStudio.Color(arg)
A helper class to handle color from GeoStudio file and Matplotlib colors. Color ojbect can be constructed either by specifying the name of a matplotlib color, or a list with RGB intensity from 0 to 255.